
Chapter 5. Application instructions
5-124
5.18.2 TDINT, IRET
TDINT / IRET
(Time driven interrupt)
FUN(226) TDINT
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)
TDINT
O
1
1) Functions
-
TDINT : Indicates the begin of the time driven interrupt routine.
-
IRET : Indicates the end of the interrupt routine.
-
Instructions between the TDINT ‘n’ and the next IRET are executed only when the corresponding
time driven interrupt occurs and is enabled by the EI instruction.
-
The interval of interrupt can be set as 60msec ~ 60000msec (unit : 10msec) with parameter setting.
-
The execution time of interrupt routine should be less than the interval of interrupt.
-
The TDINT n instruction has to be placed after the END instruction.
-
The TDINT and IRET instructions are executed unconditionally.
2) Program example
Operand setting
0 ~ 5
(K200S)
0 ~ 7
(K300S)
0 ~ 15
(K1000S)
n
n
TDINT n
( P0000 )
TDINT n
M0000
•
•
•
•
( P0001 )
IRET
M0001