Bit Array Clearing in CLX

DaveW

Member
Join Date
Apr 2005
Location
SoCal
Posts
389
Is there's an easy way to clear an array of bits without having to use indirect addressing/looping of some sort. My ControlLogix tag is BoolTag[100]. I was thinking of using the bits in a DINT but it's only 32 bits.
 
Take a look at the following technote from AB's knowledgebase.

http://rockwellautomation.custhelp.com/cgi-bin/rockwellautomation.cfg/php/enduser/std_adp.php?p_faqid=18685

A dint array will be much easier to work with and it can still be accessed at the bit level. I generally stay away from bool arrays except in certain cases, such as this one: OneShotStorage[128]

Also, 100 is an odd size for a bool array. Bool arrays need to be in 32 bit increments, therefore booltag[96] or booltag[128] will be more appropriate. See
http://rockwellautomation.custhelp.com/cgi-bin/rockwellautomation.cfg/php/enduser/std_adp.php?p_faqid=41378
 
Last edited:

Similar Topics

I have a bit array about 1000 in length. Now I need to clear about 100 in the middle of it. The FLL instruction doesn't work with bits and I'm not...
Replies
6
Views
2,572
The analog array has 16 individual bits and each bit is an alarm. SCADA is having issues getting the BIT bool value. However they can get the...
Replies
9
Views
1,020
I am having to manipulate MB data in a compactlogix 5380. I need to copy the bit array from the TCP MB master into a matching bit array to use in...
Replies
13
Views
2,512
Hello, I am converting a Panelview 1000 to a Panelview Plus 1000, connected to a MicroLogix 1500. When doing the conversion, I received a Bit...
Replies
8
Views
3,254
I'm having trouble with alarms coming across from a micrologix 1500 to a Panelview plus 6 600. This is a conversion from a Panelview standard to...
Replies
0
Views
2,506
Back
Top Bottom