A11-Prime/Standard-E(Rev001)
POS Thermal Receipt Printer
Table of Contents
1. Notice .................................................................................................................................................................................................................................. 3
2. Control Commands List in Alphanumeric Order ......................................................................................................................................................... 4
2-1 Command Description Items ......................................................................................................................................................................................... 6
2-2 Details of Control Commands ....................................................................................................................................................................................... 7
1. Notice
This document contains proprietary information of POSBANK Corporation and its affiliates. You may utilize the information solely for the
purpose of facilitating authorized sales and service of, or developing software and similar products for authorized use with, POSBANK
products, provided that such proprietary information may not be used, reproduced, or disclosed to any other parties for any other purpose
without the prior written permission of POSBANK Corporation. POSBANK has no liability for loss or damage arising from or relating to your use of
or reliance on the information in the document.
We at POSBANK maintain ongoing efforts to enhance and upgrade the functions and quality of all our products. In following, product
specifications and/or user manual content may be changed without prior notice.
2. Control Commands List in Alphanumeric Order
Specify an international character set
Select print direction in page mode
Print and carriage return
Turn 90° clockwise rotation mode on/off
Cancel the print data in page mode
Set print area in page mode
Transmit real-time status
Set relative print position
Generate pulse at real-time
Set the character right space
Set absolute print position
Select/cancel user-defined character set
Define user-defined character set
Select character code table
Transmit paper sensor status
Turn underline mode on/off
Turn upside-down print mode on/off
Select default line spacing
Cancel user-defined characters
Set absolute vertical print position in page mode
Set horizontal tab positions
Turn emphasized mode on/off
Specify and print the symbol
Turn double-strike mode on/off
Define downloaded bit image
Print downloaded bit image
Start/end macro definition
Turn white/black reverse print mode on/off
Select print position of HRI characters
Select cut mode and executes a partial cut
Enable/Disable Automatic Status Back (ASB)
Select font for HRI characters
Select cut mode and executes a partial/full Cut
Top of form of black paper
Mechanically initialize printer
Marked Paper Form Feed Position Corrent
Set black mark adjustment value
Save/Load black mark adjustment value
Set black mark adjustment value auto-load
when powering on
2-1 Command Description Items
Command format expressed in ASCII, hexadecimal, and decimal codes
Argument value (Setting range) for the command
Initial argument value for the command
Detailed command function description
Additional information about using the command
Variations depending on the printer model
2-2 Details of Control Commands
This command moves the print position to the next horizontal tab position. If the next horizontal tab position is not
specified, this command will be void.
■ The horizontal tab position is set by <ESC> D.
■ With the underline mode turned on, the underline printing is not applied to the tab space created by this command.
This command prints the data in the print buffer and feeds one line based on the current set line spacing in standard
mode.
■ In page mode, the printer does not perform actual printing, but moving only the print position to the next line.
This commands prints all data collected in the printer buffer In page mode. After completion of printing, the printer is
returned to standard mode.
■ The printer is returned to standard mode after completion of printing.
■ This command works in page mode enabled by ESC L.
■ If the paper is positioned at the print starting position, this command is ignored, not performing actual paper feeding
operation.
Print and carriage return
This command prints the data. With auto line feed enabled, it performs printing and one line feeding same as LF.
Cancel the print data in page mode
This command clears the receive buffer and print buffers in page mode.
■ This command is effective only in page mode that is set by ESC L.
Transmit real-time status
This command enables commands to be operable in real-time.
This command transmits the printer-related status specified by n as follows:
Transmit paper roll sensor status
■ Printer transmits the following status
n=1: Printer status
Drawer kick-out connector pin 3 i LOW
Drawer kick-out connector pin 3 is HIGH
Paper is not being fed by using the paper FEED button
Paper is being fed by the paper FEED button
Printing is being stopped
Autocutter error occurred
Paper end sensor: paper present
Paper end sensor: paper not present
■ The status is transmitted to the host upon being requested that can check the printer operational condition with it and
takes appropriate measures accordingly.
■ The real time command is stored into the receive buffer and executed with higher priority than other commands.
Generate pulse at real-time
■ Output the pulse specified by t to connector pin m as following:
Drawer kick-out connector pin 2
Drawer kick-out connector pin 5
■ This command generates the drive pulse to connector pin m with pulse width defined by t as following:
• Drawer kick-out connector pin 2 is selected with m=0 while pin 5 chosen for m=1.
• Pulse ON time is [t x100 ms] and OFF time [t x100 ms].
■ Upon receiving this command, the printer outputs the drive pulse to the specified connector pin.
■ The real time command is stored into the receive buffer and executed with higher priority than other commands.
Set the character right space
■ This command sets the size of space to right of character.
• Right space = n × [horizontal motion units].
■ In a double width mode, the right space will be doubled.
■ Horizontal motion unit varies depending the printer model.
Horizontal motion unit: 0.141mm(1/180 inch)
This command selects print mode(s) with bits having following meanings.
Character font A selected
Character font B selected
Emphasized mode not selected
Double-height mode not selected
Double-height mode selected
Double-width mode not selected
Double-width mode selected
Underline mode not selected
■ As alternative to this command, ESC M, ESC E and ESC – can be used for the selection for character font, emphasized mode and
underline mode respectively.
■ The entire character print width is underlined, but the space skipped by HT is not.
■ If both double width and double height are selected, the characters will be quadrupled.
Set absolute print position
0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nH ≤ 255, 0 ≤ nL ≤ 255)
This command specifies the next print starting position in reference to the left edge of the print area. The printing start
position is calculated using (nL + nH x 256) x (vertical or horizontal motion units).
■ Any setting values that go beyond the printable area is ignored.
■ In standard mode, the horizontal motion unit is used for the calculation.
■ In page mode, the horizontal motion unit is applied when printing start poison is defined to the upper right or lower right of print
area using ESC T, otherwise, the vertical motion unit is used.
Horizontal motion unit: 0.141mm(1/180 inch)
Select/cancel user-defined character set
■ This command selects/deselects user-defined character set that is downloaded by user. To make it valid, the least
significant bit should be defined like following.
• When n=0, the user-defined character set is deselected.
• When n=1, the user-defined character set is selected.
■ The resident character set is enabled and used right after canceling the user defined character set.
Define user-defined character set
y c1 c2 [x1 d1 ... d(yⅹx1)]... [xk d1 ... d(yⅹxk)]
y c1 c2 [x1 d1 ... d(yⅹx1)]... [xk d1 ... d(yⅹxk)]
y c1 c2 [x1 d1 ... d(yⅹx1)]... [xk d1 ... d(yⅹxk)]
y = 3
32 ≤ c1 ≤ c2 ≤ 126
0 ≤ x ≤ 12 (Font A)
0 ≤ x ≤ 9 (Font B)
0 ≤ d ≤ 255
k = c2 – c1 + 1
■ This command defines user-defined characters for character codes in a designated range from the start character code, c1 to the
end character code, c2.
• y denotes the number of bytes in the vertical direction, x the number of dots in the horizontal direction, and d the
dot data for the user-defined characters.
■ Alphanumeric characters (20H (decimal 32) to 7EH (decimal 126)) are definable.
■ Once user defined characters are defined, they remain available until they are redefined; ESC ? or ESC @ is
executed; the printer is reset.
■ The following shows the relationship between the definition data and printing result with downloaded character
consisting of 9x7 dots.
m = 0, 1, 32, 33
0 ≤ nL ≤ 255
0 ≤ nH ≤ 3
0 ≤ d ≤ 255
k = nL + nH × 256 [in case of m = 0, 1]
k = (nL + nH × 256) × 3 [in case of m = 32, 33]
■ This command specifies the bit image for the mode m as to the number of dots specified by nL and nH.
• d specifies the bit image data with 1 for printed data and 0 for not printed.
• k denotes the number of horizontal dots.
■ If the bit image data being entered is beyond the number of dots to be printed, the surplus will be discarded.
■ If the value of m is beyond the conditions, the subsequent data after m will be treated as normal data.
DPI : Dots per Inch (25.4mm)
Number of dots in
vertical direction
Vertical dot
density (DPI)
Horizontal dot
density (DPI)
Turn underline mode on/off
■ This command enables the print data following it to be printer out underlined.
• The underline mode varied depending on the following values of n:
Turns on underline mode, set at 1-dot thick
Turns on underline mode, set at 2-dot thick
■ The spaces generated by horizontal tab are not underlined.
■ Using bit 7 of ESC !, the underline mode can be activated/deactivated as well.
Select default line spacing
This command sets the default line spacing The default line spacing is approximately 3.75 mm, which is equivalent to
30 dots.
■ The line spacing can be set independently in standard mode and in page mode.
■ The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
Default line spacing: 4.23 mm (30 dots)
Corresponding to the default line spacing defined by ESC 2
■ This command sets the line spacing using a following rule.
• Line spacing = n x (vertical or horizontal motion units)
■ With standard mode selected, the vertical motion unit is used.
■ In page mode, the horizontal motion unit is applied when printing start poison is defined to the upper right or lower
right of print area using ESC T, otherwise, the vertical motion unit is used.
■ The line spacing is settable independently for each of standard and page modes.
Vertical or horizontal motion unit and maximum line spacing settable:
This command selects the device to which the host computer communicates according to n as follows:
■ The printer discards all of the received data commands with the exception of ESC = and real-time commands while
being disabled.
■ The normal operation will be resumed by ESC @, power cycling or printer reset.
■ If LSB is activated when the printer is disabled by this command, the status is transmitted to the host at a preset
interval.
Cancel user-defined characters
This command removes user-defined character specified by character code n.
■ In place of the deleted user-defined character, the cooresponding resident character is printed.
■ The user-defined characters for each font can be deleted independently.
This command cancels conditions previously set and initializes the printer to the conditions having existed at power on.
■ The data in the printer buffer is cleared.
■ The data in the receive buffer is not discarded.
■ All of the settings such as print mode and line feed are cleared.
■ NV graphics and NV user memory are not cleared.
■ In page mode, this command removes the data in print areas, restores the initial settings and returns to standard mode.
Set horizontal tab position
n = 8, 16, 24, 32, 40,....., 232, 240, 248
■ This command sets the horizontal tab position.
• n defines the number of columns from the beginning of the line to the horizontal tab setting.
• k denotes the number of horizontal tab positions to be set.
• The horizontal tab position is stored as a value of [character width x n] measured form the beginning of the line.
■ The data [n]k signifying the set position is transmitted in the ascending order and ends with a NUL code.
■ ESC D NUL cancels all horizontal tab positions.
■ Tab position is set at the value of [character width x n] from the beginning of the line.
■ The character width includes the space to the right of the character, and it will be twice the normal character when the
double width characters are selected.
■ If the data [n]k is equal to or smaller than the preceding data [n]k-1, the horizontal tab setting has been completed.
■ Up to 32 horizontal tabs can be set, the data exceeding this limit is processed as normal ones.
■ Even if the character width is changed after setting the horizontal tab positions, the horizontal tab positions remain
unchanged.
Turn emphasized mode on / off
■ This command turns emphasized mode on or off by toggling the least significant bit of n like following.
• When the LSB of n is 0, emphasized mode is turned off.
• When the LSB of n is 1, emphasized mode is turned on.
■ The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.
Turn double-strike mode on/off
■ This command turns double-strike mode on or off by toggling the least significant bit of n like following.
• When the LSB of n is 0, emphasized mode is turned off.
• When the LSB of n is 1, emphasized mode is turned on.
■ The setting of this command remains effective until ESC !, ESC @, printer reset or power cycling is executed.