2 - 22
(3) Execution method
Execute stand-by type programs in either of the following methods.
• Create subroutine and/or interrupt programs in a stand-by type program and call them using a
pointer or when an interrupt occurs.
• Change a stand-by type program to any other execution type using instructions.
(a) Creating subroutine and/or interrupt programs in a single stand-by type program
When creating subroutine and/or interrupt programs in a single stand-by type program, start the
program from the step 0.
The FEND instruction used in creation of a subroutine or interrupt program is not required after a
main routine program.
Figure 2.25 Creating subroutine programs in a single stand-by type program
P508
RET
RET
Y10
RET
END
Y11
Y12
P500
P501
Program B (Stand-by type program)
Program A
Main routine
program
Use common pointer.