HD45 / HD46
- 44 -
V2.4
Relays state reading
(function
01h
)
Function code 01h allows to read the relays activation state of the instrument.
The relays state can only be read, there are no commands available for relay state
modification.
The register address for the first relay state and the number of consecutive relays to
be read are indicated in the request data field.
Since registers are numbered starting from 1 in the protocol, and data are addressed
starting from 0, a register address is equal to the register number decremented by 1.
The instrument replies with a byte, whose least significant bit (LSB) indicates the
state of the first addressed relay, while the subsequent bits indicate the state of the
other requested relays. The bits value is 1 if relay is active and 0 if relay is inactive.
The bits following the last requested relay are set to 0 to complete the byte.
Consequently, the
Function
and
Data
fields of command
and response will have the
following format:
Command
Value
Length
Description
Function
:
01h
1 byte
Relay state reading command
Data
:
0000h to FFFFh
2 bytes
First relay address
0001h to 007Dh
2 bytes
Number of relays to be read (
N
)
Response
Value
Length
Description
Function
:
01h
1 byte
Relay state reading command
Data
:
01h
1 byte
Number of bytes with relay state
1 byte
Relay state
The following table lists the available relays with their register number:
Tab. 8.B: Relays state registers
Register
number
Relay
From
FW
Ver.
Notes
0004
Relay in HD45 models, whatever is the associated parameter
CO
2
relay in HD46 models
1.08
0005
Temperature relay in HD46 models
1.08
0006
Humidity relay in HD46 models
1.08
The state reading of the unavailable relays in that particular model is not allowed.
If the request involves the reading of at least one parameter which is not included in
table 8.B, the instrument will answer with the following error message:
Response
Value
Length
Description
Function
:
81h
1 byte
Error in relay state reading
Data
: 02h
1
byte
Operation involved a non-existent
parameter (Tab. 8.F at page 59)
Содержание HD45 17A
Страница 10: ...HD45 HD46 10 V2 4 3 1 HD45 connection diagrams ...
Страница 11: ...HD45 HD46 11 V2 4 3 2 HD46 connection diagrams ...
Страница 62: ...HD45 HD46 62 V2 4 Dimensions in mm HD45 series HD46 series ...
Страница 63: ...HD45 HD46 63 V2 4 Fixing holes ...
Страница 71: ......