/

Keithley

/

Keithley 2220G-30-1

SCPI COMMAND REFERENCE

Keithley 2220G-30-1

Keithley 2220G-30-1

The Keithley 2220G-30-1 is Keithley's power supply in the Series 2220 family. Its SCPI remote-control interface exposes 102 commands across 15 subsystems - 66 settable and 36 queries - and every command is documented here with its parameters, accepted values, return format, and a copy-paste PyVISA example for automating test and measurement.

102

Commands

66

Settable

36

Queries

15

Subsystems

SCPI

Verified

2026-07-16

All commands

*OPC?query

Places the ASCII character "1" into the output queue when all pending OPC operations are complete. It is used to generate an operation complete message by setting bit 0 of the Standard Event Status Register when pending commands finish.

enum - Returns 1 when all pending OPC operations are complete.
*OPC? might return 1 to indicate that all pending OPC operations are finished.
*SRE?query

Sets and queries the bits in the Service Request Enable Register (SRER).

NameTypeValuesDescription
NR1integer0 - 255Integer value used to set the binary bits of the SRER.
integer - Returns the current value of the Service Request Enable Register; for example, 32 corresponds to binary 00100000.
*SRE 48
*SRE?
*CLSset / query

Clears the status data structures and event registers. It is a common IEEE 488.2 common command.

*ESEset / query

Sets the standard event enable register. This command enables or disables the specified event bits in the Standard Event Enable Register.

NameTypeValuesDescription
valueinteger0 - 255Standard event enable register mask.
*ESR?query

Returns the value of the Standard Event Status Register.

integer - Value of the Standard Event Status Register.
*IDN?query

Returns the instrument identification string.

string - The instrument identification string.
*OPCset / query

Sets the device to indicate completion of all selected overlapped commands. The command is used in synchronization with the IEEE 488.2 operation complete query.

*PSCset / query

Sets the power-on state to be restored after a power cycle. The command is related to the instrument's power-on output state handling.

*RCLset / query

Recalls the specified instrument state from nonvolatile memory. The command is part of the IEEE 488.2 common command set.

NameTypeValuesDescription
stateinteger0 - 9State file number to recall.
*RSTset / query

Resets the instrument to its default state.

*SAVset / query

Saves the current instrument state in nonvolatile memory. The saved state can later be recalled with *RCL.

*STB?query

Returns the status byte register. The value indicates the summarized state of the instrument.

integer - Status byte register value.
*TRGset / query

Triggers selected operation(s) on the instrument immediately. This is the IEEE 488.2 group trigger command.

*TST?query

Executes an internal self-test of the instrument.

integer - Returns 0 if the self-test passes; otherwise returns a nonzero error code.
*WAIset / query

Waits until all pending selected device operations are complete before continuing execution.

Queries the contents of the operation instrument enable register (OIENR). The OIENR is an eight-bit mask register that determines which bits in the Operation Enable Register affect the OPER bit in the Status Byte Register.

integer - Decimal integer representation of the contents of the operation instrument enable register (OIENR), ranging from 0 to 255.

Queries the operation enable register summary for channel <x>, where <x> is 1, 2, or 3. The returned value is a decimal integer whose binary bits are set according to the specified channel's operation enable register.

integer - Decimal integer ranging from 0 through 255 representing the contents of the specified channel's operation enable register; the binary bits are set according to this value.
STAT:OPER:INST:ISUM2:ENABle? might return 2, which would indicate that only the Constant Current bit of the Operation Enable Register for channel 2 would affect the OPER bit of the Status Byte Register.

Sets and queries the questionable enable register (QENR), an eight-bit mask register that determines which Questionable Event Register bits affect the QUES bit of the Status Byte Register.

NameTypeValuesDescription
NR1integer0 - 255Decimal integer used to set the bits of the QENR mask register.
mask - Returns the contents of the questionable enable register.
STATUS:QUESTIONABLE:ENABLE 8
STATUS:QUESTIONABLE:ENABLE? might return 8, which would indicate that only a transition of the Remote Inhibit bit of the QCR would affect the QUES bit of the Status Byte Register.

Queries or sets the questionable instrument status event register for the instrument. The setter uses a decimal mask value to set bits in the Questionable Enable Register for the specified channel.

NameTypeValuesDescription
NR1integer0 - 255Decimal integer mask value used to set the bits of the Questionable Enable Register for the specified channel.

Queries the operation enable register summary of a channel. <x> selects channel 1, 2, or 3; on two-channel instruments only channels 1 and 2 are available.

