Clear a Bit Array in Logix. How?

skyfox

Lifetime Supporting Member
Join Date
Nov 2006
Location
CA
Posts
279
Is there a way (instruction or a method) to clear all the bits in a boolean Array in a single scan without using a "For - Break" instruction?

For example, I have a bit Array BOOL[64] and need to set all the bits in this array to Zero in one go. Is it possible with Logix5K?

I cannot use a DINT as it only has 32bits (it would have been easy otherwise). I need to have 64 bits so each bit ID matches a Device ID# number and helps keep things nice and tidy without having to use several DINT's, in which case bit # would not match the device #.

Thanks
 
Last edited:
Thanks for the reply Peter,

Tag #1 - TEST1 (Bool[64])

Tag #2 - TEST2 (DINT[2])

COPY SOURCE = TEST2
DEST = TEST1
LEN = 2

Does not work? (Cannot compile)

What am I doing Wrong?

Thanks Again.
 
Create a UDT (xyz or whatever)with a single member ID as BOOL[64]
Create a tag Device of type xyz
Refer to the bits as Device.ID[0] to Device.ID[63]
To clear: FLL,0,Device,1
 

Similar Topics

I was messing around with the FBC function in logix 5000 last night. I want to compare until I find a match and then continue on the array using...
Replies
2
Views
4,704
Besides going to the Channel Status dialog window to clear the DF1 Half Duplex Master windows to use the Clear Button available in the dialog...
Replies
0
Views
3,617
Hi, Experts: We have 20 + years old GE PLC series 90-30 stop running (the run led not on and battery led not on) and HMI showing that "PLC has...
Replies
7
Views
187
Hi everyone, recently i worked with a cmore panel and have the question that how can clear alarm list whit remote form,right now only can with...
Replies
0
Views
104
Hi guys, I have a data table as REAL type VALUES_TABLE[32,100]. I want to clear this table. For that i created a REAL type CLEAR_DATA tag with...
Replies
8
Views
555
Back
Top Bottom