12 - 17
12. OVERVIEW OF PROCESSING PERFORMED BY THE QnACPU
(b) When grouping several subroutine programs into one
1) Create subroutine programs in order starting from step 0 in the standby type
program.
An END instruction is required at the end of the subroutine programs.
2) Since there are no restrictions on the order of creation of subroutine
programs, there is no need to arrange pointers in ascending order of pointer
numbers when creating multiple subroutine programs.
3) Use common pointers.
*
Subroutine programs using common pointers can be called from all the
programs that are being executed by the QnACPU.
REMARK
* For details on common pointers, refer to the QnACPU Programming Manual (Fundamentals).
POINT
(1) Timers are not to be used in standby type programs because they update
present values and turn ON/OFF the contacts when the OUT T instruction is
executed.
(2) When setting a subroutine program as a standby type program, use a common
pointer.
Standby type programs that use local pointers are not executable.
For details on common and local pointers, refer to the QnACPU Programming
Manual (Fundamentals).