Sign in to follow this  
Followers 0
kothy

ARRAYS

4 posts in this topic

Hello all, Here is the problem im facing in RSLogix 5000. I have two DINT arrays for example TAG1 type DINT[32] and TAG2 type DINT[32]. Is there away that I can compare these two arrays such that when the expression is true to turn on an output? Please help. Thanx in advance. Kothy.

Share this post


Link to post
Share on other sites
Kothy, There are several technotes in the AB knowledgebase about doing FAL operations on the Logix-5000 PLCs. The FAL or FSC instruction should do what you want to do - but the application of the instructions is different from the PLC-5. See the Technotes.

Share this post


Link to post
Share on other sites
The following 2 rungs do it. Make the control length the of your arrays. FSCControl type = Control FSCTag1 type = DINT[32] FSCTag2 type = DINT[32] ArraysMatchBit type = Bool Rung 1 - XIO FSCControl.EN FSC FSCControl ? ? ALL FSCTag1[FSCControl.POS]<>FSCTag2[FSCControl.POS] Rung 2 - OTU FSCControl.IN XIO FSCControl.FD OTE ArraysMatchBit

Share this post


Link to post
Share on other sites
The following 2 rungs do it. Make the control length the of your arrays. FSCControl type = Control FSCTag1 type = DINT[32] FSCTag2 type = DINT[32] ArraysMatchBit type = Bool Rung 1 - XIO FSCControl.EN FSC FSCControl ? ? ALL FSCTag1[FSCControl.POS]<>FSCTag2[FSCControl.POS] Rung 2 - OTU FSCControl.IN XIO FSCControl.FD OTE ArraysMatchBit

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0