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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

3.3 Pointers<br />

Mnemonic Operands Function Program steps<br />

P P0~P255 Pointer 1<br />

<strong>ES2</strong>/<strong>EX2</strong><br />

Controllers<br />

<strong>SS2</strong> <strong>SA2</strong><br />

SE <strong>SX2</strong><br />

Explanation:<br />

Pointer P is used with API 00 CJ and API 01 CALL instructions. The use of P does not need to start<br />

from P0, and the No. of P cannot be repeated; otherwise, unexpected errors may occur. For other<br />

information on P pointers, please refer to section 2.12 in this manual<br />

Program example 1:<br />

Ladder Diagram:<br />

Instruction: <strong>Operation</strong>:<br />

X0<br />

LD X0 Load NO contact X0<br />

CJ P10<br />

CJ P10 Jump to P10<br />

P10<br />

X1<br />

:<br />

Y1<br />

P10<br />

Pointer P10<br />

LD X1 Load NO contact X1<br />

OUT Y1 Drive coil Y1<br />

3.4 Interrupt Pointers<br />

Mnemonic Function Program steps<br />

I Interrupt program pointer 1<br />

Controllers<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE <strong>SX2</strong><br />

Explanations:<br />

A interruption program has to start with a interruption pointer (I□□□) and ends with API 03 IRET.<br />

I instruction has to be used with API 03 IRET, API 04 EI, and API 05 DI. For detailed information on<br />

interrupt pointes, please refer to section 2.12 in this manual<br />

Program example:<br />

Ladder diagram:<br />

Instruction<br />

<strong>Operation</strong>:<br />

code:<br />

Pointer of<br />

interruption<br />

program<br />

I 001<br />

X1<br />

X2<br />

EI<br />

Y1<br />

DI<br />

FEND<br />

Y2<br />

IRET<br />

Allowable range<br />

for interruption<br />

Interruption<br />

subroutine<br />

EI<br />

LD<br />

OUT<br />

:<br />

DI<br />

:<br />

FEND<br />

I001<br />

LD<br />

OUT<br />

Enable interruption<br />

X1 Load NO contact X1<br />

Y1 Drive Y1 coil<br />

Disable interruption<br />

Main program ends<br />

Interruption pointer<br />

X2 Load NO contact X2<br />

Y2 Drive Y2 coil<br />

3-12

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

Saved successfully!

Ooh no, something went wrong!