1 - 27
1.2 Program Storage and Operation
1
OVERVIEW
(2) Structured programs
CPU module programs can be structured.
A program can be created according to processes and functions by structuring it.
As program structuring, structuring in the same program ( (2)(a) in this section)
and file-divided structuring ( (2)(b) in this section) are available.
(a) Structuring in the same program
Structuring in the same program is achieved by creating subroutine programs
( Section 3.1.2) or interrupt programs ( Section 3.1.3).
Figure 1.15 Example of structuring in the same program
P8
RET
RET
Y10
RET
Y11
Y12
P0
P1
END
FEND
CALL P1
Main routine
program
Subroutine
program 1
Subroutine
program 2
Subroutine
program 3