3
- 10
3.1 Sequence Program
3.1.2 Subroutine programs
3
SEQUENCE PROGRAM CONFIGURATION AND
EXECUTION CONDITIONS
(3) Subroutine program management
Subroutine programs are created after a main routine program (after the FEND
instruction).
Subroutine programs can also be managed as a single program.
(a) Creating subroutine programs after main routine program
1) Location of creating subroutine programs
Create subroutine programs between the FEND and END instructions of the
main routine program.
Note4
Figure 3.8 Subroutine programs
Note4
Basic
Note3.4
P8
RET
RET
Y10
RET
END
Y11
FEND
Y12
P0
P1
Program A
Main routine
program
Subroutine
program
Write
File of
program A
Since the Basic model QCPU cannot execute
multiple programs, the file name is fixed to
"MAIN".
Basic
MAIN
P8
RET
FEND
RET
Y10
RET
END
Y11
Y12
P0
P1
Main routine
program
File name is fixed to "MAIN".