Example Of Master-Slave Data Exchange - Delta DVP-PM Series Applications Manual

Table of Contents

Advertisement

7
Use DVP-PM As Slave

7.1.2 Example of Master-Slave Data Exchange

Set up: design the data exchange programs in Master and Slave respectively.
Slave DVP-PM: Move the data to be accessed by Master into the data exchange area through
MOV instruction
Master: Plan the CRs (on Slave) for Master to access.
Example 1
Control Purpose:
DVP-EH2 applies FROM/TO instructions to access special registers D1500 ~ D1699 in Slave
DVP-PM and executes manual mode position control on X/Y axis. (For relative registers see
3.12.3)
Table for CRs in the Master and corresponding special registers in the Slave:
Master
CR#0
CR#1
CR#2 ~ 3
CR#4 ~ 5
CR#6 ~ 7
CR#8 ~ 9
1.
If you need to use other functions of Slave DVP-PM, please refer to Chapter 3 and fill the relative
special registers into the "Planned by user" column. After this you can add the relative registers to
the example program, so that the desired motion control functions can be performed.
2.
D1500 ~ D1699 are the special registers planned internally in the Slave, among which D1500 is
the read-only register for storing the model code of DVP-PM (H'6260). Therefore, D1501 ~ D1699
are the applicable registers.
Program in Master DVP-EH2
Ladder diagram:
M1002
FROM
TO
M1000
DFROM
DFROM
DFROM
DFROM
7-2
Slave
Planned internally
Planned by user
D1500
Set up by the system
D1501
D1502 ~ D1503
D1848 ~ D1849
D1504 ~ D1505
D1850 ~ D1851
D1506 ~ D1507
D1860 ~ D1861
D1508 ~ D1509
D1862 ~ D1863
K0
K0
D0
K0
K1
H1
K0
K2
D2
K0
K4
D4
K0
K6
D6
K0
K8
D8
Model code of Slave DVP-PM
D1846
Operation commands for X axis
Current position of X axis CP (Pulse)
Current speed of X axis (PPS)
MPG input frequency on X axis
Accumulated number of MPG input pulses at X axis
Operation:
When Master DVP-EH2 is in RUN, read out CR#0
K1
of Slave, corresponding to D1500 in Slave.
Write in CR#1 of Slave, corresponding to D1501 in
K1
Slave, to STOP X axis in Slave.
Read out CR#2 of Slave, corresponding to D1502
K1
~ D1503 in Slave.
Read out CR#4 of Slave, corresponding to D1504
K1
~ D1505 in Slave.
Read out CR#6 of Slave, corresponding to D1506
K1
~ D1507.
Read out CR#8 of Slave, corresponding to D1508
K1
~ D1509.
Content
DVP-PM Application Manual

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dvp-20pmDvp-10pm

Table of Contents