beautypg.com

GW Instek PSM-Series Programming Manual User Manual

Page 12

background image

PSM SERIES PROGRAMMABLE POWER SUPPLY

PROGRAMMER MANUAL

⎯ 21 ⎯

6. DETAILS OF COMMAND REFERENCE

Each command in this chapter will give a detailed description. The

examples of each command will be provided and what query form might
return.

z IEEE-488.2 COMMON COMMANDS

*CLS

Function:
Clear all event status data register. This includes the Output Queue,
Operation Event Status Register, Questionable Event Status Register, and
Standard Event Status Register.

Syntax:

*CLS

Examples:

*CLS

clears all event registers.

*ESE

Function:
Set or return the bits in the Event Status Enable Register (ESER). The
ESER enables the Standard Event Status Register (SESR) to be summarized
on bit 5 (ESB) of the Status Byte Register (SBR).

Syntax:

*ESE

*ESE?

is in the range from 0 through 255.

Returns:

is a number from 0 to 255 that indicates the decimal

PSM SERIES PROGRAMMABLE POWER SUPPLY

PROGRAMMER MANUAL

⎯ 22 ⎯

value of the binary bits of the ESER.

Examples:

*ESE 65

sets the ESER to binary 0100 0001.

If the ESER contains the binary value 1000 0010, the *ESE? will return
the value of 130.

*ESR?

Function:
Return and clear the contents of the Standard Event Status Register (SESR).

Syntax:

*ESR?

Returns:

is a number from 0 to 255 that indicates the decimal

value of the binary bits of the ESER.

Examples:

If the ESER contains the binary value 1100 0110, the *ESR? will return
the value of 198.

*IDN?

Function:
Return the unique identification code of the power supply.

Syntax:

*IDN?

Returns:

includes Manufacturer, model number, serial number and

firmware version.