Two-dimensional bar codes

Codablock F bar code descriptors

Field name

Type

Range

Default value

Description

Esc s#T

name

N/A

N/A

Required.

24840T.

Esc (s#1,#2,[#3]V

int

The minimum value is 3 dec (03 hex).

There is no maximum value.

16 dec

(10 hex)

Optional.

Selects the bar height in 1/72 in. (the same units as fonts).

Note:  Values from 0 to 2 are the same as the default.

int

2–44 rows

2 dec

(02 hex)

Required for HP BarDIMM.

Optional for Forms and Bar Code Card.

For more information, see Appendix F - Deviations .

Requested number of rows in the Codablock F symbol.

int

4–103 columns

20 dec

(14 hex)

Optional

Requested number of columns in the Codablock F symbol.

Esc (s#1]B

int

The minimum B1 value is 1, but it may be unreadable.

There is no maximum value, but larger bar codes use more memory.

6 dec

(06 hex)

Optional.

Selects the bar width.


HP BarDIMM deviations

HP BarDIMM Pro uses the PCL 5 emulation height command v1 to specify the single-line bar height of the Codablock F bar code. An example is the row height contained in the bar code. No provision is made to specify the absolute height of the Codablock F symbol. Parameters v2 and v3 are derived from the ELMICRON specification.

In the HP BarDIMM Pro specification, the Codablock v1 parameter is the single-line bar height in 1/60 inch, but it is actually 1/72 inch.

Specify the requested number of rows ( v2 parameter) when using the HP BarDIMM Pro version 3.3a.

Default PCL emulation with no parameters that are invalid

Command

Description

Esc (s24840T

Specify the row parameter.

Note:  This command does not work on HP.

Esc (s16, 2v24840T

The default line bar height with two rows is specified.

Esc (s,2v24840T

The default line bar height is specified.


An example of specifying all three v parameters, using the default values for v1 and v3 , with two rows is Esc (s16,2,20v24840T.

HP documents the bar widths ( b parameter) in their reference manual, but varying b1 or b2 does not affect the bar width of the symbol. When b1 is specified in the data stream, Codablock F is generated properly. Improper use of the b parameters can result in a deformed and unreadable bar code from HP BarDIMM Pro. The b3 and b4 parameters are not used.

HP does not use the PCL-S "Space."

Data Matrix bar code descriptors

Field name

Type

Range

Default value

Description

Esc (s#T

name

N/A

N/A

Required.

24820T.

Esc (s#1B

int

The minimum value is 1, but the module may be too small and unreadable.

There is no maximum value, but larger bar codes use more memory.

10 dec

(0A hex)

Optional.

Small module height in dots (1/600 in.).

Because the Data Matrix modules are square, this parameter also determines the small module width.

Note:  Using a value of 0 is the same as using a value of 10 (default).


Notes:

PDF417 bar code descriptors (HP compatibility mode)

Typeface Esc (s#T

Value

Default

24850T

P parameter

Esc (s#P

N/A

0

Optional.

Determines the ECC level. Range is 0–8.

B parameter 1

Esc (s#1, #2B

#1

0†

Optional.

Determines the number of rows for the symbol. Range is 3–90.

#2

0†

Optional.

Determines the number of columns for the symbol. Range is 1–30.

S parameter 1

Esc (s#1, #2B

#1

2

Optional.

Determines the X value of the symbol aspect ratio.

#2

1

Optional.

Determines the Y value of the symbol aspect ratio.

#3‡

0

0 —Parameters #1 and #2 equal the size needed for the PDF417 symbol (default).

1 —Parameters #1 and #2 can be set to a mandatory size for the PDF417 symbol.

#4

0

0 —The PDF417 symbol is not truncated (default).

1 —The PDF417 symbol is truncated on its right side.


In printing PDF417 symbols, the parameter values sent using this technique follow the same rules for parameter values sent when using the Transfer Bar Code Descriptor.

In relation to the fields of the Lexmark bar code descriptor for PDF417, the following correspondences exist when using this technique:

ECC level

Specified by #p parameter

Units enumeration for X dimension

Fixed at 2 (600 dpi)

X dimension (in X dimension units)

Fixed at 6

Y ratio

Fixed at 3

Truncated

Specified by #s4 parameter

Rows

Specified by #b1 parameter

Columns

Specified by #b2 parameter

Aspect ratio X

Specified by #s1 parameter

Aspect ratio Y

Specified by #s2 parameter

ECC by percentage

Fixed at 0


QR Code bar code descriptors (HP compatibility mode)

Typeface Esc (s#P

Default

24860T Model 1

24861T Model 2

P parameter

Esc (s#P

0

Optional.

Determines the ECC level as follows:

0 —Default ECC level (error correction level M of 15%).

1 —Low ECC / high-density level (L), 7% damage allowed.

2 —Standard ECC level (M), 15% damage allowed.

3 —High reliability / ECC level (Q), 25% damage allowed.

4 —Ultra high reliability / ECC level (H), 30% damage allowed.

B parameter

Esc (s#B

10

Optional.

Specifies module height and width in dots (1/600 in.). The minimum value is 1.

S parameter

Esc (s#S

0

Optional.

Determines the encoding mode as follows:

0 —Use the default value (Automatic: JIS/ShiftJIS).

1 —Numeric (0–9).

2 —Alphanumeric (0–9, uppercase A to Z, space; and the symbols $ % * + - . / : ).

3 —JIS 8-bit character set.

4 —Kanji character set (shifted JIS).


MaxiCode bar code descriptors

Only the first rule differs between data sent using this technique and data sent using the Lexmark Bar Code Data command to print MaxiCode symbols.

The input data must start with the following fields: label number, number of labels, and mode. The three fields are one digit in length and are terminated with either a comma or group separator (ASCII 29).

In relation to the fields of the Lexmark bar code descriptor for MaxiCode, the following correspondences exist when using this technique:

Mode

Specified in the data

Typeface Esc (s#T value

24800


Swiss QR code descriptors

The Swiss QR code is always generated with the ECC level (M) .

The PCL emulation P-Parameter must always be triggered to the value of 2p .

The module size varies depending on the QR code version chosen for the data amount to encode because the label size must be 46 x 46.

Mode

Specified in the data

Typeface Esc (s#T value

24862


All other parameters are ignored.

Note:  All data fields of the code are separated by <CR><LF> or <LF> , so the usage of the Transparent Print Data command is mandatory.