NameTypeValuesDescription
xinteger1 - 3Channel number whose operation enable register summary is queried.
integer - Decimal integer representation of the contents of the Questionable Enable Register for the specified channel.
STATus:QUEStionable:INSTrument:ISUMmary2:ENABle? 2

Sets the enable register for the Operation status group. This command controls which Operation status events are reported.

Returns the condition register bits for the selected instrument summary register. This is a query form of the instrument status summary command.

NameTypeValuesDescription
xinteger0 - MAXimumSelects the instrument summary register number.
integer - Returns the condition register value for the selected summary register.

Sets the enable register for the instrument summary status tree for the selected summary index x.

NameTypeValuesDescription
xinteger-Summary index identifying which instrument summary status register is affected.

Returns the event summary for the specified status summary register. The optional event query form is documented for this command.

NameTypeValuesDescription
xinteger0 - 7Specifies which instrument summary register to query.
eventopt--Requests the event register value for the specified summary register.
integer - Returns the event summary value for the selected instrument summary register.

Returns the enable register for the instrument status group in the Operation status register tree.

integer - Returns the instrument status enable register value.

Returns the event register contents for the instrument status group. This query reports the current state of the operation status instrument event register.

integer - The event register contents of the instrument status group.

Returns the present condition of the operation status register. The event register is cleared after being read.

integer - Returns the present condition of the operation status register. The event register is cleared after being read.

Returns the event status summary for the specified instrument summary register. The optional EVENT suffix queries the event register of that summary.

NameTypeValuesDescription
xinteger0 - 7Instrument summary register index.
eventoptboolean-Queries the event status summary register.
integer - Returns the event status summary value for the selected instrument summary register.

Sets the enable mask for the Questionable status register. It enables the bits that can generate a Questionable status summary event.

NameTypeValuesDescription
enableinteger0 - 65535Enable mask for the Questionable status register.

Sets the enable register for the Questionable Instrument status group.

NameTypeValuesDescription
enableinteger0 - 65535Enable register value for the Questionable Instrument status group.

Returns the condition register for a specified instrument summary status register. The `<x>` suffix selects the summary register number.

enum - Returns the condition register contents for the selected summary status register.

Returns the questionable instrument event register. The optional ":EVENt" node is part of the command mnemonic as documented in the index entry.

integer - Questionable instrument event register value.

Returns the questionable status register event status. The optional event node may be omitted in the mnemonic.

integer - Returns the contents of the Questionable Event register.

Queries the key code for a front-panel button press. The instrument must be in local mode for the corresponding setter command to simulate a key press.

integer - Returns the NR1 key code for the requested front-panel button.
SYSTEM:KEY 64 would simulate a press of the Shift key.

Sets how the power supply initializes after power is turned on: either default settings or the settings that were in effect when it was turned off. The query returns which startup mode is currently configured.

enum - Returns the configured power-up mode.
SYST:POS RST
SYSTEM:POSETUP? might respond with RST, which would indicate that the power supply is configured to restore the power supply to default settings when it powers up.

Returns the next system error in the error queue. The response includes an error code and a quoted error message, and the queue is cleared as errors are read.

string - Returns the next error in the system error queue as an error code and message, typically in the form <code>,"<message>".
:SYSTem:KEYset / query

Selects a key from the instrument front panel keypad. This command is listed in the system command index.

:SYSTem:LOCalset / query

Sets the instrument to local control. This command is the local counterpart to remote control.

Returns the module identification string for the system. The manual lists this command in the system commands index.

string - Module identification string.
:SYSTem:POSetupset / query

Sets the power-on setup configuration. This command is listed in the system command index on the referenced page.

:SYSTem:RWLockset / query

Locks the instrument in remote mode. The command is listed among the system commands and has no documented parameters on this index page.

Returns the instrument firmware version information.

string - The version string.

:CURRentset / query

Sets the output current for the selected channel. In the example, it is sent after selecting a channel with `INSTrument:NSELect`.

NameTypeValuesDescription
currentrealAOutput current to set.

Sets the triggered current level for the selected channel. The example shows it being used to program each channel before a trigger event.

NameTypeValuesDescription
currentreal-Triggered current setting.
:CURRent:TRIGgered 0.55

Selects the active instrument channel. The example shows it being used with a channel number from 1 to 3.

NameTypeValuesDescription
channelinteger1 - 3Channel number to select.
viPrintf(KI200, "INSTrument:NSELect %d\n", i+1); // Select the channel

Selects which instrument channels are coupled to respond to the trigger command. In the example, all channels are coupled by sending `ALL`.

NameTypeValuesDescription
modeenumALLChannels to couple for triggering.
INSTrument:COUPle ALL

Configures the instrument to series mode. The example shows it used before setting output voltage and current.

