EnterDownload
Member
Hello All
Im using a FESTO PLC with Codesys.
I have a string, named "Program1", which Im trying to convert to a datatype of Word.
Im not sure if the convert function WString_To_Word is the correct function I should be using. When I use WString_to_Word function,
e.g. myTestWord := WString_to_Word("Program1"), I get an output of "0" for myTestWord
myTestWord is a Word data type.
Can someone tell me what Im doing wrong? and how to fix this so that I may get the Word representation of the String ("Program1")?
thanks very much
J
Im using a FESTO PLC with Codesys.
I have a string, named "Program1", which Im trying to convert to a datatype of Word.
Im not sure if the convert function WString_To_Word is the correct function I should be using. When I use WString_to_Word function,
e.g. myTestWord := WString_to_Word("Program1"), I get an output of "0" for myTestWord
myTestWord is a Word data type.
Can someone tell me what Im doing wrong? and how to fix this so that I may get the Word representation of the String ("Program1")?
thanks very much
J