passwordg
Member
I have this test program with 3 routines:-
Rt_1, Rt_2, Rt_3 with Rt_1 - the main routine.
Rt_1 calls 2 & 3 using JSR as:
Rung 0
------------JSR Rt_2-----
Rung 1
------------JSR Rt_3-----
Rung 2
End
Will the program end execution after RT_3 ?
Rt_2 collects product data and Rt_3 then processes the data.
This needs to repeat over and over as multiple products are scanned one by one.
I want it the program to keep running and go back to Rung 0 after Rung 1 and start over.
How can I do this ?
If I put a JSR to RT_2 inside Rt_3, I feel it might cause the watchdog to run out due to an endless loop.
Someone at work suggested that the program automatically loops back anyways.
What is the better way to go about this please ?
Rt_1, Rt_2, Rt_3 with Rt_1 - the main routine.
Rt_1 calls 2 & 3 using JSR as:
Rung 0
------------JSR Rt_2-----
Rung 1
------------JSR Rt_3-----
Rung 2
End
Will the program end execution after RT_3 ?
Rt_2 collects product data and Rt_3 then processes the data.
This needs to repeat over and over as multiple products are scanned one by one.
I want it the program to keep running and go back to Rung 0 after Rung 1 and start over.
How can I do this ?
If I put a JSR to RT_2 inside Rt_3, I feel it might cause the watchdog to run out due to an endless loop.
Someone at work suggested that the program automatically loops back anyways.
What is the better way to go about this please ?
Last edited: