DVP-15MC Series Motion Controller Operation Manual
8-244
8.14.3.4 RS485 Data Exchange Example
Programming Example
The node address of the slave DVP32ES2 is 1. The values in 10 word registers %MW100~%MW109 of
the master are written to D0~D9 in the slave. Then the values in 20 word registers D100~D119of the
slave are read and stored in %MW0~%MW19 in the master as shown in the following variable table 1.
Variable table 1
Variable name Address Data type Initial value
Mng
RS485_Link_Manage
Mng_En
BOOL TRUE
Mng_Open
BOOL FALSE
Mng_Valid BOOL
Mng_LOpen BOOL
Confg
RS485_Link_Config
Confg _Ex
BOOL FALSE
Confg _LN
UINT 1
Confg _EL
BOOL TRUE
Confg _Ncyc
BOOL FALSE
Confg _SNI
USINT 1
Confg _OT
USINT 0
Confg _EFC17
BOOL FALSE
Confg _WBA
%MW100 UINT
Confg _WBAO
USINT 0
Confg _WDA
UINT 16#1000
Confg _WL
UINT 10
Confg _RBA
%MW0 UINT
Confg_RBAO
USINT 0
Confg _RDA
UINT 16#44C
Confg _RL
UINT 20
Confg _RFC
USINT
Confg _TOut
UINT 1000
Confg _Done BOOL
Confg _Err BOOL
Confg _ErrID
WORD
LStatus
RS485_Link_Status
LStatus_En
BOOL TRUE
LStatus_LN
UINT 1
LStatus_Valid BOOL
LStatus_RLE BOOL
LStatus_RLEID BOOL
LStatus_Err BOOL