EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R-R00CPU - Page 63

Mitsubishi Electric MELSEC iQ-R-R00CPU
1028 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1 RUNNING A PROGRAM
1.5 Program Execution Type
61
1
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.
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).
(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.
10ms 10ms
(1)
(2)
10ms
·
First scan Second scan Third scan Fourth scan
Power-on RUN,
STOP RUN
Scan execution type program A
Scan execution type program C
(Executed when 10ms elapses.)
END processing
Scan execution type program B
Execution
order
Measurement section
The specified time
10ms elapses.
The specified time
10ms elapses.

Table of Contents

Related product manuals