![Mitsubishi Electric MELSEC iQ-R-R00CPU Скачать руководство пользователя страница 61](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-r-r00cpu/melsec-iq-r-r00cpu_user-manual_239139061.webp)
1 RUNNING A PROGRAM
1.5 Program Execution Type
59
1
Event execution type program
This type of program starts execution when triggered by a specified event. (
Page 59 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.
*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. (
■
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.
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 (
occurrence of an interrupt factor)
(1) When an interrupt occurs, the event execution type program C is executed immediately.
Y50
M0
10ms
*1
10ms
*1
10ms
*1
·
·
Y50: ON
First scan
The interrupt (I60) occurred.
Second scan
Third scan
Fourth scan
Fifth scan
Power-on
→
RUN,
STOP
→
RUN
Scan execution type program A
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
Scan execution type program B
Execution
order
(1)
·
Scan execution type program A
Scan execution type program B
END processing
Scan execution type program C
(Executed when the interrupt (I60)
occurred.)
Execution
order
Power-on
→
RUN,
STOP
→
RUN
First scan
Second scan
Third scan
The interrupt (I60) occurred.
Содержание MELSEC iQ-R-R00CPU
Страница 2: ......
Страница 151: ...9 MONITOR FUNCTION 9 1 Real Time Monitor Function 149 9 MEMO ...
Страница 323: ...18 SEQUENCE SCAN SYNCHRONIZATION SAMPLING FUNCTION 321 18 MEMO ...
Страница 330: ...328 20 ROUTING SETTING 20 3 Precautions MEMO ...
Страница 423: ...26 BASIC CONCEPT 26 8 State Transition of the Redundant System 421 26 MEMO ...
Страница 524: ...522 30 MAINTENANCE AND INSPECTION FOR A REDUNDANT SYSTEM 30 1 Module Replacement in the Redundant System MEMO ...
Страница 1009: ...APPX Appendix 14 List of Available SQL Commands for CPU Module Database Access Function 1007 A MEMO ...
Страница 1014: ...1012 APPX Appendix 15 Added and Enhanced Functions MEMO ...
Страница 1027: ......