4 - 11
PN 074-550-P1C
SQC-310 Operating Manual
4.2.2 Response Packet (SQC-310 to Host Message)
<Sync character><Length character><Response Status character><Response
Message><CRC1><CRC2>
Sync. . . . . . . . . . . . . . . . . . . . . . . . . The Sync character is an exclamation point
(!). Any time this character is received, the
communications for that packet is reset. The
Sync character is not included in the CRC
calculation.
Length . . . . . . . . . . . . . . . . . . . . . . . This is the decimal number of characters
in the packet (excluding the Sync, Length,
and CRC characters). The response Length
character has a decimal 35 added to it to
differentiate a response from a command.
Response Status . . . . . . . . . . . . . . This character tells the status of the sent
message and is coded as displayed in Table
4-1.
Response Message . . . . . . . . . . . . Command Response as displayed in Table
4-1.
CRC . . . . . . . . . . . . . . . . . . . . . . . . . Cyclic Redundancy Check (CRC) is a
method to verify there are no errors in the
packet (see section 4.2.3 for detailed
instructions to calculate the CRC and section
4.4 on page 4-34 for code examples).
NOTE: If CRC checking in the application is not necessary, send two Null
characters (CHR$0) for the CRC. SQC-310 will ignore the CRC. SQC-310
will still return a CRC in its response, but it can be ignored.
Table 4-1 Response status
Response Status Meaning
A Command understood, normal response
B Command understood, but SQC-310 reset
C Invalid command
D Problem with data in command
E SQC-310 in wrong mode for this command