EasyManua.ls Logo

Xinje XDH Series - Page 258

Xinje XDH Series
456 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
257
Function code
01H/02H
Function code
01H/02H
Coil address
60H
Byte number
01H
00H
Coil number
00H
Data contents
03H
02H
CRC CHECK
Low
A3H
CRC CHECK Low
11H
CRC CHECK
High
CBH
CRC CHECK High
89H
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 from03E8H (D1000, D1001).
RTU mode:
Asking format
Response format
Address
01H
Address
01H
Function code
03H
Function code
03H
Register address
03H
Byte number
04H
E8H
Register number
00H
Data contents
12H
2EH
02H
04H
E8H
CRC CHECK
Low
44H
CRC CHECK Low
9DH
CRC CHECK
High
7BH
CRC CHECK High
CCH
At this time, the data read fromD1000 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
Response format
Address
01H
Address
01H
Function code
05H
Function code
05H
Coil address
60H
Coil address
60H
00H
00H
Data contents
(low byte is before
high byte)
FFH
Data contents
FFH
00H
00H
CRC CHECK
Low
92H
CRC CHECK Low
92H
CRC CHECK
High
3AH
CRC CHECK High
3AH
Note: when writing single coil, ON is 00FFH, OFF is 0000H; the low byte is before high
byte for the data contents.
(5)Function code0FH: write multiple coils
Eg. Write 16 coils start from address 6000H (Y0).
tudonghoatoancau.com

Table of Contents

Related product manuals