<CODE128>

Specifies the character set to use when coding a Code 128 barcode. Code 128 barcodes can use one of three character sets. You can also use shift characters and code characters to switch between character sets.

  • Shift Character—The shift character is used to temporarily switch from character set A to B, or from B to A. The change applies only to the character following the shift character. All subsequent characters are in the original Character Set (A or B) depending on which was defined before the shift.

    The shift character is: x'12'.

  • Code Characters—Code characters switch from one character set to another, staying in the new character set until the end of the barcode or until the next code character. For example while in character set A, sending the code character “Code B” will switch the reader into character set B mode. The reader will then remain in character set B mode until the end of the barcode or until the next code character.

    The code characters are:

    x'13' changes to character set C

    x'14' changes to character set B

    x'15' changes to character set A

  • FNC1 Character—The FNC1 character is used for application specific purposes.

    The FNC1 character is: x'16'.

Tag Group

Add tag group

Syntax

<CODE128> type

Parameter Description Default
type The character set to use when coding a Code 128 barcode. One of the following: B
A Character set A. This character set allows you to use upper-case letters, numbers, and punctuation. Lower-case letters are used to indicate special functions like tabs.
B Character set B. This character set allows you to use any character from ASCII 32 to ASCII 126. You can use upper-case and lower-case letters, numbers, and punctuation.
C Character set C. This character set encodes only numbers. The numbers are combined into groups of two, so a barcode using C will be approximately half as long as one using A or B.