Storing Zero Length String in ML1100

rizzyboy

Member
Join Date
Feb 2009
Location
canton, ohio
Posts
6
I am new to string handling in the Micrologix 1100. I need to use an ST value (always six characters) as the trigger for an OPC recipe download. This is working okay, but I need to set the ST trigger value back to a zero length string. I haven't been successful yet in getting this to work. Anything that I have tried made it look empty but the .LEN is still at six. :confused: Can someone help me?

Thanks in advance
Tom
 
Go with OkiePC's suggestion. That is the only way to clear a string. If you make the string look empty, eg, filling it with any ascii value, you have a string of characters of that ascii value, not an empty string. Set Len to zero and you can ignore what ever is in the string memory, no need to clear them, its no longer a part of the actual string.
 
An extension of the string clear, whenever I have a UDT based variable or array I may need to clear I also create an empty or default value instance precisely for rapid clearing by using the COP command.
 

Similar Topics

HI all, I have a backup from a Series 7000 Cognex camera. I am trying to restore and see the vision tools used in the job. Can I restore those...
Replies
0
Views
68
Hello, I have an int variable that updates the value every second. I want to store the 100 values in an array. Array should keep storing the...
Replies
7
Views
1,000
Hi I have a vision camera that I’m getting the string data P908765 from the vision on an advance trigger .which im using a S -move. Then I put...
Replies
1
Views
374
Hello You guys helped me with a similar issue some time back on storing totalized values to different tags each month. I have a similar issue...
Replies
19
Views
1,487
Is there any easy way to store a password for an email address that is changeable on the HMI that is not easily deciphered. aka, don't write it to...
Replies
0
Views
381
Back
Top Bottom