
Chapter 5. Application instructions
5-125
5.18.3 INT, IRET
INT / IRET
(Process driven
interrupt)
FUN(227) INT
FUN(225) IRET
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)
INT
O
1
1) Functions
-
INT : Indicates the begin of the process driven interrupt routine.
-
IRET : Indicates the end of the interrupt routine.
-
Instructions between the INT ‘n’ and the next IRET are executed only when the corresponding time
driven interrupt occurs and is enabled by the EI instruction.
-
To use process driven interrupts, the interrupt module is required and general input module can not
ube used for interrupt input. However, K200S can use general input module for interrupt input by
parameter setting. (Refer 2.4 ‘Parameter setting’ for details)
-
The INT n instruction has to be placed after the END instruction.
-
The INT and IRET instructions are executed unconditionally.
2) Program example
Operand setting
0 ~ 5
(K200S)
0 ~ 7
(K300S)
0 ~ 15
(K1000S)
n
n
INT n
( P0000 )
INT n
M0000
•
•
•
•
( P0001 )
IRET
M0001