CLX5000 clearing udt array?

johnfarrugi

Member
Join Date
Mar 2008
Location
London
Posts
99
I have a udt made up of a few dint and stings. I built an array using this udt and I'm looking to figure out how to set all the dints in the array to zero and empty all the stings.
 
The absolute easiest way, is just create a new instance of the UDT (which will then be blank/zeroed) and CPY it over any other instance you want to be zeroed out.
 
robertmee said:
Try using the FLL instruction instead.

I get invalid data typefile:///C:/DOCUME~1/JFARRU~1/LOCALS~1/Temp/RSLogix 5000 RLL Scrap 'FLL(Zero_S...'.shs

Its looking for the source to be an element in the udt and not the udt as a whole. Once I select an element the error goes away but I want to take the souce udt and fill every element in the array with it. The source and destination udts are the same type. The only difference is the destination is an array of 100 and the source isn't in an array.
 
I just tested it to make sure...Works for me:

FLL 0 MyTestUDT[0] 10

It will put 0 in numerics, 0 in Bools, null in strings.

You don't need the empty UDT, just zero.
 

Similar Topics

Hi All I am Converting a Program from SLC500 to ControlLogix. I have exported the SLC files and ran them through the Project Migrator which...
Replies
1
Views
1,347
Hi All I have just started a project to convert one of our machines from SLC500 to CLX5000. One of the first steps in the Rockwell guide was to...
Replies
4
Views
1,993
Anyone know how to get the program checksum from a Logix 5000? Thanks!
Replies
9
Views
4,483
I have a training setup where I have multiple students develop programs on their own laptops, and then, one after another, download their programs...
Replies
0
Views
1,339
Is there an easier way to move a BOOL array to INT in CLX5000 Ladder program. Thanks
Replies
13
Views
4,476
Back
Top Bottom