Datamax 7A300007 Rev. 2 Code 128 Specifications, Description Character set Elements per symbol

Page 18

Code 128 Specifications

Description

Character set

Elements per symbol

Character density Bar width Characters per line

Each symbol starts with Leading Quiet Zone, followed with Start Symbol, Data Symbols, ending with Stop Symbol and Trailing Quiet Zone

Support for full 256 ASCII set among three subsets 6 (3 bars, 3 spaces)

9.1CPI 0.25mm

2 Inch printer: 13 alphanumeric characters or 26 numeric only (maximum) - automatically centered

3 Inch printer: 18 alphanumeric characters or 36 numeric only (maximum) - automatically centered

4 Inch printer: 32 alphanumeric characters or 36 numeric only (maximum) - automatically centered

Code 128 Start Character:

<start character> = {0x87, 0x88, 0x89} determines the character set to be printed

Start Character

 

Characters Sent to Printer

 

 

 

IF

<start character> is 0x87 CODE A

0x020 through 0x03F ASCII

 

 

 

(#32 - #63)

 

 

 

0x040 through 0x07F ASCII

 

 

 

(#64 - #127)

IF

<start character> is 0x88

CODE B

0x020 through 0x07F ASCII

 

 

 

(#32 - #127)

IF

<start character> is 0x89

CODE C

PAIRS 0x030 through 0x039 ASCII

(Each number must be paired with another)

(#48 - #57)

 

 

 

 

Code 128 Data Bytes:

<DATA>

Characters Read by Bar Code Reader

0x020 through 0x03F ASCII (#32 - #63)

0x00 through 0x07F ASCII (#0 - #31)

0x020 through 0x07F ASCII (#32 - #127)

PAIRS 0x030 through 0x039 ASCII (#48 - #57)

The data bytes are defined by which character set is defined. The printer accepts all characters 0x20h - 0x7Fh with the translations defined above.

Also, characters 0x080 - 0x86 may be used as Code 128 control characters:

HEX

DEC

CODE A

CODE B

CODE C

0x080

128

FNC 3

FNC 3

 

0x081

129

FNC 2

FNC 2

 

0x082

130

SHIFT

SHIFT

 

0x083

131

change to C

change to C

 

0x084

132

change to B

FNC 4

change to B

0x085

133

FNC 4

change to A

change to A

0x086

134

FNC 1

FNC 1

FNC 1

FNC 1: Reserved CODE 128 character (used for UCC/EAN128)

FNC 2: Message append (not supported by all bar code readers)

FNC 3: Initialize bar code reader

FNC 4: Extend characters (bar code reader reads character + 128)

For example: 'a' is changed from #97 to #97+128 = #225

Note that it is possible to switch code sets in the middle of the bar code. This is useful with heavily numeric alphanumeric bar codes (see example below).

12

Image 18
Contents Apex & Andes Series Page Copyrights Document Revision History Contents Communications Settings ’Neil Line Print modeDip Switch Settings Datamax-O’Neil Printer Command Language ExPCL IntroductionXON CommunicationsEOT XoffCharacter Size and Line Spacing Select Character Pitch Mode ESC K n CRCharacter Sets Select Character Set Esc F nSelect Character Pitch Mode ESC k n Apex APEX4Andes3 Character Size and Line Spacing Width and Height Selection U Underline Mode on u Underline Mode OFF Emphasized Printing Mode ESC U nUnderline Printing Mode ESC U n Character AttributesReverse Print ESC U n Right to Left and Left to Right Printing ESC F nSelection R Reverse printing on n Reverse printing OFF Backspace Horizontal PositionCarriage ReturnCR Horizontal TabVariable Size Line Feed ESC J n Vertical PositionLine FeedLF Variable Size Reverse Line Feed ESC Q J nForm Feed Bar CodesSet Vertical Tab Height ESC T V n Set Form Feed Length in Dot Lines ESC T F n1 n2Code 39 Specifications Print Bar Code with Human Readable TextCode 128 Specifications Description Character set Elements per symbolHEX DEC Code a Code B Code C UCC/EAN-128 Specifications DescriptionInterleaved 2 of 5 Specifications UPC/EAN/JAN SpecificationsCodabar Specifications Symbol Character densityElements per GS1 DataBar Specifications Character set QR Code ModelsDecimal Page Page Page QR Code Specifications Symbol Character/symbol Error correctionCompaction Mode Description Encoding Capability Security Level # Error-Check Code WordsElement Width Value Length in mil Graphics Barcode Height Multiplier ESC z h nBit Graphics Bit Compressed Graphics Graphic String ComponentFunction Printer Controls Data Processing Enable Buffer ModeDisable Buffer Mode Select Online Mode ESC P $ESC P + Printer Controls Printed Output AdjustPrint Buffer Contents Buffer Mode ESC PCan Printer Controls ResetPrinter Controls Power ESC @Extended Auto Power Down Command Command String Printer ResponsePrinter Status Commands STXSYN Query Printer Model and Hardware Revision Level Magnetic Card Command String DescriptionMagnetic Card Reader Track Position Track2 Track3Magnetic Card Data Output Format Magnetic Card Read Error MessagesError # Interfacing to the Magnetic Card ReaderBlack Mark Sensing Control Commands ESC CESC Q R CR Black Mark Sensing Command Mode Black Mark Sensing Auto ModePrinted Receipt/Label Presenter Positive Adjust ESC Q D + n Enable Back Black Mark Sensor ESC Q b e CRDisable Back Black Mark Sensor ESC Q b d CR Printed Receipt/Label Presenter Positive Adjust ESC Q P nEnter the Page Printing Mode Print Commands ConfigurationPrinted Receipt/Label Presenter Negative Adjust ESC Q D n ESC P PPrint Commands Draw Commands Command Name Draw Rectangle DrawRectangle x1, y1, x2, y2,color,widthType Value Barcode type HeightForm FiestaTM Download Printer Default Setup ESC D SESC S L ESC S Download Self test Message Hardware InformationStart Hardware Information download process Print Hardware Information ESC L gDownload Logo ESC D L CR LFESC D F CR Enable Font DownloadingDownload Fonts Display Tables InformationESC D I CR Disable Font Download ModeDisplay Font Download Current Settings ESC F S m t k f CR ESC FSelect Load Operating Mode ESC F M m CR FlashImportant Font Downloading Notes ESC F B CRExample 1 BBX 08 23 0 Example 2 BBX 08 23 0Bluetooth & WiFi Setup Command Select Pass-Thru Command Mode ESC P U n1 U n2 T t0 t1 t2 CRSelect Emulation ESC E n ’Neil Line Print modeEmulation Emulation LanguageEsc C n Esc a n Can Esc V n1 n2 OFF Communications SettingsDip Switch Settings OFF 2USBSerial Busy Protocol RJ25 Connector PIN # Functional Description Signal NameSerial Communication RS232C XON/XOFF ProtocolUSB Communication USB RS232C Technical SpecificationsDip switch setting OverviewUSB Technical Specifications Bluetooth CommunicationsSoftware Driver Installation TeraTerm ExampleAutomatic Power OFF Mode Bluetooth Interface Power ModificationManual Power OFF Mode SettingsLED Wi-Fi Communication OptionPrinter Status Indicator LED Panel Status Condition FunctionLED # LED Color/ Status Description LED #Action Required Factory Fonts Appendix a Flash Font TablesReplaceable Fonts Tables Replaceable FontsCourier International Font Table Courier PC Line Graphic TableMonospace Font Table Rotated Font Table