![API 8512 Series Скачать руководство пользователя страница 17](http://html.mh-extra.com/html/api/8512-series/8512-series_operation-and-installation-manual_2953475017.webp)
MANUAL IM635
Command Operation
Page 17
6.
Command Operation
6.1.
Application Specific Commands
RFSW
Function:
Sets the [select]ed RF Switch to the chosen [setting].
Syntax:
RFSW
select setting
Argument(s):
Select
Switch number, 1-n or ALL
Setting
Switch position, must be valid for selected switch
Remarks:
This command sets the specified RF switch(s) to the position provided by setting. For most
switches setting is a single numeric value that specifies the desired switch position, and may
include 0 if the switch supports an OFF setting. Value position settings for a switch can be
obtained using RFCONFIG? GETCAP RFSW to get a list of the settings. Since some types of
switches such as an RF Transfer Switch are typically documented as having an A or a B position,
setting may also be a single letter where A=1, B=2, C=3, etc. Note however, that the reported
position using the RFSW? query will always be the numeric value. For switches that support
position indicators, after setting the switch the position indicators will automatically be read and
verified against the requested setting. If the values do not match then an Execution error will be
generated
.
Return Value: None
Example(s):
RFSW 1 2
// Sets RF Switch 1 to position 2
RFSW ALL 1 // Sets all switches to position 1
RFSW [select]
Function:
Queries the current setting of [select]ed RF Switch.
Syntax:
RFSW
select
Argument(s):
Select
Switch number, 1-n or ALL
Remarks:
This command returns the current setting of the selected switch. For switches that support
position indicators, this command will read the indicators and attempt to match them to a valid
position setting. If a match cannot be found, the value 255 is returned. For switches without
indicators, the returned value is the last specified position.
Returns:
Switch position
Example(s):
RFSW 1 1
// Sets RF Switch 1 to position1
RFSW? 1
//Queries RF Switch 1 and returns “1”
6.2.
General RF configuration and Status Commands
SHOW STAT
Function:
displays current settings
Syntax:
SHOW STAT
Argument(s): none
Remarks:
This command displays the current settings of the RF hardware. The list will change to reflect the
type and number of devices installed in the system.
Example(s):
>show stat
ATTN 1: 63
ATTN 2: 63
ATTN 3: 63
ATTN 4: 63