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

2 Functions of Devices in DVP-PLC
DVP-PLC Application Manual
2-94
M1133
M1135
Y0
Y1
MOV
MOV
Y0
Y1
SET
MOV
MOV
= D0 K4
= D0 K3
D1133
D1135
RST
RST
K200
K300
K300
K200
RST
D1133
D1135
X0
(Figure 9)
e)
Calculate the frequency and number of output pulses in each section
Destination: Draw 10 sections of arcs clockwise until they reach (50,000, 50,000) (see figure 10)
Rx = target value in X; Ry = target value in Y; N = number of sections; π = 3.1416
(0,0)
X
Y
(0,Ry)
(Rx,0)
(x10,y10)
(x1,y1)
(x2,y2)
(x3,y3)
(x4,y4)
(x5,y5)
(x6,y6)
(x7,y7)
(x8,y8)
(x9,y9)
(Figure 10)
Step 1:
Calculate the position for each section
x
1
= Rx – Rx × sin [(N-1) × π ч (2 Ч N)]
x
2
= Rx – Rx × sin [(N-2) × π ч (2 Ч N)] …. See table 3
y
1
= Ry × sin [1 × π ч (2 Ч N)]
y
2
= Ry × sin [2 × π ч (2 Ч N)]…. See table 4
Position
x
1
x
2
x
3
x
4
x
5
With decimal
point
615.55 2,447.12 5,449.61 9,549.08 14,464.59
Without
decimal point
615 2,447 5,449 9,549 14,464