Code 11, also known as USD-8, was developed
as a high-density numeric-only symbology. It is used primarily in
labeling telecommunications equipment. The symbology is discrete
and is able to encode the numbers 0 through 9, the dash symbol (-),
and start/stop characters.
Encoding
Code 11 Each character is encoded with three bars and two
spaces. Of these five elements, there may be two wide and three
narrow, or one wide and four narrow. Wide elements represent a
binary 1 while narrow elements represent a binary 0.
Check Sum
Two check digits, named C and K, are used. Normally, if the
length of the message to encoded is less than 10 characters only
one checksum ('C') is used, whereas both 'C' and 'K' are used if
the message is 10 characters or longer. The check digits are the
result of a Modulo 11 division of the sum of the products of each
digit times a weight factor. The weights for the C check
digit range from 1 to 10 while the weights for the K check digit
range from 1 to 9. Weights start at the right end of the data
and increment towards the left. The dash character has a
value of 10 for purposes of check digit calculation.
Code 11 Character Set
The numbers in the table correspond to the width of the element. A
0 means the element is narrow, and a 1 means the element is
wide.
ASCII
CHARACTER
|
ENCODING(Bar, Space, Bar, Space,
Bar)
|
0
|
00001
|
1
|
10001
|
2
|
01001
|
3
|
11000
|
4
|
00101
|
5
|
10100
|
6
|
01100
|
7
|
00011
|
8
|
10010
|
9
|
10000
|
-
|
00100
|
Start/Stop
|
00110
|
Since the first and last element of every character is always a
bar, a narrow space is appended at the end of each character to
separate the last bar of a character from the first bar of the
character that follows.
The complete barcode is concatenating a start character + data +
C + K + stop character.
Code 11 examples by using ezBarcodeComponent
[C#]
using ezBarcodeComponent.Winform;
//create barcode class
Barcode barcode1 = new Barcode();
//Specify the CodeData to encode
barcode1.CodeData = "0123456789";
//Set the Symbology to Code11
barcode1.Symbology = Symbologies.Code11;
barcode1.CheckCharacter= true;
barcode1.CheckCharacterInText = true;
//Save the image
barcode1.SaveImageAs("code11.gif", System.Drawing.Imaging.ImageFormat.Gif);
[Vb.net]
'create barcode class
Dim barcode1 As New Barcode
'Specify the CodeData to encode
barcode1.CodeData = "0123456789"
'Set the Symbology to Code11
barcode1.Symbology = Symbologies.Code11
barcode1.CheckCharacter= True
barcode1.CheckCharacterInText = True
'Save the image
barcode1.SaveImageAs("code11.gif", System.Drawing.Imaging.ImageFormat.Gif)
Example of Code 11 barcode images. The lase digit 0 is
the check sum digit.