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

Скачать
Страница из 630
CHAPTER2 SEQUENCE PROGRAMS
1
2
3
4
5
6
7
8
2.
 S
e
ttings 
W
h
en P
rogram
 is 
Divided
2.
3.
1  
In
itial exec
ut
ion 
ty
pe prog
ram
2
 
-
 
17
2.3.1  
Initial execution type program
(1) Definition
Initial execution type program is executed only once when the CPU module is powered on or its 
operating status is changed from STOP to RUN.
This type of program can be used as a program that need not be executed from the next scan and 
later once it is executed, like initial processing to an intelligent function module.
(2) Processing
(a) Execution order
After completion of all the initial execution type program execution, END processing is performed.
In the next scan and later, scan execution type programs are executed.
Figure 2.19 When processing performed only once is separated as an initial execution type program
Figure 2.20 Execution order of the initial execution type programs
When an initial execution type program is used
Program A
Program B
Control by one program
Processing performed 
only once
Processing performed 
in every scan
Initial execution type 
program
Scan execution type 
program
One program can 
be divided into two 
programs.
Powered off     on/
STOP     RUN
Initial execution 
type program A
Initial execution 
type program B
Initial execution 
type program n
END processing
1 scan
If there are multiple initial 
execution type programs, the 
CPU module executes them in 
ascending order of the setting.
Scan execution type 
program