Chapter 8 Logic Instructions 
8-203 
%MW registers in the motion 
controller 
  D registers in DVP12SE 
%MW18  D8 
%MW19  D9 
%MW110 
 
D100 
%MW111  D101 
%MW112  D102 
……  …… 
%MW118  D108 
%MW119  D109 
     
 Programming Example 2 
  Example of reading and writing bit registers in the slave 
  Example explanation 
1.  The motion controller is the MODBUS TCP master, DVP12SE is the MODBUS TCP slave 
and the IP address of DVP12SE is 192.168.1.10. 
2.  The motion controller writes the values in %MX0.0~%MX0.7 to Y0~Y7 in DVP12SE, then 
reads the values in Y20~Y27 in DVP12SE and stores the read values in %MX2.0~%MX2.7. 
 
  Variable table and program 
Variable name  Address  Data type  Initial value 
ETH_Link_Config1 
  ETH_Link_Config   
Config1_Ex 
  BOOL   
Config1_En 
  BOOL  TRUE 
Config1_SIP1 
  USINT  192 
Config1_SIP2 
  USINT  168 
Config1_SIP3 
  USINT  1 
Config1_SIP4 
  USINT  10 
Config1_SNodeID 
  USINT  0 
Config1_OT 
  USINT  1 
Config1_En_FunCode17 
  BOOL  FALSE 
Config1_WBf_Add 
%MW0  UINT   
Config1_WBf_Off 
  USINT  0 
Config1_WDes_Add 
  UINT  16#0500 
Config1_WLTH 
  UINT  8 
Config1_RBF_ADD 
%MW1  UINT   
Config1_RBF_OFF 
  USINT  0 
Config1_RDES_ADD 
  UINT  16#0510 
Config1_RLTH 
  UINT  8 
Config1_R_Code 
  USINT  1 
Config1_T 
  UINT  1000