Datamax A-4310 Programmer's Manual page 199

Class series
Hide thumbs Also See for A-4310:
Table of Contents

Advertisement

Subset A: Includes all of the standard uppercase alphanumeric keyboard characters plus the control
and special characters. To select Code 128 Subset A, place an ASCII A (DEC 65, HEX 41) before the
data to be encoded.
Subset B: Includes all of the standard uppercase alphanumeric keyboard characters plus the
lowercase alphabetic and special characters. To select Code 128 Subset B, place an ASCII B (DEC
66, HEX 42) before the data to be encoded. If no start character is sent for the Code 128 font, Code
128 Subset B will be selected by default.
Subset C: Includes the set of 100 digit pairs from 00 through 99 inclusive, as well as special
characters. Code 128 Subset C is used for double density encoding of numeric data. To select Code
128 Subset C, place an ASCII C (DEC 67, HEX 43) before the data to be encoded. Subset C can only
encode an even number of numeric characters. When the data to be encoded includes an odd number
of numeric characters, the last character causes the printer to automatically generate a 'switch to
subset B' and encode the last character appropriately in subset B.
Special Character Handling: Characters with an ASCII value greater than 95 are considered special
characters. To access these values, a two-character reference table is built into the printer (see below).
For example, to encode FNC2 into a Code 128 Subset A bar code, send the ASCII "&" (DEC 38,
HEX 26) followed by the ASCII "B" (DEC 66, HEX 41).
Sample: ATEST&B123
ASCII
96
97
98
99
100
101
102
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
Class Series Programmer's Manual
Appendix G – Barcode Details
Encoded: TEST<FNC2>123
2 CHAR
&A
&B
&C
&D
&E
&F
&G
Table G-1: Special Character Handling
`
a through z
{
|
}
~
ASCII 127
CODE A
CODE B
FNC3
FNC3
FNC2
FNC2
SHIFT
SHIFT
CODEC
CODEC
CODEB
FNC4
FNC4
CODEA
FNC1
FNC1
Encoded Control Character Result
CODE C
-NA-
-NA-
-NA-
-NA-
CODEB
CODEA
FNC1
NUL
1 - 26
ESC
FS
GS
RS
US
183

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents