Tact Audio TCS MKII User Manual

TCS MKII RS 232 Control Codes
TCS MKII RS232 Control Codes
TCS MKII utilizes RS232 communication channel to communicate with PC and other
Tact units. TCS MKII RS232 port is set to 57600 baud rate, 8 data bits, 1 stop bit and no
parity.
Byte #0 = N - number of bytes in the packet Byte #1 = A0 - Least significant address byte Byte #2 = A1 - Most significant address byte Byte #3 = CC - Command code byte Byte #4 = D0 - First data byte Byte #5 = D1 – Second data byte
…. Byte #(N-2) = Last data byte Byte #(N-1) = Check sum byte
All bytes are copied into COMM_TxBuffer() and then transmitted. Last byte contains packet check sum. Check sum is computed in the following way:
TCS can recognize two different addresses:
Device Address
Global Address
Check_Sum = 0 For i = 0 To n - 2 Check_Sum = Check_Sum + COMM_TxBuffer(i) Next Check_Sum = Check_Sum & &HFF
Device address is composed of 0x8000 and the actual device address assigned to each unit connected to the control bus.
Example: If address 0x1 is assigned to TCS, then
A0 = 0x01 A1 = 0x80
Device Address should not equal Global Address.
TCS Global address is set to 0x9000. This address is used to reprogram TCS firmware. It is not recommended for use in TCS normal operation.
A0 = 0x90 A1 = 0x00
Tact Audio Page 1 12/2/2003
TCS MKII RS 232 Control Codes
Where ‘&’ indicates logical bit wise AND operation.
All Tact components connected to the PC will receive transmitted packed. The only component that will respond to the received message is the one that matches its internal address with the received one. All others will ignore entire packet. Addressed component could respond by sending a packet of its own to acknowledge received packet, or send back requested information, or not to respond at all depending on the received command code.
The following is a description of RS232 codes used to control basic functions of TCS MKII preamplifier. These codes can be supplied to custom installers to link Tact products to RS232 remote controls.
In the command description code it is assumed that TCS MKII device address as displayed on the TSC MKII front panel is set to 1.
Tact Audio Page 2 12/2/2003
TCS MKII RS 232 Control Codes
Communication Test CC = 1
This command is used to test RS232 communication channel. It can be used to detect if Tact component with specified address is connected to PC.
Transmitted packet:
Byte# Value Description
0 1 2 3 4
Received packet:
Byte# Value Description
0 1
If received packet is not equal to above description communication error has occurred.
Note: Device address is calculated as:
Note: 0x80 is standard ‘C’ language notation for a hex number.
5 Packet size 1 A0 – Least significant address byte
0x80 A1 – Most significant address byte
1 CC – command code
135 Check sum
2 Packet size
0xaa Acknowledgement byte
Device Address = 0x8000 + 256*A1 + A0
256*A1 + A0 < 4096
Tact Audio Page 3 12/2/2003
TCS MKII RS 232 Control Codes
Power Status CC = 2
This command is used to check if TCS MKII is turned on or it is in the standby mode.
Transmitted packet:
Byte# Value Description
0 1 2 3 4
Received packet:
Byte# Value Description
0 1 2
If received packet is not equal to above description communication error has occurred.
5 Packet size 1 A0
0x80 A1
2 CC – command code
136 Check sum
3 Packet size
0xaa Acknowledgement byte
Power Power = 0, TCS MKII is in standby mode
Power = 1, TCS MKII is turned on
Tact Audio Page 4 12/2/2003
TCS MKII RS 232 Control Codes
Power On CC = 100
This command is used to turn TCS MKII on.
Transmitted packet:
Byte# Value Description
0 1 2 3 4
Received packet:
Byte# Value Description
0 1
If received packet is not equal to above description communication error has occurred.
Note: When in standby TCS MKII is placed in low power consumption mode. To
disconnect TCS MKII power use main power switch located on the back of the unit.
Note: The acknowledgement packet is received with a delay that depends on TCS MKII
front panel AMP menu setup. If any of the AMP options is set to EN the acknowledgement packet delay time is approximately 13 seconds.
If all AMP options are set to DIS the acknowledgement packet delay time is approximately 5 seconds.
5 Packet size 1 A0
0x80 A1
100 CC – command code 234 Check sum
2 Packet size
0xaa Acknowledgement byte
Tact Audio Page 5 12/2/2003
TCS MKII RS 232 Control Codes
Power OFF CC = 101
This command is used to put TCS MKII into standby mode.
Transmitted packet:
Byte# Value Description
0 1 2 3 4
Received packet:
Byte# Value Description
0 1
If received packet is not equal to above description communication error has occurred.
Note: When in standby TCS MKII is placed in low power consumption mode. To
disconnect TCS MKII power use main power switch located on the back of the unit.
Note: The acknowledgement packet is received with a delay that depends on TCS MKII
front panel AMP menu setup. If any of the AMP options is set to EN the acknowledgement packet delay time is approximately 10 seconds.
If all AMP options are set to DIS the acknowledgement packet delay time is approximately 3 seconds.
5 Packet size 1 A0
0x80 A1
101 CC – command code 235 Check sum
2 Packet size
0xaa Acknowledgement byte
Tact Audio Page 6 12/2/2003
TCS MKII RS 232 Control Codes
Power Toggle CC = 102
This command functions in the following way:
It TCS MKII is in standby mode it will turn it on
If TCS MKII is on it will place it into standby mode.
Transmitted packet:
Byte# Value Description
0 1 2 3 4
Received packet:
Byte# Value Description
0 1
If received packet is not equal to above description communication error has occurred.
Note: When in standby TCS MKII is placed in low power consumption mode. To
disconnect TCS MKII power use main power switch located on the back of the unit.
Note: The acknowledgement packet is received with a delay that depends on TCS MKII
front panel AMP menu setup. If any of the AMP options is set to EN the acknowledgement packet delay time is approximately 10 seconds when TCS MKII is placed into standby mode and 13 seconds when TCS MKII is turned on.
If all AMP options are set to DIS the acknowledgement packet delay time is approximately 3 seconds when TCS MKII is placed into standby mode and 5 seconds when TCS MKII is turned on.
5 Packet size 1 A0
0x80 A1
102 CC – command code 236 Check sum
2 Packet size
0xaa Acknowledgement byte
Tact Audio Page 7 12/2/2003
TCS MKII RS 232 Control Codes
Select Digital Input CC = 103
This command is used to select digital input.
Transmitted packet:
Byte# Value Description
0 1 2 3 4 5
Received packet:
Byte# Value Description
0 1
If received packet is not equal to above description communication error has occurred.
Note: Check sum = 6 + 1 + 128 + 103 + Input
Input Check sum
0 238 1 239 2 240 3 241 4 242 5 243 6 244 7 245 8 246
6 Packet size 1 A0
0x80 A1
103 CC – command code
Input 0,1,2,3,4,5,6,7,8
xx Check sum
2 Packet size
0xaa Acknowledgement byte
Tact Audio Page 8 12/2/2003
Loading...
+ 18 hidden pages