L D[AR2P#0.0]
Lifetime Supporting Member
Peter - In your example FC8, if you L LB4 this will give you the max length of the string.
Note:
If the contents of a string are changed by the user program, the byte "actual length" must also be written or updated so that the string can be displayed by the programming device.
If a temporary variable of the data type STRING was defined, the byte "max. length" must be written with the defined length before using the variable in the user program.
L D[AR2 said:Peter - In your example FC8, if you L LB4 this will give you the max length of the string.
Here it is, even remembered to switch to English mnemonics!Looks like we've reached the stage where you need to post the code so we can run what you are running......
have tried converting a constant like rolf to see if it can basically work and record the DINT that you are trying to convert, maybe it is too long