- 51 -
Measurements reading (function 04h)
Function code 04h allows to read the values measured by the instrument.
The input register address containing the first quantity and the number of consecutive
quantities to be read are indicated in the request data field.
Since, in the protocol, registers are numbered starting from 1, but data are addressed
starting from 0, a register address is equal to the register number decremented by 1.
The instrument replies with the value of the requested quantities. It is not allowed to
read quantities that are not measured by the instrument model.
Consequently, the Function and Data fields of command and response assume the
following format:
Command
Value
Length
Description
Function:
04h
1 byte
Measurements reading command
Data:
0000h to FFFFh
2 bytes
First quantity address
0001h to 007Dh
2 bytes
Number of quantities to be read (N)
Response
Value
Length
Description
Function:
04h
1 byte
Measurements reading command
Data: 2
x
N
1 byte
Number of bytes for the values
2
x
N bytes
Measurements values
A measurement value is stored in a 16-bit register and consequently always requires
a 2-byte length. The most significant byte precedes the least significant one.
The following table lists the available quantities with their register number.
Tab. 8.D: Input registers
Register
number
Quantity
Format
From
FW
Ver.
Notes
0001
Temperature in °C (x10)
16 bits
1.00
0002
Temperature in °F (x10)
16 bits
1.00
0003
Relative humidity in % (x10)
16 bits unsigned
1.00
0004
Dewpoint in °C (x10)
16 bits unsigned
1.00
0005 CO
2
in ppm
16 bits unsigned
1.00
If the request involves the reading of at least one parameter that is not included in
Table 8.D, the instrument will answer with the following error message:
Response
Value
Length
Description
Function:
84h
1 byte
Error in measurements reading
Data: 02h
1
byte
Operation involved an inexistent
parameter (Tab. 8.F page 59)
Содержание HD45 17A
Страница 10: ... 10 3 1 HD45 connection diagrams ...
Страница 11: ... 11 3 2 HD46 connection diagrams ...
Страница 62: ... 62 Dimensions in mm HD45 series HD46 series ...
Страница 63: ... 63 Fixing holes ...