1
-
4
CHAPTER1 OVERVIEW
1
1.3 Str
uctu
red Prog
ramming
(2) Structuring by dividing into multiple files
A program is stored in a file.
Changing the file name allows the CPU module to store multiple programs.
Dividing into multiple files according to the processes or functions enables simultaneous programming by two or
more designers. Managing the files separately eases reuse and utilization to other programs.
Structured programming is efficient in this way because only the corresponding file needs to be modified or
debugged in case of change in the specifications.
(a) Dividing into multiple files according to the processes
*1
*1:
The processing contents divided according to the processes can further be divided and managed according to the func-
tions.
*2:
The execution order can be set in the Program tab of the PLC parameter dialog box. (
Figure 1.5 Structuring by dividing into multiple files
Figure 1.6 Dividing into multiple files according to the processes
GX Developer
CPU module
Multiple programs can be stored
by changing the file name.
File name: PARAM
Parameter
Program
Program
Device
comment
File name: ABC File name: ABC File name: DEF
Carrying in
Carrying out
Manufacturing
Assembly
Program memory/standard ROM/memory card
Processing contents
are divided according
to the processes.
Program A
Program B
Program C
Program D
Program A to D
will be executed
in the specified
order.
*2
Содержание 00JCPU
Страница 1: ......
Страница 2: ......
Страница 96: ...2 51 2 4 5 Character string data 1 Definition The CPU module uses shift JIS code character strings...
Страница 541: ......
Страница 542: ......