8
encapsulated as below format if the item is set to enable:
STX SEQ Data Terminator
CKS ETX
1 Byte
1 Byte
Varies
1 or 2 Byte
1 Byte
1 Byte
Title
Definition
STX
Start of packed data 02H
SEQ Sequential
number
of
packed,
Use 020H to 07FH
DATA Record
data
Terminator Data
terminator
CKS
Checksum, Use 020H to 07FH
ETX
End of packed data 03H
1.5.8. Packed Example:
If record data is "ABCD" with STX/ETX, SEQ and CKS enable,
assume SEQ is ‘0’ (030H) the send out data is format as:
02H + 030H + "ABCD "+ 03AH + 03H
Checksum is calculated by add all data byte in the packed except
STX and ETX. If the result is over 07FH (ASCII extend) subtract
result by 080H, if the result is less than 020H (ASCII control code)
add result by 020H. This will let the checksum keep in ASCII
visible character.
030H + 041H (A) + 042H (B) + 043H (C) + 044H (D) = 013AH
Summary of Contents for Z-1170
Page 1: ......