Standard event status register (esr) – AMETEK SFA Series Ethernet Programming User Manual
Page 75
SG Series Programming
SCPI Command Operation
M550129-03 Rev K
6-3
6.2.2
Standard Event Status Register (ESR)
Read the Standard Event Status Register (ESR) by issuing the *ESR?
command. Reading this register or issuing a *CLS command will clear
the ESR. Use the *ESE (Standard Event Status Enable Register) to
enable corresponding ESR bits to be summarized in the summary bit of
the SCPI Status byte. To configure the Digital Interface Adapter (DIA) to
generate service requests based on the ESR, both the Standard Event
Status Enable Register and the Service Request Enable Register must
be programmed. See , and refer to Section 5 for further information.
Table 6-2. Standard Event Status Register
Bit
Hex Value
Description
0
0x01
Operation Complete
1
0x02
Request Control - not used
2
0x04
Query Error
3
0x08
Device Dependent Error
4
0x10
Execution Error (e.g., range error)
5
0x20
Command Error (e.g., syntax error)
6
0x40
User Request - not used
7
0x80
Power On
6.2.3
Protection Condition and Protection Event Status
Register
These two registers have the same bit meanings, but they differ in
function.
Read
the
Protection
Condition
Register
by
issuing
the
STAT:PROT:COND? command. This command gives the present status
condition of the power hardware, so the data is not latched. It is meant to be
used as a polling register.
Read the Protection Event Status Register by issuing the
STATus:PROTection:EVENt? command. Reading this register clears the
Protection Event Status Register. Or clear the Protection Event Status
Register by issuing a *CLS command or a *RST command. Bits in the
Protection Event Status Register will be set only when the corresponding
bit in the Protection Event Status Enable Register is set and the
corresponding event occurs. The status is then latched and will remain in
that state until it is read or cleared due to some command action. (Set the
Enable Register with the STATus:PROTection:ENABle
and query the Enable Register with the STATus:PROTection:ENABle?
query).
To configure the Digital Interface Adapter (DIA) to generate service