beautypg.com

Datamax-O'Neil DPL Programmer’s Manual User Manual

Page 202

background image

Appendix G – Bar Code Details

194

Control Codes: By sending these control codes, control characters can be encoded into
a Code 128 Subset A bar code (e.g., ABC{DE will be encoded as ABCDE):

Control Code in the Bar Code Data Stream

Encoded Control Character Result

` NUL

a through z

1 - 26

{ ESC

| FS

} GS

~ RS

ASCII 127

US


The following example prints a Code 128 bar code:

L
D11
1E000000015010001234567890
121100000000100Barcode E
E



F: EAN-13


Valid Characters: 0-9


Length: 13 digits. If the user provides 12 digits, the printer will compute the checksum.
If the user provides the checksum, the printer will check that it matches the expected

checksum. If it does not match, the printer will print all zeros and the expected
checksum. See Appendix O.


Valid bar widths: The fourth character of record is the width of the narrow bar in dots.

All other bars are a ratio of the narrow bar (2 times, 3 times, and 4 times the narrow
bar width).

The following example prints an EAN-13 bar code:

L
D11
1F0000000150100012345678901
121100000000100Barcode F
E

This manual is related to the following products: