Mitsubishi Electric MELSEC iQ-R-R00CPU User Manual page 63

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

Advertisement

■Passing time
After the status of the CPU module is changed into the RUN state, programs are executed in execution turn specified in
"Program Setting" of "CPU Parameter". If the specified time passes, the event execution type program is executed once when
the execution turn of the program comes. The time is measured again starting from the program execution and the above
operation is repeated. This method can be used when the processing is executed regularly after the specified time passes.
This method is not for the interrupt execution which another program execution is interrupted and processed to secure the
punctuality. The current values of the output (Y), timer (T), and long timer (LT) used in this program can be cleared at the
execution turn that comes after the specified time passes.
Power-on → RUN,
STOP → RUN
Execution
order
Scan execution type program A
Scan execution type program C
(Executed when 10ms elapses.)
Scan execution type program B
END processing
Measurement section
(1) After the specified time elapses, the event execution type program C is executed when the execution turn of the program comes.
(2) When "Clear Output and Current Value of Timer" is set, the current values of the output (Y), timer (T), and long timer (LT) used in this program are cleared
at the execution turn of the event execution type program that comes after the specified time elapses.
• Even though "Clear Output and Current Value of Timer" is set to "Clear" in the CPU parameters, the output
value and the current value of the timer are not cleared if the scan time is longer than the value set to
"Passing Time".
• To measure time when the trigger type is set to "Passing Time", use the long timer (LT) and the long
retentive timer (LST).
First scan
Second scan
(1)
10ms
10ms
The specified time
10ms elapses.
Third scan
Fourth scan
(2)
10ms
The specified time
10ms elapses.
1 RUNNING A PROGRAM
1.5 Program Execution Type
1
61

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents