beautypg.com

Figure a-1. gpib commands, A.10 *rst — reset command, A.11 * sav — save command – KEPCO BHK-MG 40W (Half Rack) Series User Manual

Page 125: A.10, A.11, Gure a-1.), A-1.), Re a-1.) as an

background image

BHK-MG 1/2 (OPR) 121313

A-3

FIGURE A-1. GPIB COMMANDS

A.10 *RST — RESET COMMAND

*RST

Syntax:

*RST

Description: Resets power supply to the reset state. See PAR. 3.2.8 for a detailed description of the reset state.

Reset is also affected by DCL (Device Clear) control, described in PAR. 3.3.2. In addition, *RST also
causes the unit to store the following parameters:
INIT:CONT 0, LIST:DIR UP and DISP:MODE NORMAL (See example, Figure A-1.)

A.11 * SAV — SAVE COMMAND

*SAV

Syntax:

*SAV (1 to 40)

Description: Saves the present state of output voltage, output current, overvoltage and overcurrent to the

specified memory location. This command stores the present state of the power supply to one of 40
memory locations. The following parameters are stored by *SAV: CURR[:LEV][:IMM],
VOLT[:LEV][:IMM], CURR:PROT[:LEV] and VOLT:PROT[:LEV]. The stored values can be restored by
the *RCL command. (See PAR. 3.3.5.2 and Figure 3-2 for special programming considerations.) (See
example, Figure A-1.)

*CLS

Power supply clears status data.

*ESE 60

Power supply enables bits 5, 4, 3 and 2, allowing command error, execution
error, device dependent error and query error to set the Event Status
Summary bit when an STB? query is executed.

*ESE?

Returns 60, (value of the mask) verifying that bits 5, 4, 3 and 2 are enabled.

*ES

Unknown command will set command error (Bit 5).

*ESR?

Returns 32 (bit 5 set), indicating Command Error has occurred since the last
time the register was read.

*IDN?

Power supply returns: KEPCO, BHK-1000-.04 04-20-2004,E123456, V7.0.

*OPC

Allows status bit 0 to be set when pending operations complete

VOLT 250;CURR 3E-2

Sets output voltage to 250V, output current to 30mA

*SAV 33

The present state of the power supply is stored in memory location 33.

*ESR?

Returns 1 (event status register cleared by prior *ESR?)

VOLT 215;CURR 15E-3

Sets output voltage to 215V, output current to 15mA,

OUTP ON

Programmed voltage appears at output terminals.

*OPC?

Puts “1” on output bus when command operations are complete.

*RCL 33

Values in memory location 33 recalled (250V, 30mA).

*RST

Power supply is reset.

*SRE 40

When ESB or QUES bits are set (Table A-3), the Request for Service
bit will be set.

*SRE?

Returns the value of the mask (40).

*STB?

For example, the Power supply responds with 96 (64 + 32) if MSS and the
Event Status Byte (Table A-3) summary bit have been set. The power sup-

ply

returns 00 if no bits have been set.

VOLT 220

Power supply voltage commanded to 220V.

OUTP ON

Programmed voltage appears at output terminals.

VOLT:TRIG 212

Programs power supply voltage to 212V when *TRG received.

INIT:CONT ON

Trigger event is initialized.

*TRG

Power supply reverts to commanded output voltage of 212V.

*TST?

Power supply executes self test and responds with 0 if test completed
successfully, with 1 if test failed.