Справочник Пользователя для Mitsubishi Electronics FX5

Скачать
Страница из 306
30
1  PROGRAM EXECUTION
1.5  Program Type
Interrupt program
This is the program from interrupt pointer (I) up to the IRET instruction.
When an interrupt is generated, the interrupt program corresponding to that interrupt pointer number is executed. Note, 
however, that interrupt enabled status must be set with the EI instruction before executing the interrupt program.
 • Only one interrupt program can be created with one interrupt pointer number.
 • Interrupt pointers need not be programmed starting with the smallest number.
 • Interrupt programs can also be managed as separate programs by turning them into standby type 
I0
I29
Main routine program
I0 interrupt program
I29 interrupt program
Indicates the end of the main routine program.
Interrupt pointer
IRET
IRET
END
FEND
El
Y13
Y12
Y11
Y10
Main routine program
I0 interrupt program
I29 interrupt program
Execution
Execution
Execution
Execution
Execution
IRET
IRET
Interrupt 
occurs for I0
Interrupt 
occurs for I29
Time