HRX-OM-M091
Chapter 4 MODBUS communication function
HRS Series
4.8 Explanation of function codes
4-11
4.8 Explanation of function codes
4.8.1 Function
code
:
03 Reading multiple registers
Register data of assigned points from assigned address is read.
Request message <Normal> (Master to Slave)
Start Slave
Address
Function
Data
LRC
End
[:] XX XX [0] [3]
XX XX [CR]
[LF]
Read Address
Quantity to Read
Hi Lo Hi Lo
XX
XX
XX
XX
XX
XX
XX XX
Response message<Normal> (Slave to Master)
Start Slave
Address
Function
Data
LRC
End
[:] XX XX [0] [3]
XX XX [CR]
[LF]
Read Data1
Read Data n
Byte Count
Hi Lo
Hi Lo
XX
XX
XX
XX
XX
XX
XX
XX
XX
XX
Communication example
○
Slave Address: No.1
○
Read seven consecutive data from register 0000h
.
(Read circulating fluid discharge temperature, circulating fluid discharge
pressure, status information, alarm information.)
Request message
Response message
Code
Contents
Code
Contents
01
Slave Address
01
Slave Address
03 Function
03 Function
0000
Head address of specified register
0E
Quantity of bytes to read
0007
Quantity of register to read
00D4
Information of 0000h (circulating fluid
discharge temperature)
F5
LRC
0000
Information of 0001h (Reserved)
000D
Information of 0002h (circulating fluid
discharge pressure)
0000
Information of 0003h (Reserved)
0201
Information of 0004h (Status flag)
0000
Information of 0005h (Alarm flag 1)
0000
Information of 0006h (Alarm flag 2)
0A
LRC
This product
(Request):010300000007F5 [CR][LF]
(Response):01030E00D40000000D00000201000000000A [CR][LF]
Your system
Data is sent and
received in ASCII
code.
Содержание HRS012-W
Страница 54: ...HRX OM M091 Chapter 4 MODBUS communication function 4 10 Register Map HRS Series 4 22...
Страница 81: ......