12.
12 - 16
OVERVIEW OF PROCESSING PERFORMED BY THE QnACPU
12.1.4 Standby type program
(1) Definition
(a) The standby type program is a program that is executed only in response to an
execution request.
(b) The standby type program has the following applications:
1) Program library
Subroutine programs and interrupt programs are set as standby type
programs and controlled separately from the main program.
2) Set-up of programs
The main routine program is registered to the standby type program and
programs required for control are changed to the scan execution type
programs. Programs not used for control are changed to the standby type
programs.
(2) Program library
(a) Library creation of program
1) Program library is used to control subroutine programs and interrupt
programs separately from the main routine program.
It is possible to create multiple subroutine programs and interrupt programs
as one standby type program.
2) When a standby type program execution is completed, control returns to the
program that was being executed before execution of the standby type
program.
The following shows the operation performed when a subroutine program
and an interrupt program in a standby type program are executed.