[ESC+2D10] PDF417
Hexadecimal code
| ESC | <1B>16 |
|---|---|
| 2D10 | <32>16<44>16<31>16<30>16 |
Parameter
,aa,bb,c,dd,ee(,f)
Initial value
Nil
Valid range and term of command
| When the power switch is OFF | The set parameter is not maintained. |
| Valid range within items | The set parameter becomes invalid. |
| Valid range between items | The set parameter becomes invalid. |
Function
Specifying PDF417
Format (Setting part)
<2D10>,aa,bb,c,dd,ee(,f)
-
Parameter
a [Minimum module width] = Valid Range : 01 to 27 dots
b [Minimum module height] = Valid Range : 01 to 72 dots
c [Security level] = Valid Range : 0 to 8
d [Number of data code words per one line]
= Valid Range : 01 to 30
= 00: Automatic (Width varies depending on number of data)
e [Number of line per symbol]
= Valid Range : 03 to 90
= 00: Automatic (Height varies depending on number of data)
f [Code type]
= 0 : Normal, When omitted 0 (can be omitted)
= 1: Truncated
Format (Data part)
<DN>mmmm,n...n
-
Parameter
m [Number of data] = Valid Range: 1 to 2681 bytes
n [Print data] = Data
Coding Example 1
Minimum module width: 03 dots, Minimum module height: 09 dots
Security level: 3, Number of data code words per line: 03, Number of line per symbol: 18
<A>
<V>100<H>200<2D10>,03,09,3,03,18
<DN>0010,0123456789
<Q>2
<Z>

Coding Example 2
Minimum module width: 03 dots, Minimum module height: 09 dots
Security level: 3, Number of data code words per line: 03, Number of line per symbol: 18
Code type: Truncated
<A>
<V>100<H>200<2D10>,03,09,3,03,18,1
<DN>0010,0123456789
<Q>2
<Z>

Supplementary Explanation
- Base print position of PDF417 is specified by vertical print position <V> and horizontal print position <H>
<V>100<H>200<2D10>***・・・・・・**
- When d=e=00, aspect ratio will be at 1:2 based on the number of print data.
- When parameter d and e doesn't match number of data, print may not be performed properly.
- When specifying security level height, parameter d or e should have large number.
- Recommended to specify more than 2 dots for 8 dots/mm and 12 dots/mm print head, and 4 dots for 24 dots/mm print head because the minimum module width and minimum module height of QR code may not be read by the scanner.
- Barcode generation module has been modified for improvement. How the generated image looks may differ due to the change, however the read result is the same.
- PDF417 module may raise the security level up when there is an empty space in PDF417 barcode.
- Commands that allow data size specification and binary data specification (<DN>) will result in a command error if there is no ESC (0x1B) immediately after the specified amount of data.
Point
- Sequential number is not available.
- Specifying print position by automatic line feed is not available.
- Print 00H to FFH is available.
- Format registration is available.
- Enlarging minimum module size improves print quality.
- Increasing security level improves read rate.
- Print height varies depending on the character such as numeric only, alphabet only or mixture of numeric and alphabets.
PDF417 Code table
| SI | SO | |||||||||||||||||||
| B8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | ||||
| B7 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | ||||
| B6 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | ||||
| B5 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | ||||
| B4 | B3 | B2 | B1 | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | A | B | C | D | E | F | |
| 0 | 0 | 0 | 0 | 0 | SP | 0 | @ | P | ` | p | ||||||||||
| 0 | 0 | 0 | 1 | 1 | ! | 1 | A | Q | a | q | ||||||||||
| 0 | 0 | 1 | 0 | 2 | " | 2 | B | R | b | r | ||||||||||
| 0 | 0 | 1 | 1 | 3 | # | 3 | C | S | c | s | ||||||||||
| 0 | 1 | 0 | 0 | 4 | $ | 4 | D | T | d | t | ||||||||||
| 0 | 1 | 0 | 1 | 5 | % | 5 | E | U | e | u | ||||||||||
| 0 | 1 | 1 | 0 | 6 | & | 6 | F | V | f | v | ||||||||||
| 0 | 1 | 1 | 1 | 7 | ' | 7 | G | W | g | w | ||||||||||
| 1 | 0 | 0 | 0 | 8 | ( | 8 | H | X | h | x | ||||||||||
| 1 | 0 | 0 | 1 | 9 | ) | 9 | I | Y | i | y | ||||||||||
| 1 | 0 | 1 | 0 | A | * | : | J | Z | j | z | ||||||||||
| 1 | 0 | 1 | 1 | B | + | ; | K | [ | k | { | ||||||||||
| 1 | 1 | 0 | 0 | C | , | < | L | ¥ | l | | | ||||||||||
| 1 | 1 | 0 | 1 | D | - | = | M | ] | m | } | ||||||||||
| 1 | 1 | 1 | 0 | E | . | > | N | ^ | n | ~ | ||||||||||
| 1 | 1 | 1 | 1 | F | / | ? | O | _ | o | DEL | ||||||||||
[00H to FFH] can be available for PDF417.