Lexmark MX722 Forms and Bar Code Card P4.2 Technical Reference - Page 48

MaxiCode bar code descriptors, Symbology ID bytes 0 and 1: Required = 00 02x, Mode: Default = 02x

Page 48 highlights

Lexmark Confidential until announced PCL 5 emulation: Lexmark 48 • Non-truncated • Aspect ratio = 1:4 Note: Using this aspect ratio, the bar code symbol is constructed as near as possible to a height-to-width ratio of 1:4. PCL 5 data: Esc&x16W0001 04 02 0008 02 00 00 00 01 04 0000 0000 EscC&y39WHere_are_39_bytes_of_data_to_be_encoded Note: Each digit is a hexadecimal nibble. Two nibbles make each byte, and thus there are 32 nibbles. Each descriptor field is separated by a space to make the header more readable. These spaces are not sent with the data. MaxiCode bar code descriptors The following is the header definition of the bar code descriptors for MaxiCode: Bytes Most significant byte Least significant byte 0-1 Symbology ID byte 1 (00x) Symbology ID byte 2 (02x) 2-3 Mode Reserved Symbology ID bytes 0 and 1: (Required = 00 02x) These two bytes signify the symbology. Because most descriptors are of different sizes and information, all bar code descriptors must reserve the first two bytes for the symbology ID. If the first two bytes are reserved, then the remaining bytes can be interpreted accordingly. For MaxiCode, these two bytes must be 00x and 02x. Mode: (Default = 02x) This field designates what mode to use when interpreting the input data. Valid modes are in hexadecimal: Value Description 02x Structured carrier message with numeric postal code. 03x Structured carrier message with alphanumeric postal code. 04x Standard symbol with standard error correction. 05x Full symbol with enhanced error correction. 06x Reader program with standard error correction. Depending on the mode, the input data sent with the Transfer Bar Code Data command must follow these rules: • For all modes, the input data must start with a label‑number and number‑of‑labels field. Both fields are one digit in length and are terminated with either a comma or group separator (ASCII 29). • For Modes 2 and 3, the postal code, country code, and class‑of‑service fields must follow the label fields. Each field must be terminated with either a comma or group separator. • A Mode 2 postal code can have zero to nine digits. Postal codes greater than nine digits are truncated. For country code 840 (USA), postal codes of five digits in length are padded with four zeros. • A Mode 3 postal code can have zero to six alphanumeric characters (any printable character in code set A as defined in the AIM specification). Codes longer than six characters are truncated. Codes shorter than six characters are padded with spaces.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146

Non-truncated
Aspect ratio = 1:4
Note:
Using this aspect ratio, the bar code symbol is constructed as near as possible to a height-to-width
ratio of 1:4.
PCL 5 data:
Esc
&x16W0001 04 02 0008 02 00 00 00 01 04 0000 0000
EscC
&y39WHere_are_39_bytes_of_data_to_be_encoded
Note:
Each digit is a hexadecimal nibble. Two nibbles make each byte, and thus there are 32 nibbles. Each
descriptor field is separated by a space to make the header more readable. These spaces are not sent with
the data.
MaxiCode bar code descriptors
The following is the header definition of the bar code descriptors for MaxiCode:
Bytes
Most significant byte
Least significant byte
0–1
Symbology ID byte 1 (00x)
Symbology ID byte 2 (02x)
2–3
Mode
Reserved
Symbology ID bytes 0 and 1: (Required = 00 02x)
These two bytes signify the symbology. Because most descriptors are of different sizes and information, all bar
code descriptors must reserve the first two bytes for the symbology ID. If the first two bytes are reserved, then
the remaining bytes can be interpreted accordingly. For MaxiCode, these two bytes must be 00x and 02x.
Mode: (Default = 02x)
This field designates what mode to use when interpreting the input data. Valid modes are in hexadecimal:
Value
Description
02x
Structured carrier message with numeric postal code.
03x
Structured carrier message with alphanumeric postal code.
04x
Standard symbol with standard error correction.
05x
Full symbol with enhanced error correction.
06x
Reader program with standard error correction.
Depending on the mode, the input data sent with the Transfer Bar Code Data command must follow these rules:
For all modes, the input data must start with a label
number and number
of
labels field. Both fields are one
digit in length and are terminated with either a comma or group separator (ASCII 29).
For Modes 2 and 3, the postal code, country code, and class
of
service fields must follow the label fields.
Each field must be terminated with either a comma or group separator.
A Mode 2 postal code can have zero to nine digits. Postal codes greater than nine digits are truncated. For
country code 840 (USA), postal codes of five digits in length are padded with four zeros.
A Mode 3 postal code can have zero to six alphanumeric characters (any printable character in code set A
as defined in the AIM specification). Codes longer than six characters are truncated. Codes shorter than six
characters are padded with spaces.
Lexmark Confidential until announced
PCL 5 emulation: Lexmark
48