BachPhi
Member
I want to detect which input is missing ( if more than one input/tool missing then it is NOT valid)
lets' say I have 16 inputs, each detect a tool presence. In RSLogix500, i go thru a bitwise AND with a mask FFFF, then NOT, and bitwise AND again with the same mask, and then loop it thru using XPY instruction uintil it find the exponential position.
I would like to know if there is a simpler way in RSLogix5000 , TIA.
lets' say I have 16 inputs, each detect a tool presence. In RSLogix500, i go thru a bitwise AND with a mask FFFF, then NOT, and bitwise AND again with the same mask, and then loop it thru using XPY instruction uintil it find the exponential position.
I would like to know if there is a simpler way in RSLogix5000 , TIA.