38
Remote Operation
6.6.2 Setting Switch x to Position n
x = switch address.
n = position to set and must be within the switches parameter.
(Example: SP6T valid positions are 0 thru 6 only).
Examples:
ROUTE:SWITCHx n
ROUT:SWITCHx n
ROUTE:SWITx n
ROUT:SWITx n
:SWITCHx n
:SWITx n
ROUTE:SWITCHx:VALUE n
ROUTE:SWITCHx:VAL n
:SWITx:VAL n
Possible error codes
5, 10, 12, 13
Factory default value
N/A
Power on behavior
Keeps last value
*RST effect
SP6T switch: will open all positions
SPDT switch: will close position 1
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 their positions, but rather also
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 return a “1” or issuing an
SYST:ERR?
query or issuing a
ROUTE:SWITCHx?
query.