I am looking at some AB RSLogix5000 controllogix code.
A very simplified sample of code written within the same ladder:
--]A[------(L)-
--]B[------(U)-
When A is on latch output. When B is on while A is also on the output will unlatch. As it is now the output will be OFF even though A is ON.
This is how the programmer is expecting the logic to work.
I would not have a latch bit unlatching within the same scan. This sort of logic is all throughout the code. I have heard of programmers doing it like this but as a general rule I don't.
While it does work is this poor programming or is this type of programming generally acceptable ?
A very simplified sample of code written within the same ladder:
--]A[------(L)-
--]B[------(U)-
When A is on latch output. When B is on while A is also on the output will unlatch. As it is now the output will be OFF even though A is ON.
This is how the programmer is expecting the logic to work.
I would not have a latch bit unlatching within the same scan. This sort of logic is all throughout the code. I have heard of programmers doing it like this but as a general rule I don't.
While it does work is this poor programming or is this type of programming generally acceptable ?