Mike_Fantastic
Member
Hey Guys.
I am creating a FB which has a STRING (254) in the STAT. I was able to create the string without seeing red in STAT. However I cannot Load it to Memory.
I can:
// I can move 4 Bytes into MD.
L ‘MIKE’
T MD0
But I CANNOT:
Local symbol in STAT: First_Ch | String(254) | 48.0 | ‘THIS IS MY STRING. HELP!!!’
L #First_Ch
T ??????
S7 Help tells me: “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.”
1. 1) What does this help mean?
2. 2) Is it possible to put a string larger than a Double Word into a Memory Adddress?
3. 3) If possible can you please show me how?
Huge thanks in advance!!!
I am creating a FB which has a STRING (254) in the STAT. I was able to create the string without seeing red in STAT. However I cannot Load it to Memory.
I can:
// I can move 4 Bytes into MD.
L ‘MIKE’
T MD0
But I CANNOT:
Local symbol in STAT: First_Ch | String(254) | 48.0 | ‘THIS IS MY STRING. HELP!!!’
L #First_Ch
T ??????
S7 Help tells me: “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.”
1. 1) What does this help mean?
2. 2) Is it possible to put a string larger than a Double Word into a Memory Adddress?
3. 3) If possible can you please show me how?
Huge thanks in advance!!!