beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 457

background image

8 Application Instructions API 100-149

DVP-PLC Application Manual

8-55

API Mnemonic

Operands

Function

143

DELAY

Delay Instruction

Controllers

ES/EX/SS SA/SX/SC EH/SV

Bit Devices

Word Devices

Program Steps

Type

OP

X Y M S K H

KnX KnY KnM KnS T

C

D

E

F

S

*

*

*

DELAY, DELAYP: 3 steps

PULSE 16-bit 32-bit

ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV

Operands:

S

: delay time (unit: 0.1ms)

Explanations:

1. Range

of

S

: K1 ~ K1,000. See the specifications of each model for their range of use.

2. After DELAY instruction is executed, the program after DELAY in every scan period will execute delay outputs

according to the delay time designated by the user.

Program Example:

When X0 goes from Off to On and generates an external interruption, the interruption subroutine will execute DELAY

for 2ms before executing the next step, X1 = On and Y0 = On.

M1000

DELAY

K20

FEND

I001

X1

Y0

IRET

END

EI

REF

Y0

K8

Main Program

Output Y0

T=2ms

Input X1

Interrupt input X0

Remarks:

1. User can define the delay time based on their needs.

2. The delay time may increase due do the influences from communication, high-speed counters and high-speed

pulse output instructions.

3. The delay time of designated external output (transistor or relay) will increase due to the delay on the transistor