Program Execution Type; Initial Execution Type Program - Mitsubishi Electric MELSEC iQ-R-R00CPU User Manual

Melsec iq-r series cpu module application user's manual
Table of Contents

Advertisement

1.5

Program Execution Type

Set the execution condition of the program. ( Page 64 Execution type change)

Initial execution type program

Initial execution type program is executed only once when the CPU module has been powered off and on, or switched from
the STOP state to the RUN state. Use this execution type for a program, for example, initial processing for the intelligent
function module, which does not need execution after executed once in the initial scan.
When controlled by one program
Processing performed
only once
Processing performed
in each scan
Note that the execution time of the initial execution type program is the same as the initial scan time. ( Page 40 Initial
scan time) When multiple initial execution type programs are executed, the execution time of the initial execution type
program will be the total time until all the initial execution type programs finish execution.
Power-on → RUN,
STOP → RUN
END processing
Initial execution type program A
Initial execution type program B
Initial execution type program C
Scan execution type program
*1 The sum of the initial execution type program execution time and END processing time is the initial scan time.
Precautions
The following lists the precautions for the initial execution type programs.
■Restrictions on program creation
In the initial execution type program, do not use an instruction which requires several scans to complete (i.e., an instruction
with a completion device).
Ex.
e.g. SEND and RECV instructions
When controlled by separate programs
(an initial execution type program is used)
Program A
Initial execution type
program
Program B
Scan execution type
program
First scan
Second scan
0
END
0
END
0
END
0
*1
(1) Divides programs into the initial execution type programs and scan
execution type programs.
(1)
Third scan
0
0
END
END
1 RUNNING A PROGRAM
1.5 Program Execution Type
1
53

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents