beautypg.com

A.5 *esr? — event status register query, A.6 *idn? — identification query, A.7 *opc — operation complete command – KEPCO BHK-MG 200W (Full Rack) Series User Manual

Page 128: A.8 *opc? — operation complete query, A.9 *rcl — recall command, A.7, a.8

background image

A-2

BHK-MG (OPR) 022014

A.5

*ESR? — EVENT STATUS REGISTER QUERY

*ESR?

Syntax:

*ESR?
Return value: (Value = contents of Event Status register as defined in Table A-2.)

Description: Reads the Standard Event Status register, clearing the register at the same time. The Standard

Event Status register bit configuration is defined in Table A-2 (1 = set, 0 = reset). The error bits listed
in Table A-2 are also related to error codes produced during parsing of messages and to errors in the
power supply (see PAR. B.81). Related Commands: *CLS, *ESE, *OPC. (See example, Figure A-1.)

A.6

*IDN? — IDENTIFICATION QUERY

*IDN?

Syntax:

*IDN?
Return value: Character string

Description: Identifies the instrument. This query requests identification. The power supply returns a string which

contains the manufacturer name, the model, the serial number and the firmware level. The character
string contains the following fields: , -- Date>,, where: = KEPCO, = BHK,
is Eo

MAX

, is Io

MAX

) is up to 10 characters entered during

calibration (recommended is month, day year: MM-DD-YYYY), E123456 is typical,
=Vn.m (n.m revision, e.g, 7.0) (See example, Figure A-1.)

A.7

*OPC — OPERATION COMPLETE COMMAND

*OPC

Syntax:

*OPC

Description: Causes power supply to set status bit 0 (Operation Complete) when pending operations are

complete This command sets Standard Event Status Register bit 0 (see Table A-2) to “1” when all
previous commands have been executed and changes in output level have been completed. This
command does not prevent processing of subsequent commands, but bit 0 will not be set until all
pending operations are completed. (1 = set = enable function, 0 = reset = disable function). (See
example, Figure A-1.) As an example, the controller sends command(s), then sends *OPC. If control-
ler then sends *ESR?, the power supply responds with either a “0” (if the power supply is busy execut-
ing the programmed commands), or a “1” (if the previously programmed commands are complete).
(See example, Figure A-1.)

A.8

*OPC? — OPERATION COMPLETE QUERY

*OPC?

Syntax:

*OPC?
Return value: <1> (ASCII) placed in output queue when power supply has completed operation.

Description: Indicates when pending operations have been completed.When all pending operations are com-

plete (all previous commands have been executed and changes in output level have been completed)
a “1” is placed in the Output Queue. Subsequent commands are inhibited until the pending operations
are completed. *OPC? is intended to be used at the end of a command line so that the application pro-
gram can monitor the bus for data until it receives the “1” from the power supply Output Queue. (See
example, Figure A-1.)

A.9

*RCL — RECALL COMMAND

*RCL

Syntax:

*RCL (1 to 40)

Description: Restores power supply to previously defined levels of output voltage, output current, overvolt-

age protection, and overcurrent protection.This command selects one of the 40 power supply
memory locations, each of which stores values for output current, output voltage, overvoltage protec-
tion, and overcurrent protection. The following parameters are affected by *RCL: CURR[:LEV][:IMM]
VOLT[:LEV][:IMM] CURR:PROT[:LEV] VOLT:PROT[:LEV]. (See example, Figure A-1.)