hannibalevivo
Member
Hi!
I'm structuring my ladder program in multiple files.
The program "talks" with an IMC 110 motion control module.
For example, I've defined a subroutine to perform the IMC 110 initialization (home operation). If "home operation" bit is true, then I call the subroutine with JSR.
I've thought to make a loop with the instructions JMP and LBL to control the operation in the subroutine until the home position is reached. But I've read It could be dangerous because watchdog timer could time out and fault the controller.
I haven't got much experience with ladder logic, can anyone tell if is possible to perform a control loop into a subroutine?
Thanks in advance.
I'm structuring my ladder program in multiple files.
The program "talks" with an IMC 110 motion control module.
For example, I've defined a subroutine to perform the IMC 110 initialization (home operation). If "home operation" bit is true, then I call the subroutine with JSR.
I've thought to make a loop with the instructions JMP and LBL to control the operation in the subroutine until the home position is reached. But I've read It could be dangerous because watchdog timer could time out and fault the controller.
I haven't got much experience with ladder logic, can anyone tell if is possible to perform a control loop into a subroutine?
Thanks in advance.