Chapter 5 Communication
www.supmea.com
- 20 -
Function code 16 (0x10): write multiple registers
Inquiry frame
Name
Device
address
Functio
n code
Initial
addres
s
Number
of data
Numbe
r
of
bytes
Data
value
CRC
Data
Addr
0x10
M
N
N*2
Data
CRC
16
Length
(bytes)
1
1
2
2
1
N * 2
2
Response frame (normal response)
Name
Device
address
Function
code
Initial
address
Number of
data
CRC
Data
Addr
0x10
M
N
CRC16
Length
(bytes)
1
1
2
2
2
Special Notes
Inquiry frame: the number of data indicates the number of registers written. Each
register is represented by 2 bytes, with the high byte coming first, and the low byte
afterwards. When the written data represents a floating point number, the two
registers together represent a floating point number. The byte order of the 4-byte
data follows the setting of the floating point format.
Response frame: if the command sent by the computer is successfully returned
as it was except for the number of bytes and data value, otherwise the response is
abnormal.
Example
Change the measurement mode to ORP and temperature mode to NTC
Inquiry: 01 10 00 25 00 02 04 00 01 00 01 A1 88
Response: 01 10 00 25 00 02 50 03
It indicates that the measurement mode was successfully changed to ORP and
the temperature mode was changed to NTC