64
(a) Executing upon an interrupt or a call such as by a pointer
When creating subroutine and/or interrupt programs in a single standby 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.
After execution of the standby type program, the CPU module re-executes the program that called a program in
the standby type program.
Use common pointers ( Page 270, Section 5.9). If local pointers are used, subroutine programs in a standby type
program cannot be executed from any other program.
Use a common pointer.
Main routine program
Program A
Program B (standby type program)
P100 RET
I0 IRET
END processing
CALL P100 instruction execution
END processing
Interrupt factor occurred.
END processing
Main routine program
Subroutine program in
a standby type program
Interrupt program in
a standby type program