
APPENDIX 4 MODULAR PROGRAMMING
(PMC-RA3/RB3/RC3 ONLY)
(2) Combining source programs
l The function combines all or part of a source program to another source program that is
being edited.
l The function combines a module (program) to another program.
Source program
Module
For the details of (1) and (2), see (8) “Copying
5.1.2, “Ladder Diagram Editing.”
Source program
*..*
. . . . . .
_....
. . . . . .
*
Edit .
<.....
. ...’
. ...*.
. .
.
Sections of a Sequence
Source program
Program” in Section
2. COMPILE FUNCTION
(1) Combining modules
l The function compiles a batch of separately edited programs and unites the programs.
0 The files to be combined can be specified in a control statement (text file having the
extension #LS).
0 The control statement is coded by the [LIST] command on the compile or print screen.
0 The function can handle modules (files) made up of any units (nets or sub-programs).
Control statement
(MAINFILE.#LS)
MAINFILE.#LA 1 Main program 1
I
I
1 I
SUBFILEl.#LA 1 Sub-program 1 1
,
SUBFILE2.#LA I Sub-program 2 I
I
I
File selection
MAINFILE
SUBFILEI
SUBFILE
.
SUBFlLEn
.
.
SUBFILEn.#LA
ROM data
Main program
I
Sub-program 1 1
Sub-program 2 1
.
.
Sub-program n 1
For details, see Section 5.3, “Compilation.”
A4-2