57
Remote Operation
7.6.3 Requesting Switch x current position
x = switch address.
Examples:
• ROUTE:SWITCHx?
• ROUT:SWITx?
• :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, then query
each switch to ensure that the positions are closed. Only after this internal
verification (that happens automatically) the controller will 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 is updated only after the
switches have not only changed its positions, but rather also confirmed its
position. So it is safe to consider some safety margin and expect a response of
“1” or an updated error status after about 70ms per switch.
As an example if 2 switches are commanded, wait about 140ms before issuing
an *OPC? query that will return a “1” or issuing an SYST:ERR? query or issuing
a ROUTE:SWITCHx? query.