Single instruction to OR two arrays in RSLogix5000

Salman S.

Member
Join Date
Oct 2016
Location
Malaysia
Posts
41
Is there a single instruction or a simple way of OR'ing two arrays together? I want to avoid looping a bitwise OR, as it would require me to create unnecessary for loop routine.

e.g If I have a tag 'Array' with two elements and another tag 'Array2' with two elements, I want the resultant Array[0] or Array2[0] and Array[1] or Array2[1] to be saved in a destination array tag.

Obviously the above example is trivial enough to repeat the instruction but when there are 100+ elements, loop is the only practical option.

Any suggestion will be greatly appreciated.
 

Similar Topics

Hello; I am working for programing of a Fatek FBs-20MA PLC. I have a data in a single register (in given picture, its R0), to ADD the values of...
Replies
0
Views
944
Hello all. I've been looking into sequencer blocks on RSLogix 500 and am planning to rewrite a sequence based program that I originally wrote in...
Replies
4
Views
6,909
Hello all. I've been looking into sequencer blocks on RSLogix 500 and am planning to rewrite a sequence based program that I originally wrote in...
Replies
1
Views
5,369
I'm looking for how others do it. I need to start a 1 phase motor. I have always used a regular 3 phase Motor Protected Circuit Breaker and looped...
Replies
3
Views
80
Why does the controllogix redundancy modules use a single mode fiber vs multimode fiber?
Replies
1
Views
90
Back
Top Bottom