Common Command Introduction
6
2.2 *OPC
Description
The *OPC (Operation Complete) command sets the OPC bit (bit 0) in the standard Event Sta-
tus Register (ESR). This command has no other effect on the operation of the device because
the instrument starts parsing a command or query only after it has completely processed the pre-
vious command or query. The *OPC? query always responds with the ASCII character 1 because
the device only responds to the query when the previous command has been entirely executed.
COMMAND SYNTAX
*OPC
Query Syntax
*OPC?
Response Format
*OPC 1
2.3 *CLS
Description
The *CLS command clears all the status data registers.
Command Syntax
*CLS
Example
The following command causes all the status data registers to be cleared: *CLS
2.4 *ESE
Description
The *ESE command sets the Standard Event Status Enable register (ESE). This command al-
lows one or more events in the ESR register to be reflected in the ESB summary message bit (bit
5) of the STB register. The *ESE? query reads the contents of the ESE register.
Command Syntax
*ESE <value>
<value> = 0 to 255.
Query Format
*ESE?
Query Response
*ESE <value>
Example
The following instruction allows the ESB bit to be set if a user request (URQ bit 6, i.e. decimal
64) and/or a device dependent error (DDE bit 3, i.e. decimal 8) occurs. Summing these values
yields the ESE register mask 64+8=72.
*ESE?
Return:
*ESE 72
2.5 *ESR
Description
The *ESR? query reads and clears the contents of the Event Status Register (ESR). The response
represents the sum of the binary values of the register bits 0 to 7.
Query Format
*ESR?
Query Response
*ESR <value>
<value> = 0 to 255
Example
The following instruction reads and clears the content of the ESR register
*ESR?
Return:
*ESR 0
Related Commands
*CLS, *ESE
Содержание 4060B Series
Страница 1: ......