colorofwind
Lifetime Supporting Member
Hello, I have a simple JSR problem which confuses me. The software is RSLogix 5000.
In the main routine, I have a rung like this
A
------| |----------------|JSR|---------
When switch A is turned on, it jump to the subroutine.
In the subroutine, I turn on some coil B (not latch coil).
--------------------------(B)-----------
However, when switch A is turned off, coil B in the subroutine is still energized. Why can this happen?
Please share your thought, thanks a lot!
In the main routine, I have a rung like this
A
------| |----------------|JSR|---------
When switch A is turned on, it jump to the subroutine.
In the subroutine, I turn on some coil B (not latch coil).
--------------------------(B)-----------
However, when switch A is turned off, coil B in the subroutine is still energized. Why can this happen?
Please share your thought, thanks a lot!