0% found this document useful (0 votes)
33 views18 pages

d240f Barcode Ocr Font Settings en 1-1-0

Uploaded by

ionutkok
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views18 pages

d240f Barcode Ocr Font Settings en 1-1-0

Uploaded by

ionutkok
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

Dynamic balance

www.develop.eu

Barcode/OCR Font Settings

D 240F
Table of contents

1 User's Guide Barcode/OCR Font Settings


1.1 Barcode/OCR fonts......................................................................................................................... 1-3
1.1.1 Types of barcode/OCR fonts ............................................................................................................. 1-3
1.1.2 Barcode/OCR font calling and available parameters......................................................................... 1-4
1.2 Character code list ......................................................................................................................... 1-5
1.2.1 UPC/EAN ........................................................................................................................................... 1-5
1.2.2 Interleave25........................................................................................................................................ 1-6
1.2.3 Code39 .............................................................................................................................................. 1-7
1.2.4 Codabar (NW-7) ................................................................................................................................. 1-7
1.2.5 Code128 ............................................................................................................................................ 1-8
1.2.6 Postnet (ZIP) .................................................................................................................................... 1-10
1.2.7 MSI Plessy ....................................................................................................................................... 1-11
1.3 Sample of barcode/OCR font use ............................................................................................... 1-12
1.4 Precautions for use....................................................................................................................... 1-14
1.4.1 Important.......................................................................................................................................... 1-14
1.4.2 8-bit code and control code ............................................................................................................ 1-14
1.4.3 Start/Stop/Check digit ..................................................................................................................... 1-14
1.4.4 Caption............................................................................................................................................. 1-14

D 240F Contents-1
Contents-2 D 240F
1 User's Guide Barcode/OCR
Font Settings
1.1 Barcode/OCR fonts
1

1 User's Guide Barcode/OCR Font Settings

1.1 Barcode/OCR fonts


This guide provides descriptions for types of barcode, character code and samples of font usage, etc. for
models equipped with the Barcode/OCR font option. The content of this guide assumes the reader has a ba-
sic understanding of barcodes and barcode standards.
The barcode relies heavily on printer paper and on the performance of the Barcode Reader. Please read thor-
oughly before using.

1.1.1 Types of barcode/OCR fonts


The internal code for the barcode fonts is coded in the barcode symbologies listed below. In general, assign
a barcode font and data that is going to be expressed based on the ASCII character set. However, be aware
that the internal code for fonts may at times be encoded using code that is different from ASCII code.

UPC/EAN
UPC and EAN (JAN) are numeric barcodes. The barcode pattern is defined so that both can be expressed as
fonts even though they have different standards. They come in standard and abbreviated formats and may
be augmented with add-ons. The check digit is modulus 10 with weight 3.
The check digit for a 5-digit add-on is modulus 10 (no check digit with a 2-digit add-on). Use ASCII characters
0 to 9 for the font of the left odd parity. Use Hex 41 to 4A (A to J) for the right even parity. Use Hex 61 to 6A
(a to j) for the left even parity. Show all numerals 0 to 9.
The gap used for the add-on is defined to Space: Hex 20. The guard bar, center bar, Stop for abbreviated
format, Start for add-on and delineator for the add-on are come in two types: 1) the height is the same as
numerals and 2) the bar is underneath the numerals and extends out past the numeral. Each are defined in (:
Hex28, - : Hex2D,) : Hex29, * : Hex2A, + : Hex2B and X : Hex58,] : Hex5D, Y : Hex59, Z : Hex5A, [: Hex5B.

Interleave25
Interleave25 is a numeric barcode. The barcode must always contain an even number of digits because the
code represents two numbers, one number encoded in the bar and the next number encoded in the space
between the bars. There are multiple check digits that are based on standards such as modulus 10 with
weight 3 and so on. Define the font for the 00 to 99-pattern by Hex21 to Hex7A. Start is HexAB and Stop is
HexAC.

Code39
Code39 is a barcode represented in numerals, upper-case characters and symbols ($, %, *, +, -, ., /, space).
The check digit is modulus 43. The font is the same as ASCII code, with the exception of the Space symbol.
The Space is defined as !: Hex21, , : Hex2C, and _ : Hex5F.

Code128
Code128 is a barcode that includes all ASCII characters. Express CodeA, CodeB and CodeC with the same
bar pattern. The check digit is modulus 103. As a font, ! to ~ (Hex21 to 7E) for CodeB is the same as ASCII.
Space is defined as HexAE. DEL: Hex95 to StartC: HexAB based on CodeB. Stop is HexAC.

Postnet (ZIP)
Postnet (ZIP) is a barcode represented as postal code for the United States (ZIP code). The check digit is
modulus 10. Postnet font consists of numerals (ASCII) contained within Framebars (*: Hex2A and }: Hex7C).

D 240F 1-3
Barcode/OCR fonts 1.1
1
Codabar (NW-7)
Codabar (NW-7) is a barcode represented in numerals and symbols ($, +, -, ., /.). Most standards do not de-
fine a check digit. Codabar is defined with ASCII code that includes numerals, symbols and Start/Stop char-
acters (A, B, C, D).

MSI Plessy
MSI Plessy is a numeric barcode. It is framed by a Start, numeral, check digit, Stop pattern and has a mod-
ulus 10 check digit. MSI Plessy fonts are 0 to 9 ASCII code with Start (<:Hex3C) and Stop(>:Hex3E) charac-
ters.

1.1.2 Barcode/OCR font calling and available parameters

Parameters
Parameters v, b and s are available as options for Barcode control. Operate these parameters using a differ-
ent interpretation than the general PCL5 only if the T-parameter (Typeface number) shows the Barcode.
The v-parameter assigns the font height. The b-parameter changes the stroke weight (width) of the bars. The
s-parameter changes the width of the open space between bars.
Example. <ESC>(s16v4b4s24670T
Numeric values for each parameter can be omitted. If omitted, use the default numeric value.
Changing the b and s-parameters does not change OCR-A, OCR-B, MSI Plessy and PostNet. Also, for Post-
Net, assigning the v-parameter does not change the height. For Barcode fonts, parameters p and h are dis-
regarded. For the OCR font, the p-parameter is disregarded and the h-parameter is always interpreted as 10.

Typeface number
In the barcode, a pattern for the required Bar to express a specific barcode standard is assigned to the char-
acter code. If the Bar pattern within the font is the same pattern as another Barcode standard, even if the
Typeface number of a certain barcode is not supported, the Typeface number of the Bar that is not supported
can be displayed by using the Typeface number that is supported.
For example, the UPC-A for Typeface number 24600 can display UPC-E. In many cases, one Barcode font
supports two or more Typeface numbers.

Typeface number Barcode


24600 UPC-A
24601 UPC-A +2
24602 UPC-A +5
24620 EAN/JAN-8
24621 EAN/JAN-8 +2
24622 EAN/JAN-8 +5
24630 EAN/JAN-13
24631 EAN/JAN-13 +2
24632 EAN/JAN-13 +5
24640 Interleaved 2 of 5
24641 Interleaved 2 of 5 CHK
24670 Code 39(3of9)
24671 Code 39 + CHK
24672 Code 39(3of9) encode space before data
24673 Code 39 + CHK encode space before data
24702 Code 128 B
24704 Code 128 C

1-4 D 240F
1.2 Character code list
1
Typeface number Barcode
24770 ZIP+4 Postnet 5
24771 ZIP+4 Postnet 9
24772 ZIP+4 Postnet 11
24750 Codabar
24751 Codabar +CHKmod16
24760 MSI
24761 MSI +CHKmod10
24762 MSI +Mod10+CHKmod10
24763 MSI +Mod11+CHKmod10

The CHK in the chart refers to presence or non-presence of a check digit but does not support the automatic
addition of a check digit. The user must calculate the check digit and describe the check digit as data.
The exiting/non-existing CHK that has a Typeface name is nominal. Similarly, the descriptions of -13, -8, +2,
+5 Typeface names means the number of digits but because the user requires a description of the correct
barcode notation by using fonts, if the number of digits for the barcode with the correct data string is entered,
these numbers are nominal.

1.2 Character code list


List the character codes used when assigning the Barcode Character.

1.2.1 UPC/EAN
A character code that is used when printing the Barcode Character for UPC/EAN.

Character Character code


Left side odd parity Left side even parity Right side even parity
HEX nota- ASCII no- HEX nota- ASCII no- HEX nota- ASCII no-
tion tation tion tation tion tation
0 30 0 61 a 41 A
1 31 1 62 b 42 B
2 32 2 63 c 43 C
3 33 3 64 d 44 D
4 34 4 65 e 45 E
5 35 5 66 f 46 F
6 36 6 67 g 47 G
7 37 7 68 h 48 H
8 38 8 69 i 49 I
9 39 9 6A j 4A J
Guard bar 28 (
Center bar 2D -
Stop for ab- 29 )
breviated
format
Start for 2A *
add-on
Delineator 2B +
for add-on
Gap for 20 SP
add-on

D 240F 1-5
Character code list 1.2
1
1.2.2 Interleave25
A character code that is used when printing the Barcode Character for Interleave25.

Char- Character code Char- Character code Char- Character code


acter acter acter
HEX ASCII HEX ASCII HEX ASCII
nota- nota- nota- nota- nota- nota-
tion tion tion tion tion tion
00 21 ! 34 43 C 68 65 e
01 22 " 35 44 D 69 66 f
02 23 # 36 45 E 70 67 g
03 24 $ 37 46 F 71 68 h
04 25 % 38 47 G 72 69 i
05 26 & 39 48 H 73 6A j
06 27 ' 40 49 I 74 6B k
07 28 ( 41 4A J 75 6C I
08 29 ) 42 4B K 76 6D m
09 2A * 43 4C L 77 6E n
10 2B + 44 4D M 78 6F o
11 2C , 45 4E N 79 70 p
12 2D - 46 4F O 80 71 q
13 2E . 47 50 P 81 72 r
14 2F / 48 51 Q 82 73 s
15 30 0 49 52 R 83 74 t
16 31 1 50 53 S 84 75 u
17 32 2 51 54 T 85 76 v
18 33 3 52 55 U 86 77 w
19 34 4 53 56 V 87 78 x
20 35 5 54 57 W 88 79 y
21 36 6 55 58 X 89 7A z
22 37 7 56 59 Y 90 A1
23 38 8 57 5A Z 91 A2
24 39 9 58 5B [ 92 A3
25 3A : 59 5C | 93 A4
26 3B + 60 5D } 94 A5
27 3C < 61 5E ^ 95 A6
28 3D = 62 5F _ 96 A7
29 3E > 63 60 ` 97 A8
30 3F ? 64 61 a 98 A9
31 40 @ 65 62 b 99 AA
32 41 A 66 63 c Start AB
33 42 B 67 64 d Stop AC

d
Assign two character sets for the bar character and space character by a single character code. However,
assign the start character and stop character by a single character code.
Example: If a bar with a meaning of "3" and a space character set with a meaning of "7" is printed, assign
"46" (HEX notation).

1-6 D 240F
1.2 Character code list
1
1.2.3 Code39
A character code that is used when printing the Barcode Character for Code39.

Char- Character code Char- Character code Char- Character code


acter acter acter
HEX ASCII HEX ASCII HEX ASCII
nota- nota- nota- nota- nota- nota-
tion tion tion tion tion tion
$ 24 $ 8 38 8 N 4E N
% 25 % 9 39 9 O 4F O
* 2A * A 41 A P 50 P
+ 2B + B 42 B Q 51 Q
- 2D - C 43 C R 52 R
. 2E . D 44 D S 53 S
/ 2F / E 45 E T 54 T
0 30 0 F 46 F U 55 U
1 31 1 G 47 G V 56 V
2 32 2 H 48 H W 57 W
3 33 3 I 49 I X 58 X
4 34 4 J 4A J Y 59 Y
5 35 5 K 4B K Z 5A Z
6 36 6 L 4C L SP 21 !
7 37 7 M 4D M

1.2.4 Codabar (NW-7)


A character code that is used when printing the Barcode Character for Codabar (NW-7).

Char- Character code Char- Character code Char- Character code


acter acter acter
HEX ASCII HEX ASCII HEX ASCII
nota- nota- nota- nota- nota- nota-
tion tion tion tion tion tion
$ 24 $ 0 30 0 A 41 A
+ 2B + 1 31 1 B 42 B
- 2D - 2 32 2 C 43 C
. 2E . 3 33 3 D 44 D
/ 2F / 4 34 4
5 35 5
6 36 6
7 37 7
8 38 8
9 39 9
: 3A :

D 240F 1-7
Character code list 1.2
1
1.2.5 Code128
A character code that is used when printing the Barcode Character for Code128.

Numeric Character Character code


value
Code A Code B Code C HEX notation ASCII nota-
tion
0 SP SP 00 20 SP
1 ! ! 01 21 !
2 " " 02 22 "
3 # # 03 23 #
4 $ $ 04 24 $
5 % % 05 25 %
6 & & 06 26 &
7 ' ' 07 27 '
8 ( ( 08 28 (
9 ) ) 09 29 )
10 * * 10 2A *
11 + + 11 2B +
12 , , 12 2C ,
13 - - 13 2D -
14 . . 14 2E .
15 / / 15 2F /
16 0 0 16 30 0
17 1 1 17 31 1
18 2 2 18 32 2
19 3 3 19 33 3
20 4 4 20 34 4
21 5 5 21 35 5
22 6 6 22 36 6
23 7 7 23 37 7
24 8 8 24 38 8
25 9 9 25 39 9
26 : : 26 3A :
27 ; ; 27 3B ;
28 < < 28 3C <
29 = = 29 3D =
30 > > 30 3E >
31 ? ? 31 3F ?
32 @ @ 32 40 @
33 A A 33 41 A
34 B B 34 42 B
35 C C 35 43 C
36 D D 36 44 D
37 E E 37 45 E
38 F F 38 46 F
39 G G 39 47 G

1-8 D 240F
1.2 Character code list
1
Numeric Character Character code
value
Code A Code B Code C HEX notation ASCII nota-
tion
40 H H 40 48 H
41 I I 41 49 I
42 J J 42 4A J
43 K K 43 4B K
44 L L 44 4C L
45 M M 45 4D M
46 N N 46 4E N
47 O O 47 4F O
48 P P 48 50 P
49 Q Q 49 51 Q
50 R R 50 52 R
51 S S 51 53 S
52 T T 52 54 T
53 U U 53 55 U
54 V V 54 56 V
55 W W 55 57 W
56 X X 56 58 X
57 Y Y 57 59 Y
58 Z Z 58 5A Z
59 [ [ 59 5B [
60 \ \ 60 5C \
61 ] ] 61 5D ]
62 ^ ^ 62 5E ^
63 _ _ 63 5F _
64 NUL ’ 64 60
65 SOH a 65 61 a
66 STX b 66 62 b
67 ETX c 67 63 c
68 EOT d 68 64 d
69 ENQ e 69 65 e
70 ACK f 70 66 f
71 BEL g 71 67 g
72 BS h 72 68 h
73 HT i 73 69 i
74 LF j 74 6A j
75 VT k 75 6B k
76 FF l 76 6C l
77 CR m 77 6D m
78 SO n 78 6E n
79 SI o 79 6F o
80 DLE p 80 70 p
81 DC1 q 81 71 q

D 240F 1-9
Character code list 1.2
1
Numeric Character Character code
value
Code A Code B Code C HEX notation ASCII nota-
tion
82 DC2 r 82 72 r
83 DC3 s 83 73 s
84 DC4 t 84 74 t
85 NAK u 85 75 u
86 SYN v 86 76 v
87 ETB w 87 77 w
88 CAN x 88 78 x
89 EM y 89 79 y
41 I I 41 49 I
90 SUB z 90 7A z
91 ESC { 91 7B {
92 FS | 92 7C |
93 GS } 93 7D }
94 RS ~ 94 7E ~
95 US DEL 95 A1
96 FNC3 FNC3 96 A2
97 FNC2 FNC2 97 A3
98 SHIFT SHIFT 98 A4
99 CODE C CODE C 99 A5
100 CODE B FNC4 CODE B A6
101 FNC4 CODE A CODE A A7
102 FNC1 FNC1 FNC1 A8
103 START(CODE A) A9
104 START(CODE B) AA
105 START(CODE C) AB
106 STOP AC

1.2.6 Postnet (ZIP)


A character code that is used when printing the Barcode Character for Postnet (ZIP).

Character Character code


HEX notation ASCII notation
0 30 0
1 31 1
2 32 2
3 33 3
4 34 4
5 35 5
6 36 6
7 37 7
8 38 8
9 39 9
Framebar 2A *

1-10 D 240F
1.2 Character code list
1
Character Character code
HEX notation ASCII notation
Framebar 7C |

1.2.7 MSI Plessy


A character code that is used when printing the Barcode Character for MSI Plessy.

Character Character code


HEX notation ASCII notation
0 30 0
1 31 1
2 32 2
3 33 3
4 34 4
5 35 5
6 36 6
7 37 7
8 38 8
9 39 9
Start 3C <
Stop 3E >

D 240F 1-11
Sample of barcode/OCR font use 1.3
1
1.3 Sample of barcode/OCR font use
The surrounding blank area and caption are not included in the following example. Escape code <ESC> and
carriage return code <CR> are required for code value input. The value of nn is a hexadecimal digit for items
listed as <Hexnn>. Input for the corresponding code is required.
Generally for these samples, first a position set command is needed to choose the preferred Barcode font.
Afterwards, this position set command is needed to return to the general text font from the Barcode font.

UPC-A
Data to be displayed
03600029145(Check Digit 2)
<ESC>(8Y<ESC>(s12vbs24600T(036000-CJBEFC(<CR>

UPC-E
Data to be displayed
654321 (Check Digit 7 in EOEOEO:E(Even), O (Odd))
<ESC>(8Y<ESC>(s12vbs24600T(g5e3c1)<CR>

EAN13
Data to be displayed
491234567890 (The prefix for 4 in OEOOEE, Check Digit 4)
<ESC>(8Y<ESC>(s12vbs24630T(9b23ef-GHIJAE(<CR>

EAN8
Data to be displayed
4912345 (Check Digit 6)
<ESC>(8Y<ESC>(s12vbs24620T(4912-DEFG(<CR>

Interleave25
Data to be displayed
0400763000011 (Check Digit 6)
<ESC>(4Y<ESC>(s12vbs24640T<HexAB>%!m?!"1<HexAC><CR>

Code39
Data to be displayed 01234567890123 (Check Digit 8)
<ESC>(0Y<ESC>(s12vbs24670T*012345678901238*<CR>

Code128
Data to be displayed
<StartC><FNC1>123456<CodeB>A1(Check Digit C)
<ESC>(19Y<ESC>(s12vbs24702T<HexAB><HexA8>,BX<HexA6>A1C<HexAE><CR>

Postnet
Data to be displayed
123456789 (Check Digit 5)
<ESC>(15Y<ESC>(s12vbs24771T1234567895<CR>

1-12 D 240F
1.3 Sample of barcode/OCR font use
1
Codabar
Data to be displayed
A19+1243B (Check Digit :)
<ESC>(5Y<ESC>(s12vbs24750TA1941243:B<CR>

MSI Plessy
Data to be displayed
1234567 (No Check Digit)
<ESC>(6Y<ESC>(s12vbs24760T<1234567><CR>

OCR-A
Data to be displayed
12345ABCDE
<ESC>(0O<ESC>(s12vbs104T12345ABCDE<CR>

OCR-B
Data to be displayed
12345ABCDE
<ESC>(1O<ESC>(s12vbs110T12345ABCDE<CR>

D 240F 1-13
Precautions for use 1.4
1
1.4 Precautions for use

1.4.1 Important
- This barcode can only be used with PCL5e.
- In order to correctly print and use the barcode font, the application software must support the barcode
font.
- It may not be possible to read the printed barcode with all scanners due to variations in toner density
and paper quality, therefore we recommend that you verify the reading ability of the scanner before use.

1.4.2 8-bit code and control code


In order assign the PCL5 command and barcode data character strings, hexadecimal digits (00 to 1F) control
code and 8-bit code (AA, etc.) must be assigned. The use of "~" (tilde) instead of <ESC> and expressing the
control code with ASCII character strings by the <ESC>**#J (Alternate Escape Code) command is not sup-
ported.

1.4.3 Start/Stop/Check digit


Start, Stop and guard bar must be assigned as a character string while being aware of the Barcode type. The
user must knowingly insert the spaces around the Barcode.
Also, the check digit should be calculated manually from the data that is going to be expressed based on the
barcode code and the check digit must be inserted into the correct position of the data character string. (Gen-
erally before the Stop character)

1.4.4 Caption
Caption input is not supported. The user must insert captions as a PCL5 command.

1-14 D 240F

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy