SMC Networks HRR012-A*-20 Series Operation Manual page 47

Hide thumbs Also See for HRR012-A*-20 Series:
Table of Contents

Advertisement

Communication example
Slave Address: No 1
○ Read seven consecutive data from register 0100h which is out of range.
Request message
Field name
Header
Slave Address
Function
Head address of register out of range
Quantity of register to read
Checksum ASCII:LRC RTU:CRC
Trailer
Response message 018402
Field name
Header
Slave Address
Function ( 03h+80h)
Error Code
(Specified register address
is out of range.)
Checksum ASCII:LRC RTU:CRC
Trailer
HRR Series
2) Error Code
Assign error code below.
01 : Function code of a command is outside the standard
02 : The specified address of register is outside the range.
03 : Data field of a command is not normal.
010401000007
-
quantity of byte
quantity of byte
Example
ASCII mode
character data
(HEX)
-
0x01
"0","1"
0x04
"0","4"
0x0100
"0","1","0","0"
0x0007
"0","0","0","7"
-
"F","3"
-
CR/LF
Total
Example
ASCII mode
character data
(HEX)
-
0x01
"0","1"
0x84
"8","4"
0x02
"0","2"
-
"7","9"
-
CR/LF
Total
HRX-OM-W004
Chapter 3 Serial communication
RTU mode
binary data
":"
None
0x01
0x04
0x01,0x00
0x00,0x07
0xB0,0x34
None
16
8
RTU mode
binary data
":"
None
0x01
0x84
0x02
0xC2,0xC1
None
11
5
3.12 Negative response
3-17

Advertisement

Table of Contents
loading

Table of Contents