beautypg.com

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

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

background image

BHK-MG (OPR) 022014

A-3

FIGURE A-1. GPIB COMMANDS

A.10 *RST — RESET COMMAND

*RST

Syntax:

*RST

Description: Resets power supply to the reset values. See PAR. 3.3.2 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.6.2 and Figure 3-2 for special programming considerations.)

*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: BHK-500-0.4 04-20-2004,E123456, V7.0.

LIST:IND 21

Selects memory location 21.

LIST:CURR 2.35E-1

Sets output current value of memory location 21 to 0.235A.

LIST:VOLT 400

Sets output voltage value of memory location 21 to 400V.

*OPC

Allows status bit 0 to be set when pending operations complete

*ESR

Returns 129 (128 + 1, power on, bit 7 = 1, operation complete, bit 1 = 1)

*ESR?

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

VOLT 415;CURR 1.5E-1

Sets output voltage to 415V, output current to 0.15A,

*OPC?

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

*RCL 21

Values in memory location 21 recalled (400V, 0.235A).

*RST

Power supply reset to power on default state.

*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 250

Power supply voltage commanded to 250V.

VOLT:TRIG 312

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

INIT:CONT ON

Trigger event is initialized.

*TRG

Power supply reverts to commanded output voltage of 312V.

*TST?

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