Xinje XD Series User Manual page 235

Hide thumbs Also See for XD Series:
Table of Contents

Advertisement

RTU mode:
Asking format
Address
Function code
Coil address
Coil number
CRC CHECK
Low
CRC CHECK
High
As the status of Y0 and Y1 is ON, the data contents are 03H (0000 0011).
(3) Function code 03H: read register
Eg. Read two register starting from 03E8H (D1000, D1001).
RTU mode:
Asking format
Address
Function code
Register address
Register number
CRC CHECK
Low
CRC CHECK
High
At this time, the data read from D1000 and D1001 are 122EH (4654) and 04E8H (1256).
(4) Function code 05H: write single coil
Eg. Set on the coil address 6000H (Y0).
RTU mode:
Asking format
Address
Function code
Coil address
Data contents
(low byte is before
high byte)
CRC CHECK
Low
CRC CHECK
High
Note: when writing single coil, ON is 00FFH, OFF is 0000H; the low byte is before high
byte for the data contents.
Response format
01H
Address
01H/02H
Function code
60H
Byte number
00H
00H
Data contents
02H
A3H
CRC CHECK Low
CBH
CRC CHECK High
Response format
01H
Address
03H
Function code
03H
Byte number
E8H
00H
Data contents
02H
44H
CRC CHECK Low
7BH
CRC CHECK High
Response format
01H
Address
05H
Function code
60H
Coil address
00H
FFH
Data contents
00H
92H
CRC CHECK Low
3AH
CRC CHECK High
234
01H
01H/02H
01H
03H
11H
89H
01H
03H
04H
12H
2EH
04H
E8H
9DH
CCH
01H
05H
60H
00H
FFH
00H
92H
3AH

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xl seriesXd3Xd5

Table of Contents