7 Using a DVP-20PM Series Motion Controller as a Slave
X4
X5
X6
X7
K0
H402
TOP
K1 K1
K0
H202
TOP
K1 K1
K0
H802
TOP
K1 K1
K0
H22
TOP
K1 K1
X0
K0 H1
TOP
K1 K1
X1
X2
X3
X4
X5
X6
X7
END
When X4 = ON, write in CR#1 of Slave, corresponding to D1501
in Slave, to enable 2-speed positioning on X axis in Slave.
When X5 = ON, write in CR#1 of Slave, corresponding to D1501
in Slave, to enable single-speed positioning with additional
distance on X axis in Slave.
When X6 = ON, write in CR#1 of Slave, corresponding to D1501
in Slave, to enable 2-speed positioning with additional
distance on X axis in Slave.
When X7 = ON, write in CR#1 of Slave, corresponding to D1501
in Slave, to enable MPG input operation of X axis in Slave.
When X0 ~ X7 = OFF, write in CR#1 of Slave, corresponding to
D1501 in Slave, to STOP X axis in Slave.
Program in DVP-20PM slave:
Ladder diagram: Operation:
DMOV
D1504
DMOV
D1506
DMOV
DMOV
D1850
D1860
DMOV
D1508D1862
DMOV
Move the current speed of X axis D1850 ~ D1851
to D1504 ~ D1505, corresponding to CR#4 ~ CR#5.
Move MPG input frequency of X axis D1860 ~ D1861
to D1502 ~ D1503, corresponding to CR#6 ~ CR#7.
Move the number of MPG pulses of X axis D1862 ~ D1863
to D1508 ~ D1509, corresponding to CR#8 ~ CR#9.
M1000
DMOV
D1848
K0
DMOV
D1862
DMOV
D1838
DMOV
D1840
DMOV
D1842
DMOV
D1844
MOV
DMOV D1502
M1002
K0
K10000
K10000
K20000
K20000
D1846
DMOV
D1501
D1848
Enable O100 in Slave, and clear the
current position of X axis as "0"
Clear the number of accumulated
MPG pulses of X axis as "0".
Set up the target position (I) of X axis P(I)
Set up the operation speed (I) of X axis V(I)
Set up the target position (II) of X axis P(II)
Set up the operation speed (II) of X axis V(II)
Move D1501, corresponding to CR#1, to X
axis for setting up operation commands.
Move the current position of X axis D1848 ~ D1849
to D1502 ~ D1503, corresponding to CR#2 ~ CR#3.
Example 2
【Control purpose】
DVP-EH2 applies FROM/TO instructions to access special registers D1500~D1699 in Slave
DVP-20PM Application Manual
7-3