Mitsubishi — 7.1.2 Example of Master-Slave Data Exchange

7 Use DVP-PM As Slave When X0 ~ X4 = OFF, write in CR#1 of Slave, corresponding to D1501 in Slave, to disable OX subroutine in Slave. Program in DVP-PM Slave Instruction mode: Operation: O100 LD M1002 DMOV K0 D1848 DMOV K0 D1928 LD M1000 MOV D1501 D1868 MOV D1502 D1846 M102 Place the instructions for initializing current position of X/Y axis in O100 main program. Enable O100 in Slave then call the motion subroutine. OX00 DRV X200000 FX100000 Y200000 FY100000 M2 Place motion instruction DRV in OX00 subroutine. OX01 LIN X100000 Y100000 F200000 M2 Place motion instruction LIN in OX01 subroutine. OX02 CW X0 Y100000 I0 J50000 F200000 M2 Place motion instruction CW in OX02 subroutine.

OX03 CCW X0 Y100000 I0 J50000 F200000 M2 Place motion instruction CCW in OX03 subroutine. OX04 BRET DMOV K200000 D1828 DMOV K100000 D1830 DMOV K200000 D1908 DMOV K100000 D1910 DRVZ M2 Place motion instruction DRVZ in OX04 subroutine, and set up relevant parameters for DRVZ. DVP-PM Application Manual 7-6 X0 TOP K0 K1 H0 K1 X1 X2 X3 X4 END END TOP K0 K1 H0 K1