Manual
A-4
BIT 232 022800
FIGURE A-6. *OPC — OPERATION COMPLETE COMMAND
FIGURE A-7. *OPC? — OPERATION COMPLETE QUERY
Syntax:
*OPC
Function
: Causes power supply to set status bit 0 (Operation Complete) when pending operations are complete
Description:
This command sets Standard Event Status Register bit 0 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 com-
pleted. (1 = set = enable function, 0 = reset = disable function)
Example:
Controller sends command(s), then sends *OPC
If controller then sends *ESR?, the power supply responds with either a “0” (if the power supply is
busy executing the programmed commands), or a “1” (if the previously programmed commands are
complete).
STANDARD EVENT STATUS REGISTER BITS
CONDITION NU NU CME EXE DDE QUE NU OPC
BIT 76543210
VALUE 128 64 32 16 8 4 2 1
*OPC
NU (Not Used)
CME Command Error
EXE Execution Error
DDE Device Dependent Error
QUE Query Error
OPC Operation Complete
Syntax:
*OPC?
Function
: Indicates when pending operations have been completed.
Response:
<1>
Description:
When all pending operations are complete (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 program can monitor the bus for data until it receives the “1” from
the power supply Output Queue.
Example:
Controller sends command(s), then sends *OPC?
Controller waits until power supply responds with “1” on bus, indicating previous commands are com-
plete, then proceeds to execute subsequent commands.
*OPC?