Clearing arrays in RSlogix 5000

Join Date
Sep 2007
Location
North Carolina
Posts
4
Greetings all! I'm developing my first PLC project in RSLogix 5000, and I need to clear an array of REAL data. I've tried using both the CLR and FLL instructions, and both want the array element included. The array I want to clear is named Web_Index_Values, and I've got the FLL instruction in place at the moment using Web_Index_Values[0] with a length of 21 (the array is 21x1), filling with zeros. Will this work or will it look to fill element [0] with 21 bits worth of zeroes?

Thanks!
 
Make another Real Array, exact same size, and use a copy to copy the ClearedArray into your other array
 
I've found that an array name by itself is not considered an address. These commands usually want the first element, your_array[0], as the beginning point for the command to execute.
 
That appears to be the case here, the code seems to be happy now. Of course, the machine's not built yet, and I'm relying solely on the routine verification at this point.
 

Similar Topics

Say i have an Array[100] and i want to clear words [5]-[60] for example. How can i do that in the PLC without putting in a bunch of CLR commands...
Replies
5
Views
1,581
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
3,021
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,423
Since this is the most helpful place on earth for us programmers, I'm back with another one. Using Logix v32 I've got an array with 100 elements...
Replies
9
Views
3,008
Hey guys, I'm still pretty new to PLC's in general. For a program on RSLogix 500 with a micro1400 and pvp400, we are currently logging data for...
Replies
9
Views
2,830
Back
Top Bottom