15
Status Reporting Commands
*CLS
The *CLS common command clears all status
registers
*ESE (?) j
The *ESE common command sets the standard
status byte enable register. The parameter j is the
decimal value that the enable register is to be set to.
*ESR? {j}
The *ESR common command reads the value of
the standard status register. If the parameter j is
present the value of bit j is returned. Reading this
register will clear it. Reading bit j will clear bit j
only.
*PSC (?) j
The *PSC common command sets the value of the
power-on status clear bit. If j = 1, the power on
status clear bit is set and all status registers and
enable registers are cleared on power up. If j = 0,
the bit is cleared and the status enable registers
maintain their values at power down. This allows
the production of a service request at power up, etc.
*SRE (?) j
The *SRE common command sets the value of the
serial poll enable register. The parameter j is the
decimal value that the register is to be set to.
*STB? {j}
The *STB? common query reads the value of the
serial poll byte. If the parameter j is present the
value of bit j is returned. Reading this register has
no effect on its value. It is just the summary of the
other status registers.
Status Reporting
The PS300 reports on its status by means of two
status bytes: the serial poll byte, and the standard
status byte.
On power up, the PS300 may either clear all of its
status enable registers or maintain them in the state
they were in during power down. The action taken
is set by the *PSC command and allows things
such as SRQ on power up to be produced if
desired.
Serial Poll Status Byte
bit name
usage
0 stable This indicates that the VSET or
ILIM value is stable. The value
depends on whether the PS300 's
in constant current or constant
voltage mode.
1 v trip This indicates that a voltage trip
has occurred.
2 itrip This indicates that a current trip
has occurred.
3 ilim This indicates that a current limit
condition has occurred.
4 MAV This indicates that the GPIB
output queue is non-empty.
5 ESB This indicates that an unmasked
bit in the standard status byte has
been set.
6RQS/ SRQ BIT.
MSS
7 hvon This indicates that the high
voltage is on.
The PS300 will make a service request (SRQ)
whenever one of these bits is set AND the
corresponding bit in the serial poll enable register
is set. Note that any status condition will produce
only one SRQ even if it is never cleared. The vtrip,
itrip and ilim bits are latched bits. They are set on
the occurrence of the appropriate event and stay set
until either the status byte is read or the *CLS
command is sent. This allows one to detect if a trip
condition has ever occurred. All of the other bits
indicate the current states of their respective
functions.