User manual

94
DPMS XPQ User Manual
CRC16 Hi: CRC high byte
CRC16 Lo: CRC low byte
1. Read Status of Relay (Function Code 01)
This function code is used to read status.
1=On, 0=Off;
There are 2 Relays. The Address of each Relay is Relay1=0000H and
Relay2=0001H.
The following query is to read Relay Status of meter number 17.
Query
Addr Fun relay start
reg hi
relay start
reg lo
relay #of
regs hi
relay #of
regs lo
CRC 16
Hi
CRC 16
Lo
11H 01H 00H 00H 00H 02H BFH 5BH
Table 5.4 Read the status of Relay1 and Relay2 Query Message
Response
The DPMS XPQ response includes the meter's address, function code,
quantity of data byte, the data, and error checking. An example response to read
the status of Relay1 and Relay2 is shown in Table 4.5. The status of Relay1 and
Relay2 is responding to the last 2 bits of the data.
Relay1: bit0; Relay2: bit1
Address Function code Byte count Data CRC high CRC low
11H 01H 01H 02H D4H 89H
Table 5.5 Relay status responds
The content of the data is:
7 6 5 4 3 2 1 0
0 0 0 0 0 0 1 0
MSB LSB
Relay1 = OFF (LSB ), Relay2=ON (Left to LSB )