39
Remote Operation
6.6.3 Requesting Switch x current position
x = switch address.
Examples:
ROUTE:SWITCHx?
ROUT:SWITx?
:SWITCHx?
:SWITx?
Result:
Returns the current position of switch x.
Possible error codes
10, 11, 12, 13
Timing
The timing to execute a command depends on the length of the command
(in case of concatenated commands). In case of switching commands the
controller will first command each switch to set its new position and then
query each switch to ensure that the positions are closed. Only after this
internal verification (that happens automatically) will the controller respond
with a “1” to the
*OPC?
query and update the error status.
As a rule of thumb electromechanical switches require approximately 10-
15ms to switch position.
But the
*OPC?
query will return a “1” or the error status will be updated only
after the switches have changed and confirmed their positions. So it is safe
to consider some safety margin and expect a response of “1” or an updated
error status after about 50ms per switch.
As an example if 2 switches are commanded, wait about 100ms before
issuing an
*OPC?
query that will re
turn a “1” or issuing an
SYST:ERR?
query or issuing a
ROUTE:SWITCHx?
query.