2. Programming Concepts
2.15 Nest Level Pointer [N], Pointer [P], Interrupt Pointer [I]
Pointer
N M
aster control nested N0~N7, 8 points
The control point of
master control nested
P For CJ, CALL instructions P0~P255, 256 points
The location point of CJ,
CALL
Pointer I
For interrupt
External interrupt
I100/I101(X1),
I200/I201(X2),
I300/I301(X3),
I400/I401(X4),
I500/I501(X5),
I600/I601(X6),
I700/I701(X7), 8 points
(01, rising-edge trigger
, 00, falling-edge
The location point of
interrupt subroutine.
Timer interrupt
points (Timer resolution=1
ms), I805/I899, 1 point
(Timer resolution=0.1 ms)
(available for SE/ES2-E,
for other series, firmware
version should be V2.00
High-speed counter
interrupt
I050, I060, I070, I080, 8
Communication
interrupt
I150(COM2: RS-485),
I160(COM3: RS-485), 3
Nest Level Pointer N: used with instruction MC and MCR. MC is master start instruction. When
the MC instruction is executed, the instructions between MC and MCR will be executed normally.
MC-MCR master control instruction is nested level structure and max. 8 levels can be applicable,
which is numbered from N0 to N7.
Pointer P: used with application instructions CJ, CALL, and SRET.
CJ condition jump:
When X0 = ON, program will jump from address 0 to N (designated label P1) and keep on the
execution. Instructions between 0 and N will be ignored.
When X0 = OFF, program will execute from 0 and keep on executing the followings. CJ instruction
won’t be executed at this time.
CALL subroutine, SRET subroutine END:
When X0 is ON, program will jump to P2 to execute the designated subroutine. When SRET
instruction is executed, it returns to address 24 to go on executing.