kothy
Oct 21 2005, 12:18 PM
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.
Alaric
Oct 21 2005, 12:46 PM
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.
Guest
Oct 21 2005, 02:21 PM
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
TWControls
Oct 21 2005, 02:24 PM
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
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.