166 
RTU mode: 
Inquiry information format 
  Function code06H: write the data in the register 
For example: write 300 rpm to the address of P3-18 register of inching speed. 
RTU mode: 
Inquiry information format 
4. Parity code 
RTU mode: double byte hexadecimal number. 
The CRC field is a two-byte, 16-bit binary value. It is calculated by the sender and added to the 
message; when it is added, it is first the low byte and then the high byte, so the high byte of CRC is the 
last byte of the sent message. The receiving device recalculates the CRC of the received message and 
compares it with the value in the received CRC field. If the two values are different, there is an error in 
the received message, discards the message frame, makes no response, and continues to receive the 
data of the next frame. Refer to the description of Modbus protocol for CRC verification calculation 
method. 
 
8.4 Communication example 
8.4.1 Communication with Xinje PLC 
Xinje PLC communicates with Xinje two drivers through 485, reads the speed of motor and writes 
the torque limit of motor. 
1. Hardware wiring: if the customer uses AB terminal of Xinje PLC for 485 communication, just 
connect the 14 and 15 pins of the driver to AB terminal of PLC. 
2. Parameter setting: the communication parameters of the driver and PLC are set in the same way, 
such as baud rate, parity, data bit, slave station, etc. the communication protocols of the Xinje PLC and 
servo are standard Modbus RTU, namely 19200bps, 1-8-1-even parity. 
The setting parameters are as follows: 
P7-00 Station No. 1, 2 
P7-01.0 ~ 1 baud rate 06 
P7-01.2 stop bit 2 
P7-01.3 check bit 2 
Note: if the communication parameter settings of the upper computer and the lower computer are 
inconsistent, the communication will fail. 
3.  Software  program:  the  register  in  which  the  station  number,  communication  address  and 
contents are marked when writing instructions. 
(1) Station number: the value set for servo driver P7-00. K1 indicates that P7-00 is set to 1; K2 
indicates that P7-00 is set to 2.