Posted 21 Oct 2005 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
Posted 21 Oct 2005 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
Posted 21 Oct 2005 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
Posted 21 Oct 2005 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