DVP - ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming

API

Mnemonic

Operands

Function

Controllers

143

DELAY

P

 

 

 

Delay

 

 

 

ES2/EX2

SS2 SA2 SX2

 

 

 

 

 

 

 

 

SE

 

Type

Bit Devices

 

Word devices

 

 

 

 

 

Program Steps

 

OP

X

Y

M

S

K

H KnX KnY KnM KnS T

C

D

E

F

DELAY, DELAYP: 3

 

S

 

 

 

 

*

*

 

 

*

 

 

steps

 

 

 

 

 

 

 

 

PULSE

 

 

 

16-bit

 

 

 

32-bit

 

 

 

 

 

 

 

SA2

 

 

 

 

SA2

 

SA2

 

 

 

 

 

 

 

ES2/EX2 SS2 SE

SX2 ES2/EX2 SS2

SE

 

SX2 ES2/EX2 SS2 SE

SX2

Operands:

S: Delay time, unit: 0.1ms (K1~K1000)

Explanations:

When DELAY instruction executes, in every scan cycle, the execution of the program after DELAY instruction will be delayed according to the delay time.

Program Example:

When interrupt input X0 is triggered from OFF to ON, interrupt subroutine executes DELAY instruction first, therefore the program after DELAY instruction (X1 = ON, Y0 = ON…) will be delayed for 2ms.

I001

EI

 

 

 

 

 

Interrupt input X0

 

 

 

 

 

 

 

Main program

Input X1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FEND

 

Output Y0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M1000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

T=2ms

 

 

 

 

 

DELAY

K20

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X1

Y0

REF Y0 K8

IRET

END

Points to note:

1.User can adjust the delay time according to the actual needs.

2.The delay time of DELAY instruction could be increased due to the execution of communication, high-speed counter and high-speed pulse output instructions.

3.The delay time of DELAY instruction could be increased due to the delay of transistor or relay when external output (transistor or relay) is specified.

3 - 326

Page 442
Image 442
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Mnemonic Operands Function Controllers, DELAY, Delayp