Remote Commands
SCPI Commands Command Tables
MAP-200 Optical Switch mOSW-C1 Installation and User Guide
Standard
June 2016
Document Number 22112369-120 R000
Page 53
*ESR?
Description
Returns the contents of the Standard Event Status register as an integer that, when
converted to a binary number, represents the bit values of the register.
Reading the ESR clears it.
Input Format
*ESR?
Output Format
<Register Value>
Parameter
Type
Value
Register
Numeric
0 <= value <= 255
Standard Event Status Register
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Power on
(PON)
User
request
(URQ)
Command
error (CME)
Execution
error
(EXE)
Device
dependent
error (DDE)
Query
error
(QYE)
Request
control
(RQC)
Operation
complete
(OPC)
Bit 0: operation complete
Bit 1: request control
Bit 2: query error. it is set when a query error occurs, for example, an attempt is made to read the output queue when the output
queue is empty or when the data in the output queue is lost.
Bit 3: device dependent error. It is set by the system to always indicate 0.
Bit 4: execution error
Bit 5: command error. it is set when a command error is detected by the system, for example, if a syntax error is detected in a
program message, an incorrect command header is received, or an IEEE GET message is received in the middle of a program
message.
Bit 6: user request
Bit 7: power on
Default
0 on *CLS, *ESR? and power cycle.
Example
The following example illustrates a default value of the ESR.
Terminal Input:
*ESR?
Terminal Response: