This may be a foolish question, but is their a simple way to count the number of active bits in PLC-5? I can think of some complex ways to do this but was hoping there is a simpler way.
For example, I have a number of digital inputs on different cards, lets call them
I:1/0, I:1/1, I:1/2, I:1/3, I:2/4, I:2/5, I:3/1, I:3/2
Now lets say I want to know how many of these inputs are true (1), is there a simple way?
I've tried using the ADD function but RSLogix gives me an error saying "The Address must be specified to the word level."
I've used some DCS programs where this could easily be done by simply saying IN1 + IN2 + IN3 + .... and the result would be the number of active digital inputs since each active input would add 1 to the equation. Does PLC5 has something equally as simple?
For example, I have a number of digital inputs on different cards, lets call them
I:1/0, I:1/1, I:1/2, I:1/3, I:2/4, I:2/5, I:3/1, I:3/2
Now lets say I want to know how many of these inputs are true (1), is there a simple way?
I've tried using the ADD function but RSLogix gives me an error saying "The Address must be specified to the word level."
I've used some DCS programs where this could easily be done by simply saying IN1 + IN2 + IN3 + .... and the result would be the number of active digital inputs since each active input would add 1 to the equation. Does PLC5 has something equally as simple?