List of ePOS-Device XMLs
The ePOS-Device XMLs provide the following.
Message
These XMLs are messages requested from applications to the printer and returned from the printer to applications.
The number of messages in the data sent in one request from the application is 1.
To send multiple messages, send the data again for the number of times corresponding to the number of messages.
Message |
Description |
|
---|---|---|
Message data for communication path |
Establishes the communication path. |
|
Reestablishes the communication path. |
||
Disconnects the communication path. |
||
Message data for management information |
Acquires the administrator and installation location information. |
|
Opens the communication box. |
||
Closes the communication box. |
||
Communicates between applications. |
||
Message data for device communication |
Opens communication with a device. |
|
Closes communication with a device. |
||
Requests for device control. |
||
Responds to device control. |
||
Message data for OFSC-Print Service |
Requests for OFSC-Print Service. |
|
Responds to OFSC-Print Service. |
||
Message data for error notification |
Reports the error contents upon error occurrence. |
CommunicationBox Messages
These XMLs are used to communicate data between applications.
This type of XML is a child element of the <data> element of the <commbox_data> message and specifies data for data communication between applications. Specify the type of message data with the <type> element, and then specify data for the child element. Available <type> elements are as listed below.
<type> element |
Description |
|
---|---|---|
Transmission history |
<Request>/<Response> |
|
Transmission |
<Request> |
|
Reception |
<Response> |
Device Messages
These XMLs store request and response data for each device controlled. This type of XML is a child element of the <data> element of the <device_data> message and specifies data to control a device. Components of the message data differs depending on the device type. Specify the type of message data with the <type> element, and then specify data for the child element.
Printers and customer displays can use the control XMLs to control print data and display.
Refer to Supported Printers by XMLs for the types of devices available for each printer.
Device type |
Control XML |
---|---|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
|
- |
DeviceHubTerminal
Controls the TM-DT series.
<type> element |
Description |
|
---|---|---|
Shutdown |
<Request> |
|
<Response> |
||
Restart |
<Request> |
|
<Response> |
BarcodeScanner
Controls the scanner to read a barcode.
<type> element |
Description |
|
---|---|---|
Data detection |
<Response> |
Printer
Controls printing operation of the printer.
Refer to PrinterControl XML for details of print data.
<type> element |
Description |
|
---|---|---|
Controls a printer. |
<Request> |
|
<Response> |
HybridPrinter
Controls the hybrid model printers.
Refer to PrinterControl XML for details of print data.
<type> element |
Description |
|
---|---|---|
Device lock |
<Request> |
|
<Request> |
||
Receipt printing |
<Request> |
|
<Response> |
||
Slip printing |
<Request> |
|
<Request> |
||
<Request> |
||
Endorsement printing |
<Request> |
|
<Request> |
||
<Request> |
||
Validation printing |
<Request> |
|
<Request> |
||
<Request> |
||
MICR |
<Request> |
|
<Request> |
||
<Request> |
||
Paper eject |
<Request> |
|
Reception of result |
<Response> |
List of control operations
<type>element available for HybridPrinter message data depends on the operation to control.
The following lists control operation types and available <type>element.
<type>element |
Control operation |
||||
---|---|---|---|---|---|
Receipt |
Slip |
Endorsement |
Validation |
MICR |
|
✔ |
✔ |
✔ |
✔ |
✔ |
|
✔ |
✔ |
✔ |
✔ |
✔ |
|
✔ |
✔ |
✔ |
✔ |
- |
|
✔ |
✔ |
✔ |
✔ |
- |
|
- |
✔ |
- |
- |
- |
|
- |
✔ |
- |
- |
- |
|
- |
✔ |
- |
- |
- |
|
- |
- |
✔ |
- |
- |
|
- |
- |
✔ |
- |
- |
|
- |
- |
✔ |
- |
- |
|
- |
- |
- |
✔ |
- |
|
- |
- |
- |
✔ |
- |
|
- |
- |
- |
✔ |
- |
|
- |
- |
- |
- |
✔ |
|
- |
- |
- |
- |
✔ |
|
- |
- |
- |
- |
✔ |
|
- |
✔ |
✔ |
✔ |
✔ |
|
✔ |
✔ |
✔ |
✔ |
✔ |
CustomerDisplay
Controls text display on the customer display.
Refer to CustomerDisplayControl XML for details of display data.
<type> element |
Description |
|
---|---|---|
Controls a customer display. |
<Request> |
|
<Response> |
Keyboard
Controls character entry from the keyboard.
<type> element |
Description |
|
---|---|---|
Key detection |
<Response> |
|
String setting |
<Request> |
|
String detection |
<Response> |
|
Key code setting |
<Request> |
|
Data detection |
<Response> |
POSKeyboard
Controls character entry from the POS keyboard.
<type> element |
Description |
|
---|---|---|
Data detection |
<Response> |
MSR
Controls card reading by MSR.
<type> element |
Description |
|
---|---|---|
Data detection |
<Response> |
SerialDevice
Controls serial communication between the printer and device.
<type> element |
Description |
|
---|---|---|
String setting |
<Request> |
|
Detects acknowledgment. |
<Response> |
Storage
Connects to the German fiscal element (TSE), and controls data read/write operations.
<type> element |
Description |
|
---|---|---|
Send |
<Request> |
|
Reception of result |
<Response> |
OtherPeripheral
Controls peripheral devices with a device control program.
<type> element |
Description |
|
---|---|---|
Send |
<Request> |
|
Reception of result |
<Response> |
PrinterControl XML
These XMLs are used to control print operations of a printer. <epos-print> is included in the child element printdata of the <type> element print, while <response> is included in the child element resultdata of the <type> element onxmlresult.
<epos-print> and <response> can be used with the following <type> elements.
Device |
<type> element |
Child element |
XML document |
---|---|---|---|
printdata |
|||
resultdata |
|||
printdata |
|||
resultdata |
|||
printdata |
|||
Creating print document
These XMLs request the printer to execute a print function specified with <epos-print> and acquires the execution result with <response>.
XML document |
Child element |
Function |
---|---|---|
Prints text. |
||
Paper feed |
||
Prints a raster image. |
||
Prints the NV logo. |
||
Prints a barcode. |
||
Prints a 2D symbol. |
||
Prints a horizontal ruled line. |
||
Starts printing a vertical ruled line. |
||
Ends printing a vertical ruled line. |
||
Switches to the page mode |
||
Defines the print area in the page mode. |
||
Specifies the print direction in the page mode. |
||
Specifies the print position in the page mode. |
||
Draws a line in the page mode. |
||
Draws a shape in the page mode. |
||
Cuts the sheet. |
||
Kicks the drawer. |
||
Sounds the buzzer. |
||
Inserts a command. |
||
Sets the page layout. |
||
Recovers from a recoverable error. |
||
Resets the printer. |
||
Starts the batch normal print mode. |
||
Ends the batch normal print mode. |
||
Starts the batch rotate print mode. |
||
Ends the batch rotate print mode. |
||
Acquires the execution result. |
The print mode includes the standard mode, page mode, batch normal print mode, and the batch rotate print mode.
- Standard mode
-
Prints data line by line. Line spacing is automatically adjusted according to character size, image size, and barcode height. Suitable for printing receipts whose print length varies by print content.
- Page mode
-
Prints page by page. Prints characters, images, and/or barcodes on a single page that is defined as a print area.
To print in the page mode, switch to the page mode using <page>. - Batch normal print mode
-
This is a print mode in which the range of the print data (such as characters, images, barcodes, etc.) is set, and the print data in the set range is compiled, and then printed.
Unlike the standard mode, printing starts after the entire print data has been received.
When performing the processing in the batch normal print mode, start the batch normal print processing with <batch-begin>, and end the batch normal print processing with <batch-end>.
- Batch rotate print mode
-
This is a print mode in which the range of the print data (such as characters, images, barcodes, etc.) is set, the print data in the set range is compiled, inverted, and then printed.
When performing the processing in the batch rotate print mode, start the batch rotate print processing with <rotate-begin>, and end the batch rotate print processing with <rotate-end>.
The child elements that can be used in each mode are described in the table below.
XML document |
Child element |
Standard mode |
Page mode |
Batch normal print mode |
Batch rotate print mode |
---|---|---|---|---|---|
✔ |
✔ |
✔ |
✔ |
||
✔ |
✔ |
✔ |
✔ |
||
✔ |
✔ |
✔ |
✔ |
||
✔ |
✔ |
✔ |
✔ |
||
✔ |
✔ |
✔ |
✔ |
||
✔ |
✔ |
✔ |
✔ |
||
✔ |
- |
✔ |
✔ |
||
✔ |
- |
✔ |
✔ |
||
✔ |
- |
✔ |
✔ |
||
✔ |
- |
- |
- |
||
- |
✔ |
- |
- |
||
- |
✔ |
- |
- |
||
- |
✔ |
- |
- |
||
- |
✔ |
- |
- |
||
- |
✔ |
- |
- |
||
✔ |
- |
- |
- |
||
✔ |
- |
- |
- |
||
✔ |
- |
- |
- |
||
✔ |
✔ |
✔ |
✔ |
||
✔ |
- |
✔ |
✔ |
||
✔ |
- |
- |
- |
||
✔ |
- |
- |
- |
||
✔ |
- |
- |
- |
||
✔ |
- |
✔ |
- |
||
✔ |
- |
- |
- |
||
✔ |
- |
- |
✔ |
||
✔ |
✔ |
✔ |
✔ |
List of support per print method
Child element |
Print method |
||||
---|---|---|---|---|---|
Receipt |
Slip |
Endorsement |
Endorsement (40cpl) |
Validation |
|
✔ |
✔ |
✔ |
✔ |
✔ |
|
✔ |
✔ |
✔ |
✔ |
✔ |
|
✔ |
- |
- |
- |
- |
|
✔ |
- |
- |
- |
- |
|
✔ |
- |
- |
- |
- |
|
✔ |
- |
- |
- |
- |
|
✔ |
- |
- |
- |
- |
|
✔ |
- |
- |
- |
- |
|
✔ |
- |
- |
- |
- |
|
✔ |
✔ |
- |
- |
✔ |
|
✔ |
✔ |
- |
- |
✔ |
|
✔ |
✔ |
- |
- |
✔ |
|
✔ |
✔ |
- |
- |
✔ |
|
✔ |
✔ |
- |
- |
- |
|
✔ |
✔ |
- |
- |
- |
|
✔ |
- |
- |
- |
- |
|
✔ |
✔ |
✔ |
✔ |
✔ |
|
✔ |
- |
- |
- |
- |
|
✔ |
✔ |
✔ |
✔ |
✔ |
|
✔ |
- |
- |
- |
- |
|
✔ |
✔ |
✔ |
✔ |
✔ |
|
✔ |
✔ |
✔ |
✔ |
✔ |
List of child element default values
The default values of the child elements are listed below.
These values are effective before executing a child element defined on the printer device.
Child element |
Attribute |
Default value |
---|---|---|
lang |
“en” |
|
font |
“font_a” |
|
smooth |
“false” / “0” |
|
dw |
“false” / “0” |
|
dh |
“false” / “0” |
|
width |
“1” |
|
height |
“1” |
|
reverse |
“false” / “0” |
|
ul |
“false” / “0” |
|
em |
“false” / “0” |
|
color |
“color_1” |
|
x |
“0” |
|
y |
“21” |
|
align |
“left” |
|
rotate |
“false” / “0” |
|
linespc |
Depends on the printer model. For details, refer to Printer-specific Support Information. |
|
linespc |
||
color |
“color_1” |
|
align |
“left” |
|
mode |
“mono” |
|
align |
“left” |
|
hri |
“none” |
|
font |
“font_a” |
|
width |
“3” |
|
height |
“162” |
|
align |
“left” |
|
rotate |
“false” / “0” |
|
level |
Depends on the 2D symbol type. Refer to <symbol> for details. |
|
width |
||
hight |
||
size |
||
align |
“left” |
|
rotate |
“false” / “0” |
|
x |
“0” |
|
y |
“0” |
|
width |
Depends on the printer model. For details, refer to Printer-specific Support Information. |
|
height |
||
dir |
“left_to_right” |
|
x |
“0” |
|
y |
“21” |
CustomerDisplayControl XML
These XMLs control text display on the customer display. <epos-display> and <response> are XMLs included in the child element displaydata of <type>display</type> and the child element resultdata of <type>onxmlresult</type>, respectively. These XMLs request the customer display to execute a function specified with <epos-display> and acquires the execution result with <response>.
XML document |
Child element |
Function |
---|---|---|
Configures the window. |
||
Base window settings |
||
Window settings |
||
Displays cursor. |
||
Displays text. |
||
Displays a marquee. |
||
Blinks display. |
||
Changes the display brightness. |
||
Sets the background color. |
||
Slide show settings |
||
Displays an image. |
||
Registers an image. |
||
Displays an NV image. |
||
Deletes an image. |
||
Displays a two-dimensional symbol. |
||
Deletes a two-dimensional symbol. |
||
Displays the clock. |
||
Clears the current display area. |
||
Reset |
||
Runs a command. |
||
Acquires the execution result of <epos-display>. |
The default values of the child elements are listed below.
These values are effective before executing a child element defined on the device.
Child element |
Attribute |
Default value |
---|---|---|
scrollmode |
“overwrite” |
|
destroy |
“false” / “0” |
|
x |
“0” |
|
y |
“0” |
|
width |
“0” |
|
height |
“0” |
|
scrollmode |
“overwrite” |
|
destroy |
“false” / “0” |
|
reverse |
“false” / “0” |
|
lang |
“en” |
|
format |
“walk” |
|
repeat |
“0” |
|
lang |
“en” |
|
stop |
“false” / “0” |
|
x |
“0” |
|
y |
“0” |
|
width |
“0” |
|
height |
“0” |
|
x |
“0” |
|
y |
“0” |
|
width |
“0” |
|
height |
“0” |
|
dotx |
“0” |
|
doty |
“0” |
|
quietzone |
“false” / “0” |
The child elements and attributes that can be used vary depending on the customer display used and its display modes.
The table below shows the child elements that can be used in each customer display and display mode.
Child element |
Attribute |
DM-D30 |
DM-D70 (Standard mode) |
DM-D70 (Column/row fixed mode) |
DM-D110/ |
---|---|---|---|---|---|
✔ |
- |
✔ |
✔ |
||
- |
✔ |
✔ |
- |
||
- |
✔ |
- |
- |
||
x |
✔ |
✔ |
✔ |
✔ |
|
y |
✔ |
✔ |
✔ |
✔ |
|
moveto |
✔ |
✔ |
✔ |
✔ |
|
type |
✔ |
- |
- |
✔ |
|
x |
✔ |
✔ |
✔ |
✔ |
|
y |
✔ |
✔ |
✔ |
✔ |
|
reverse |
✔ |
- |
- |
✔ |
|
lang |
✔* |
✔ |
✔ |
✔* |
|
color |
- |
✔ |
- |
- |
|
✔ |
✔ |
✔ |
✔ |
||
✔ |
- |
- |
✔ |
||
✔ |
✔ |
✔ |
✔ |
||
- |
✔ |
- |
- |
||
- |
✔ |
- |
- |
||
- |
✔ |
- |
- |
||
- |
✔ |
- |
- |
||
- |
✔ |
- |
- |
||
- |
✔ |
- |
- |
||
- |
✔ |
- |
- |
||
- |
✔ |
- |
- |
||
- |
- |
- |
✔ |
||
✔ |
✔ |
✔ |
✔ |
||
✔ |
✔ |
✔ |
✔ |
||
✔ |
✔ |
✔ |
✔ |
*: The setting value "mul" cannot be used.
Quick Access
- [Name]
- [Format]
- [Range]
- [Description]
- [Notes]
- Introduction
- help
- Message
- CommunicationBox Messages
- Device Messages
- DeviceHubTerminal
- BarcodeScanner
- Printer
- <type>print</type>
- <type>onxmlresult</type>
- <epos-print>
- <response>
- <text>
- <feed>
- <image>
- <logo>
- <barcode>
- <symbol>
- <hline>
- <vline-begin>
- <vline-end>
- <page>
- <area>
- <direction>
- <position>
- <line>
- <rectangle>
- <cut>
- <pulse>
- <sound>
- <command>
- <layout>
- <recovery>
- <reset>
- <batch-begin>
- <batch-end>
- <rotate-begin>
- <rotate-end>
- HybridPrinter
- <type>lock</type>
- <type>unlock</type>
- <type>print</type>
- <type>onxmlresult</type>
- <type>slipwaitinsertion</type>
- <type>slipprint2</type>
- <type>slipcancel</type>
- <type>endorsewaitinsertion</type>
- <type>endorseprint2</type>
- <type>endorsecancel</type>
- <type>validationwaitinsertion</type>
- <type>validationprint2</type>
- <type>validationcancel</type>
- <type>micrread</type>
- <type>micrcleaning</type>
- <type>micrcancel</type>
- <type>eject</type>
- <type>onreceive</type>
- CustomerDisplay
- Keyboard
- POSKeyboard
- MSR
- SerialDevice
- Storage
- OtherPeripheral
- Appendix
- List of KeyCode
- Supported Printers by XMLs
- ePOS-Device XML Functions That Can Be Used
- List of Supported Elements
- Printer-specific Support Information
- 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
- TM-H6000V
- TM-H6000VI
- 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-T88VI
- TM-T88VII
- TM-L100
- TM-m10
- TM-P20
- TM-P60II (Receipt)
- TM-P60II (Peeler)
- TM-P80
- TM-T20
- TM-T20II
- TM-T70
- TM-T70II
- TM-T82II
- TM-T83II
- TM-T88IV
- TM-T88V
- TM-T90
- TM-L90
- TM-U220
- TM-U220II
- TM-H6000IV
- Usage restriction by firmware version