A.8 *opc? — operation complete query, A.9 *opt? — options query, Figure a-1. gpib commands – KEPCO MST 488 Programmer User Manual
Page 45: A-1.), Re a-1, Re a-1.)

MST488-27 013004
A-3
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
*OPT? — OPTIONS QUERY
*OPT?
Syntax:
*OPT?
Returns string determined by power supply model.
Description: Causes the power supply to return an ASCII string which defines the functionality of the power
supply. The functionality is defined as follows:
FIGURE A-1. GPIB COMMANDS
STRING DATA
MEANING
RI1
Indicates unit has the ability to modify the DCL response.
CHN
Indicates multiple channel device is enabled
DS0
Display present, no text capability.
CIIL
Unit supports CIIL commands
*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 command 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?
Controller returns character string: "KEPCO,MST,1,V3.0-3.0"
*OPC
Allows status bit 0 to be set when pending operations complete
VOLT 21;CURR 3
Sets output voltage to 21V, output current to 3A
*ESR
Returns 129 (128 + 1, power on, bit 7 = 1, operation complete, bit 1 = 1)
*ESR
Returns 0 (event status register cleared by prior *ESR?)
VOLT 15;CURR 5;*OPC? Sets output voltage to 15V, output current to 5A, puts “1” on output bus when
command operations are complete.
*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 supply
returns 00 if no bits have been set.
VOLT 25
Power supply voltage commanded to 25V.
VOLT:TRIG 12
Programs power supply voltage to 12V when *TRG received.
INIT
Trigger event is initialized.
*TRG
Power supply reverts to commanded output voltage of 12V.
*TST?
Power supply executes self test and responds with 0 if test completed
successfully, with 1 if test failed.