FLX-E Operations Manual Rev F
Page 28
Table of Contents
Top
12
Appendix B—FLX-E RS-232 Communications Interface (API) – Rev 2.0
12.1
Command Structure
Each command starts with 0x02. (labeled STX in commands below)
The next byte is a one-byte command code.
The next byte is a one-byte channel number.
0x00 = Master, 0x01 for channel 1, 0x02 for channel 2, etc.
Note that channels 1 through 4
correspond to the 4 local input channels, while channels 5 through 8 correspond to Network
channels 1 through 4.
The next part of the command is the required parameter for the command, if any.
Each command ends with 0x03 (labeled ETX in commands below).
12.2
Response Structure
Each response starts with 0x02. (labeled STX in commands below)
The next byte is a one-byte command code, indicating which command this is a response to.
The next byte is a one-byte channel number.
0x00 = Master, 0x01 for channel 1, 0x02 for channel 2, etc.
The next byte is a one-byte command response that is specific to the command in progress.
Each response ends with 0x03. (labeled ETX in commands below)
12.3
Commands
1.
DECREASE OUTPUT ATTENUATION 3 dB
Command code: 0x01
Description: command used to decrease system output attenuation by 3 dB
Input parameters –
Parameter 1 - 8-bit channel number, 0 = all channels, 1...4 is single channel
Host sent data
Byte 0 = 0x02
start of message character
Byte 1 = 0x01
command code
Byte 2 = 0xXX
channel number
Byte 3 = 0x03
end of message character
FLX-E Response
Byte 0 = 0x02
start of message character
Byte 1 = 0x01
command code
Byte 2 = 0xXX
channel number
Byte 3 = 0xXX
current attenuation level
Byte 4 = 0x03
end of message character
2.
INCREASE OUTPUT ATTENUATION 3 dB
Command code: 0x02
Description: command used to increase system output attenuation by 3 dB
Input parameters –