Move String with SFC20 STEP7

This is the first 16 bytes of DB where the text have to be.

is DB1.RecipeName1 a char array or a string?

If DB1.RecipeName1 is a variable of STRING[XX] then
then screenshot you posted is not a valid string and will never display correctly regardless if you read it from a db or q area!

The first byte of the string contains max length and the second byte current length of the string and the text you want to display must be valid ascii not 0
 
A string[4] that displays '123' should look as follows

Code:
DB1.DBW    0 = W#16#0403 (4 max lenght 3 = current lenght)
DB1.DBD    2  = DW#16#31323300 ('123')
 

Similar Topics

Hi, I need to receive data via a DPDP coupler. On the other side it's simatic doing blockmove. On TIA side it's like blockmove doesn't work on...
Replies
0
Views
957
Good Morning , I'm trying to move a total for a dose into a dose history. I'm able to get my totals to move just fine. I would also like to...
Replies
6
Views
2,407
Hello! Sorry, my english is poor:rolleyes: Please tell me how to remove the line from the file. The library TsSistem no suitable function. Can be...
Replies
5
Views
3,005
Hello, I am trying to move a data DB2.DB Type String [10] to another DB1.DB Data Type String [10] in LAD or STL. Have anybody done this? Move/...
Replies
1
Views
1,823
I am using SLC500 how do you move ASCII (A10) into a string (ST9)? I tried cop FLL and no go Thanks
Replies
6
Views
2,210
Back
Top Bottom