17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>EX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

Pointer<br />

I<br />

For interrupt<br />

External interrupt<br />

Timer interrupt<br />

I000/I001(X0),<br />

I100/I101(X1),<br />

I200/I201(X2),<br />

I300/I301(X3),<br />

I400/I401(X4),<br />

I500/I501(X5),<br />

I600/I601(X6),<br />

I700/I701(X7), 8 points<br />

(01, rising-edge trigger<br />

, 00, falling-edge<br />

trigger )<br />

I602/I699, I702/I799, 2<br />

points (Timer<br />

resolution=1ms)<br />

The location point of<br />

interrupt subroutine.<br />

High-speed counter<br />

interrupt<br />

Communication<br />

interrupt<br />

I010, I020, I030, I040,<br />

I050, I060, I070, I080, 8<br />

points<br />

I140(COM1: RS232),<br />

I150(COM2: RS-485),<br />

I160(COM3: RS-485), 3<br />

points<br />

Nest Level Pointer N: used with instruction MC and MCR. MC is master start instruction. When<br />

the MC instruction is executed, the instructions between MC and MCR will be executed normally.<br />

MC-MCR master control instruction is nested level structure and max. 8 levels can be applicable,<br />

which is numbered from N0 to N7.<br />

Pointer P: used with application instructions CJ, CALL, and SRET.<br />

CJ condition jump:<br />

When X0 = ON, program will jump from address 0 to N (designated label P1) and keep on the<br />

execution. Instructions between 0 and N will be ignored.<br />

When X0 = OFF, program will execute from 0 and keep on executing the followings. CJ instruction<br />

won’t be executed at this time.<br />

0<br />

X0<br />

CJ<br />

P**<br />

P1<br />

X1<br />

Y1<br />

P1 N<br />

X2<br />

Y2<br />

CALL subroutine, SRET subroutine END:<br />

When X0 is ON, program will jump to P2 to execute the designated subroutine. When SRET<br />

instruction is executed, it returns to address 24 to go on executing.<br />

2-52

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!