I am brand new to Allen Bradley programming, my background is with GE Fanuc.
Basically what I am trying to accomplish is to OR a BYTE.
I have a 16pt discrete input card. The first 8 inputs and the last 8 inputs are identical. The difference is they are created from different power sources is the reason for duplicating the inputs.
So logically what I want to do is OR those 8 bits together such that if either input is high, the result will be high.
I could do this with parallel contacts and a coil, but that would be a very time consuming and error-prone solution given the number of inputs on this system.
My best attempt was to copy 8 bools to two SINT registers and OR the SINT registers, but copy doesn't like the mismatched type when I try something like ENGINE:2.I.Data.8 to grab the last byte.
Basically what I am trying to accomplish is to OR a BYTE.
I have a 16pt discrete input card. The first 8 inputs and the last 8 inputs are identical. The difference is they are created from different power sources is the reason for duplicating the inputs.
So logically what I want to do is OR those 8 bits together such that if either input is high, the result will be high.
I could do this with parallel contacts and a coil, but that would be a very time consuming and error-prone solution given the number of inputs on this system.
My best attempt was to copy 8 bools to two SINT registers and OR the SINT registers, but copy doesn't like the mismatched type when I try something like ENGINE:2.I.Data.8 to grab the last byte.