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>EX2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

API Mnemonic Operands Function<br />

143 DELAY P Delay<br />

Controllers<br />

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

SE<br />

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

Type<br />

Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F<br />

S * * *<br />

Operands:<br />

S: Delay time, unit: 0.1ms (K1~K1000)<br />

DELAY, DELAYP: 3<br />

steps<br />

PULSE 16-bit 32-bit<br />

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

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

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

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

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

Explanations:<br />

When DELAY instruction executes, in every scan cycle, the execution of the program after DELAY<br />

instruction will be delayed according to the delay time.<br />

Program Example:<br />

When interrupt input X0 is triggered from OFF to ON, interrupt subroutine executes DELAY<br />

instruction first, therefore the program after DELAY instruction (X1 = ON, Y0 = ON…) will be delayed<br />

for 2ms.<br />

EI<br />

FEND<br />

Main program<br />

Interrupt input X0<br />

Input X1<br />

Output Y0<br />

I001<br />

M1000<br />

DELAY<br />

K20<br />

T=2ms<br />

X1<br />

Y0<br />

REF Y0 K8<br />

IRET<br />

END<br />

Points to note:<br />

1. User can adjust the delay time according to the actual needs.<br />

2. The delay time of DELAY instruction could be increased due to the execution of<br />

communication, high-speed counter and high-speed pulse output instructions.<br />

3. The delay time of DELAY instruction could be increased due to the delay of transistor or relay<br />

when external output (transistor or relay) is specified.<br />

3-326

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

Saved successfully!

Ooh no, something went wrong!