Skip to content

Code 128

Terry Burton edited this page Mar 26, 2014 · 24 revisions

#summary Reference Code 128

=Code 128=

Code 128 is a arbitrarily long, high density barcode symbology that can be used to encode 128 character ASCII. Extended ASCII characters can be encoded using the FNC4 shift character.

Also known as: USD-6, USS-128, Code 128A, Code 128B, Code 128C.

Variants:

  • [Ean128 GS1-128] is a variant of Code 128 that should be used when encoding data that is in [Gs1AiFormat GS1 Application Identifier standard format].
  • [Hibc HIBC Code 128] is a variant of Code 128 that should be used when encoding HIBC formatted data.

Standards: ISO/IEC 15417, ANSI/AIM BC4-1999 ISS, BS EN 799.

===Data and Options===

  • The input can consist of any ASCII data.
  • When the parse option is specified, any instances of ^NNN in the data field are replaced with their equivalent ASCII value, useful for specifying unprintable characters, e.g. ^029 for GS, etc.
  • When the parsefnc option is specified, non-data function characters can be specified by ^FNC1 through ^FNC4.
  • When the parsefnc option is specified, the special pseudo characters ^LNKA and ^LNKC at the end of the symbol indicate that a GS1-128 symbol includes a CC-A/B or CC-C [Gs1Composite GS1 composite] 2D component.
  • The raw option denotes that the data field is providing the input as a pre-encoded codewords in ^NNN format, suitable for direct low-level encoding.
  • The manditory check digit is calculated automatically.

===Example===

{{{ 0 0 moveto (Count0123456789!) (includetext) /code128 /uk.co.terryburton.bwipp findresource exec }}}

http://wiki.postscriptbarcode.googlecode.com/git/images/code128-1.png


Symbologies Reference

Point of Sale

GS1 DataBar

Supply Chain

Two-dimensional Symbols

One-dimensional Symbols

Postal Symbols

Pharmaceutical Symbols

Less-used Symbols

GS1 Composite Symbols

Raw Symbols

Partial Symbols

Clone this wiki locally