3. Instruction Set
3.4 Interrupt Pointers
Mnemonic
Function Program steps
SS2
SX2
I Interrupt program pointer 1
Explanations:
An interruption program has to start with a interruption pointer (Iâ–¡â–¡â–¡) and ends with API 03 IRET. I
instruction has to be used with API 03 IRET, API 04 EI, and API 05 DI. For detailed information on
interrupt pointes, please refer to section 2.15 in this manual.
Program example:
Ladder diagram: Instruction
code:
Operation:
Y1
EI
X1
I 001
DI
FEND
Y2
X2
IRET
Allowable range
for interruption
Interruption
subroutine
Pointer of
interruption
program
EI Enable interruption
LD X1 Load NO contact X1
OUT Y1 Drive Y1 coil
:
DI Disable interruption
:
FEND Main program ends
I001 Interruption pointer
LD X2 Load NO contact X2
OUT Y2 Drive Y2 coil
:
IRET Interruption return
External interrupt:
ES2 supports 8 external input interrupts: (I000/I001, X0), (I100/I101, X1), (I200/I201, X2),
(I300/I301, X3), (I400/I401, X4), (I500/I501, X5), (I600/I601, X6) and (I700/I701, X7). (01,
rising-edge trigger
, 00, falling-edge trigger )
Timer Interrupts:
ES2 supports 3 timer interrupts: I602~I699, I702~I799, (Timer resolution: 1ms), I805/I899, 1 point
(Timer resolution=0.1 ms), available for SE/ES2-E/EC5 version 1.00, for other series, firmware
version should be V2.00 or later.
Communication Interrupts:
ES2 supports 3 communication interrupts: I140, I150 and I160.
Counter Interrupts:
ES2 supports 8 high-speed counter interrupts: I010, I020, I030, I040, I050, I060, I070 and I080.