7 Use DVP-PM As Slave ‹ Example 2 z Control Purpose: DVP-EH2 applies FROM/TO instructions to access special registers D1500 ~ D1699 in Slave DVP-PM and executes motion instructions in OX subroutines (see Chapter 6 for how to use motion instructions). z Table for CRs in the Master and corresponding special registers in the Slave: Program in DVP-EH2 Master Ladder diagram: Operation: M1002 When DVP-EH2 Master is in RUN, read out CR#0 of Slave, corresponding to D1500 in Slave. X0 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.
X1 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. X2 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. X3 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.
X4 Write in CR#1 of Slave, corresponding to D1501 in Slave, to enable OX04 and execute DRVZ instruction in Slave. Write in CR#2 of Slave, corresponding to D1502 in Slave, to enable OX subroutine in Slave. DVP-PM Application Manual 7-5 Slave Master Content Planned internally Planned by user CR#0 D1500 - Model code of DVP-PM Slave CR#1 D1501 D1868 No. of OX subroutine CR#2 D1502 D1846 Operation commands for X axis (OX) FROM K0 K0 D0 K1 TOP K0 K1 H8000 K1 TOP K0 K2 H1000 K1 TOP K0 K1 H8001 K1 TOP K0 K2 H1000 K1 TOP K0 K1 H8002 K1 TOP K0 K2 H1000 K1 TOP K0 K1 H8003 K1 TOP K0 K2 H1000 K1 TOP K0 K1 H1000 K1 TOP K0 K2 H8004 K1