Installation manual

Model 8210A-2-5 IM-377
Aeroflex / Weinschel
48
Example 8: Multiple SP4T Switches (Virtual Switch)
This example shows using the Relay Output Card (Model 193-8015) to control two SP4T RF switches (failsafe type).
Typically, a SP4T switch requires 4 control lines to set the state of the switch, and the switch has 5 states: 0 ( all off),
and position 1 thru position 4. The switch operates in a "one-of-N" manner, in that only one control line is used at a
time. This is referred to as DECODED mode The serial number of the Relay Output Card is serial number 110 . We
will assign the name ’RLYBD’ to the Relay Card. We will use four outputs from the Relay Card (Relay Outputs 1-4) to
control the first switch, which we will name SW1, and Relay Outputs 5-8 to control the second switch, which we will
name SW2. Virtual switches will be used so that programming an individual switch will not effect the setting of the
other switches.
a. Assign a name to the Relay Output Card
Send: ASSIGN RLYBD ’193-8015’ 110
b. Create the virtual switch for the first RF switch, SW1. This switch is controlled by Outputs 1-4 of the
Relay Card. The mask value for Outputs 1-4 (bits 0,1,2,3) is 0000 1111 binary (0x0f). Specify decode
mode operation so that only one output asserts at a time.
Send: ASSIGN SWITCH SW1 RLYBD 0x0f DECODE
c. Create the virtual switch for the RF switch SW2. This switch is controlled by Outputs 2-8 of the Relay
Card. The mask value for Outputs 2-8 (bits 4,5,6,7) is 1111 0000 binary (0xf0). Specify decode mode
operation so that only one output asserts at a time.
Send: ASSIGN SWITCH SW2 RLYBD 0xf0 DECODE
d. Save these names in the non-volatile EEPROM memory.
Send: SAVE ASSIGN
SAVE ASSIGN SWITCH
e. Rerun the device assignment to associate the newly defined names with the relay card and
the virtual switches
Send: REASSIGN
The switches may now be programmed using the following commands as examples:
SWITCH SW1 0 ; sets SW1 off
SWITCH SW1 1 ; sets SW1 to position 1
SWITCH SW1 4 ; sets SW1 to position 4
SWITCH SW2 2 ; sets SW2 to position 2
You could directly program the outputs of the Relay Card to control the switches, but you would have to
insure that you keep track of the states of all outputs. For example,
SWITCH RLYBD 0 ; sets SW1 off, SW2 off
SWITCH RLYBD 1 ; sets SW1 position 1, SW2 off
SWITCH RLYBD 2 ; sets SW1 position 2, SW2 off
SWITCH RLYBD 16 ; sets SW1 off, SW2 position 1
SWITCH RLYBD 20 ; sets SW1 position 3, SW2 position 1
Clearly, using the virtual switches are much easier.