Clearing String Tag in Logix 5000 Structured Text

pittpanther

Member
Join Date
Nov 2010
Location
Havre de Grace, MD
Posts
9
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 quite right.

The tag that I would like to clear is FTM.TestTag. I have tried to create an empty string tag called FTM.EmptyString, and assign it to FTM.TestTag (to clear it out), but the Structured Text editor does not seem to like the syntax:

FTM.TestTag:=FTM.EmptyString;
FTM.TestTag.LEN:=1;

I get a squiggly syntax error line on the first assignment. I can only seem to make this assignment one element at a time, like:

FTM.TestTag.DATA[0]:=FTM.EmptyString.DATA[0];

...but this only clears the 0th character.

What am I missing here?

Thanks!
 

Similar Topics

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
21
Views
16,783
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,967
Hi I am using a SLC 500 and a lot of string handling. I need to copy a NULL value to a string table eg. ST16:0. How do I do it?
Replies
2
Views
5,087
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,982
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,357
Back
Top Bottom