Datamax-ONeil A-Class Programmer's Manual page 222

Class series ii
Table of Contents

Advertisement

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 ABC<ESC>DE):
Control Code in the Bar Code Data Stream
The following example prints a Code 128 bar code:
<STX>L
D11<CR>
1E000000015010001234567890<CR>
121100000000100Barcode E<CR>
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:
<STX>L
D11<CR>
1F0000000150100012345678901<CR>
121100000000100Barcode F<CR>
E
208
Appendix G – Bar Code Details
`
a through z
{
|
}
~
ASCII 127
Encoded Control Character Result
NUL
1 - 26
ESC
FS
GS
RS
US
Class Series 2 Programmer's Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents