Agilent Technologies 66311B Portable Generator User Manual


 
Language Dictionary - 8
139
*SRE
This command sets the condition of the Service Request Enable Register. This register determines which
bits from the Status Byte Register (see *STB for its bit configuration) are allowed to set the Master
Status Summary (MSS) bit and the Request for Service (RQS) summary bit. A 1 in any Service Request
Enable Register bit position enables the corresponding Status Byte Register bit and all such enabled bits
then are logically ORed to cause Bit 6 of the Status Byte Register to be set.
When the controller conducts a serial poll in response to SRQ, the RQS bit is cleared, but the MSS bit is
not. When *SRE is cleared (by programming it with 0), the dc source cannot generate an SRQ to the
controller. The query returns the current state of *SRE.
Command Syntax
*SRE <NRf>
Parameters
0 to 255
Power-on Value
see *PSC
Example
*SRE 20
Query Syntax
*SRE?
Returned Parameters
<NR1> (register binary value)
Related Commands
*ESE *ESR *PSC
CAUTION: If *PSC is programmed to 0, the *SRE command causes a write cycle to nonvolatile
memory. Nonvolatile memory has a finite maximum number of write cycles. Programs
that repeatedly cause write cycles to nonvolatile memory can eventually exceed the
maximum number of write cycles and cause the memory to fail.
*STB?
This query reads the Status Byte register, which contains the status summary bits and the Output Queue
MAV bit. Reading the Status Byte register does not clear it. The input summary bits are cleared when
the appropriate event registers are read. The MAV bit is cleared at power-on, by *CLS’ or when there is
no more response data available.
A serial poll also returns the value of the Status Byte register, except that bit 6 returns Request for
Service (RQS) instead of Master Status Summary (MSS). A serial poll clears RQS, but not MSS. When
MSS is set, it indicates that the dc source has one or more reasons for requesting service.
Table 8-8. Bit Configuration of Status Byte Register
Bit Position 7 6 5 4 3 2 1 0
Bit Name OPER MSS
(RQS)
ESB MAV QUES 0 0 0
Bit Weight 128 64 32 16 8 4 2 1
ESB = Event status byte summary
MAV = Message available
MSS = Master status summary
OPER = Operation status summary
QUES = Questionable status summary
RQS = Request for service
Query Syntax
*STB?
Returned Parameters
<NR1>(Register binary value)