59
6-5-3 Query Commands
R0 command
R0 command is used for requesting the meter to return its current status.
The meter will then respond the following 11-digit character string to the host after
receiving the R0 command: <h
1
h
2
><g
1
g
2
><v><s
1
s
2
><f
1
><r
1
><f
2
><r
2
>
For detail information of using R0 command, please refer to Table 6-9 and Table
6-10.
Table 6-9. Descriptions for R0 Command and Response
Syntax Response Description
R0
R0 command is used to read the status of the meter.
The meter will respond the following character string:
<h
1
h
2
><g
1
g
2
><v><s
1
s
2
><f
1
><r
1
><f
2
><r
2
>
Response Description
<h
1
h
2
>
is a two-digit hex number; each digit contains 4-bit binary codes
(Bit 7-4 and Bit 3-0 respectively) to represent eight types of status
about the meter.
<h
1
> and <
h
2
> representations are described as follows.
<h
1
>
represents the ON/OFF status for other three types of arithmetic
function.
<h
2
>
indicates the results of compare (COMP) function and whether the
meter is operating in a dual display mode;
Example: If <h
1
h
2
> contains a character string “82”, convert it to an 8-bit
binary format “10000010” that means the meter is in Single display
mode, compare function is ON, and the result of compare is Pass.
<h
1
h
2
>
Bit Status 0 1
7 Compare mode off on
6 Relative mode off on
5 Always 0
<h
1
>
4 dBm mode off on
3 Display Mode Single Dual
2 x Hi
1 x Pass
<h
1
h
2
>
<h
2
>
0
Compare Result
x Lo