Operating the Meter Using the Computer Interface | 5 |
Service Requests |
Table
Bit No.
0
1
2
3
4
5
6
7
Name
Operation Complete (OPC).
Not used.
Query Error (QYE).
Execution Error (EXE)
Command Error (CME)
Not used.
Power On
True (Set to 1) Conditions
All commands previous to receipt of an *OPC command have been executed. Interface is ready to accept another message.
Always set to 0.
Attempt has been made to read data from the meter’s output buffer when no output is present or pending. Or, a new command line has been received before a previous query has been read. Or, Both input and output buffers are full.
Incorrect input during calibration, or
Command was understood but could not be executed. Result, for example, of an inappropriate parameter.
Command was not executed because it was not understood. This condition could result, for example, if a command sent to the meter contained a syntax error.
Always set to 0.
(PON) Power has been cycled off and on since the last time the ESR was read or cleared.
Status Byte Register
The Status Byte Register (STB) is a
Reading the Status Byte Register
The host can read the Status Byte Register by taking a serial poll or sending the meter a "*STB?" query. The value of the status byte is not affected by the STB? query. When the Status Byte Register is read, an integer is returned. This integer is the decimal equivalent of an
If the status byte is read by serial poll, bit 6 is returned as a request service (RQS); if it is read with an "*STB?" query, bit 6 is returned as Master Summary Status (MSS).
EXAMPLEEXPLANATION
*STB? | Reads the Status Byte Register. Assume that "32" is returned. Converting 32 |
| to the binary 00100000 indicates that bit 5 (ESB) is set to 1. To determine the |
| event status, you would have to read the Event Status Register in the same |
| manner, using the "ESR?" command. |