
Chapter 5. Application instructions
5-123
5.18 Inturrupt instructions
5.18.1 EI, DI
EI / DI
(Enable / Disable interrupt)
FUN(238) EI
FUN(239) DI
Applicable
CPU
K200S
K300S
K1000S
Available Device
Flag
Instructions
M
P
K
L
F
T
C
S
D
#D Integer
Steps
Error
(F110)
Zero
(F111)
Carry
(F112)
EI
DI
O
1
1) Functions
-
EI : Enables the inturrupt (TDI or PDI) specified as ‘n’ when input condition turns on. If ‘n’ is not
specified, all interrupts are enabled.
-
DI : Disables the inturrupt (TDI or PDI) specified as ‘n’ when input condition turns on. If ‘n’ is not
specified, all interrupts are disabled.
-
The ‘n’ is assigned to each interrupt by parameter setting.
-
Execution conditions
2) Program example
-
Program that enable the interrupt 5
-
Program that disable all interrupts
Operand setting
0 ~ 7
(K200S)
0 ~ 13
(K300S)
0 ~ 29
(K1000S)
n
n
EI n
DI n
EI 5
DI
Input condition
EI / DI
Executed per scan
Executed per scan