33
Remote Operation
6.4.2 *OPC?
Syntax
*OPC?
Description
This query returns an ASCII character “1” when all pending operations have
been finished.
Result
ASCII character “1”.
Possible error codes
None
Example 1
*OPC?
Result
“1”
Example 2
:SWIT1 4; SWIT2 4; *OPC?
Result
“0”
Timing
In example 2 the matrix did not have the time to execute the command. Hence
a “0” is returned. A subsequent *OPC? will return a “1” as shown in example 1.
The timing to execute a command depends on the length of the command (in
case of concatenated commands).
As a rule of thumb electromechanical switches require approximately 30ms to
switch position. It is safe to consider some safety margin and increase this
timing to 40-50 ms when developing the control software.