7 Using a DVP-20PM Series Motion Controller as a Slave
7.1 Access between DVP-EH2, DVP-20PM (as a Master) and DVP-20PM
(as a Slave)
When DVP-20PM is used as Slave, there is a data exchange area in DVP-20PM which corresponds to
the control registers (CRs) in the Master. The data exchange area is consisted of consecutive special
registers, and users can utilize the data exchange area for accessing data between Master and Slave
as well as performing motion control functions through a Slave DVP-20PM.
7.1.1 Structure
DVP-EH2 and Master DVP-20PM apply FROM/
TO instructions to transmit commands to Slave
DVP-20PM for executing motion control subroutines.
DVP-EH2 and Master DVP-20PM apply FROM/TO instructions to access the control registers
(CR#0~CR#199, corresponding to special registers D1500~D1699 in the Slave) in Slave
DVP-20PM.
D1500
D1501~D1699
CR#0 ~ CR#199
DVP-EH2/DVP-20PM
Master
DVP-20PM
Slave
Master accesses the data in Slave
by FROM/TO instruction
Model
code
FROM/TO
data exchange area
Special
registers
Users move the
data to be exchanged
into data exchange area
.
7.1.2 Example of Master-slave Data Exchange
Set up: design the data exchange programs in Master and Slave respectively.
Slave DVP-20PM: 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-20PM 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】
Slave
Master
Planned internally Planned by user
Content
CR#0 D1500
Set up by the
system
Model code of Slave DVP-20PM
CR#1 D1501 D1846 Operation commands for X axis
CR#2~3 D1502~D1503 D1848~D1849 Current position of X axis CP (Pulse)
DVP-20PM Application Manual
7-1