Common Command Reference

This section describes the IEEE-488.2 Common Commands that can be used to program instruments in the mainframe. Commands are listed alphabetically (the following table shows the Common Commands listed by functional group). For additional information on any Common Commands, refer to the IEEE Standard 488.2-1987.

IEEE 488.2 Common Commands Functional Groupings

Category

Command

Title

 

 

 

General

*IDN?

Identification Query

 

*RST

Reset Command

 

*TST?

Self-Test Query

Instrument

*CLS

Clear Status Command

Status

*ESE <mask>

Standard Event Status Enable Command

 

*ESE?

Standard Event Status Enable Query

 

*ESR?

Standard Event Status Register Query

 

*SRE <mask>

Service Request Enable Command

 

*SRE?

Service Request Enable Query

 

*STB?

Status Byte Query

 

*DMC <name>,<cmds>

Define Macro Command

Macros

*EMC <state>

Enable Macros Command

 

*EMC?

Enable Macro Query

 

*GMC? <name>

Get Macro Query

 

*LMC?

Learn Macro Query

 

*PMC

Purge all Macros Command

 

*RMC <name>

Remove individual Macro Command

 

*OPC

Operation Complete Command

Synchronization

*OPC?

Operation Complete Query

 

*WAI

Wait-to-Continue Command

 

 

 

*CLS

Clear Status Command. The *CLS command clears all status registers (Standard Event Status Register, Standard Operation Event Status Register, Questionable Data Event Register) and the error queue for an instrument. This clears the corresponding summary bits (bits 3, 5, & 7) and the instrument-specific bits (bits 0, 1, & 2) in the Status Byte Register. *CLS does not affect the enabling of bits in any of the status registers (Status Byte Register, Standard Event Status Register, Standard Operation Enable Status Register, or Questionable Data Enable Status Register). (The SCPI command STATus:PRESet does clear the Standard Operation Status Enable and Questionable Status Enable registers.) *CLS disables the Operation Complete function (*OPC command) and the Operation Complete Query function (*OPC? command).

28 Command Reference

Chapter 3