beautypg.com

2 functions of devices in dvp-plc – Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 121

background image

2 Functions of Devices in DVP-PLC

DVP-PLC Application Manual

2-93

Program explanation: When the direction control pin is On, the direction will be a positive one; otherwier, it

will be a negative one (see figure 9). When X0 = On, D0 will accumulate once and the 2 axes will draw a

90° arc.

Output frequency and number of pulses: see table 2.

(0,0)

X

Y

(50,000, 50,000)

(50,000, -50,000)

(10,000, 0)

D0=K1

D0=K2

D0=K3

D0=K4

(Figure 8)

M1002

MOV

K0

MOV

MOV

D1134

SET

Y0

Y1

K10

SET

K10

MOV

MOV

SET

Y0

Y1

MOV

MOV

= D0 K2

= D0 K1

D1136

D0

D0

INC

K200

K300

D1133

D1135

RST

K300

K200

D1133

D1135

X0