User manual

96
DPMS XPQ User Manual
3. Read Data (Function Code 03)
Query
This function allows the master to obtain the measurement results of the
meter.Table 5.8 is an example to read the 3 measured data (F, V1 and V2) from
slave device number 17, the data address of F is 0130H, V1 is 0131H and V2 is
0132H.
Addr Fun Data start
addr hi
Data start
addr lo
Data #of
regs hi
Data #of
regs lo
CRC 16
regs Hi
CRC 16
regs Lo
11H 03H 01H 30H 00H 03H 06H A8H
Table 5.8 Read F, V1, V2 Query Message
Response
The meter's response includes its address, function code, quantity of data
byte, data, and error checking. An example response to read F, V1 and V2
(F=1388H (50.00Hz), V1=03E7H (99.9V), V2=03E9H (100.1V) is shown in Table
4.9.
Addr Fun Byte
count
Data1
hi
Data1
Lo
Data2
hi
Data2
Lo
Data3
hi
Data3
Lo
CRC16
hi
CRC16
lo
11H 03H 06H 13H 88H 03H E7H 03H E9H 7FH 04H
Table 5.9 Read F, V1 and V2 Message
4. Control Relay (Function Code 05)
Query
This message forces a single Relay either on or off. Any Relay that exists
within the meter can be forced to be either status (on or off). The address of
Relays starts at 0000H (Relay1=0000H, Relay2=0001H). The data value FF00H
will set the relay on and the value 0000H will turn it off; all other values are
illegal and will not affect that relay.