Hi Everyone,
I'm writing a program to control 2 motors depending on a switch selector position A or B. In POS A, motor 1 should be running while in POS B, motor 2 should be running.
I've tried using the JSR method so if the selector is in POS A, goes to Subroutine 1, run motor A, etc.
However, when pressing the stop button, the motor continues to run. I figured this is because the JSR is not de-energize and therefore the motor continues to run.
Reason I use a JSR is because there are many more requirements other than running the motor.
So question is, is it possible to de-energize their states if JSR is no called?
Thanks,
I'm writing a program to control 2 motors depending on a switch selector position A or B. In POS A, motor 1 should be running while in POS B, motor 2 should be running.
I've tried using the JSR method so if the selector is in POS A, goes to Subroutine 1, run motor A, etc.
However, when pressing the stop button, the motor continues to run. I figured this is because the JSR is not de-energize and therefore the motor continues to run.
Reason I use a JSR is because there are many more requirements other than running the motor.
So question is, is it possible to de-energize their states if JSR is no called?
Thanks,