![](/images/new-backgrounds/1143781/14378139x1.webp)
Addressing the Switch
By specifying a path destination (a COM number) and a source (a channel
number), | a channel is connected to a COM terminal. The format for |
| ||||||
addressing the switch is |
|
|
|
|
|
| ||
where < |
| >ROUTe:]PATH[:COMMoROUTe:]PATH[:COMMon]is a | ||||||
and < | > is a | |||||||
0s can be omitted.) See the |
| command in |
| |||||
Chapter 3 for valid < | > and < | > numbers. |
|
|
| |||
You can use | comm | chanel |
|
| to indicate | |||
|
|
|
|
| ||||
whether | path is closed (returns a 1) or is open (returns | 0). You can | ||||||
use the PATH statement to create multiple |
| |||||||
multiplexers, |
| |||||||
example, the following statements each connect a |
| terminal to |
| |||||
channel. |
|
|
|
|
|
|
|
|
PATH COMM 00,001 |
| !Connects | 00 to Channel 001, | |||||
|
|
|
| !COM 00 is common to channels 000, | ||||
|
|
|
| !001, 002; forming | ||||
PATH COMM 04,020 |
| !Connects | 04 to Channel 020, | |||||
PATH COMMcomm |
|
| !COM 04 is common to channels 020 | |||||
|
| !through 042; forming | ||||||
05,002 |
| !Connects | 05 to Channel 002, | |||||
channel |
|
| !COM 05 is common to channels 000 | |||||
|
|
|
| !through 052 forming | ||||
Using invalid numbers for |
| and | will generate an error. | |||||
|
|
| <comm>!open.<channel> |
|
|
| the | |
When switching[a signal path, only the ]?relays<commnecessary>,<channelto complete> |
path are switched. All other relays remain in their current state. This prevents unexpected switching results. However, when closing one signal path, another signal path might open. For example:
PATH COMM 01,010 | !Closes | signal path from COM 01 |
| !to Channel 010. | |
PATH COMM? 01,010 | !Returns "1" indicating the path is | |
| !closed. |
|
PATH COMM 02,002 | !Closes | signal path from COM 02 to |
| !Channel 002 and changes the state | |
| !of the cascade relay, opening the | |
| !prior signal path. | |
PATH COMM? 01,010 | !Returns "0" indicating the path is |
20 Programming the RF Switch | Chapter 2 |