8/9/2006 11:08 AM | |
Posts: 1084 Rating: (72)
|
Hi, Write the closing argument as well. \0 So whenyou input the second text efg make sure you add \0 and therefore write efg\0 into the Tag. |
8/11/2006 3:15 PM | |
Posts: 66 Rating: (1) |
Thnak you, but still a bit lost, how do I add \0 into the Tag? An example would be great! |
Last edited by: vidarv at: 8/11/2006 3:15 PM |
|
8/15/2006 10:15 AM | |
Joined: 9/27/2005 Last visit: 11/27/2007 Posts: 1398 Rating: (151)
|
OK I have done some testing and get the same results as you. I then did some investigating... First, please read this faq http://support.automation.siemens.com/WW/view/en/7508664 So : the 1st byte of a string contains the maximum allowed value the 2nd byte shows the actual value. WinCC correctly reads these two administration bytes to determine the current string length and ignores older values. I think your program needs to do the same. Maybe someone in the S7 forum can tell you how to do this in your Step7 program. Otherwise you would have to pad trailing zeroes onto the end of your string, but this sounds like bad programming to me. I hope this makes sense, if not just ask. |
8/15/2006 10:41 AM | |
Joined: 9/27/2005 Last visit: 11/27/2007 Posts: 1398 Rating: (151)
|
Maybe this FAQ will help http://support.automation.siemens.com/WW/view/en/10913338get you started |
Follow us on