(0)| 3/16/2023 8:17 AM | |
|
Joined: 8/3/2009 Last visit: 1/20/2026 Posts: 16653 Rating:
|
Hello jthyge1 First of all what kind is that Tag? it is a S7 String in a PLC DB? or is it a internal Text/String Tag? If its a S7 String you just can write "" in it and the communication driver will set the first two bytes in the DB to the correct length, (MAximum Length of the String and current length of the string) -> the current length of the sting in the DB will then be 0 and this is a defined as empty string in PLC (it does not matter if there are any characters in the following bytes...) In C Script you have to work with a terminated String \0 but in VB you just can work with "" And also your syntax is not exact, please check with: https://support.industry.siemens.com/cs/ww/en/view/109792585/118089674379 If you want to do something specific different than this then It would be great if you give us a few more information Good Luck and have a nice day Bye Murof |
Last edited by: Murof at: 03/16/2023 08:21:21If this Information really helps, you could use the Rate function |
|
Follow us on