Industry Online Support
Technical Forum
2/12/2013 1:42 PM | |
Posts: 4 Rating: (0) |
Dear, I'm working on a program where data is read into a DB-block as a array of byte. Next i would like to be able to move the data in the same DB- to different place and with the data type string. So far i'm doing this by using a block move (i'll add a pdf with some pictures to help explain the situation). This works but i always seem to lose the first 2 bytes (letters) when converting. If the data read in should be 'SIEMENS' i'll find the S and I in byte 0 and 1 in the array, but when converting to string it will just show 'EMENS'. See pictures for example. Does anyone have a better method for this? Is this a bug or am i doing something wrong? thank you for your help. ps:Used plc is a S7-300 so the instruction Chars_TO_strg isn't an option AttachmentSiemens Forum 12_2.pdf (1308 Downloads) |
Last edited by: zerocool3 at: 2/12/2013 2:06 PMLast edited by: zerocool3 at: 2/12/2013 2:05 PM |
|
2/16/2017 1:54 PM | |
Joined: 9/3/2014 Last visit: 3/13/2019 Posts: 4767 Rating: (123) |
New question published by nghia.cuong93 is split to a separate thread with the subject Move string variable. Best regards |
Follow us on