3.4 Commands
53
3.4.7 Interface Commands
(continued)
Operation Complete
*OPC(?)
The set form,
*OPC
, will set the OPC bit in the Standard Event Status
register; the query form,
*OPC?
, will return the value
1
.
The
*OPC?
query response will not be sent by the SR542 until all pre‑
ceding commands have been executed and completed. Equivalently, the
*OPC
command will not set the OPC bit until all preceding commands
have been executed and completed.
»
*OPC?
Example:
1
Most of the SR542 remote commands are processed and executed with‑
out delay, so the command sequence
⟨
RCMD
⟩
; *OPC?
will return
1
immediately for a general remote command
⟨
RCMD
⟩
. The primary ex‑
ception to this is following a motor shutdown command,
MOTR OFF
,
which initiates a deceleration of the motor. The deceleration can last
several seconds depending on the initial speed of the motor. Therefore,
the following command sequence can be used to ensure the motor has
come to a complete stop:
»
MOTR OFF; *OPC?
Example:
1
Cancel Pending
*OPC(?)
Set/Query
COPC
Cancels a currently pending operation complete set or query (
*OPC(?)
).
SR542 Precision Optical Chopper