Section 12: Common commands
Model 6517B Electrometer Reference Manual
12-4
6517B-901-01 Rev. C / August 2015
*ESE <NRf> (event enable), *ESE? (event enable query)
These commands program and read the standard event enable register.
Usage
*ESE <NRf>
*ESE?
<NRf>
0
Clear register
1
Set OPC (B0)
4
Set QYE (B2)
8
Set DDE (B3)
16
Set EXE (B4)
32
Set CME (B5)
64
Set URQ (B6)
128
Set PON (B7)
255
Set all bits
Details
The
*ESE
command is used to program the standard event enable register. This command is sent
with the decimal equivalent of the binary value that determines the desired state (0 or 1) of the bits in
the register. This register is cleared on power up.
This register is used as a mask for the standard event status register. When a standard event is
masked, the occurrence of that event does not set the event summary bit (ESB) in the status byte
register. Conversely, when a standard event is unmasked (enabled), the occurrence of that event
sets the ESB bit. For information on the standard event status register and descriptions of the
standard event bits.
A cleared bit (
0
) in the enable register prevents (masks) the ESB bit in the status byte register from
setting when the corresponding standard event occurs. A set bit (
1
) in the enable register allows
(enables) the ESB bit to set when the corresponding standard event occurs.
The standard event enable register is shown in the following table and includes the decimal weight of
each bit. The sum of the decimal weights of the bits that you wish to be set is the parameter value
that is sent with the
*ESE
command.
If a command error (
CME
) occurs, Bit B5 of the standard event status register sets. If a query error
(
QYE
) occurs, Bit B2 of the standard event status register sets. Since both of these events are
unmasked (enabled), the occurrence of any one of them causes the ESB bit in the status byte
register to set.
The standard event status register can be read by using the
*ESE?
query command.