INSTrument:COMBine:SERies

Sets the instrument combine mode to series operation. This command is listed in the index alongside other INSTrument:COMbine commands.

Returns the present instrument combine mode. The command is the query form of the instrument combine function.

enum - Returns the current combine mode.

Sets whether trigger coupling is enabled for the instrument. This command is documented as part of the instrument coupling commands.

NameTypeValuesDescription
stateenum-Trigger coupling state.

Selects the active instrument in a combined or multichannel configuration. The manual index lists this command on page 2-20.

:OUTPutset / query

Turns the power supply output on or off. The example shows `OUTPut 1` being used to turn the output on.

NameTypeValuesDescription
stateenum1 | 0Output state to set.
OUTPut 1
:OUTPut:TRACKset / query

Enables or disables the track function for the output channels. The example shows it being used to check that tracking is off and then to enable tracking.

NameTypeValuesDescription
stateenum0 | 1Turns output tracking off or on.
OUTPut:TRACK 0
OUTPut:TRACK 1

Returns the current output series mode setting. The example shows it used after configuring series mode with `INSTrument:COMBine:SERies`.

enum - Returns the output series mode setting.
OUTPut:SERies?

Sets or queries the power-on output state. The command is listed as part of the output control command group.

Sets the output series configuration. The index lists this command under the source output group, but the slice does not provide further syntax or parameter details.

Controls the timer state for the output. The command is documented in the output subsystem under the source alias.

NameTypeValuesDescription
stateoptenum-Enables or disables the timer state.

:VOLTageset / query

Sets the output voltage. The example shows it being sent with a numeric voltage value after selecting a channel.

NameTypeValuesDescription
voltagerealVOutput voltage to set.
VOLTage %f

Sets the triggered voltage for the selected channel. The value is programmed as a floating-point voltage in the range used by the instrument's trigger settings.

NameTypeValuesDescription
voltagerealVTriggered output voltage to program.

Sets the state of the voltage limit function. The command is listed in the command index as the voltage limit state command.

Sets the voltage limit level. The command is part of the source voltage subsystem and has an optional [:LEVel] node in the syntax.

NameTypeValuesDescription
levelrealVVoltage limit level.

Sets the triggered voltage level for the selected source. The optional immediate form is documented in the command name, but no additional parameter details are given in this slice.

Sets the voltage triggered level, with an optional immediate/increment form in the syntax. The index references this command at page 2-34.

NameTypeValuesDescription
IMMediateoptenum-Optional syntax node shown in the command form.
INCRementoptenum-Optional syntax node shown in the command form.

Measures the present output current and returns the reading as a floating-point value.

real (A) - Returns the measured output current in amperes.
Measure:current?

Measures the current. The example shows it used after configuring output current in a series-mode setup.

real - Returns the measured current value.
MEASure:CURRent?

Measures the output voltage. In the example, it is used after configuring series mode and setting the supply output.

real (V) - Returns the measured output voltage.
MEASure:VOLTage?
MEASure:VOLTage? ALL

Measures the DC power component of the selected signal. The command is a query form of the scalar power measurement command.

real - Returns the measured DC power value.

:APPLyset / query

Sets the voltage and current for the specified channel using a single command. In the example, it is used as `APPLy CH%d, %f, %f` to configure each channel.

NameTypeValuesDescription
channel--Channel to configure.
voltagerealVVoltage value to apply.
currentrealACurrent value to apply.
APPLy CH%d, %f, %f
[SOURce:]APPlyset / query

Applies a source setting. The index lists this as a command in the Source group, but the provided slice does not include its syntax or parameter details.

:OUTP:TIMset / query

Sets the output timer function state. The default setting is OFF.

NameTypeValuesDescription
stateenumOFF | ONEnables or disables the output timer function.
:OUTP:TIM:DELset / query

Sets the output timing delay to its default value when the supply is returned to default settings. The default setting for this command is 60.

:VOLT:LIMset / query

Sets the voltage limit to its default setting. The default setting is MAX.

NameTypeValuesDescription
limitrealVVoltage limit value.
:VOLT:LIM:STATset / query

Sets whether voltage limiting is enabled or disabled.

NameTypeValuesDescription
stateenumON | OFFTurns voltage limit state on or off.

Sets the text string displayed in the active display window.

NameTypeValuesDescription
datastring-Text string to display.

Returns the measured scalar power in DC mode. This is the fetch form of the scalar power measurement command.

real - The measured scalar power value in DC mode.

Returns the present measured voltage in the scalar DC voltage function. The index lists this as a fetch query, analogous to the corresponding MEASure command.

real (V) - The present DC voltage measurement value.