clearing a string data file

You must be getting your current Table Data from somewhere.

What is the function that gathers that data?

Use the same function to "grab" a zero from a constant or V-Mem location that has been loaded with a zero. Don't forget to use the right data-type (Interger, Double...).

If you know the specific address in the Table that you want to write the "NULL" (0) to, then use a MOV Function to copy a zero from a constant or V-Mem location that has been loaded with a zero. Don't forget to use the right data-type (Interger, Double...).

Basically, it sounds like you need to shake the dust off of the manual.
 
I don't have RSLogix handy, so I'm pulling these from memory - some might not work:

Method 1: CLR ST16:0.LEN - just set the string length to zero - the data will go 'poof'

Method 2: CLR N7:0 CLR N7:1 COP #N7:0 ST16:0 2 - the first word in the string is the length - when you copy an integer to a string, the first word goes into the Length, the rest as ASCII.

Method 3: FLL 0 ST16:0 1 - same as 2, just cleaner.

Method 4: Prepare ST16:1 to be "null". COP #ST16:1 #ST16:0 1.

Let me know which one of these works, if any.
 
Last edited:

Similar Topics

RSlogix5000 - Here is what I would like to accomplish and what I am running into. Currently this is a scanner ASCII gateway to PLC set up. A)...
Replies
9
Views
3,953
Hello all - I have a string tag that is a member of a UDT that I would like to clear within a Structured Text routine - but cannot seem to get it...
Replies
2
Views
7,289
Is there an instruction in RSLogix5000 for clearing out a string tag? I've tried COP with a zero as the source and the string tag as the...
Replies
18
Views
16,287
I'm online with a 90-30 using PAC ME 9.8 No one has gotten online with this PLC for many years and the the I/O fault table has a total of 1209...
Replies
6
Views
2,961
Using an L81 - I have the arrangement below that will try the Ethernet Radio first and if that fails use the Cellular Radio. The Failover works...
Replies
16
Views
3,328
Back
Top Bottom