Code 128 Auto Encoding; Figure 10 Automatic Encoding Example; Figure 11 Code 128 Fnc Encoding - TransAct Epic 3000 Programmer's Manual

Table of Contents

Advertisement

Epic 3000 Programmer's Guide

Code 128 Auto Encoding

To have the printer selected code set and automatically generate an optimal barcode,
the value of Code should be the length.
Function
ASCII
Hexadecimal 1BH 62H <2> <Length>{information}
Decimal
If the first character <Length> is from 1 to 31, the printer will automatically select Code
A, B, or C depending on the data present. If the data is all numeric, the data can be
printed as pairs. This effectively doubles the amount of data that can be printed. The
check digit is generated and printed by the printer. In this mode the exact data sent to
the printer is encoded. There is no offset, function code, or shift code requirements.
For example the following is printed in a mixture of code A and C encoding:
Note: If the first character is greater than <31> and not <135> through
<137>, the printer will discard the first character and print the data as
defined in Code A.
In automatic mode, any ASCII data from 0 to 127 could be entered. Values less than 32
will be encoded as Code stick A NUL- US, values from 96 through 127 will be encoded
from Code stick B. Where ever possible numeric pairs will be encoded from Code stick
C.
FNC1, FNC2, FNC3, and FNC4 may be encoded based on the table below. All other
values will result in a barcode data error and the barcode will not be generated.
128 Code
FNC3
FNC2
Not Valid
FNC4
FNC1
100-14362
Code 128 Automatic Encoding
[ESC] b <2> <Length>{information}
<27> <98> <2> <Length>{information}
[ESC] b <2> <10>NUM 123456

Figure 10 Automatic Encoding Example

Value in
Value in
Decimal
128
129
130
131
132
133
134

Figure 11 Code 128 FNC encoding

Rev A
Hex
80
81
82
83
84
85
86
Programming Codes
Page 99

Advertisement

Table of Contents
loading

Table of Contents