8163A/B, 8164A/B & 8166A/B Mainframes Programming Guide
47
Instrument Setup and Status
3
command:
*CLS
syntax:
*CLS
description:
The CLear Status command *CLS clears the following:
Error queue
Standard event status register (SESR)
Status byte register (STB)
After the *CLS command the instrument is left waiting for the next command. The instrument setting is unaltered by the
command, although *OPC/*OPC? actions are canceled.
parameters:
none
response:
none
example:
*
CLS
command:
*ESE
syntax:
*ESE<wsp><value>
0
≤
value
≤
255
description:
The standard Event Status Enable command (*ESE) sets bits in the Standard Event Status Enable Mask (SESEM) that enable
the corresponding bits in the standard event status register (SESR).
The register is cleared:
at power-on,
by sending a value of zero.
The register is not changed by the *RST and *CLS commands.
parameters:
The bit value for the register (a
16-bit signed integer
value):
Bit
Mnemonic
Decimal Value
7 (MSB)
Power On
128
6
Not Used
0
5
Command Error
32
4
Execution Error
16
3
Device Dependent Error
8
2
Query Error
4
1
Not Used
0