Mitsubishi Electronics FX5 ユーザーズマニュアル

ページ / 306
1  PROGRAM EXECUTION
1.4  Execution Type of Program
25
1
Event execution type program
Execution of this program type is triggered by a user-specified event. (Page 25 Trigger type)
*1 Measurement of elapsed time is 10 ms or more because it is determined depending on the scan time.
Trigger type
Triggers for event execution type programs are explained below. (Page 27 Trigger setting)
Generation of interrupt by interrupt pointer (I)
The program is executed once, immediately, when a specified interrupt cause is generated. An interrupt pointer label can be  
appended by adding the FEND instruction to a different program, and the program description partitioned by the IRET 
instruction can be turned into an exclusive program.
 • Specifiable interrupt pointer (I)
Specifiable interrupt pointers are I0 to I15, I16 to I23, and I50 to I177.
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 31 Operation when an 
interrupt is generated)
(1) Event execution type program C is executed immediately when the specified event is generated.
Y50
M0
10 ms
*1
10 ms
*1
1st scan
I60 interrupt occurs
2nd scan
3rd scan
4th scan
5th scan
STOP/PAUSE→RUN
Scan execution type program A
END processing
Scan execution type program B
Execution order
Y50 turns ON
Event execution type program E 
(Executed when 10 ms elapses)
Event execution type program D 
(Executed when I60 interrupt occurs)
Event execution type program C 
(Executed when Y50 turns ON)
(1)
1st scan
I60 interrupt occurs
2nd scan
3rd scan
STOP/PAUSE→RUN
Scan execution type program A
END processing
Scan execution type program B
Execution order
Event execution type program C 
(Executed when I60 interrupt 
occurs)