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

3.Operation:

When PLC runs and M0 = ON, PLC will start the drawing of the first segment of the arc. D0 will plus 1 whenever a segment of arc is completed and the second segment of the arc will start to execute automatically. The operation pattern repeats until the fourth segment of arc is completed.

Program Example 2:

1.Draw a tilted ellipse as the figure below.

Y

(26000,26000)

(34000,18000)

(0,0)

X

(8000,- 8000)

2.Steps:

a)Find the max. and min. coordinates on X and Y axes (0,0), (26000,26000), (34000,18000), (8000,-8000) (as the figure above). Calculate the relative coordinates of the four points and obtain (26000,26000), (8000,-8000), (-26000,-26000), (-8000,8000). Place them respectively in the 32-bit registers (D200,D202), (D204,D206), (D208,D210) and (D212,D214).

b)Select “draw clockwise arc” and default “motion time” (S = D100 = K0).

c)RUN the PLC. Set ON M0 to start the drawing of a tilted ellipse.

 

 

 

=

D0

K1

 

 

DCIMR

D200

D202

D100

Y0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

=

D0

K2

 

DCIMR

D204

D206

D100

Y0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

=

D0

K3

 

 

DCIMR

D208

D210

D100

Y0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

=

D0

K4

 

 

 

 

D214

D100

Y0

 

 

 

DCIMR

D212

 

 

 

 

 

 

 

 

 

 

M0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RST

M1029

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MOV

K0

D100

M0 M1029

MOV

INCP

K1

D0

D0

END

3 - 432

Page 548
Image 548
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Draw a tilted ellipse as the figure below