
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
Summary of Contents for L02CPU
Page 1: ......
Page 2: ......
Page 13: ...11 Memo ...
Page 78: ...76 Memo ...
Page 226: ...224 Memo ...
Page 318: ...316 To the next page ...
Page 320: ...318 To the next page ...
Page 322: ...320 To the next page ...
Page 324: ...322 To the next page ...
Page 326: ...324 To the next page ...
Page 335: ...333 Memo ...
Page 339: ......