ePOS-Print XML

ePOS-Print XML offers the following commands (elements).

Available elements and parameters vary by printer model. Refer to XML Supported Printers.

XML for Controlling Printer


Route element

Element

Function

<epos-print>

<text>

Prints a text

<feed>

Feeds paper

<image>

Prints a raster image

<logo>

Prints an NV logo

<barcode>

Prints a barcode

<symbol>

Prints a 2D symbol

<hline>

Prints a horizontal line

<vline-begin>

Starts to print a vertical line

<vline-end>

Finishes to print a vertical line

<page>

Page mode

<area>

Specifies a print area for the page mode

<direction>

Specifies the printing direction for the page mode

<position>

Specifies a position to start printing for the page mode

<line>

Prints a line in the page mode

<rectangle>

Prints a rectangle in the page mode

<cut>

Cuts paper

<pulse>

Drawer kick-out

<sound>

Sounds a buzzer

<command>

Inserts a command

<layout>

Paper settings

<recovery>

Recovers from an error

<reset>

Resets the printer

<batch-begin>

Starts the batch normal print mode

<batch-end>

Ends the batch normal print mode

<epos-print>

<rotate-begin>

Starts the batch rotate print mode

<rotate-end>

Ends the batch rotate print mode

<response>

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 elements that can be used in each mode are described in the table below.

Route element

Element

Standard mode

Page mode

Batch normal print mode

Batch rotate print mode

<epos-print>

<text>

<feed>

<image>

<logo>

<barcode>

<symbol>

<hline>

-

<vline-begin>

-

<vline-end>

-

<page>

-

-

-

<area>

-

-

-

<direction>

-

-

-

<epos-print>

<position>

-

-

-

<line>

-

-

-

<rectangle>

-

-

-

<cut>

-

-

-

<pulse>

-

-

-

<sound>

-

-

-

<command>

<layout>

-

<recovery>

-

-

-

<reset>

-

-

-

<batch-begin>

-

-

-

<batch-end>

-

-

<rotate-begin>

-

-

-

<rotate-end>

-

-

<response>

The table below shows the default for each of the elements.

The default is a factory default configured on the printer.

Element

Attribute

Default value

<text>

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"

<text>

linespc

The value differs by printer model.

For details, refer to Printer-specific Support Information.

<feed>

linespc

<image>

color

"color_1"

align

"left"

mode

"mono"

<logo>

align

"left"

<barcode>

hri

"none"

font

"font_a"

width

"3"

height

"162"

align

"left"

rotate

"false" / "0"

<symbol>

level

The value differs by type of 2D symbol.

For details, refer to <symbol>.

width

hight

size

align

"left"

rotate

"false" / "0"

<area>

x

"0"

y

"0"

width

The value differs by printer model.

For details, refer to Printer-specific Support Information..

height

<direction>

dir

"left_to_right"

<position>

x

"0"

y

"21"

XML for Controlling Customer Display


Route element

Element

Function

<epos-display>

<window>

Window settings

<screen>

Base window settings

<textarea>

Window settings

<cursor>

Displays a cursor

<text>

Displays text

<marquee>

Marquee display settings for text strings

<blink>

Sets the display to blink

<brightness>

Sets the brightness of the customer display

<backgroundcolor>

Sets the background color

<slideshow>

Slide show settings

<downloadimage>

Displays an image

<registerdownloadimage>

Registers an image

<nvimage>

Displays an NV image

<clearimage>

Deletes an image

<symbol>

Displays a two-dimensional symbol

<clearsymbol>

Deletes a two-dimensional symbol

<clock>

Time display settings

<clear>

Exits the display of the current window

<reset>

Resets the display of the customer display

<command>

Runs an ESC/POS command

<response>

Acquires the execution result.

The elements and attributes that can be used vary depending on the customer display used and its display modes.

The table below shows the elements that can be used in each customer display and display mode.

Element

Attribute

DM-D30

DM-D70

(Standard mode)

DM-D70

(Column/row fixed mode)

DM-D110/DM-D210

<window>

-

<screen>

-

-

<textarea>

-

-

-

<cursor>

x

y

moveto

type

-

-

<text>

x

y

reverse

-

-

lang

✔*

✔*

color

-

-

-

<marquee>

<blink>

-

-

<brightness>

<backgroundcolor>

-

-

-

<slideshow>

-

-

-

<downloadimage>

-

-

-

<registerdownloadimage>

-

-

-

<nvimage>

-

-

-

<clearimage>

-

-

-

<symbol>

-

-

-

<clearsymbol>

-

-

-

<clock>

-

-

<clear>

<reset>

<command>

*: The setting value "mul" cannot be used.

 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

ePOS-Print XML includes patented or patent pending functions. The contents must not be disclosed to third parties.


Jump to the top