3.4.11 SRE/ SRE? command/query (Service Request Enable)
The SRE command is used to set and read the service request enable register.
Command syntax
SRE <mask_arg>
<mask_arg> is a parameter to set the service request enable register and is a numeric value
ranging from "0" to "255" in the <NUMERIC VALUE PROGRAM DATA> format.
If the numeric value is outside the range, it is rounded to the maximum or minimum value as
appropriate and specified, and the execution error is given.
One meaning is assigned to each bit of the service request enable register. When a bit
corresponding to the enable register is set to "1", relevant event becomes enabled (this causes the
service request to occur). On the contrary, when a bit is set to "0", relevant event becomes
disabled (this does not cause the service request to occur).
Query syntax
SRE?
Response message <mask>
<mask> is a numeric value ranging from "0" to "185" in the <NR1 NUMERIC RESPONSE DATA>
format that the setting of each bit in the service request enable register is weighted by
exponentiation of "2".
Remarks: Structure of service request enable register
Bit
7
6
5
4
3
2
1
0
The response data is created assuming that bit 6 is always "0" regardless of the designation of the
SRE command parameter. However, note that this bit is always determined as enable during actual
operation.
Since the instrument does not use bits 1 and 2, and the response of bit 6 is "0", the maximum value of
the response message becomes 185 ( 128 32 16 8 1) even though all bits of this register are
set at "1".
Weighting
Meaning
128
OES- Operation event status
64
RQS/MSS- Request service/message summary status
32
ESB- Event status
16
MAV- Message available
8
QES- Questionable event status
4
XXX- Since this instrument does not use this bit, the bit is
always set at "0".
2
XXX- Since this instrument does not use this bit, the bit is
always set at "0".
1
MEV- Measurement event status
43