Appendix a: intel hex file format – Datamax-O'Neil Labelpoint Programmer’s Manual User Manual
Page 68

PROGRAMMER’S REFERENCE MANUAL
Appendix A: Intelhex Records.
Page 64
Appendix A: Intel Hex file format
Binary data (e. g. logos, and program code) is sent to the thermal printer in Intel hex format.
This is an ASCII data format widely used for transferring binary data between computers and
to PROM programming devices. There is also a binary mode available of Intel hex format. See
Appendix B
for more information.
This description describes the Intel hex format as used by thermal printers.
Data Format
Intel hex data consists of lines of ASCII hex characters. Each line starts with colon (':') and
ends with a checksum, followed by a carriage return character.
Each byte of data is transmitted as two hex characters (0 ... 9, A ... F) with the high-order
character transmitted first.
The record format is:
:ll aaaa tt dd dd ... dd xx
(Spaces are shown for clarity only.)
where:
:
- record start character
Ll
- number of data bytes in the record
Aaaa
- 16-bit load address
Tt
- record type number
Dd
- data characters, 2 characters per byte of data
Xx
- 8-bit checksum, defined so that ll+aa+aa+tt+dd+dd+...+dd+xx = 0
The record type number defines the type of record. The following record types are used in
the printer.
Segment record
The segment record sets the segment value of the load address.
Ll =
02
aaaa
= 0000 (not used)
Tt =
02
data
= segment load address (4 hex digits)
Data record
Ll
= number of data bytes (max 20 = 32 decimal)
aaaa
= load address
Tt =
00
Dd
= binary data, 2 characters per byte