Hi.. Thank you very much it made something work.. Now I can retrieve numbers from the database. word.
I came across this text.. I think it has something to do with my challenge to read string..
but heg can't quite decipher it.
The DB address on the HMI panel is, when it is WORD 01, the placement becomes 0001 for example..
so I type 010001
then I get the number in DB 1 and the value in location 1. it works.
"
S7-1200 String type, the default first two bytes are used to store the maximum character and valid characters, so the text data will be shifted back one word address. When interacting with the data, what way this address plc is displayed with is unknown. And because of an extra word of data causes us to display the wrong. The solution is if we use String, then the actual data address we want to operate on is actually shifted back two bytes, so as long as the address on the project is shifted back 2 bits to correspond with the actual data address.
"
The DB address on the HMI panel is, when it is WORD 01, the placement becomes 0001 for example..
so I type 010001
then I get the number in DB 1 and the value in location 1. it works.
The question is.. in relation to the text, what does the address become with a STRING
I succeeded with STRING.. in a way.. I can get an "i" into the database and I can see an i on the HMI panel. but if I write tests in the database I get rubbish on the panel
Try to see the pictures..
it's like it's upside down and something is missing