Mitsubishi — 7.1.2 Example of Master-Slave Data Exchange

7 Use DVP-PM As Slave Program in DVP-PM Slave Ladder diagram: Operation: M1002 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) M1000 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. 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. DVP-PM Application Manual 7-4 DMOV K0 D1848 DMOV K0 D1862 DMOV K10000 D1838 DMOV K10000 D1840 DMOV K20000 D1842 DMOV K20000 D1844 MOV D1501 D1846 DMOV D1848 D1502 DMOV D1850 D1504 DMOV D1860 D1506 DMOV D1862 D1508