Select your printer model
<barcode>
Specifies barcode data as a text string.
Barcode type
Type |
Description |
---|---|
UPC-A |
If an 11-digit figure is specified, the check digit is automatically appended. If a 12-digit figure is specified, the 12th digit is used as the check digit but verification is not performed. |
UPC-E |
Specify 0 in the first digit. Specify the manufacturer code in the 2nd to 6th digits. Specify the item code in right justification in the 7th to 11th digits. The number of digits of the item code depends on the manufacturer code. Specify 0 in each unused data. If an 11-digit figure is specified, the check digit is automatically appended. If a 12-digit figure is specified, the 12th digit is used as the check digit but verification is not performed. |
EAN13 |
If an 12-digit figure is specified, the check digit is automatically appended. If a 13-digit figure is specified, the 13th digit is used as the check digit but verification is not performed. |
JAN13 |
|
EAN8 |
If an 7-digit figure is specified, the check digit is automatically appended. If an 8-digit figure is specified, the 8th digit is used as the check digit but verification is not performed. |
JAN8 |
|
CODE39 |
If the first character is * , this character is processed as the start character. Otherwise, the start character is automatically added. |
ITF |
The start and stop codes are automatically added. Addition and verification of the check digit are not performed. |
CODABAR |
Specify the start character ((A to D, a to d). Specify the stop character ((A to D, a to d). Addition and verification of the check digit are not performed. |
CODE93 |
The start and stop characters are automatically added. The check digit is automatically calculated and added. |
CODE128 |
Specify the start character (CODE A, CODE B, CODE C). The stop character is automatically added. The check digit is automatically calculated and added. To encode the following characters, specify the corresponding 2-digit code starting with { :
When specifying CODE C, specify the barcode data as the control code of the escape sequence. |
CODE128 auto |
The start character, check digit, and stop character are automatically added. The character string added to make the overall width of the CODE128 symbol as minimum is automatically converted. In this function, there is no need to specify the code set, and the barcode is printed simply by entering the data to be converted to symbols. Example) When entering numbers: "123", etc. When entering alphabets: "ABCabc", etc. Data from 0 to 255 (control codes and character codes) can be specified. Since the overall width changes automatically, use this function after confirming that the barcode fits into the print area and is printed without any problem. When using FNC1, etc., use CODE128 rather than CODE128 auto. |
GS1-128 |
The start character, FNC1, check digit, and stop characters are automatically added. To automatically calculate and add the application ID (AI) and the following check digit, specify "*" at the check digit position. The application ID (AI) can be put in parentheses. The parentheses are used as print characters for HRI and not encoded as data. A blank space can be inserted between the application ID (AI) and data. The blank space is used as print characters for HRI and not encoded as data. To encode the following characters, specify the corresponding 2-digit code starting with { :
|
GS1 DataBar |
Specify a 13-digit product ID (GTIN) excluding the application ID (AI) and check digit. |
GS1 DataBar Truncated |
|
GS1 DataBar Limited |
|
GS1 DataBar Expanded |
The application ID (AI) can be put in parentheses. The parentheses are used as print characters for HRI and not encoded as data. To encode the following characters, specify the corresponding 2-digit code starting with { :
|
When specifying binary data which cannot be represented as a text string, use the following escape sequences.
Text string |
Description |
---|---|
\xnn |
Control code (set nn in hexadecimal) |
\\ |
Back slash |
Attribute
"type" must be specified.
type
Attribute value |
Description |
---|---|
"upc_a" |
UPC-A |
"upc_e" |
UPC-E |
"ean13" |
EAN13 |
"jan13" |
JAN13 |
"ean8" |
EAN8 |
"jan8" |
JAN8 |
"code39" |
CODE39 |
"itf" |
ITF |
"codabar" |
CODABAR |
"code93" |
CODE93 |
"code128" |
CODE128 |
"code128_auto" |
CODE128 auto |
"gs1_128" |
GS1-128 |
"gs1_databar_omnidirectional" |
GS1 DataBar Omnidirectional |
"gs1_databar_truncated" |
GS1 DataBar Truncated |
"gs1_databar_limited" |
GS1 DataBar Limited |
"gs1_databar_expanded" |
GS1 Databar Expanded |
hri
Attribute value |
Description |
---|---|
"none" |
No printing. |
"above" |
Above the barcode |
"below" |
Below the barcode |
"both" |
Both above and below the barcode |
font
Attribute value |
Description |
---|---|
"font_a" |
Font A |
"font_b" |
Font B |
"font_c" |
Font C |
"font_d" |
Font D |
"font_e" |
Font E |
width
Attribute value |
Description |
---|---|
"2" to "6" |
Specifies the width of a single module in units of dots |
height
Attribute value |
Description |
---|---|
"1" to "255" |
Specifies the height of a single module in units of dots |
align
Attribute value |
Description |
---|---|
"left" |
Left alignment |
"center" |
Center alignment |
"right" |
Right alignment |
rotate
Attribute value |
Description |
---|---|
"true" / "1" |
Enables text rotation |
"false" / "0" |
Disables text rotation |
Sample program
Prints multiple types of barcode
epos-print xmlns="http://www.epson-pos.com/schemas/2011/03/epos-print"> <barcode type="upc_a" width="2" height="64" hri="below">01234567890</barcode> <barcode type="upc_e">01234500005</barcode> <barcode type="ean13">201234567890</barcode> <barcode type="jan13">201234567890</barcode> <barcode type="ean8">2012345</barcode> <barcode type="jan8">2012345</barcode> <barcode type="code39">ABCDE</barcode> <barcode type="itf">012345</barcode> <barcode type="codabar">A012345A</barcode> <barcode type="code93">ABCDE</barcode> <barcode type="code128">{Babcde</barcode> <barcode type="gs1_128">(01)201234567890*</barcode> <barcode type="gs1_databar_omnidirectional">0201234567890</barcode> <barcode type="gs1_databar_truncated">0201234567890</barcode> <barcode type="gs1_databar_limited">0201234567890</barcode> <barcode type="gs1_databar_expanded">(01)2012345678903</barcode> </epos-print> |
Supplementary explanation
- When Standard mode is selected, this command is enabled only when the print position is at the head of a line or when no data exists in the print buffer.
- In the page mode, the bottom left corner of the barcode (except HRI) is aligned with the start position for printing the barcode.
- If your barcode settings are not compliant with the barcode standards, or if the size is larger than the print area, the barcode is not printed with no error returned.
- When setting "align" or "rotate" in the standard mode, set it at the beginning of a line.
- The "align" and "rotate" settings are ignored in the page mode.
- To rotate text string in the page mode, use <direction>.
- The "align" setting specified in this element is also applied to <text>, <image>, <logo>, and <symbol>.
- The "rotate" setting specified in this element is also applied to <text> and <symbol>.
Quick Access
- [Name]
- [Format]
- [Range]
- [Description]
- [Notes]
- Introduction
- help
- XML for Controlling Printer
- XML for Controlling Customer Display
- Appendix
- XML Supported Printers
- Supported Elements List
- Printer-specific Support Information
- TM-m10
- TM-m30
- TM-m30II
- TM-m30II-H
- TM-m30II-NT
- TM-m30II-S
- TM-m30II-SL
- TM-m30III
- TM-m30III-H
- TM-m50
- TM-m50II
- TM-m50II-H
- TM-P20
- TM-P20II
- TM-P60II (Receipt)
- TM-P60II (Peeler)
- TM-P80
- TM-P80II
- TM-T20III
- TM-T82III
- TM-T88VI
- TM-T88VII
- TM-L100
- TM-U220II
- TM-H6000V
- TM-H6000VI
- TM-L90
- TM-L90 4xx
- TM-T20
- TM-T20II
- TM-T70
- TM-T70II
- TM-T82II
- TM-T83II
- TM-T88IV
- TM-T88V
- TM-T90
- TM-U220
- TM-U330
- TM-H6000IV
- TM-L90-i
- TM-T20II-i
- TM-T70-i
- TM-T82II-i
- TM-T83II-i
- TM-T88V-i
- TM-T88VI-iHUB
- TM-U220-i
- TM-U220IIB-i
- TM-T70II-DT
- TM-T70II-DT2
- TM-T88V-DT
- TM-T88VI-DT2
- TM-H6000IV-DT
- Usage Restrictions by Firmware Version
- ePOS-Print Settings