RSLogix5000 Function

Bbarnett

Member
Join Date
Jul 2013
Location
United States
Posts
77
Is there a function that treats an array like an XIO/XIC contact?

I have an array of BOOLs and if any of them = 1, I would like the rung to go true.

Thanks.
 
If i may ask why use boolean array's? Instead a more efficient way i think would be to use an INT or DINT data type then monitor the bits within those data type such that any time the INT or DINT value is NOT equal to zero then have your rung go true
 
See the attachment,

I wrote a quick sample in logix 5000. So basically You have a tag called Boolean_Array which has an array size of 32 Bool elements. In logix 5000 it defaults to 32 booleans by default. Then i also created my pointer tag called Index, which will iterate through the Boolean array, and at any time any of the boolean bit has a positive transition you trigger will energize.

I made it a latch so you can capture it
 

Similar Topics

Hello I'm trying to use function blocks to scale engineering units to W.C. reading. but I don't see the option to create the function block is...
Replies
3
Views
1,073
I have not used function blocks much in Studio 5000. Could someone tell me the advantages compared to the dis-advantages.
Replies
2
Views
1,429
I'm modifying my first function block program in RSLogix (I've only done ladder and ST on the AB PLCs before). The existing program looks like a...
Replies
3
Views
1,797
Just downloaded an existing app to this Controller and I can see instrument inputs changing in the tag list when I go online, but the clock is not...
Replies
13
Views
4,934
Anyone know of an easy way to program a FIFO in function block for RSLOGIX500. There appears to be no instruction for this. I'm sure I can put...
Replies
4
Views
2,833
Back
Top Bottom