beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 315

background image

7 Application Instructions API 50-99

D V P - P L C A P P L I C AT I O N M A N U A L

7-31

Program Example 1:

M1000

DPLSY

K1000

K1000

EI

FEND

Y0

I 001

IRET

SET

M1347

M1000

DPLSY

K1000

K1000

Y2

I 101

IRET

SET

M1348

END

Explanations:

a) Whenever X0 is triggered, Y0 will output 1,000 pulses; whenever X1 is triggered, Y2 will output 1,000 pulses.

b) When X triggers Y pulse output, there should be an interval of at least one scan time between the end of Y

pulse output and the next X-triggered output.

Program Example 2:

X1

M1347

PLSY

K1000

K1000

Y0

X2

END

Explanations:

When both X1 and X2 are On, Y0 pulse output will keep operating. However, there will be a short pause (approx.

1 scan time) every 1,000 pulses before the output of the next 1,000 pulses.