
5 - 8
XTC/3 Operating Manual
5.2.1.2 Standard Response Packet (XTC/3 to Host Message)
<Length><CCB><Timer><Response Message><Checksum>
Length . . . . . . . . . . . . . . . . . . . . . . . 2 bytes Low / High (not including checksum
or length bytes). Numeric value from 0 to
57,800 (two bytes) representing the number
of characters in the Response Packet
including CCB, Timer, and Response
Message. Length bytes and Checksum are
not included in Length Count. Two byte
values, high and low order, represent this
number. In order of transmission, the low
byte will precede the high byte.
CCB . . . . . . . . . . . . . . . . . . . . . . . . . (Condition Code Byte) = 1 byte binary. MSB
set (hex 80) indicates command packet error.
Timer . . . . . . . . . . . . . . . . . . . . . . . . 1 byte binary, number between 0 and 255,
(hex 00 to FF) increments every quarter
second.
Response Message . . . . . . . . . . . . . <Command Response>...<Command
Response>|<Packet Error Code>
NOTE:
Number of command responses equals number of commands sent.
If CCB MSB is set, (hex 80) indicating a command packet error, the response
message will be a single packet response error.
If the CCB MSB is clear (hex 00), the command packet was parsed and a valid
command packet format was detected.
Command Response = <ACK><response>|<response error code>
NOTE: ACK is the ASCII code with decimal or hex value 6 indicating Positive
Acknowledgement of a command. It is not sent when a Response Error Code
is returned.
Response =
(<integer>|<float>|<string>|<other>......<integer>|<float>|<string>|<other>)
Integer = 4 byte, low to high
Float = 4 byte, ANSII standard, single precision, low to high
String = Null terminated series of ASCII characters