3/27/2013 11:04 AM | |
Joined: 5/19/2009 Last visit: 7/30/2024 Posts: 40 Rating: (0) |
I have a problem with string data types in WinCC Professional V11 SP2 Update 5. The WinCC project (in attachment) contains one screen with two I/O fields (IOField1 has string formating set to *, while IOField2 has string formating set to ??????????) which are used to read/write strings in the PLC. Both I/O fields are referenced to the same PLC tag. There are also two I/O fields (IOField3 has string formating set to *, while IOField4 has string formating set to ??????????) which are used to read/write strings in WinCC internal tags. Both I/O fields are referenced to the same internal tag. When a string is written to the IOField1 (string formating set to *) the string is not accepted and the string is not written to the specified PLC tag. The same thing happens when a string is written to the IOField2 (also if the string is shorter than the specified string format, nothing happens; the string is not accepted). When a string is set in PLC (using watch table), the string is displayed in the IOField1 but it contains some strange special characters at the end. The string is not displayed in the IOField2 (why not?). When a string is written to the IOField3 (internal tag; string formating set to *) the string is accepted, but is not displayed in the IOField4. If a string is written to the IOField4 (the string length is the same as the set string format), the same string is accepted and displayed in the IOField3. If the string is not the same length as the specified string format, the string is not accepted and not displayed in the I/O fields. What is strange about this is that when reading and writing strings to/from PLC using WinCC Advanced V11 SP2 everything works OK. One can read and write strings normally. Thank You, Igor P.S. - the PLC (S7-1215, firmware 3.0) is directly connected to the PC (WinCC Professional V11 SP2 Update 5, WinCC Advanced V11 SP2) AttachmentstrBug_1.zip (510 Downloads) |
Last edited by: Igor007 at: 3/27/2013 11:05 AM |
|
3/27/2013 11:07 AM | |
Joined: 5/19/2009 Last visit: 7/30/2024 Posts: 40 Rating: (0) |
Here is the screen shot. |
Follow us on