2 using the *opc? query, Remote interface reference – American Magnetics 05100PS-430-601 Integrated Power Supply System User Manual
Page 125
Rev. 5
107
Remote Interface Reference
Command Handshaking
should many commands be sent to the Model 430 Programmer in rapid
succession.
An example of a sequence of commands using the
*OPC
command to
handshake is the following:
CONF:CURR:TARG 50.0;
CONF:RAMP:RATE:CURR 1, 0.1, 80.0;
CONF:VOLT:LIM 5.0;
*OPC;
The above example sets the target current to 50.0 A, the ramp rate to 0.1 A/s,
the Voltage Limit to 5.0 V, and sends as the fourth command the *OPC
command for determining when execution all of the commands (including
*OPC) is completed. The
*OPC?
query is used to query completion of all
three commands.
4.2.4.2
Using the
*OPC?
Query
The
*OPC?
query is similar to the
*OPC
command, but instead of setting the
“Operation Complete” bit of the Standard Event register, the
*OPC?
query
returns a “1” (plus termination characters) to the appropriate output buffer
when executed. Using
*OPC?
is a simple solution for determining completed
command execution. It is also unambiguous during simultaneous serial and
Ethernet operation since the result is returned directly to the requesting
communication interface.