Event Execution Type Program - Mitsubishi Electric MELSEC iQ-R Series User Manual

Process cpu module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Event execution type program

This type of program starts execution when triggered by a specified event. ( Page 107 Trigger type) The program is
executed at the execution turn specified in the program settings of the CPU parameters, and if execution conditions of the
specified trigger are met when the execution turn of the event execution type program comes, the program is executed.
Power-on → RUN,
STOP → RUN
Execution
order
Scan execution type program A
Scan execution type program B
Scan execution type program C
(Executed when Y50 is turned on.)
Scan execution type program D
(Executed when the interrupt (I60)
occurred.)
Event execution type program E
(Executed when 10ms elapses.)
END processing
*1 Measurement of elapsed time is 10ms or more because it is determined depending on the scan time.
Trigger type
The following lists the triggers for the event execution type programs. ( Page 110 Trigger setting)
■Interrupt occurrence by the interrupt pointer (I)
When the specified interrupt factor occurs, the program is immediately executed once. However, before that, interrupt must be
enabled by executing the EI instruction. Enabling programs to be independently executed as interrupt programs, this method
eliminates the need to write the FEND instruction, interrupt pointers, and the IRET instruction within scan execution type
programs.
Power-on → RUN,
STOP → RUN
Execution
order
Scan execution type program A
Scan execution type program B
END processing
Scan execution type program C
(Executed when the interrupt (I60)
occurred.)
(1) When an interrupt occurs, the event execution type program C is executed immediately.
Interrupt pointers (I) which can be specified are I0 to I15, I28 to I31, I44, I45, I48, I49, I50 to I1023.
Execution conditions for the event execution type program which is triggered by interrupt occurred by the
interrupt pointer (I) are the same as those for general interrupt programs. ( Page 116 Operation upon
occurrence of an interrupt factor)
First scan
Second scan
The interrupt (I60) occurred.
*1
10ms
First scan
Third scan
Fourth scan
Y50: ON
M0
Y50
*1
10ms
Second scan
Third scan
The interrupt (I60) occurred.
(1)
8.5 Program Execution Type
Fifth scan
*1
10ms
8 RUNNING A PROGRAM
107
8

Advertisement

Table of Contents
loading

Table of Contents