7 Using a DVP-20PM Series Motion Controller as a Slave
DVP-20PM and executes motion instructions in OX subroutines (see Chapter 6 for how to use
motion instructions).
【Table for CRs in the Master and corresponding special registers in the Slave】
Slave
Master
Planned internally Planned by user
Content
CR#0 D1500 - Model code of DVP-20PM Slave
CR#1 D1501 D1868 No. of OX subroutine
CR#2 D1502 D1846 Operation commands for X axis (OX)
【Program in DVP-EH2 master】
Ladder diagram: Operation:
K0 D0
M1002
FROM
K0
K1
K0 H8000
X0
TOP K1 K1
K0 H8001TOP K1 K1
K0 H1000TOP
K2 K1
K0 H1000
TOP K2 K1
When DVP-EH2 Master is in RUN, read out CR#0
of Slave, corresponding to D1500 in Slave.
Write in CR#1 of Slave, corresponding to D1501 in Slave,
to enable OX00 and execute DRV instruction in Slave.
Write in CR#2 of Slave, corresponding to D1502 in Slave,
to enable OX subroutine in Slave.
Write in CR#1 of Slave, corresponding to D1501 in Slave,
to enable OX01 and execute LIN instruction in Slave.
Write in CR#2 of Slave, corresponding to D1502 in Slave,
to enable OX subroutine in Slave.
Write in CR#1 of Slave, corresponding to D1501 in Slave,
to enable OX02 and execute CW instruction in Slave.
Write in CR#2 of Slave, corresponding to D1502 in Slave,
to enable OX subroutine in Slave.
Write in CR#1 of Slave, corresponding to D1501 in Slave,
to enable OX03 and execute CCW instruction in Slave.
Write in CR#2 of Slave, corresponding to D1502 in Slave,
to enable OX subroutine in Slave.
X1
K0 H8002
X2
TOP K1 K1
K0 H8003TOP
K1 K1
K0 H1000
TOP K2 K1
K0 H1000
TOP K2 K1
X3
Write in CR#1 of Slave, corresponding to D1501 in Slave,
to enable OX04 and execute DRVZ instruction in Slave.
K0 H8004
TOP K1 K1
K0 H1000
TOP K2 K1
X4
X0
X1
X2
X3
X4
END
K0 H0
TOP K1 K1
Write in CR#2 of Slave, corresponding to D1502 in Slave,
to enable OX subroutine in Slave.
When X0 ~ X4 = OFF, write in CR#1 of Slave, corresponding
to D1501 in Slave, to disable OX subroutine in Slave.
DVP-20PM Application Manual
7-4