Help - Search - Members - Calendar
Full Version: ARRAYS
Forums.MrPLC.com > PLCs and Supporting Devices > Allen Bradley
kothy
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
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
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
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.
Invision Power Board © 2001-2010 Invision Power Services, Inc.