Справочник Пользователя для Mitsubishi Electronics QnUCPU

Скачать
Страница из 630
CHAPTER1 OVERVIEW
1
2
3
4
5
6
7
8
1.
 S
tru
ct
u
red P
rogram
ming
  
1
 
-
 
3
1.3  Structured Programming
The programs to be executed in the CPU module can be structured in the following two ways.
 • In one program
 • By dividing into multiple files
(1) Structuring in one program
Structured programming is available by creating one program as a collection of three program sections: main 
routine program (
 Section 2.2.1), subroutine program (
 Section 2.2.2), and interrupt program 
(
Figure 1.4 Structuring in one program
P8
RET
RET
Y10
Y11
Y12
P1
END
FEND
CALL P1
IRET
I0
Main routine 
program
Subroutine 
program 1
Subroutine 
program 2
Interrupt program