Installation manual
Model 8210A-2-5 IM-377
Aeroflex / Weinschel
40
7-21. Step Attenuator Protocol Commands
DEVICE ATTN Function: Sets the attenuation of a device
Syntax: DEVICE ATTN addr atten
Argument(s): addr integer address
atten unit attenuation, scaled to 0.01 (ie INT(A*100))
Remarks: This function is used to set the attenuation of a device. The atten parameter
is an integer representation of the desired attenuation, scaled by a factor of 100 (ie the
protocol supports a resolution of 0.01dB).
Return Value: none
Example(s): DEVICE ATTN 4 1000
DEVICE? ATTN Function: Reads the attenuation of a device
Syntax: DEVICE? ATTN addr
Argument(s): addr integer address
Remarks: This function is used to read the attenuation of a device. The return value is
an integer representation of the attenuation scaled by a factor of 100 (ie the protocol supports
a resolution of 0.01dB).
Return Value: atten unit attenuation, scaled to 0.01 (ie INT(A*100))
Example(s): DEVICE? ATTN 4 returns ’1000’
DEVICE PROG Function: Sets the program word (cell bit pattern) of a device
Syntax: DEVICE PROG addr setting
Argument(s): addr integer address setting byte cell setting
Remarks: This function is used to program the attenuation cells with the bit pattern
specified.
Return Value: none
Example(s): DEVICE PROG 4 0xAA
DEVICE? PROG Function: Reads the program word (cell bit pattern) of a device
Syntax: DEVICE? PROG addr
Argument(s): addr integer address setting byte cell setting
Remarks: This function is used to read the attenuation cells bit pattern.
Return Value: setting byte cell setting
Example(s): DEVICE? PROG 4 returns ’170’
DEVICE RELAY Function: Sets the specified relay on/off
Syntax: DEVICE RELAY addr relay setting
Argument(s): addr integer address
relay byte relay # (1-8)
setting byte 1=on, 0=off
Remarks: This function is used to program the specified attenuator relay cell.
Return Value: none
Example(s): DEVICE RELAY 4 7 1
DEVICE? RELAY Function: Reads the specified relay setting
Syntax: DEVICE? RELAY addr relay
Argument(s): addr integ
er address
relay byte relay # (1-8)
setting byte 1=on, 0=off
Remarks: This function is used to read the specified attenuator relay cell.
Return Value: setting byte 1=on, 0=off
Example(s): DEVICE? RELAY 4 7 returns ’1’
DEVICE? READ CONFIG Function: Reads the entire configuration structure of a device’s internal EEPROM
Syntax: DEVICE? READ CONFIG addr
Argument(s): addr integer address Remarks: This function is used to read the setting of
the device’s configuration EEPROM.
Return Value: StepAttnConfig structure. refer to the SmartStep Programmers Reference for
a discussion.
Example(s): DEVICE? READ CONFIG 4