7199 Programmers Guide 5170
7199 Programmers Guide 5170
Printer
Programmer's Guide
Issue F
NCR is a registered trademark of NCR Corporation. Product names mentioned in this publication may be
trademarks or registered trademarks of their respective companies and are hereby acknowledged.
Where creation of derivative works, modifications or copies of this NCR copyrighted documentation is
permitted under the terms and conditions of an agreement you have with NCR, NCR's copyright notice must
be included.
It is the policy of NCR Corporation (NCR) to improve products as new technology, components, software, and
firmware become available. NCR, therefore, reserves the right to change specifications without prior notice.
All features, functions, and operations described herein may not be marketed by NCR in all parts of the
world. In some instances, photographs are of equipment prototypes. Therefore, before using this
document, consult with your NCR representative or NCR office for information that is applicable and
current.
By NCR Corporation
Global Headquarters
864 Spring St. NW
Atlanta, GA 30308
United States
All Rights Reserved
Note
This document is NCR proprietary information and is not to be disclosed
or reproduced without consent.
References
l NCR 7199 Series Thermal Receipt Printer User Guide (BCC5-0000-5172)
l NCR 7199 Series Thermal Receipt Station Printer Parts Identification Manual
(BCC5-0000-5173)
l NCR7199 Series Thermal Receipt Station Printer Service Guide (BCC5-0000-
5174)
l NCR 7197 to 7199 Thermal Receipt Station Printer Migration Guide (BCC5-0000-
5175)
l NCR 7199 Series i to 7199 Series ii Thermal Receipt Station Printer Migration
Guide (BCC5-0000-5672)
l NCR Retail Controls 3.x UPOS User's Guide for Windows (B005-0000-1619)
l NCR Retail Controls 3.x UPOS User's Guide for Linux (B005-0000-1489)
l NCR Window Printer Driver User Guide for NCR Retail Printers (B005-0000-
1609)
Audience 1
General 2
USB VID/PID 7
Internal buffers 8
RAM 8
Flash memory 8
RS232C interface 9
Ethernet interface 9
TCP socket 10
UDP socket 10
SNMP 10
DHCP 11
HTTP 11
LPR Socket 12
Emulation 13
Command Descriptions 24
Clear printer 25
Generate tone 26
Initialize printer 27
Print 35
Horizontal tab 39
Set column 39
Graphics commands 71
Print logo 84
Draw Line 99
QR code: Print the symbol data in the symbol storage area 181
QR code: Transmit the size Information of the symbol data in the sym-
bol storage area 182
Maxicode : Print the symbol data in the symbol storage area 186
Composite Symbology: Store the data in the symbol storage area 193
Composite Symbology: Print the data in the symbol storage area 196
Aztec Code: Set the number of mode types and data layers 200
Aztec Code: Store the data in the symbol storage area 204
Aztec Code: Transmit the size information of the symbol data in the
symbol storage area 206
DataMatrix: Print the symbol data in the symbol storage area 213
Diagnostics 292
Explanation 294
Submenu 295
Warning 312
General 320
Outline 332
Limitations 342
Transmit remaining size for user-defined logo area in flash memory 448
Transmit the key code for user-defined logo in flash memory 450
QR code: Print the symbol data in the symbol storage area 504
QR code: Transmit the size information of the symbol data in the sym-
bol storage area 504
2-Dimensional GS1 DataBar: Store data in the symbol storage area 507
2-Dimensional GS1 DataBar: Print data in the symbol storage area 508
PDF417: Print the symbol data in the symbol storage area 526
PDF417: Transmit the size information of the symbol data in the sym-
bol storage area 527
Maxicode: Print the symbol data in the symbol storage area 528
Composite Symbology: Store the data in the symbol storage area 529
Composite Symbology: Print the data in the symbol storage area 530
Aztec Code: Set the number of mode types and data layers 530
Aztec Code: Store the data in the symbol storage area 531
Aztec Code: Print the symbol data in the symbol storage area 531
Aztec Code: Transmit the size information of the symbol data in the
symbol storage area 531
DataMatrix: Print the symbol data in the symbol storage area 532
PRTR 586
NHPI 586
NHPI 587
ION(Epic) 587
PRTR 588
B Jan 2018 Updated the commands and added a note for 7199 1.1 development on
Chapter 2
(cont.)
o New Special Font options and notes
o New Default code page options
o New Receipt synchronization option (Legacy)
o USB Type options and note
o BitImage Max Speed options
o Compatibility Barcode Length options
o Compatible top margin time out
o Auto column mode for PDF417 Print Column
o Legacy Paper Jam
o A note stating that Fixed ION is to be same as ION (Epic)
o A note on Default LPI settings impact of constructed Thai
selection
(cont.)
o Paper End Detection
o Paper Low Detection
(cont.)
o Execute Head Failure Detection
o Get Detail of Head Failure Detection
For programmers using the Microsoft Windows Printer API, refer to the Microsoft
SDK for information on the programming interface. Additional NCR–specific
information can be found in the NCR Window Printer Driver User Guide for
NCR Retail Printers (B005–0000–1609).
(communicate with a Printer class (PTPR), HID class (NHPI), Vendor specific class (EPiC)
system)
Note
For more information, refer to the USB VID/PID table below.
Receipt Printing Speed Series i: Maximum 14 ips (inch per second)/Minimum 1.5 ips
Note
For more information, refer to the Maximum receipt Printing Speed in
each mode table below.
Character attribute Double width, double high, rotate, under line, scalable, bold, superscript,
italic, subscript, inverse image characters
SBCS Font A 572 dots (71.57 mm) 416 dots (52.05 mm)
SBCS Font B 560 dots (70.07 mm) 420 dots (52.55 mm)
SBCS2 Font A 546 dots (68.32 mm) 416 dots (52.05 mm)
SBCS2 Font B 560 dots (70.07 mm) 390 dots (48.80 mm)
SBCS3 Font A 546 dots (68.32 mm) 416 dots (52.05 mm)
SBCS3 Font B 560 dots (70.07 mm) 390 dots (48.80 mm)
DBCS 1 byte (Standard) 576 dots (72.07 mm) 400 dots (50.05 mm)
DBCS 2 byte (Standard) 576 dots (72.07 mm) 408 dots (51.05 mm)
DBCS 1 byte 570 dots (71.32 mm) 420 dots (52.55 mm)
(Compress)
DBCS 2 byte 560 dots (70.07 mm) 420 dots (52.55 mm)
(Compress)
l SBCS
l CP497 (DOS USA)
l CP850 (DOS Latin 1)
l CP852 (DOS Latin 2)
l CP858 (DOS Latin 1 + Euro)
l CP860 (DOS Portuguese)
l CP862 (DOS Israel)
l CP863 (DOS French Canadian)
l CP864 (DOS Arabic)
l CP865 (DOS Nordic)
l CP866 (DOS Russian)
l CP874 (ISO Thai)
l CP928 (Greek)
l CP737 (DOS Greek)
l CP855 (IBM Cyrillic)
l CP1250 (Windows Eastern European)
l CP1251 (Windows Cyrillic)
l CP1252 (Windows Latin 1)
l CP1256 (Windows Arabic)
l Katakana
l Hungary
l Romania
l DBCS
l 932 (Japanese)
l 936 (Simplified Chinese)
l 949 (Korean)
Note
Take note of the following:
l A1 < =First Byte <=AC , A1<= Second Byte <=FE
l B0 <= First Byte <=FD , A1< =Second Byte <=FE
Note
Take note of the following:
l Double Byte:
80<First Byte<FF, 40<Second Byte <FF
l Four Byte:
If First Byte = 81, Second byte =39, EE<= Third Byte <= FE,
30 <=Fourth Byte <= 39
If First Byte = 82, 30 <= Second byte <=35, 81<= Third Byte
<= FE, 30 <= Fourth Byte <= 39
Print line height l Minimum 51 dots (4 LPI / Constructed 874 Large Font (874 LF))
l Minimum 24 dots (8.46 LPI / Standard font mode)
l Minimum 20 dots (10.5 LPI / 850 Mini Font B)
l Minimum 16 dots (12.7 LPI / 866 Mini Font B)
Note
For USB VID/ PID or other USB Descriptor information, endpoint numbers
are the same for each USB mode (NHPI, PRTR, EPiC) in ESC/POS emulation
mode.
Macro Buffer 2 KB
Flash memory
Total size Series i: 8 MB
Series ii: 16 MB
Macro area 2 KB
In order to make the option interface card available, the USB interface cable has
to be disconnected.
RS232C interface
Protocol DTS / DSR, XON / XOFF
Ethernet interface
Application Layer TCP Socket, UDP Socket, SNMP, DHCP, HTTP
UDP socket
It transfers real time commands and those responses.
SNMP
SNMP is used by the SNMP manager to acquire the printer information and
status from SNMP agent (Printer).
Get Response
Trap
HTTP
HTTP is used to configure the network setting by WEB Provision.
Subnet mask
Default Gateway
DHCP
DHCP address
SNMP Trap 1
SNMP Trap 2
Note
The LPR socket settings is available in NCR 7199 Series ii only.
Command
Command sequence Function
Number
Graphics Command
GS 8L 1DH 38H 4CH Store the graphics data in the print buffer 88
GS (L 1DH 28H 4CH Print the graphics data in the print buffer 89
GS 8L 1DH 38H 4CH Define Logo in Flash Memory by the key 103
code
GS 8L 1DH 38H 4CH Define Logo in RAM by the key code 106
ESC u NULL 1BH 75H 00H Transmit Peripheral Device Status 110
US SUB 01 1FH 1AH 01H Get Detail of Head Failure Detection 118
Barcode Commands
GSk pL pH cn 1DH 28H 6BH pL pH cn QR Code: Select the error correction level 137
45H 45H
GS (k pL pH 1DH 28H 6BH pL pH cn QR Code: Store the data in the symbol 138
cn 50H 50H storage area
GS (k pL pH 1DH 28H 6BH pL pH cn QR Code: Print the symbol data in the 139
cn 51H 51H symbol storage area
Macro Commands
GS " 1DH 22H Select Memory Type for User Defined 167
Data
GS " U 1DH 22H 55H Flash Memory Allocation for User-defined 168
Storage Area
Diagnostics Commands
The following table lists and describes the headings used to present the
elements of the commands in the descriptions in this section. Each command
code is presented in ASCII, hexadecimal, and decimal formats. Select the format
that best suits the programming implementation. The printer interprets the 8-bit
bytes it gets through the communication interface, regardless of the format the
program lists them in.
ASCII The ASCII representation of the command control code followed by its operands.
Hexadecimal The hexadecimal representation of the command control code followed by its
operands.
Decimal The decimal representation of the command control code followed by its
operands.
Operand n A description of the command operand. Other command operands may be m, p1,
p2, x, or y.
Range of n The upper and lower limits or list of possible values of the command operand. The
values are listed as decimal values unless specified otherwise.
Default of n The command operand default value after printer reset or startup.
Exceptions Describes any exceptions to this command, for example, incompatible commands.
Related Describes related information and notes for this command, for example, bit
Information information.
Hexadecimal 10
Decimal 16
It clears the print buffer and resets the printer settings to the condition when the
printer is turned on except the barcode related settings.
Exception:
This command is ignored when the printer is in the page more.
Hexadecimal 19
or
1B 69
Decimal 25
or
27 105
It fully cuts receipt paper. If the knife supports the partial cut only, it performs
the partial cut by this command.
Exceptions
NCR 7199 Series i and Series ii do not support full cut mechanically.
Hexadecimal 1A
or
1B 6D
Decimal 26
or
27 109
It partially cuts receipt paper. If the knife supports only the full cut, it fully cuts
receipt paper by this command.
Generate tone
ASCII ESC BEL
Hexadecimal 1B 07
Decimal 27 7
Hexadecimal 1B 40
Decimal 27 64
Default:
It clears the print buffer and resets the printer settings to the condition when the
printer is turned on.
The user-defined logos, characters and data in RAM are cleared by this
command. However, the defined data in the flash memory is not cleared. The
macro is also not cleared.
Hexadecimal 1B 63 34 n
Decimal 27 99 52 n
Values of n:
It enables or disables to suspend printing data if the paper low is detected while
printing data. Once printing is suspended by this function, it does not resume
printing until the certain paper is supplied.
Hexadecimal 1B 63 35 n
Decimal 27 99 53 n
Value of n l 0—Enable
l 1—Disable
Default 0 (Enable)
Hexadecimal 1B 70n p1 p2
Decimal 27 112 n p1 p2
Value of n l 0,48—Drawer1
l 1,49—Drawer2
Value of p2 It defines the pulse off (delay) time before processing the next
operation.
It generates the pulse to open the cash drawer, and defines the pulse off time
(delay) after the pulse. During the pulse off time, the printer does not process the
next operation.
Formulas:
Pulse ON time = p1 x 2 milliseconds
Note
If this command is sent multiple times, the next command is buffered and
processed only after the current command is completed.
Hexadecimal 1D 56 m
or
1D 56 m n
Decimal 29 86 m
or
29 86 m n
Value of m It defines the cut mode. For values of m, refer to the table below.
Value of n When n is 65 or 66, it defines the extra feed amount fed before cutting.
When n is 103 or 104, it defines the extra reverse feed amount fed after cutting.
The vertical motion unit (1/203 inch, 0.125 mm) is used to define the extra feed.
Range of n 0–255
Values of m:
If the knife supports the partial cut only, it performs the partial cut.
If the knife supports the full cut only, it performs the full cut.
If the knife supports the partial cut only, it performs the partial cut.
If the knife supports the full cut only, it performs the full cut.
If the knife supports partial cut only, it performs the partial cut.
If the knife supports the full cut only, it performs the full cut.
Exceptions:
If m is out of the specified range, the command is ignored.
If m=103,104 is executed, the printer ignores the Compatible Top Margin feed
even if the setting is enable. These m values are only supported in Series ii.
NCR 7199 Series i and Series ii do not support full cut mechanically.
Hexadecimal 1F 74
Decimal 31 116
If there are data in the print buffer, it prints first those data by force and then
starts printing the configuration form. After printing the configuration form, it
resets the printer attributes to the same condition as power-on.
Whenever the printer prints this form, it executes the thermal head failure
detection, and this result is included in this form.
Hexadecimal 0A
Decimal 10
It prints data in the print buffer and performs one line feed. If this command
used along with CR (0x0D) it only performs one line feed although CR itself
requires one line feed.
ASCII CR
Hexadecimal 0D
Decimal 13
It prints data in the print buffer and feeds paper one line. If this command used
along with LF (0x0A), it only performs one line feed although LF itself also
requires one line feed.
ASCII DC4 n
Hexadecimal 14 n
Decimal 20 n
Range of n 0–255
It feeds paper n lines based on the current line pitch. This command is ignored
when the current line buffer is not empty.
Hexadecimal 15 n
Decimal 21 n
Range of n 0–255
It feeds paper n dot rows. This command is ignored when the current line buffer
is not empty.
Hexadecimal 16 n
Decimal 22 n
Range of n 0–12
It adds n extra dot rows based on the character height to change the line space.
0 8.47 24
1 8.13 25
2 7.81 26
3 7.52 27
4 7.25 28
5 7.00 29
6 6.77 30
7 6.55 31
8 6.35 32
9 6.16 33
10 5.98 34
11 5.81 35
12 5.64 36
Exceptions:
This command is ignored in Page Mode.
Hexadecimal 17
Decimal 23
It prints data in the print buffer and performs one line feed. The printer behavior
is same as LF (0x0A) command.
Hexadecimal 1B 32
Decimal 27 50
Hexadecimal 1B 33 n
Decimal 27 51 n
Range of n 0–255
It defines the default line spacing to n/406 inches. The minimum line pitch
depends on the selected font. The minimum line pitch of all fonts except 866
Mini Font is 0.118 inches (8.47 LPI) whose parameter n is 48. If the parameter n is
less than 48, it is ignored. In 866 Mini font B, the minimum line pitch is 0.078
inches (12.7 LPI) whose parameter n is 32. If parameter n is less than 32, it is
ignored.
If the vertical minimum motion unit is changed by Set Horizontal and Vertical
Minimum Motion Units command (1D 50) the parameters of this command is
interpreted accordingly.
Hexadecimal 1B 4A n
Decimal 27 74 n
Range of n 0–255
It prints data in the print buffer and feeds paper n dot rows. The minimum feed
amount is 0.118 inches, so the valid minimum parameter n is 24. It feeds the
minimum feed amount (n=24) by force if parameter n is less than 24 except 0. If
parameter n is set to 0, it just prints data in the print buffer without feeding.
If the vertical minimum motion unit is changed by Set Horizontal and Vertical
Minimum Motion Units command (1D 50), the parameters of this command is
interpreted accordingly.
Hexadecimal 1B 64 n
Decimal 27 100 n
Range of n 1–255
It prints data in the buffer and feeds paper n lines according to the current line
spacing.
Hexadecimal 1D 50 x y
Decimal 29 80 x y
Value of x Horizontal
Value of y Vertical
Range of x 0–255
Range of y 0–255
Default of x 203
Default of y 203
It sets the horizontal and vertical motion units to 1/x inch and 1/y inch
respectively.
When x or y is set to 0, the default setting for that motion unit is used.
Hexadecimal 09
Decimal 9
It moves the print position to the next horizontal tab position set by the Set
Horizontal Tab Positions (1B 44 n1 n2 ... 00) command.
Set column
ASCII ESC DC4 n
Hexadecimal 1B 14 n
Decimal 27 20 n
Hexadecimal 1B 24 n1 n2
Decimal 27 36 n1 n2
It moves the print position to the point defined (n1 + n2 x 256 dots) from the left
edge of the print area.
Related information:
This command is also available for the graphics data.
If the horizontal minimum motion unit is changed by Set Horizontal and Vertical
Minimum Motion Units command (1D 50), the parameters of this command is
interpreted accordingly.
Hexadecimal 1B 44 n1 n2 ...nk 00
Decimal 27 68 n1 n2 ...nk 0
Range of k 0 ≤ k ≤ 32
It sets the horizontal tab positions. This command does not move the current
print position.
Hexadecimal 1B 5C n1 n2
Decimal 27 92 n1 n2
Value of n 27 92 n1 n2
It moves the print position to the relative position specified by ((n1 + n2 x 256) x
(horizontal motion unit)) from the current print position.
The horizontal unit follows Set Horizontal and Vertical Minimum Motion Units
(1D 50) command.
The positive number moves the print position to the right, the negative number
moves to the left.
Hexadecimal 1B 61 n
Decimal 27 97 n
Range of n l 0–2
l 48–50
It specifies the alignment of the characters, graphics, logos, and bar codes on the
receipt station.
Exceptions:
The command is valid only when it is specified at the beginning of a line.
Hexadecimal 1D 4C nL nH
Decimal 29 76 nL nH
Range of nL 0–255
Range of nH 0–255
It sets the left margin of the printing area to ((nL + nH x 256) x (horizontal motion
units)). The horizontal motion unit follows Set Horizontal and vertical Minimum
Motion Units (1D 50) command.
The maximum printable area is 576 dots. See the following diagram. If the left
margin specified by this command exceeds the current printable area, it is
ignored.
Exceptions:
The command is valid only when it is specified at the beginning of a line.
Hexadecimal 1D 57 nL nH
Decimal 29 87 nL nH
Range of nL 0–255
Range of nH 0–255
It sets the print area to ((nL + nH x 256) x (horizontal motion unit)). The horizontal
motion unit follows Set Horizontal and vertical Minimum Motion Units (1D 50)
command.
The maximum printable area is 576 dots. See the following diagram. If the left
margin specified by this command exceeds the current printable area, the width
of the maximum printable area is used.
Exceptions:
The command is valid only when it is specified at the beginning of a line.
Hexadecimal 12
Decimal 18
Limitation:
This command is ignored in 1256 (Arabic) proportional font mode.
Hexadecimal 13
Decimal 19
Hexadecimal 1B 12
Decimal 27 18
Limitations:
This command is ignored in 1256 (Arabic) proportional font mode.
Hexadecimal 1B 16 n
Decimal 27 22 n
Formulas:
The following table provides the maximum number of characters printed in one
line in each CPI.
Limitation:
This command is ignored in 1256 (Arabic) proportional font mode.
Hexadecimal 1B 20 n
Decimal 27 32 n
Value of n 0–32
Default 0
The horizontal and vertical motion unit follows Set Horizontal and Vertical
Minimum Motion Units (1D 50) command.
In Standard Mode, the horizontal motion unit is used to specify the character
right side spacing.
In Page Mode, either horizontal or vertical motion is used to specify the character
right side spacing according to the print direction.
Limitation:
This command is ignored in 1256 (Arabic) proportional font mode.
ASCII ESC ! n
Hexadecimal 1B 21 n
Decimal 27 33 n
Default 0
Bit Function 0 1
Bit0 Pitch Standard pitch: 15.6 CPI Compressed pitch: 20.3 CPI
Limitation:
Bit0 setting is ignored in 1256 (Arabic) proportional font mode.
Bit3, Bit4, Bit5 and Bit7 settings are available in some limited condition in 1256
(Arabic) proportional font mode. For more information, refer to Arabic Font
Support on page 338.
Hexadecimal 1D 62 n
Decimal 29 98 n
Limitation:
This command is not effective for the characters in 1256 (Arabic) proportional
font mode.
Hexadecimal 1B 25 n
Decimal 27 37 n
Range of n 0–2
Note
Take note of the following:
l Code Page 437 will be selected when Standard DBCS (CP 932, 936,
949, 950) is loaded. Code Page GB18030 will be selected when
GB18030 DBCS is loaded.
l Code Page 850 selection will be ignored when GB18030 DBCS is
loaded.
Limitation:
This command is ignored in 1256 (Arabic) proportional font mode.
Hexadecimal 1B 26 3 c1 c2 [x1 d1 d2 ... d(x1 x 3)] ... [xk d1 d2 ... d(xk x 3)]
Decimal 27 38 3 c1 c2 [x1 d1 d2 ... d(x1 x 3)] ... [xk d1 d2 ... d(xk x 3)]
Range of n 32 ≤ c1 ≤ c2 ≤ 126
Value of c ASCII character code of the first (c1) and the last (c2) character to define
Note
To define only one character, use the same code for both c1 and c2.
Value of x The number of dots in the horizontal direction of each user-defined character
1 ≤ x ≤ 13 standard pitch
1 ≤ x ≤ 10 compressed pitch
The total number of bytes of defined data for each character cell is (3 x x) bytes.
Value of k The number of user-defined characters defined by this command at the same time
k = c2 – c1 + 1
This command defines the user-defined characters into the target memory
specified by Select Memory Type for User Defined Data (1D 22 n) command for
both the receipt printing and the slip printing.
If the target memory is RAM, characters defined are no longer available once the
printer is turned off or Initialize Printer command (1B 40) is processed.
Hexadecimal 1B 2D n
Decimal 27 45 n
This command turns underline mode on or off. Underline is not printed for
spaces set by the Horizontal Tab, Set Absolute Stmed2 Position, or Set Relative
Print Position commands.
The printer behavior of this command and Select Print Modes (Bit 7) is
completely same.
Limitation:
This command is available in some limited condition in 1256 (Arabic)
proportional font more. For more information, refer to Arabic Font Support on
page 338.
Hexadecimal 1B 3A 30 30 30
Decimal 27 58 48 48 48
Hexadecimal 1B 3F n
Decimal 27 63 n
Range of n 32–255
Limitation:
This command is ignored in 1256 (Arabic) proportional font mode.
Hexadecimal 1B 45 n
Decimal 27 69
Value of n l 0 (Bit0)—Off
l 1 (Bit0)—On
Range of n 0–255
Default 0 (Bit0)—Off
It turns the emphasize mode on or off. Only the lowest bit of n is effective.
The printer behavior of this command and Select Print Modes (Bit 3) is
completely same.
Exception:
This command is not available for image printing.
Limitation:
This command is available in some limited condition in 1256 (Arabic)
proportional font mode. For more information, refer to Arabic Font Support on
page 338.
Hexadecimal 1B 47 n
Decimal 27 71 n
Value of n l 0 (Bit0)—Off
l 1 (Bit0)—On
Range of n 0—255
Default 0 (Bit0)—Off
This command turns double strike mode on or off. Only the lowest bit of n is
effective.
Exception:
This command is not valid for image printing.
Limitations:
This command is available in some limited condition in 1256 (Arabic)
proportional font mode. For more information, refer to Arabic Font Support on
page 338.
Hexadecimal 1B 49 n
Decimal 27 73 n
Value of n l 0 (Bit0)—Off
l 1 (Bit0)—On
Range of n 0–255
Default 0 (Bit0)—Off
This command turns Italic print mode on or off. Only the lowest bit of n is
effective.
Italic print mode is available for both resident fonts and user-defined characters.
Limitations:
This command is available in some limited condition in 1256 (Arabic)
proportional font mode. For more information, refer to Arabic Font Support on
page 338.
Hexadecimal 1B 52 n
or
1B 74 n
Decimal 27 82
or
27 116 n
Values of n:
n Description
126 Romania
127 Hungary
Note
This is supported in Series ii only.
Note
This is supported in Series ii only.
There are two command codes to select the international character set and the
functionality of both commands are completely the same.
Hexadecimal 1B 2B n
Decimal 27 43 n
Note
In Unicode mode, a character is specified in two bytes as follows:
Exceptions:
All characters defined by Unicode are not fully supported. The characters
specified in "SPAA-494 NCR RSD POS Printer Character Set Specification" are able
to print as the Unicode characters.
In Series ii models, all Special Fonts are supported by selecting their values with
UTF-16.
Hexadecimal 1B 56 n
Decimal 27 86 n
Value of n l 0, 48—Off
l 1, 49—On
Default 0—Off
The setting specified by this command is valid until the printer is reset or the
following command is received:
Limitation:
This command is ignored in 1256 (Arabic) proportional font mode.
Hexadecimal 1B 72 n
Decimal 27 114 n
Value of n l 0—Monochrome
l 1—Color
Default 0—Monochrome
This command turns the color mode on or off. Color printing is available when
the printer is configured to the two–color paper mode and setting the two–color
thermal paper is required to actualize the color printing.
Limitation:
This command is not available to print multi-tone data.
Example
MSComm1.Output = Chr$(&H1B) & Chr$(&H72) & Chr$(n)
Hexadecimal 1B 7B n
Decimal 27 123 n
Value of n l 0 (Bit0)—Off
l 1 (Bit0)—On
Range of n 0–255
Default 0 (Bit0)—Off
This command turns upside-down print mode on or off. Only the lowest bit of n
is effective.
Exceptions:
The command is valid only when it is specified at the beginning of a line.
Limitation:
This command is ignored in 1256 (Arabic) proportional font mode.
Summary of rotated printing
The following table shows the final output based on the combinations of Select
or Cancel Upside & Down Printing Mode (1B 7B), Select or Cancel 90 Degrees
Clockwise Rotated Print (1B 56) and Select 90 Degrees Counter-Clockwise
Rotated Print (1B 2B).
Off On X
On Off X
On On X
X X On
Hexadecimal 1D 21 n
Decimal 29 33 n
Default 0
This command selects the character height by bits 0 to 3 and the character width
by bits 4 to 7, as follows:
Character Width Selection
00 0 1 time (normal)
10 16 2 times
20 32 3 times
30 48 4 times
40 64 5 times
50 80 6 times
60 96 7 times
70 112 8 times
00 0 1 time (normal)
01 1 2 times
02 2 3 times
03 3 4 times
04 4 5 times
05 5 6 times
06 6 7 times
07 7 8 times
Exceptions:
This command is not effective for bar code HRI characters.
Limitation:
This command is available in some limited condition in 1256 (Arabic)
proportional font mode. For more information, refer to Arabic Font Support on
page 338.
Hexadecimal 1D 42 n
Decimal 29 66 n
Value of n l 0 (Bit0)—Off
l 1 (Bit0)—On
Range of n 0–255
Default of n 0 (Bit0)—Off
This command turns White/Black reverse print mode on or off. Only the lowest
bit of n is effective.
In this mode, print dots and non-print dots are reversed. It is also applied to
character specified by Set Character Right-Side Spacing command (1B 20).
However, it is not applied to all vertical spacing such as line feed and horizontal
spacing created by Horizontal Tab (09), Set Absolute Stmed2ing Position
command (1B 24), and Set Relative Print Position command (1B 5C). Whil the
printer is printing data in white/black reverse print mode, the underline mode is
temporarily disabled.
Limitation:
This command is available in some limited condition in 1256 (Arabic)
proportional font mode. For more information, refer to Arabic Font Support on
page 338.
Hexadecimal 1F 05 n
Decimal 31 05 n
Limitation:
This command is available in some limited condition in 1256 (Arabic)
proportional font mode. For more information, refer to Arabic Font Support on
page 338.
Value of m 48
Value of fn 112
Value of a 48, 52
Value of bx 1, 2
Value of by 1, 2
Range of d 0 ≤ d ≤ 255
This command stores the graphic data (raster format) in the print buffer.
l 48—Monochrome (digital)
l 52—Multi-tone
The graphic image is enlarged by bx and by in the horizontal and vertical directions.
xL, xH Specify the number of dots in the horizontal direction as (xL + xH x 256).
yL, yH Specify the number of dots in the vertical direction as (yL +yH x 256)
l 49—Color 1
l 50—Color 2
l 51—Color 3
l 52—Color 4
The color of the selectable defined data (c) is Color 1 when a = 48 (monochrome).
The colors of the selectable defined data (c) are Color 1 ~ Color 4 when a = 52
(multi-tone).
Note
To print long grayscale image larger than over maximum range of height
size (y=2304) with this command, it is recommended to divide image to
small image block per height size (y=50) to print smoothly. For USB NHPI
interface, it is recommended to set USB speed mode setting to High speed
mode to print smoothly.
Hexadecimal 1D 28 4C pL pH m fn
Decimal 29 40 76 pL pH m fn
Value of m 48
Value of fn 2, 50
This command prints the buffered graphics data stored by Store the graphics
data in the print buffer command.
Range of n 0–255
Value of k l 72—80 mm
l 53—58 mm
This command defines the monochrome BMP file as the user-define logo into the
target memory. As for the detail of logo definition sequence, please refer to
Select the current logo on page 79.
Exceptions:
BMP file images must be monochrome image format, otherwise it is ignored. If
the logo size of this command is larger than the free space of the user-defined
logo area of the flash memory, a logo is tentatively stored into RAM and this
status is reflected to bit 3 in Flash memory user sector status (parameter n=4, 52)
of Transmit Status (1D 72) command.
This command is sharing the same flash memory / RAM area with Define Logo in
Flash Memory by the key code command or Define Logo in RAM by the key code
command. However, they are incompatible with each other due to different
command parameters and data storing structure.
When this command is executed, all images stored in the user defined logo area
of the flash memory / RAM defined by Define Logo in Flash Memory by the key
code command or Define Logo in RAM by the key code command are erased.
Hexadecimal 1B 2A m n1 n2 d1 ... dn
Decimal 27 42 m n1 n2 d1 ... dn
This command prints the bit image data by "d" according to the mode specified
by m as follows.
Values (m):
Vertical
m Mode Horizontal direction Number of Dots/Line
direction
0 8 Dot Single 8 (68 DPI) l 0–288 (101DPI, 80 mm) l 8x288 (80 mm)
Density
l 0–212 (101DPI, 58 mm) l 8x212 (58 mm)
1 8 Dot Double 8 (68 DPI) l 0–576 (203DPI, 80 mm) l 8x576 (80 mm)
Density
l 0–424 (203DPI, 58 mm) l 8x424 (58 mm)
32 24 Dot Single 24 (203 DPI) l 0–288 (101DPI, 80 mm) l 24x288 (80 mm)
Density
l 0–212 (101DPI, 58 mm) l 24x212 (58 mm)
33 24 Dot Double 24 (203 DPI) l 0–576 (203DPI, 80 mm) l 24x576 (80 mm)
Density
l 0–424 (203DPI, 58 mm) l 24x424 (58 mm)
Hexadecimal 1B 2E m n rl rh d1 … dn
Decimal 27 46 m n rl rh d1 … dn
Value of d d1 … dn
It prints the raster graphic data specified by "d" with the offset value specified by
"m".
Exceptions:
Advanced Raster graphics is not available in Page Mode.
Values:
n d
This command prints the bit image data defined by "d" in 24 dots single density
mode. the usage of this command is completely same as 24 Dot Single Density
Mode (m=32) of Select Bit Image Mode (1B 2A m n1 n2 d1 ... dn)
command.
Values:
n d
This command prints the bit image data defined by "d" in 24 dots double density
mode. The usage of this command is completely same as 24 Dot Double Density
Mode (m=33) of Select Bit Image Mode (1B 2A m n1 n2 d1 ... dn)
command.
Hexadecimal 1D 23 n
Decimal 29 35 n
Value of n Logo ID
Range of n 0–255
If there is the existing logo with same ID already, the new logo replaces it, and
the old logo is deactivated. the deactivated logo data is not erased from the user-
defined logo area.
Logo print
This command specifies the logo ID that the user intends to print. To print the
logo, follow these steps:
The current logo selected is not changed either until the different ID is specified
by this command or the printer is turned off. The default ID after power on is
zero.
Hexadecimal 1D 2A n1 n2 d1 ... dn
Decimal 29 42 n1 n2 d1 ... dn
n = 8 x n1 x n2 (1 ≤ n1 ≤ n2 ≤ 4608)
It defines the user-defined logo into the target memory in the same manner as
Define Bitmap File as Logo (1B+BMP file) command. For more information,
refer to "Select the Current Logo" section of Graphics commands on page 71.
Exceptions:
If the logo size of this command is larger than the free space of the user-defined
logo area of the flash memory, a logo is tentatively stored into RAM and this
status is reflected to bit 3 in Flash memory user sector status (parameter n=4, 52)
of Transmit Status (1D 72) command.
This command is sharing the same flash memory / RAM area with Define Logo in
Flash Memory by the key code command or Define Logo in RAM by the key code
command. However, they are incompatible with each other due to different
command parameters and data storing structure.
When this command is executed, all images stored in the user defined logo area
of the flash memory / RAM defined by Define Logo in Flash Memory by the key
code command or Define Logo in RAM by the key code command are erased.
In RS232C interface, DSR signal is activated (ON) while writing logo data into the
flash memory.
Hexadecimal 1D 2F m
Decimal 29 47 m
This command prints the current logo. For more information, refer to "Select the
Current Logo" section of Graphics commands on page 71.
Hexadecimal 1C 70 n m
Decimal 28 112 n m
Value of n Logo ID
Range of n 0–255
This command prints the logo specified by n in the density specified by m. For
more information, refer to "Select the Current Logo" section of Graphics
commands on page 71.
Hexadecimal 1F 04 n
Decimal 31 04 n
Value of n l 0—off
l 1—on
Default 0 (Off)
Value of m 48
Value of fn 66
This command deletes the logo in the user-defined logo area of the flash
memory defined by the key codes (kc1 and kc2) of Define Logo in Flash Memory
by the key code command.
Exceptions:
This command is not available for logos defined by Define Bitmap File as Logo
(1B + BMP file) command and Define Bit Image as Logo (1D 2A n1 n2
d1 ... dn) command.
Value of m m = 48
Value of fn fn = 67
Value of a a = 48, 52
This command defines the graphics data (raster format) as the logo specified by
the key codes (kc1, kc2) in the user-defined logo area of the flash memory.
l 48—Monochrome (digital)
l 52—Multi-tone
l 49—Color 1
l 50—Color 2
l 51—Color 3
l 52— Color 4
The color of the selectable defined data (c) is Color 1 when a = 48 (monochrome).
The colors of the selectable defined data (c) are Color 1 ~ Color 4 when a = 52
(multi-tone).
Exceptions:
The maximum width of each logo is 576/203 inches, and the maximum height of
each logo is 2304/203 inches. If a logo size is more than this, it is not printed.
If the graphic size defined by this command is larger than the free space of the
user defined logo area of the flash memory, it firstly erases all logo data in the
user-defined area and defines this new logo data. To avoid erasure on the
current logo data in the user-defined area, it is recommended to use the
Transmit Remaining Size for User-defined Logo Area command to validate the
remain flash memory / RAM size can fit by new define logo size
This command is sharing the same flash memory / RAM area with the Define
Bitmap File as Logo (1B + BMP file) command and Define Bit Image as Logo
command. However, they are incompatible with each other due to different
command parameters and data storing structure.
Value of m 48
Value of fn 69
Value of x 1, 2
Value of y 1, 2
This command prints the user-defined logo defined by the key codes (kc1 and
kc2) of Define Logo in Flash Memory by the key code command. The logo image
is enlarged by x and y in the horizontal and vertical directions.
Exceptions:
This command is not available for logos defined by Define Bitmap File as Logo
(1B + BMP file) command and Define Bit Image as Logo (1D 2A n1 n2 d1
... dn) command.
Value of m 48
Value of fn 82
This command deletes the logo in the user-defined logo area of RAM defined by
the key codes (kc1 and kc2) of Define Logo in RAM by the key code command.
Exceptions:
This command is not available for logos defined by Define Bitmap File as Logo
(1B + BMP file) command and Define Bit Image as Logo (1D 2A n1 n2
d1 ... dn) command.
Value of m 48
Value of fn 83
Value of a 48, 52
1 ≤ b ≤ 4 (when a = 52)
49 ≤ c ≤ 52 (when a = 52)
Range of d 0 ≤ d ≤ 255
This command defines the graphics data (raster format) as the logo specified by
the key codes (kc1, kc2) in the user-defined logo area of RAM. Graphic data
format is completely same as Define Logo in Flash Memory by the key code
command (1D 38 4C).
l 48—Monochrome (digital)
l 52—Multi-tone
l 49—Color 1
l 50—Color 2
l 51—Color 3
l 52—Color 4
The color of the selectable defined data (c) is Color 1 when a = 48 (monochrome).
The colors of the selectable defined data (c) are Color 1 ~ Color 4 when a = 52
(multi-tone).
Exceptions:
The maximum width of each logo is 576/203 inches, and the maximum height of
each logo is 2304/203 inches. If a logo size is more than this, it is not printed.
If the graphic size defined by this command is larger than the free space of the
user defined logo area of the flash memory, it firstly erases all logo data in the
user-defined area and defines this new logo data. To avoid erasure on the
current logo data in the user-defined area, it is recommended to use the
Transmit Remaining Size for User-defined Logo Area command to validate the
remain flash memory / RAM size can fit by new define logo size.
When this command is executed, all images stored in the user defined logo area
of RAM defined by Define Bit Image as Logo (1B + BMP file) command and Define
Bit Image as Logo (1D 2A n1 n2 d1 ... dn) command are erased.
Value of m 48
Value of fn 85
Value of x 1, 2
Value of y 1, 2
This command prints the user-defined logo defined by the key codes (kc1 and
kc2) of Define Logo in RAM by the key code command. the logo image is enlarged
by x and y in the horizontal and vertical directions.
Exceptions:
This command is not available for logos defined by Define Bit Image as Logo (1B
+ BMP file) command and Define Bit Image as Logo (1D 2A n1 n2 d1
... dn) command.
Value of m 48
Value of fn 99
Value of x 1, 2
Value of y 1, 2
Range of b 0≤b≤5
l 0—Left alignment
l 1—Center alignment
l 2—Right alignment
l 3—Roll 1 (Left→Center → Right → Left → ...)
yL, yH It specifies the offset from the bottom of one watermark to the top of
the next watermark by the number of dots in the vertical direction as (yL
+ yH x 256).
If the key code (kc1 and kc2) is out of the range or there is no logo registered in
the specified key code, it disables the watermark.
If there are data in the print buffer when the watermark is enabled by this
command, the printer enables the watermark after it forcefully all prints data in
the print buffer with one line feed at the end.
It similarly prints all the data in the print buffer when the watermark is disabled
by this command.
Exceptions:
This command is not available for logos defined by Define Bit Image as Logo (1B
+ BMP file) command and Define Bit Image as Logo (1D 2A n1 n2 d1
... dn) command.
Due to the memory restriction, one cycle of the watermark, which includes offset
as follows, has to be within 2500 raster (12.3 inches), and the height of a logo
printed in Watermark mode has to be within 2250 raster (11 inches).
Hexadecimal 1D 28 4C pL pH m fn
Decimal 29 40 76 pL pH m fn
Value of m 48
This command transmits the remaining memory size for user-defined Logo area
in either flash memory or RAM.
Note
The response format is shown in the following table. The decimal value is
converted to text data and sent starting from the high order end.
Example
123456 bytes for RAM size → 0x37 0x32 0x31 0x32 0x33 0x34 0x35 0x36
0x00
l 32 H (RAM) l 50 (RAM)
Range of n 0 – 255
Value of fn 48
Value of c 1
Range of m1 1–3
Value of m2 48
When the start position specified with ESC T is top left or bottom right:
When the start position specified with ESC T is bottom left or top right:
x1L, x1H, y1L, y1H set the line drawing start coordinate [X start position, Y start
position] as the start position reference.
l X start position: [(x1L + x1H × 256) × horizontal and vertical motion units]
l Y start position: [(y1L + y1H × 256) × horizontal and vertical motion units]
x2L, x2H, y2L, y2H set the line drawing end coordinate [X end position, Y end
position] as the start position reference.
l X end position: [(x2L + x2H × 256) × horizontal and vertical motion units]
l Y end position: [(y2L + y2H × 256) × horizontal and vertical motion units]
Note
Start position (X,Y) and end position (X,Y) should not exceed printable area
set by ESC W.
m1 Line type
X and Y are the horizontal and vertical motion units used for the start position
specified with ESC T changed as shown in the following table.
Top left or X: Vertical in relation to paper feed direction X: Horizontal (vertical in relation
bottom right (horizontal direction of characters) to paper feed direction)
Top right or X: Paper feed direction (horizontal direction of X: Vertical (Paper feed direction)
bottom left characters)
Y start position=Y end position (lines X start position < Thickened downward as seen with
horizontal in relation to characters) X end position the start position at top left
X start position =X end position (lines Y start position < Thickened rightward as seen with
vertical in relation to characters) Y end position the start position at top left
Note
When this function is executed, the printing position does not change.
Range of n 0– 255
Value of fn 49
Value of c 1
Range of m1 1–3
Value of m2 48
Value of m3 48
Value of m4 1
When the start position specified with ESC T is top left or bottom right:
It saves the rectangle data in the print buffer when Page Mode is selected.
x1L, x1H, y1L, y1H set the rectangle drawing start coordinate [X start position, Y
start position] as the start position reference.
l X start position: [(x1L + x1H × 256) × horizontal and vertical motion units]
l Y start position: [(y1L + y1H × 256) × horizontal and vertical motion units]
x2L, x2H, y2L, y2H set the rectangle drawing end coordinate [X end position, Y end
position] as the start position reference.
l X end position: [(x2L + x2H × 256) × horizontal and vertical motion units]
l Y end position: [(y2L + y2H × 256) × horizontal and vertical motion units]
Note
Start position (X,Y) and end position (X,Y) should not exceed printable area
set by ESC W.
m1 Line type
X and Y are the horizontal and vertical motion units used for the start position
specified with ESC T changed as shown in the following table.
Top left or X: Vertical in relation to paper feed direction X: Horizontal (vertical in relation
bottom right (horizontal direction of characters) to paper feed direction)
Top right or X: Paper feed direction (horizontal direction of X: Vertical (Paper feed direction)
bottom left characters)
If the line width is 2 dots or more, the line is thickened towards the center of the
rectangle. If the specified rectangle size is smaller than the line width, the line is
not thickened more than the size of the rectangle.
Note
When this function is executed, the printing position does not change.
Hexadecimal 1B 75 0
Decimal 27 117 0
This command transmits the current status of the cash drawers. If a drawer is
not connected, this status indicates that the drawer is closed.
When the Receipt Synchronization setting is “Sync Mode 1” or “Sync Mode2”, and
the printer receives this batch status command, the printer does not reply to a
status until all data in the printer are completely processed (printed).
Hexadecimal 1B 76
Decimal 27 118
Status Byte
Note
Paper Jam will be detected depending on the Legacy
Paper Jam Option.
Note
Paper Jam will be detected depending on the Legacy
Paper Jam Option.
Example
When Paper Low Detection is configured to Enable (Remaining 40ft), this
status bit is set as soon as the printer confirms that the paper low sensor
keeps indicating LOW.
Whereas, if it is configured to Enable (Remaining 10ft), this status bit is not set until
the printer prints 30 feet (40–10 ft) after it recognizes the sensor status changes
to low. In addition, if it is configured to Disable, this status bit is never set.
When the Receipt Synchronization setting is “Sync Mode 1” or “Sync Mode2”, and
the printer receives this batch status command, the printer does not reply to a
status until all data in the printer are completely processed (printed).
Hexadecimal 1D 49 n
Decimal 29 73 n
Type ID (n=2)
3 - - - Undefined.
5 - - - Undefined.
6 - - - Undefined.
Type ID (n=4)
On 01 1 Logois registered.
1 - - - Undefined.
2 - - - Undefined.
3 - - - Undefined.
5 - - - Undefined.
6 - - - Undefined.
When the Receipt Synchronization setting is “Sync Mode 1” or “Sync Mode2”, and
the printer receives this batch status command, the printer does not reply to a
status until all data in the printer are completely processed (printed).
Hexadecimal 1D 49 40 n
Decimal 29 73 64 n
The printer returns all ASCII data. It is conducted by the parameter n to identify
the diagnostic item and is followed by a Carriage Return (0D) to signify the end of
the data.
When the Receipt Synchronization setting is “Sync Mode 1” or “Sync Mode2”, and
the printer receives this batch status command, the printer does not reply to a
status until all data in the printer are completely processed (printed).
2B Boot firmware part number Return Boot firmware part #, Total 14 bytes
Note
Last digit is fixed to SPACE(0x20).
(4 digits ASCII)
33 Flash firmware part number Return Flash firmware part number, Total 14
bytes.
(12 digit ASCII)
Note
Last digit is fixed to SPACE(0x20).
(4 digit ASCII)
(4 digits ASCII)
3C Paper Low sensor calibration tally Clear Paper Low sensor calibration tally to 0.
4B SBCS (for Receipt) version Return SBCS (for Receipt) version, Total of 6
bytes (for POS printer)
(4 digits ASCII)
53 DBCS (for Receipt) version Return DBCS (for Receipt) version, Total of 6
bytes
(4 digits ASCII
66 Not used
6A Not used
72 Not used
(4 digits ASCII)
(4 digits ASCII)
(4 digits ASCII)
B0 Head Thermal head over heat tally Write to non-volatile memory (max 99,999,999)
D2 Not used
DA (Reserved)
EE (Reserved)
Hexadecimal 1D 72 n
Decimal 29 114 n
When the Receipt Synchronization setting is “Sync Mode 1” or “Sync Mode2”, and
the printer receives this batch status command, the printer does not reply to a
status until all data in the printer are completely processed (printed).
Note
Paper Jam is detected depending on the Legacy
Paper Jam Option. Refer to the 1F 11 command
table.
On 02 2 Cover is opened.
Note
Paper Jam is detected depending on the Legacy
Paper Jam Option. Refer to the 1F 11 command
table.
3 - - - Undefined.
5 - - - Undefined.
6 - - - Undefined.
2 - - - Undefined.
3 - - - Undefined.
5 - - - Undefined.
6 - - - Undefined.
0 - - - Undefined.
1 - - - Undefined.
On 08 8 Flash logo area was not adequate for the latest logo
registration.
Note
This status bit is available only for legacy logo
commands (1D 2A, 1B+BMP file).
6 - - - Undefined
Exceptions:
When n is out of the specified range, the command is ignored.
ASCII US V
Hexadecimal 1F 56
Decimal 31 86
The printer returns 16 bytes containing the boot and Flash Firmware version. The
first 8 bytes returned are an ASCII string for the boot version. The second 8 bytes
are an ASCII string for the main firmware version.
The current firmware determines printer firmware version from the first 5 byte
of the 8 byte ASCII data returned from printer. (The last 3-byte data is always
“.00”.)
Example
When response is 31.31.2E.33.34.2E.30.30.35.36.2E.37.38.2E.30.30 (16
bytes), the boot version is 12.34.00 and the main firmware version is
56.78.00.
ASCII US SUB 02 00
Hexadecimal 1F 1A 02 00
Decimal 31 26 02 00
The printer executes the Head Failure Detection and returns the result (3 bytes).
The first byte indicates the result (OK/NG) and the 2nd and 3rd bytes indicate the
number of dots damaged in the NG case. In OK case, 2nd byte and 3rd byte are
null.
Note
Bit7 (MSB) of Byte #1 is used to indicate the source of the thermal head
vendor as follows.
Byte #1
(second source)
Hexadecimal 1F 1A 01 n
Decimal 36 26 01 n
No Error 0x06 Resistance value of each dot. Each dot is indicated by 2 bytes.
The printer returns the details of each dot (1281 bytes) of the latest execution of
the dot failure detection. The first byte shows the result (OK/NG) and subsequent
bytes shows the resistance value of each dot.
This command does not execute the dot failure detection. Therefore, the dot
failure detection by the “Execute Head Failure Detection” command has to be
performed before this command, otherwise this command is ignored.
Note
Bit7 (MSB) of Byte #1 is used to indicate the source of the thermal head
vendor as follows.
Byte #1
(second source)
This command does not execute the dot failure detection. Therefore, the dot
failure detection by the “Execute Head Failure Detection” command has to be
performed before this command, otherwise this command is ignored.
Hexadecimal 1F 0A n
Decimal 31 10 n
Note
Byte #1 0xAA represents Print Completion
This command gets the print completion status of the print data specified by n.
The printer returns the print completion response when it finishes printing the
data sent before this command. The printable data sent before this command is
identified by the parameter of this command. This command specifies ID for
print data sent before this command. And the printer returns the print
completion status with ID. Therefore, a host can know which data was
completed.
If the printer returns the 0x66 as the first byte response, it means the printer
cannot print data due to an error condition. In this case, the printer erases all
printable data.
If the printer receives this command when it retains printable data, it starts
printing by force similar to receiving LF+CR.
Exceptions:
If the printer powered OFF during the transaction, then after the power on the
printer will respond (0xAA 0x00) to the Power Failure message.
Limitation:
Normal Scenario
l Cover Open
l Paper End
l Paper Jam
l Cutter Jam
l Temperature Too High
l Temperature Too Low
l Head Damage
l Voltage Error
Example
Even if the printer is in an error condition, it properly responds to a real–
time status command sent.
In addition to this, if a real–time command is received when there are some data
in the receive buffer, it is processed prior than the data in the receiving buffer.
In USB Vendor Specific Class (Epic) and RS232C interface mode, it is sent based
on the same manner as other commands/data. Therefore, there is a risk that the
printer might not be able to respond immediately if the printer receiving buffer is
full.
On the other hand, in USB PTPR and NHPI, it is differently sent as other
commands/data. Therefore, the printer can always respond immediately
regardless of the printer condition.
The real–time commands used in the network interface depends on the “RTC
Protocol” setting. When it is configured to TCP, command/status is transferred
via TCP port (port number 9100). When it is configured to UDP, command/status
is transferred via UDP port (port number 3000).
In UDP protocol, 4 bytes of the sequence number have to be added before real–
time commands. Otherwise, the printer does not properly process command.
Example
xxh xxh xxh xxh 1Dh 04h 01h (xxh xxh xxh xxh) is
sequence number.
Hexadecimal 1D 04 n 10 04 n
Decimal 29 4 n 16 4 n
PTPR
ASCII Since this command is used by Control transfer, the command strings
are not defined.
Decimal 20 01 n
The printer immediately transmits its status in accordance with the parameter n
once it receives this command.
Exceptions:
The command is ignored if n is out of range.
Transmit printer status (n=1)
5 - - - Undefined.
6 - - - Undefined.
On 04 4 Cover is opened.
Note
This bit is available only when "Stop Receipt on
Receipt Low" is enabled by Select Sensors to Stop
Printing command.
Note
Paper Jam is detected depending on the Legacy Paper
Jam Option. Refer to the 1F 11 command table.
On 04 4 Paper low.
On 08 8 Paper low.
Note
Paper Jam is detected depending on the Legacy Paper
Jam Option. Refer to the 1F 11 command table.
Note
Paper Jam is detected depending on the Legacy Paper
Jam Option. Refer to the 1F 11 command table.
For example, when Paper Low Detection is configured to Enable (Remaining 40ft),
this status bit is set as soon as the printer confirms that the paper low sensor
keeps indicating LOW.
Whereas, if it is configured to Enable (Remaining 10ft), this status bit is not set until
the printer prints 30 feet (40–10 ft) after it recognizes the sensor status changes
to low. In addition, if it is configured to Disable, this status bit is never set.
Transmit printer status (n=6)
Thermal Head failure dots status (Bit 2) becomes valid once Execute Head Failure
Detection command (1F 1A 02 00) is processed or Printer Configuration Form
/ Maintenance Information Form is printed.
Hexadecimal 1D 03 n 10 05 n
Decimal 29 3 n 16 5 n
PTPR
ASCII Since this command is used by Control transfer, the command strings
are not defined.
Decimal 20 02 n
The printer immediately takes the recovery action from an error condition in
accordance with the parameter n once it receives this command. This command
is valid when the printer is in an error condition.
Exceptions:
The command is ignored if n is out range.
ASCII DLE EM n
Hexadecimal 10 19 n
Decimal 16 25 n
PTPR
ASCII Since it is transferred by Control transfer, the command strings are not defined.
Decimal 25 04 n
Value of n l 0x01—(Reserved)
l 0x02—Error status
l 0x10—Detail Cutter Error status
l 0x11—Detail Printer Jam Error status
l 0x14—Detail Memory Error status
l 0x15—(Reserved)
l 0x16—Warning status
l 0x17—Other Printer status
l 0x23–0xF3—Diagnostic information
0 Undefined 0
1 Undefined 0
5 Undefined 0
1 Undefined 0
3 Undefined 0
Bit 5 and Bit 6 of this status are detail error status of Cutter Error that is assigned
at Bit3 in Transmit error status (n=3) of Real–time Status Transmission.
Detail printer jam error status (n=0x11)
0 No Paper Jam 0
Paper Jam 1
1 Undefined 0
5 Undefined 0
6 Undefined 0
These status bits are detail error status of Jam Error which is assigned at Bit2 in
Error status (n=0x02) of Extended Real-time Status Transmission.
Bit0 is to report the result of thermal head failure detection. Therefore, the
thermal head failure detection must be performed before getting the latest
status of the failure dots.
Bit3, Bit5, and Bit6 of this status are details of Thermal Head Error assigned as
follows:
0 (Reserved)
1 (Reserved)
Bit3, Bit5, and Bit6 of this status are detail of Unrecoverable Error which is
assigned at Bit5 in Transmit error status (n=3) of Real–time Status Transmission.
1 No abnormal voltage 0
3 (Reserved) 0
6 (Reserved) 0
Bit 0 indicates actual paper low sensor status. Based on this sensor status, the
printer firmware detects the paper low according to the “Paper Low Detection”
setting in the printer configuration.
Bit 0, Bit 5, and Bit 6 of this status are to indicate a transaction status that the
printer firmware is currently processing. If all bits are zero, the printer is in
entirely idle condition.
l Bit 0—set when the printer has data to be printed. This bit includes the
status which invokes printer mechanical movement such as cash drawer
open, paper feed, printer exercise and so on. As soon as all data kept in the
printer have been printed, this bit is cleared.
l Bit 5—set when the printer is mechanically moving. e.g. feeding paper,
cutting paper and controlling the thermal head (Not only printing but also
the thermal head failure detection can be considered as controlling the
thermal head.)
3D Paper Low sensor calibration tally It returns Paper Low sensor calibration
tally, Total 4 bytes.
2 digit ASCII
B3 Thermal head over heat tally It returns Thermal head over heat tally,
Total 10 bytes.
Note
It is valid when option Network I/F
card is installed.
Note
It is valid when option Network I/F
card is installed.
Note
It is valid when option Network I/F
card is installed.
ASCII GS ENQ
Hexadecimal 1D 05
Decimal 29 5
PTPR
ASCII Since this command is used by Control transfer, the command strings
are not defined.
Decimal 05 05
The printer immediately transmits its status once it receives this command.
Value of byte:
On 04 4 Cover open.
On 08 8 Interface busy.
ASCII GS z n
Hexadecimal 1D 7A n
Decimal 29 122 n
PTPR
ASCII Since it is transferred by Control transfer, the command strings are not defined.
Hexadecimal 17 06 n
Decimal 23 06 n
If the pattern is not configured by LED Configuration command, the default pattern
is used.
The printer controls the LED according to a request from the host specified by n
when the printer is configured to User mode of LED.
When this command is received, the printer resets (turns off) the current state of
all color of LED, and then it changes the LED state according to the new
parameter specified by this command.
Exceptions:
If the printer is in Auto mode of LED, this command is ignored.
ASCII GS SUB n
Hexadecimal 1D 1A n
Decimal 29 26 n
PTPR
ASCII Since it is transferred by Control transfer, the command strings are not defined.
Decimal 24 07 n
Values of n:
n Description
0x12 (Reserved)
0x13 (Reserved)
ASCII GS SUB n
Hexadecimal 1D 1A n
Decimal 29 26 n
PRTR
ASCII Since it is transferred by Control transfer, the command strings are not defined.
Decimal 24 07 n
This command returns 4 bytes of data Sensor ON value, Sensor OFF value,
Sensor Threshold, Sensor LED value.
Hexadecimal 1D 61 n
Decimal 27 97 n
Value of n 0–255
This command is used to check if the device supports Unsolicited Status Update
(USU).
The printer returns the 3-byte response “1AH, 9FH, 1FH” which indicate that the
printer supports Unsolicited Status Update. If printer does not support USU then
no response is returned from the printer.
Hexadecimal 1D 1F n
Decimal 29 31 n
Default 0 (Disable)
Enable or Disable Unsolicited Status update from the printer to the host based
on value of n.
When USU is enabled, the printer sends the following response to the host based
on change of a sensor value or state.
Hexadecimal 1D 1E 1F
Decimal 29 30 31
The printer sends Unsolicited Status Update messages for all Sensors and States
supported by the firmware. This allows the Application, Driver or Control to
establish an initial picture of the state of the printer.
The following is the general message structure for the Unsolicited Status Update
messages.
The Unsolicited Message will always consist of at least three bytes. The top 4 bits
(7, 6, 5, 4) of each byte will be an identifier that when compared to the bytes
before and after it, will identify the byte as part of the three-byte Unsolicited
Status Update (USU) message. The remaining 4 bits (3, 2, 1, 0) will contain the
information that is being passed to the host from the printer.
The lower 4 bits of the first two bytes, when examined as continuous bits of a
single number, identify the sensor or state for which USU message is reporting a
change. The lower 4 bits of the last byte will identify the state that is being
reported to the host.
BIT
7 6 5 4 3 2 1 0
Byte ( 1 ) 1 0 0 1 x x x x
Byte ( 2 ) 1 0 1 0 y y y y
Byte ( 3 ) 1 0 1 1 z z z z
l The lower 4 bits of Byte (1) and Byte (2) should be combined in the following
manner to constitute an identifier value in the range of 0–255.
l This identifier then determines how the host should interpret the state value
of the lower 4 bits of Byte (3).
Combined Bits from Byte (1) and Byte (2) in high bit to low bit order:
7 6 5 4 3 2 1 0
x x x x y y y y
Note
RTC might be different for other printers.
04 Journal Paper Low Sensor (Not used) 1 Paper has reach low
threshold limit.
3 Journal Paper
Selected (Not used).
The purpose of the transmission after power-up is to handle the case of the
printer entering an error state that requires a reset, or power-cycle of the printer
to correct it. Unless the current status of Sensor and State information is
transmitted to the host, the controlling software on the host might be unaware
of any changes in status resulting from the reset or power-cycle. The host
software would remain in an error state unless it polled the printer for status
information.
Hexadecimal 1D 48 n
Decimal 29 72 n
l 0,48—Not printed
l 1,49—Above the bar code
l 2,50—Below the bar code
l 3,51—Both above and below the bar code
This command specifies the printing position of HRI (Human Readable Interface)
characters.
Exceptions:
HRI Characters printing is not supported in PDF417 and QR code.
Hexadecimal 1D 66 n
Decimal 29 102 n
Value of n Pitch
Exceptions:
HRI Characters printing is not supported in PDF417 and QR code.
Hexadecimal 1D 68 n
Decimal 29 104 n
Range of n 1–255
Default 162
This command specifies the bar code height in dots. n dots are equal to n/8 mm
(n/203 inch) for receipt.
Exceptions:
This command is not available for GS1 data bar and QR code.
Values
This command selects the bar code type and prints a bar code for the ASCII
characters entered. If the width of the bar code is moe than the printable area,
the bar code is not printed.
Bar code horizontal position can be aligned by Select Justification (1B 61)
command.
There are two formulas to specify the bar code type by this command. The first
formula uses a NULL character to terminate the string. The second formula uses
the length parameter of the string instead of a terminator so that it is able to
include NULL in the string. Therefore, a bar code which defines NULL as data, e.g.
Code 128, can be specified by the second formula.
Check Digit of UPC and JAN (EAN) codes are automatically calculated and
processed by the printer if it is not sent from a system.
Second Formula
71 CODABAR 65–68, start code 48–57, 36, 43, 45, 46, Variable length
47, 58
(NW-7)
81 GS1 DataBar 32–34, 37–47, 48–57, 58–63, 65–90, 95, Variable length
Expanded 97–122, 123
(2–70)
[However d1 = 40, 48 <= d2 <= 57, 48
<= d3 <= 57 when
48 <= d1 <= 57, 48 <= d2 <= 57]
82 GS1 DataBar 32–34, 37–47, 48–57, 58–63, 65–90, 95, Variable length
Expanded Stacked 97–122, 123
(2–70 )
[However d1 = 40, 48 <= d2 <= 57, 48
<= d3 <= 57 when
Exceptions:
Illegal data cancels this command.
If the absolute or relative position is set and the bar code is not printable in
80 mm settings, either of the following may occur:
Note
This adjustment is not applicable to PDF417.
In the case of Expanded and Expanded stacked, C/D is used for only HRI
characters printing. Even if the input data including wrong C/D is received, the
printer prints the data without correction.
In the case of Expanded and Expanded stacked, when attaching the bracket to AI
in HRI, it is necessary to transmit data as follows.
Hexadecimal 1D 77 n
Decimal 29 119 n
Value of n 1, 2, 3, 4, 5
Default 3
Formulas:
n + 1/8 mm(n + 1/203 inch) for receipt.
Caution
When selecting a bar code width of 1 the readability rate is impacted.
Hexadecimal 1D 28 6B pL pH cn fn n1 n2
Decimal 29 40 107 pL pH cn fn n1 n2
Values of pL,pH pL, pH specify (pL + pH × 256) as the number of bytes after pH (cn, fn, and
[parameters]). (pL + pH × 256) = 4 So (pL = 4, pH = 0)
Value of cn 49
Value of fn 65
Value of n2 0
Default n1 = 50, n2 = 0
Hexadecimal 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
Values of pL,pH pL, pH specify (pL + pH × 256) as the number of bytes after pH (cn, fn, and
[parameters]).
(pL + pH × 256) = 3; so (pL = 4, pH = 0)
Value of cn 49
Value of fn 67
Value of n 1–16
Default n 4
This command sets the size of the module for QR Code as n dots. The user must
secure the quiet zone (left, right, upward, and downward space areas defined by
the QR Code symbol specifications) for QR Code printing. Quiet zone is defined
as 4 cells in standard and MicroQR code versions.
Note
The recommended module size is 4 dots and over. But if n = 4, this printer
cannot print maximum data bar code because the bar code width will be
over the printable width. So, the default value of n is defined to 3 in this
version.
Hexadecimal 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
Values of pL,pH pL, pH specify (pL + pH × 256) as the number of bytes after pH (cn, fn, and
[parameters]).
(pL + pH × 256) = 3; so (pL = 3, pH = 0)
Value of cn 49
Value of fn 69
Default n 48
Note
In MicroQR, it is not printed error correction level = H at the time of the
choice. Symbol versionM1 in microQR. Choose error correction level=L.
Hexadecimal 1D 28 6B pL pH cn fn m d1...dk
Range of pH 0–27
Value of cn 49
Value of fn 80
Value of m 48
Range of d 0–255
This command stores the QR Code symbol data (d1...dk) into the symbol storage
area (RAM).
Hexadecimal 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
Values of pL, pH pL, pH specify (pL + pH × 256) as the number of bytes after pH (cn, fn, and
[parameters]).
(pL + pH × 256) = 3; so (pL = 3, pH = 0)
Value of cn 49
Value of fn 81
Value of m 48
This command encodes and prints the QR Code symbol data in the symbol
storage area with GS ( k
Note
User must secure the quiet zone (left, right, upward, and downward space
areas defined by the QR Code symbol specifications) for QR Code printing.
Hexadecimal 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
Values of pL, pH pL, pH specify (pL + pH ×256) as the number of bytes after pH (cn, fn, and
[parameters]).
(pL + pH × 256) = 3; so (pL = 3, pH = 0)
Value of cn 49
Value of fn 82
Value of m 48
Printer transmits the size information for the encoded QR Code symbol data in
the symbol storage area.
Header 37 55 1 byte
Identifier 36 54 1 byte
Separator 1F 31 1 byte
Separator 1F 31 1 byte
Separator 1F 31 1 byte
NULL 00 0 1 byte
Other Information:
l 0x30—printing is possible.
l 0x31—printing is impossible.
Horizontal and vertical sizes are specified as ASCII value of received byte. They
can be obtained by following equations:
Example
If Symbol size is specified as 10 by the command of 1D 28 6B 03 00
31 43 n and number of pixel in horizontal direction is 21, then
horizontal size will be 10 * 21 = 210. So the output of the printer will be 37
36 32 31 30 1f 32 31 30 1f 31 1f 30 00.
ASCII GS (k pL pH cn fn n
Hexadecimal 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
Range of n 50–54
Value of cn 50
Value of fn 65
Default n 51
n Function
50 Selects mode 2
51 Selects mode 3
52 Selects mode 4
53 Selects mode 5
54 Selects mode 6
Note
l This function affects the processing of GS ( k <fn=81> and GS
( k <fn=82>.
l This function is effective until ESC @ is executed, the printer is reset,
or the power is turned off.
ASCII GS ( k pL pH cn fn m d1 … dk
Hexadecimal 1D 28 6B pL pH cn fn m d1…dk
Decimal 29 40 107 pL pH cn fn m d1 … dk
Value of cn 50
Value of fn 80
Value of m 48
Range of d 0 ≤ d ≤ 255
This command stores the MaxiCode symbol data (d1…dk) in the symbol storage
area.
Note
l This function is processed after GS ( k <fn=81> and GS ( k
<fn=82> are executed or the symbol data in the symbol storage area is
kept.
l K bytes of d1….dk are processed as the symbol data.
l Setting of this function is effective until the following process is
performed:
ASCII GS (k pL pH cn fn m
Hexadecimal 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
Value of cn 50
Value of fn 81
Value of m 48
This command encodes and prints the MaxiCode symbol data in the symbol
storage area with GS ( k <fn= 080>
Note
l In Standard Mode, use this function when the printer is at the beginning
of a line or there is no data in the print buffer. If the symbol size exceeds
the print area, the symbol cannot be printed.
l If there is any error described below in the data of the symbol storage
area, it cannot be printed.
l There is no data GS ( k <fn=80> is not processed.
l When using only numeric characters, the data is more than 138
characters.
l When using alphanumeric characters, the data is more than 93
characters.
When mode 3 is selected, the Primary Message includes all data except the
following:
In modes 4,5, and 6, all data in the symbol storage area is treated as primary
message and secondary message. It does not check each code.
ASCII GS (k pL pH cn fn m
Hexadecimal 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
Value of cn 50
Value of fn 82
Value of m 48
This command transmits the size information for the encoded MaxiCode symbol
data in the symbol storage area with GS ( k <fn= 080>
The size information does not include the quiet zone (left, right, upward, and
downward space areas defined by the MaxiCode symbol specifications).
Transmission data
Header 37 55 1 byte
Identifier 37 55 1 byte
Separator 1F 31 1 byte
Separator 1F 31 1 byte
Separator 1F 31 1 byte
NULL 00 0 1 byte
Note
In the table above, Other information represents the possibility of printing
the MaxiCode.
Other Information:
l 0x30—printing is possible.
l 0x31—printing is impossible.
ASCII GS (k pL pH cn fn n
Hexadecimal 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
Value of cn 52
Value of fn 67
Value of n 1 ≤ n ≤ 6 (TBD)
This command sets the width of the module for composite symbology to n dots.
It also sets the module width of the line element, 2D composite element, and
separator.
Note
l This function affects the processing of GS ( k <fn=81> and GS ( k
<fn=82>
l This function is effective until ESC @ is executed, the printer is reset, or
the power is turned off.
ASCII GS (k pL pH cn fn nL nH
Hexadecimal 1D 28 6B pL pH cn fn nL nH
Decimal 29 40 107 pL pH cn fn nL nH
Value of cn 52
Value of fn 71
Value of n (nL + nH x 256) = 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22 (TBD)
This command sets the maximum width (segment number) of GS1 DataBar
Expanded Stacked (the line element of composite symbology).
Note
l This function affects the processing of GS ( k <fn=81> and GS ( k
<fn=82>
l This function is effective until ESC @ is executed, the printer is reset, or
the power is turned off.
ASCII GS (k pL pH cn fn n
Hexadecimal 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
Value of cn 52
Value of fn 72
Value of n Pitch
ASCII GS ( k pL pH cn fn m a b d1…dk
Hexadecimal 1D 28 6B pL pH cn fn m a b d1…dk
Value of cn 52
Value of fn 80
Value of m 48
Value of a 48,49
This command stores the symbol data (d1...dk) into the Composite symbol
storage area.
ASCII GS (k pL pH cn fn m
Hexadecimal 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
Value of cn 52
Value of fn 81
Value of m 48
ASCII GS (k pL pH cn fn m
Hexadecimal 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
Value of cn 52
Value of fn 82
Value of m 48
This command transmits the size information when printing the symbol data
stored by GS ( k <fn=80>) in the symbol storage area.
The size information does not include the quiet zone (left, right, upward, and
downward space areas defined by the Aztec code symbol specifications).
Transmission data
Header 37 55 1 byte
Identifier 50 80 1 byte
Separator 1F 31 1 byte
Separator 1F 31 1 byte
Separator 1F 31 1 byte
NULL 00 0 1 byte
Note
In the table above, Other information represents the possibility of printing
the DataMatrix.
Other Information:
l 0x30—printing is possible.
l 0x31—printing is impossible.
Error
Error content Solution
Information
"1001" The line element symbol data is invalid. Transmit valid data.
"1002" The 2D composite element symbol data is invalid. Transmit valid data.
“1003” There is too much 2D composite element data. Reduce the amount of
2D composite element
When something other than GS1-128 is specified for line
data.
element, and when "automatic selection" is specified for
2D composite element and the 2D composite element
data exceeds 399 bytes.
"2001" When the Standard mode is selected, there is data in the Print or clear the data
print buffer. in the print buffer.
“2002” The symbol is bigger than the printing area. The printing Make the module size
position is at the buffer-full position. smaller.
Note
The quiet zone is not included in the size information.
ASCII GS (k pL pH cn fn n1 n2
Hexadecimal 1D 28 6B pL pH cn fn n1 n2
Decimal 29 40 107 pL pH cn fn n1 n2
Value of cn 53
Value of fn 66
Value of n1 0,1,48,49
Default n1 = 0 , n2 = 0
This command sets the mode type for Aztec code by specifying n1.
n1 Function
n2 Function
Note
l This function is ignored when n1 and n2 is out of range.
l This function affects the encode processing for Aztec code.
l This function affects the processing of GS ( k <fn = 81>
l This function is effective until ESC @ is executed, the printer is reset, or
the power is turned off.
ASCII GS (k pL pH cn fn n
Hexadecimal 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
Value of cn 53
Value of fn 67
Value of n 2–16
Default n 3
This command sets the width of one module of Aztec code in dot units.
The setting unit is 1dot. The value of n is equal for the width and height of a
module because Aztec code modules are square.
Note
l This function is ignored when n is outside its range.
l This function is effective until ESC @ is executed, the printer is reset, or
the power is turned off.
l This function affects the encode processing for Aztec code.
l Changing the module size affects the horizontal and vertical size of the
symbol.
l This function affects the processing of GS ( k <fn=81> of this
command.
ASCII GS (k pL pH cn fn n
Hexadecimal 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
Value of cn 53
Value of fn 69
Value of n 5–95
Default n 23
This command sets the error correction level (%) for Aztec code.
Note
l This function is ignored when n is outside its range.
l Aztec Code employs Reed-Solomon Error Detection and Correction
algorithm for error correction codewords.
l This function is effective until ESC @ is executed, the printer is reset, or
the power is turned off.
l This function affects the encode processing for Aztec Code.
l This function affect the processing of GS ( k <fn =81> of this
command.
ASCII GS ( k pL pH cn fn m d1 … dk
Hexadecimal 1D 28 6B pL pH cn fn m d1…dk
Value of cn 53
Value of fn 80
Value of m 48
Range of d 0–255
This command stores the Aztec Code symbol data (d1...dk) into the symbol
storage area.
Note
l The symbol data saved in the symbol storage area by this function is
encoded by GS ( k <fn =81> and GS ( k <fn=82> of this
command.
l K bytes of d1…dk are processed as the symbol data.
l This function affects the processing of GS ( k <fn = 81>
l This function is effective until ESC @ is executed, the printer is reset, or
the power is turned off.
ASCII GS (k pL pH cn fn m
Hexadecimal 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
Value of cn 53
Value of fn 81
Value of m 48
This command encodes and prints the Aztec Code symbol data in the symbol
storage area with GS ( k < fn =80>
Note
In Standard Mode, if the Aztec Code symbol size exceeds the print are, the
command does not print the symbol. It only feeds paper with the length
that is equal to the height of the symbol.
ASCII GS (k pL pH cn fn m
Hexadecimal 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
Value of cn 53
Value of fn 82
Value of m 48
This command transmits the size information for the Aztec code symbol data in
the symbol storage area with GS ( k <fn= 080>
The size information does not include the quiet zone (left, right, upward, and
downward space areas defined by the Aztec code symbol specifications).
Header 37 55 1 byte
Identifier 58 88 1 byte
Separator 1F 31 1 byte
Separator 1F 31 1 byte
Separator 1F 31 1 byte
NULL 00 0 1 byte
Note
In the table above, Other information represents the possibility of printing
the DataMatrix.
Other Information:
l 0x30—printing is possible.
l 0x31—printing is impossible.
Error
Error content Solution
Information
"1001" Encoded data cannot be within one symbol. Check the number of encoded data.
"2001" When the Standard mode is selected, there Print or clear the data in the print
is data in the print buffer. buffer.
“2002” The symbol is bigger than the printing area. Make the module size smaller.
The printing position is at the buffer-full
Change the printing layout (printing
position.
area, printing position, and other
settings).
Note
l This function does not print if m is outside of range.
l The quiet zone is not included in the size information.
ASCII GS (k pL pH cn fn m d1 d2
Hexadecimal 1D 28 6B pL pH cn fn m d1 d2
Decimal 29 40 107 pL pH cn fn m d1 d2
Value of cn 54
Value of fn 66
Value of m 0,1,48,49
Values of d1, d2 d1,d2= (8, 0), (8, 18), (8, 32), (12, 0), (12, 26), (12, 36), (16, 0), (16, 36), (16, 48)
Values of d1, d2 d1, d2 = (0, 0), (10, 10), (12, 12), (14, 14), (16, 16), (18, 18), (20, 20), (22, 22), (24, 24),
(26, 26), (32, 32), (36, 36), (40, 40), (44, 44), (48, 48), (52, 52), (64, 64), (72, 72), (80, 80),
(88, 88), (96, 96), (104, 104), (120, 120), (132, 132), (144, 144)
This command sets the symbol type, number of column and number of rows.
0,48 0,0 Square Sets automatic processing for the number of columns and
rows of the symbol.
0,48 Other than Square Sets the number of columns of the symbol to d1, the
0,0 number of rows to d2.
1,49 (8,0), (12,0), Rectangle Sets the number of columns of the symbol to d1, the number
(16,0) of rows to automatic processing.
1,49 Other than Rectangle Sets the number of columns of the symbol to d1, the number
(8,0), (12,0), of rows to d2.
(16,0)
ASCII GS (k pL pH cn fn n
Hexadecimal 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
Value of cn 54
Value of fn 67
Value of n 2–16
Default n 3
This command sets the size of module of DataMatrix in dot units to n x n dots.
Note
l This function is ignored when n is outside range.
l The value of n is equal for the width and height of a module because
DataMatrix modules are square.
l This function affects the processing of GS ( k <fn = 81>
l This function is effective until ESC @ is executed, the printer is reset, or
the power is turned off.
ASCII GS ( k pL pH cn fn m d1 … dk
Hexadecimal 1D 28 6B pL pH cn fn m d1…dk
Range of pH 0–12
Value of cn 54
Value of fn 80
Value of m 48
Range of d 0–255
This command stores the DataMatrix symbol data (d1...dk) into the symbol
storage area.
ASCII GS (k pL pH cn fn m
Hexadecimal 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
Value of cn 54
Value of fn 81
Value of m 48
This command encodes and prints the DataMatrix symbol data in the symbol
storage area with GS ( k <fn =80>
ASCII GS (k pL pH cn fn m
Hexadecimal 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
Values of pL, pH pL, pH specify (pL + pH × 256) as the number of bytes after pH (cn, fn and
[parameters]). (pL + pH × 256) = 3 So (pL = 3, pH = 0)
Value of cn 54
Value of fn 82
Value of m 48
This command transmits the size information for printing the DataMatrix symbol
data stored with GS ( k <fn = 80> in the symbol storage area.
Header 37 55 1 byte
Identifier 59 89 1 byte
Separator 1F 31 1 byte
Separator 1F 31 1 byte
Separator 1F 31 1 byte
NULL 00 0 1 byte
Note
In the table above, Other information represents the possibility of printing
the DataMatrix.
Other Information:
l 0x30—printing is possible.
l 0x31—printing is impossible.
Error
Error content Solution
Information
"1001" Encoded data cannot be within one symbol. Check the number of encoded data.
"2001" When the Standard mode is selected, there Print or clear the data in the print
is data in the print buffer. buffer.
“2002” The symbol is bigger than the printing area. Make the module size smaller.
The printing position is at the buffer-full
Change the printing layout (printing
position.
area, printing position, and other
settings).
Note
l This function does not print if m is outside of range.
l The quiet zone is not included in the size information
Page Mode is the mode that prints all data in the page buffer at a time. In this
mode, the printer does not start printing even if the condition printing data in
Standard Mode takes place. It queues data into the page buffer until the print
command in Page Mode such as ESC FF (0x1B 0x0C) is processed.
The basic flow of page mode printing is as follows:
1. Switch to Page Mode through the Select Page Mode command (1B 4C).
2. Specify the origin and the size of the printing area through the Set Printing
Area in Page Mode command (1B 57).
3. Specify the starting position and the print direction through the Select Print
Direction in Page Mode command (1B 54).
4. Store print data (text, image or barcode…) in the page buffer.
5. Print buffered data in the page buffer through the Print Data in Page Mode
command (1B 0C).
6. Switch to Standard Mode through the Select Standard Mode command (1B
53).
Hexadecimal 0C
Decimal 12
This command prints all buffered data in the page buffer on the page area
defined and switches to Standard Mode from Page Mode.
Exception:
This command is valid in Page Mode.
Hexadecimal 18
Decimal 24
Exception:
This command is valid in Page Mode.
Hexadecimal 1B 0C
Decimal 27 12
This command prints all buffered data in the page buffer on the page area
defined.
Exception:
This command is valid in Page Mode.
Hexadecimal 1B 4C
Decimal 27 76
This command permits users to switch from Standard Mode to Page Mode
Exception:
The command is valid at the beginning of a line in Standard Mode.
Hexadecimal 1B 53
Decimal 27 83
This command permits users to switch from Page Mode to Standard Mode.
Switching to Standard Mode clears all buffered data in the page buffer and
initializes the definition of the page area.
Exception:
This command is valid in Page Mode.
Hexadecimal 1B 54 n
Decimal 27 84 n
Values of n l 0,48—Upper left corner proceeding across page to the right (A)
l 1,49—Lower left corner proceeding up the page (B)
l 2,50—Lower right proceeding across page to the left (upside
down) (C)
l 3,51—Upper right corner proceeding down page (D)
It selects the printing direction and start position in Page Mode. The following
illustration indicates the direction and the start position of each parameter.
Exceptions:
This command is valid in Page Mode.
Range of n 0–255
Default l n1–n4—0
l n5—64
l n6—2
l n7—64
l n8—2
This command sets the logical origin and size of the printing area in Page Mode.
Formulas:
x0, y0: The logical origin specified by the calculation of parameters n1, n2, n3 and
n4 based on the absolute origin which is located at the upper left side of the
printing area.
dx, dy: The size of the printing area dx and dy is specified by the calculation of
parameters n5, n6, n7 and n8.
The unit of xy direction of each formula are Horizontal Motion Unit and Vertical
Motion Unit that are specified through the Set Horizontal and Vertical Minimum
Motion Units command (1D 50).
l x0 = n1 + n2 x 256
l y0 = n3 + n4 x 256
l dx = n5 + n6 x 256
l dy = n7 + n8 x 256
Exception:
This command is valid in Page Mode.
Hexadecimal 1D 24 nL nH
Decimal 29 36 nL nH
It moves the vertical print position to the position specified by this command
from the starting position specified through the Select Print Direction in Page
Mode command (1B 54) in Page Mode.
Formulas:
0 ≤ (nL + nH X 256) ≤ 65535
The unit of this formula is Vertical or Horizontal Motion Unit, which is specified
through the Set Horizontal and Vertical Minimum Motion Units command (1D
50).
When the starting position specified through the Select Print Direction in Page
Mode command (1B 54) is set to the upper left or lower right of the printing
area, Vertical Motion Unit is used for this formula.
When the starting position specified through the Select Print Direction in Page
Mode command (1B 54) is set to the upper right or lower left of the printing
area, Horizontal Motion Unit is used for this formula.
Exceptions:
This command is valid in Page Mode.
If the position specified exceeds the print area, this command is ignored.
Hexadecimal 1D 5C nL nH
Decimal 29 92 nL nH
This command moves the vertical print position to the position specified by this
command from the current position in Page Mode.
Formulas:
The positive number implies that it moves downward, and the negative number
moves the position upward.
The unit of this formula is Vertical or Horizontal Motion Unit which is specified
through the Set Horizontal and Vertical Minimum Motion Units command (1D
50).
When the starting position specified through the Select Print Direction in Page
Mode command (1B 54) is set to the upper left or lower right of the printing
area, Vertical Motion Unit is used for this formula.
When the starting position specified through the Select Print Direction in Page
Mode command (1B 54) is set to the upper right or lower left of the printing
area, Horizontal Motion Unit is used for this formula.
Exceptions:
This command is valid in Page Mode.
If the position specified exceeds the print area, this command is ignored.
Hexadecimal 1D 3A
Decimal 29 58
This command starts and terminates a macro definition to the targest memory
specified by Select Memory Type for User Defined Data (1D 22 n) command.
Only one macro can be stored in Macro area of each target memory (RAM and
Flash memory). Once this command is processed, the subsequent data is treated
as macro data to define, and it continues to define the macro until this command
is processed once again.
While the macro is being defined, if Execute Macro (1D 5E) command is
received, it cancels the macro definition.
Formulas
A macro can be defined up to 2048 bytes. If the macro definition exceeds 2048
bytes, excess data is not stored.
Hexadecimal 1D 5E r t m
Decimal 29 94 r t m
Value of t The interval time to execute the macro multiple times defined by r.
Interval time = t x 100 milliseconds
Exceptions:
While the macro is being defined, if this command is received, it cancels its macro
definition. If the macro is not defined on the target memory or if the parameter r
is 0, this command is ignored.
Hexadecimal 1B 27 m a0 a1 a2 d1 ... dm
Decimal 27 39 m a0 a1 a2 d1 ... dm
Value of m 1–255
This command writes m bytes data into the user defined data area of the flash
memory. a0, a1 and a2 are the offset based on the top address of the user
defined data area. If any of the memory address specified by this command are
currently used, the command is ignored.
Hexadecimal 1B 34 m a0 a1 a2
Value of m 1–255
This command reads m bytes data from the user defined data area of the flash
memory. a0, a1 and a2 are the offset based on the top address of the user
defined data area.
Hexadecimal 1D 22 n
Decimal 29 34 n
Value of n 48–53
It specifies the target memory type (RAM or Flash memory) for User defined
logos, User defined characters and Macro. The memory type selected by this
command is valid until it is changed again by this command or the printer is
turned off.
n = 48 (ASCII n = 0)
It specifies RAM as the user defined logo area. The subsequent commands to
define logos are stored into RAM. This parameter is available only for the
registration. It does not affect the functionality to print logo. Logo is printed
according to ID or Key Code irrespective of the storage area.
n = 49 (ASCII n = 1)
It specifies the flash memory as the user defined logo area. The subsequent
commands to define logos are stored into the flash memory. This parameter is
available only for the registration. It does not affect the functionality to print logo.
Logo is printed according to ID or Key Code irrespective of the storage area.
Hexadecimal 1D 22 55 n1 n2
Decimal 29 34 85 n1 n2
Default Value of n1 4 (n1 is the number of flash memory sectors used for user defined logo.)
Default Value of n2 1 (n2 is the number of flash memory sectors used for user defined data.)
Value of n n1 + n2 = 5
This command defines the allocation of the flash memory sectors for the user
defined logo area and the user defined data area. (1 sector = 64 Kbytes)
Total flash memory sectors for entire user defined storage area are 6 sectors
(384 Kbytes). The allocation for the user defined character area is fixed to 1
sector (64 Kbytes).
Therefore, 5 remaining sectors can be freely allocated for the user defined logo
(n1) and the user defined data (n2) by this command.
This memory allocation specified by this command is valid even after the printer
reboot.
Note
All data of the user defined storage area in the flash memory are erased
when the allocation is changed by this command.
(Examples)
Hexadecimal 1D 40 n
Decimal 29 64 n
Value of n 49–50
This command erases all data of the user-defined area located in the flash
memory and sends a carriage return when the operation completes.
n = 49 (ASCII n = 1)
It erases all data of the user-defined character area and the user-defined logo
area in the flash memory.
n = 50 (ASCII n = 2)
It erases all data of the user- defined data area in the flash memory.
Value of m, n
It sets the printer configuration specified by m and n. If m or n is out of range, this
command is ignored. However, it continues processing until the terminator code
FFh is detected in even such case.
Note
Refer to the following for the values of the Effect column:
0–10 Reserved
12 Number of data bit (RS232C Option) l 00—8 data bits Power off/on
(Default)
l 01—7 data bits
13 Number of stop bit (RS232C Option) l 00—1 stop bits Power off/on
17 Reserved
19–1F Reserved
Note
In ESC/POS emulation
mode, "Compatible Top
Margin", "Receipt
synchronization", "Receipt
Print mode" and "USU"
are not available.
command will not get reflected in the l 02—6 lines per inch
number of lines getting printed in an
inch.
l 01—Use CR as Print
cmd. (Default)
Note
If User download the
GB18030, by default
Printer Asian mode
configuration will set to
GB18030 and user cannot
configure any other code
pages until downloading
the standard DBCS font
(932,936,949,950). In
Diagnostic form, SBCS
font will show “Not
Installed”.
24 Reserved
l 01—Disabled
(Default)
l 02—Sync. Mode1
l 03—Sync. Mode3
l 04—Legacy
Note
In “Sync Mode 1” or “Sync
Mode2”, if the printer
receives the following
batch status command,
the printer does not reply
a status until all data in
the printer are completely
processed (printed).
l 1B 75 0—Transmit
Peripheral Device
Status
l 1B 76—Transmit
Printer Status
l 1D 49 n—Transmit
Printer ID
l 1D 72 n—Transmit
Status
26 Reserved
l 01—14 Columns
l 02—Auto Column
Note
If PDF417 command input
data count is less than or
equal to Threshold, then
9 Columns will be
selected. If the input data
count is greater that
Threshold, then
14 Columns will be
selected automatically.
0000H, 0001H…,
0064H (Default)…,
0454H (Max)
Example
To set the threshold value
of 500 (001FA), send 1F
11 28 F4 29 01 FF.
Note
If either one setting (‘28’
or ‘29’) is set, the other
setting will not be
changed. That is, if ‘28’ is
set then, only ‘28’ setting
is changed, ‘29’ value
remains with the previous
value. It is recommended
to set parameters ‘28’ and
‘29’ together.
2C Reserved
Note
l 01—Enable (Default)
Note
l 01 to FF—Time out
2F Reserved
l 01—58 mm
34 Series i: Reserved
l 01—Predefine Type 2
l 02—Predefine Type 3
(Default)
l 03—Predefine Type 4
l 04 to 13—(Reserved)
l 14—User-define
paper type 1
l 15—User-define
paper type 2
35 Reserved
38–3B Reserved
l 01—10 Sec
l 02—20 Sec (Default)
l 03—30 Sec
l 04—40 Sec
l 05—50 Sec
l 06—60 Sec
3D Reserved
l 01—Enable
l 0D—GB18030
l 11—1255
l 19—1254
l 17—Reserved
l 18—Reserved
41–45 Reserved
l 01—Enable
l 01—Enable
l 01—Enable
l 01—Reduce 100%
l 02—Reduce 25%
l 03—Reduce 50%
l 04—Reduce 75%
4C Force Single High Font (ECO functionality) l 00—Disable (Default) Power off/on
l 01—Enable
l 01—Enable
4E Force Single Wide Font (ECO functionality) l 00—Disable (Default) Power off/on
l 01—Enable
Note
When the main firmware is the
“Default NHPI FW”, the USB Type will
not be reset. The existing setting will
be retained.
51–56 Reserved
Note
l 01—Enable
59–5E Reserved
60–67 Reserved
l 00—ION(Epic)
(Default)
l 01—NHPI
l 02—PRTR
l 03—Reserved
l 04—Fixed ION(Epic)
Note
Fixed ION(Epic) is the
same as ION(Epic) and is
only kept for backward
compatibility.
l 00—Reserved
l 01—NHPI (Default)
l 02—PRTR
l 03—Reserved
l 04—Reserved
l 05—ION(Epic)
6A–77 Reserved
l 01—Middle (Default)
l 02—High
7A Series i: Reserved
l 01—Enable – Normal
l 02—Enable – Upside
Down
7B Series i: Reserved
7C Reserved
l 00—14 IPS
l 01—12 IPS
l 02—10 IPS
l 03—8 IPS
l 04—6 IPS
l 05—4 IPS
l 06—2 IPS
l 07—16 IPS (Default)
l 01—Invalid
l 01—Enable
l 01—Enable (Default)
l 01—Enable (Default)
l 01—UDP
85 Reserved
l 01—2 clients
l 02—3 clients
l 03—4 clients
l 04—5 clients
l 05—6 clients
l 01 to 78—Timeout
value (1 ~ 120
minutes)
l 01 to 78—Timeout
value (1 ~ 120
minutes)
l 01—Enable
l 01—Enable
8C–FF Reserved
Hexadecimal 1D 40 n
Decimal 29 64 n
Value of n l 49 (ASCII n = 1)—erases all the data of the user defined character area and
the user defined logo area in the flash memory.
l 50 (ASCII n = 2)—erases all data of the user-defined area in the flash
memory.
This command erases all data of the user-defined area located in the flash
memory and sends a carriage return when the operation completes.
Hexadecimal 1F 12 m
Decimal 31 18 m
Value of m 16 (0x10) to 191 (0xBF). Refer to 1.12.6 Printer Setting Change Command in detail.
Hexadecimal 1F 13 k l m n p1 p2 p3 p4 q r s
Decimal 31 19 k l m n p1 p2 p3 p4 q r s
Note
If k is set to 2, it doesn’t require other parameters (l, m, n, p1, p2, p3, p4, q, r, s).
Range of l 1 to 32
l Auto Mode: It specifies the state number of the printer. Refer to the Range
of l (Auto Mode) table.
Note
For Auto Mode values, refer to the Range of l (Auto Mode) table below.
Note
Refer to the Values of m table below.
l Definition
1 Boot
2 Idle
3 Printing
05 to 06 (Reserved)
8 Standby mode
9 (Reserved)
12 to 19 (Reserved)
25 to 29 (Reserved)
32 (Reserved)
32 (Reserved)
Values of m:
Example
If this parameter is set to “5”, the first 5 bits of 32 bits pattern are used as blink
pattern.
Range of p1 to p4:
Bit 0 1 2 3 4 .... 28 29 30 31
number
Blink 1 0 1 1 0 .... 1 0 0 1
pattern
Example
l LED ON—the parameters are 0xFF 0xFF 0xFF 0xFF.
l LED OFF—the parameters are 0x00 0x00 0x00 0x00.
Range of 0 to 255
q
It specifies ON time of bit specified as ON (=1) in blink pattern.
Unit is 100 m sec, so Actual time = Parameter (q) x Unit time (100 ms)
Range of 0 to 255
r
It specifies OFF time of bit specified as OFF (=0) in blink pattern.
Unit is 100 m sec, so Actual time = Parameter (r) x Unit time (100 ms)
Both Auto mode and User mode of LED have the default blink pattern. If LED
pattern is not configured by this command, the default LED pattern is used.
Exception:
If at least one of those parameters is out of range, this command is ignored.
Hexadecimal 1F 14 k
Decimal 31 20 k
This command is to read the LED configuration. This is a batch mode command
which retrieves all the LED configurations (320 bytes) of the mode (Auto mode or
User mode) specified by k.
Data Format Returned (Total 320 bytes = 32(ID) x 10 bytes)
State or ID LED Color Mask Bit Blink Pattern ON Time OFF Time Pause Time
(1 byte) (1 byte) (1 byte) (4 bytes) (1 byte) (1 byte) (1 byte)
1 m1 k1 p11,.., p14 q1 r1 s1
2 m2 k2 p21,.., p24 q2 r2 s2
Hexadecimal 1F 15 nL nH d1……dn
Decimal 31 21 nL nH d1……dn
Range of nL 0–255
Range of nH 0
This command stores paper type information in flash memory by the defined
structure in d1..dn that is used by the select paper type command (1F 17).
nL + nH *256 defines the number of bytes dn that follow.
Remove Paper Type Information
This command also removes current records of paper type information except
for predefined paper type which allocated from (slots 0 to 3). To use 1F 15
command, the total number of bytes should be six, where nL and nH should be
set to 0xFF, d1 determines the starting record, and dn for the last record to be
deleted.
Delete All records
Send: 1F 15 FF FF 04 0F
Delete portion of records
For example, to delete paper type info from record 6 to 10, send: 1F 15 FF FF
06 0A
Note
l If the current selected paper type is within range of records to be deleted,
then selected paper type will be set to default value, which is paper type 3.
l Delete records only pertaining for paper type records from slots 4 to 15.
l Slots 0 to 3 cannot be deleted, if starting record to be deleted falls to this
range, it will be automatically set to slot 4.
ASCII US SYN m
Hexadecimal 1F 16 m
Decimal 31 22 m
Range of m 0 ≤ m ≤ 15
This command returns paper type information from flash memory, which is
indexed by m. Printer sending back the data sequence used in the store paper
type information command, for example, the return is 1F 16 m nL nH
(d1…dn), which was stored by index m, and the structure of 48 bytes dn data
are shown in the table below. If the return dn data is all 0xFF, it shows index m,
and the structure of 48 bytes dn data is shown in the table below. If the return dn
data is all 0xFF, it shows index m is undefined.
Paper category 0 1
Speed density 15 9
Text
Diameter 26 1
Detection
2 strobe 34 3
historical
Reserved 38 10 Null
Example
Send: 1F 16 FF
Response: [00][01][01][01][02][01][03][01][04][00]………
[15][00].
1 16 IPS
2 14 IPS
3 12 IPS
4 10 IPS
5 8 IPS
6 6 IPS
7 4 IPS
8 2.2 IPS
9 1.5 IPS
l Speed density (Text)—defines strobe time offset for each speed. It applies
Text line.
l Paper thickness—defines paper thickness for paper low detection.
Value Note
00 0.05mm
01 0.06mm
02 0.07mm
03 0.08mm
04 0.09mm
05 0.10mm
l Paper core diameter—defines paper core diameter for paper low detection.
Value Note
00 10mm
01 11mm
02 12mm
03 13mm
04 14mm
05 15mm
06 16mm
07 17mm
08 18mm
09 19mm
10 20mm
11 21mm
12 22mm
13 23mm
14 24mm
15 25mm
Value Note
Value Note
Value Note
5 2 Strobe historical
Sub Strobe #1
6 2 Strobe historical
Sub Strobe #2
Value Note
ASCII US ETB m n
Hexadecimal 1F 17 m n
Decimal 31 23 m n
Range of m, n 0 ≤ m ≤ 255
0 ≤ n ≤ 15
This command sets paper type with optimum parameter values in the thermal
print control. The m and n parameter select paper category (mono/color) and
paper control (index m specifies by command 1F 15).
Exceptions:
Poor print quality is caused by incorrect setting of m and n.
ASCII US CAN
Hexadecimal 1F 18
Decimal 31 24
Hexadecimal 1C 21 n
Decimal 28 33 n
Note
Available for only 932
(Japanese).
1 Off 00 0 Undefined
4 - - - Undefined
5 - - - Undefined
6 - - - Undefined
Default of n: 0
This command selects character attribute for Asian characters.
Hexadecimal 1C 2D n
Decimal 28 45 n
Value of n l 0—Cancel
l 1—1 dot height underline
l 2—2 dot height underline
Default of n 0 (Cancel)
Hexadecimal 1C 32 c1 c2 d1 … dn
Decimal 28 50 c1 c2 d1 … dn
Range of c1, c2
F8 ≤ c1 ≤ FE and A1 ≤ c2 ≤ FE
This command defines and enters downloaded characters into RAM. The user-
defined character will be cleared by ESC @ or by powering off the printer. Each
character requires 72 bytes for character definition. The maximum number of
user-defined character is 100.
Defining user-defined Asian characters
Related information:
It is required to send 1B 63 30 1 or 1E command before defining Asian
characters for Receipt Station.
Hexadecimal 1C 53 n1 n2
Decimal 28 83 n1 n2
Standard 1byte 1 1 1 0
Standard 2byte 2 2 2 0
Compressed 1byte - - 0 0
Compressed 2byte - - 0 0
This command sets the character right side spacing for Asian characters.
The underline is valid on the space set by this command. ESC SP command is
not valid for Asian character code pages. Therefore, this command is used to set
the character right side spacing for characters in Asian code page.
Hexadecimal 1C 57 n
Decimal 28 87 n
This command selects or cancels the quadruple mode for Asian characters. FS !
and GS ! also have control over character size.
Updating firmware in IPL mode is the method used in the existing products. In
this mode, IPL supports CPMI commands which control flashing firmware via
USB. Therefore, it has to switch to IPL mode by Switch to Flash Download Mode
command firstly. In this mode, all the commands used are CPMI commands. The
interface connection is disconnected while changing the mode from Main
firmware to IPL mode, and it is re-established when IPL mode is launched.
Whereas, updating firmware in Main firmware mode does not require IPL. It is
able to update the firmware without changing the mode. The commands used in
this mode are not CPMI commands.
Hexadecimal 1B 5B 7D
Decimal 27 91 125
When the printer receives this command in Main firmware mode, it returns ACK
and resets the printer automatically, and it goes to IPL mode.
If this command is received in IPL mode, it just returns NACK and nothing
happens. In order to go back to Main Firmware mode from IPL mode, the printer
has to be manually reset or be reset by Printer Reboot command (1D FF).
Hexadecimal 1D 00
Decimal 29 0
Response ACK (0x06) + 12 bytes ASCII string of IPL firmware part number.
Hexadecimal 1D 01
Decimal 29 1
This command returns the total number of sectors in the flash memory. The
value returned is the maximum sector number used by Select Flash Memory
Sector to Download command (1D 02 n). This command is available only in IPL
mode.
Hexadecimal 1D 02 n
Decimal 29 2 n
Value of n The Flash sector to which the next download operation applies.
Range of n 0–93 (Sector number). This range depends of the flash memory specification.
It specifies the sector number of flash memory which writes the firmware
program data sent subsequently. This command is available only in IPL mode.
Hexadecimal 1D 06
Decimal 29 6
This command calculates and returns CRC of the flash memory sector specified
by Select Flash Memory Sector to Download command (1D 02 n). If CRC is
successfully calculated, it returns ACK and 2bytes CRC consecutively. If CRC
calculation is not successful or it is abnormal CRC, it returns NACK.
Hexadecimal 1D 07
Decimal 29 7
This command calculates and returns CRC of IPL firmware. This command is
available only in IPL mode.
Hexadecimal 1D 0E
Decimal 29 14
This command is not used in the sequence of the firmware flashing in IPL.
Therefore, it does not do anything except returning the acknowledgement. This
command is available only in IPL mode.
Hexadecimal 1D 0F
Decimal 29 15
This command calculates and returns CRC of Main firmware. This command is
available only in IPL mode.
Hexadecimal 1D 10 n
Decimal 29 16 n
Range of n 1–93 (Sector number). This range depends on the flash memory
specification.
This command erases the flash memory sector specified. If the sector specified is
successfully erased, it returns ACK. If it failed to erase, it returns NACK. This
command is available only in IPL mode.
Hexadecimal 1D 11 al ah cl ch d1…dn
Decimal 29 17 al ah cl ch d1…dn
Value of cl, ch Total number of bytes of the subsequent data = ((ch * 256) + cl)
Range of n 1 ≤ n ≤ 64K
This command writes the firmware data into the flash memory sector specified
by “Select Flash Memory Sector to Download” command (1D 02 n). If the data
is successfully written, it returns ACK. If it failed to write, it returns NACK. This
command is available only in IPL mode.
Hexadecimal 1D FF
Decimal 29 255
This command resets the printer. If the printer is in IPL mode and receives this
command, it goes to Main mode after the reset. If it is in Main mode, it's still in
Main mode even after the reset.
Those are not allowed to use in an application. Otherwise, it may cause printer
failure, or it may become not operational in worst case.
Flash firmware
ASCII ESC [ | m pL0 pL1 pH0 pH1 d1…dn
Value of m l 00H—IPL
l 01H—Main F/W
l 02H—SBCS
l 03H—DBCS
l 04H—TABLE
l 05H—PRINTER CONFIGURATION TABLE
l 10H—Combined File1 (IPL+MainFW) Reserved for future enhancement
l 20H—Combined File2 (All in one file) Reserved for future enhancement
Values of l pL0, pL1, pH0, pH1: (pL0 + pL1 × 256 + pH0 × 65536 + pH1 × 16777216) as the
size of firmware file
l d1...dn: Firmware file data
This command flashes the entire firmware data file into the flash memory. If the
data is successfully written, it returns ACK with CRC of the target firmware
specified by m.
Once the firmware is successfully flashed, the new firmware is activated by Active
Firmware command (1B 5B 7B n). If the firmware does not support the swap
download functionality that manages two downloading area for each firmware,
the new firmware flashed is activated even by resetting the printer. If the
firmware supports the swap download functionality, the firmware file is flashed
into the deactivated area by this command. This command is not available in IPL
mode.
While the printer is updating the firmware, LED blinks in Green. While LED is
blinking, do not disconnect the USB cable or turn off the printer. Otherwise, the
printer will malfunction.
Note
Swap download functionality is the future enhancement that requires
more flash memory size.
Hexadecimal 1B 5B 7B n
Decimal 27 91 123 n
Value of n l 00H—IPL
l 01H—Main F/W
l 02H—SBCS
l 03H—DBCS
l 04H—TABLE
l 05H—PRINTER CONFIGURATION TABLE
This command activates the firmware flashed into the deactivated area and
automatically resets the printer. If the firmware is successfully activated, it
returns ACK with CRC of the target firmware and automatically resets the printer.
The firmware that does not support the swap download functionality just returns
ACK with CRC and resets the printer. If it fails, it returns NACK with the following
error code.
Note
This command is not available in IPL mode. Swap download functionality
is the future enhancement which requires more flash memory size.
Printer exercise
ASCII ESC z n
Hexadecimal 1B 7A n
Decimal 27 122 n
This command allows the printer to do exercise for the diagnostics purposes.
n Device Action
04H Paper feed motor (Receipt) It rotates the feed motor for 5 seconds.
Exceptions:
When a paper exists in the printer, this command is ignored.
If the command is sent with an illegal "n" parameter, the command is ignored.
While the printer is conducting an exercise, it does not process any subsequence
data.
Hexadecimal 1D 64 01
Decimal 29 100 01
The printer prints Print Maintenance barcode. Whenever the printer prints this
form, it executes the thermal head failure detection, and this result is included in
this form.
Hexadecimal 1D 64 05
Decimal 29 100 05
The command is to print Dot check pattern to check if there are any damaged
heads.
This command is available when the paper width is 80 mm. Dot check pattern is
the common form used in Top margin adjustment.
Exceptions:
While the printer is printing test pages, it does not process any subsequence
data.
Hexadecimal 1D 64 06
Decimal 29 100 06
The command is to conduct conducts write and read test in some of RAM area.
Exceptions:
While the printer is checking memory, it does not process any subsequence data.
Hexadecimal 1D 64 11 n
Decimal 29 100 17 n
This command is to adjust the left margin. Once the margin is adjusted, it prints a
form which is same format as Dot check pattern test so that an operator can
confirm the margin adjusted. This command is available when the paper width is
80 mm.
Exceptions:
While the printer is conducting the adjustment, it does not process any
subsequence data.
Hexadecimal 1D 64 15 n m s
Decimal 29 100 21 n m s
Note
Parameters m and s are only available when n=2. These
are supported in Series ii only.
Note
This is supported in Series ii only.
Note
This is supported in Series ii only.
Value
Index Sensor
01 00
l Jam Sensor
l Paper Low Sensor
Calibrating sensors
To calibrate the sensors, follow these steps:
Note
For the Jam sensor, there is the risk that it incorrectly detects a paper jam
due to paper dust on the platen generated by long usage. To prevent this
risk, the printer keeps monitoring OFF value of the Jam sensor and it
disables the paper jam detection automatically when OFF value is
abnormal.
Exceptions:
While the printer is performing the calibration, it does not process any
subsequence data.
Hexadecimal 1D 64 16
Decimal 29 100 22
This command is to reset all the printer individual information stored into the
non-volatile memory to the default value.
Exceptions:
Configuration sector erase cycle tally will not reset. When the main firmware is
the “Default NHPI FW”, the USB Type will not be reset. The existing USB Type will
be retained.
Hexadecimal 1D 64 20 m
Decimal 29 100 32 m
Error log are stored when the firmware detects following errors/warning:
l Unrecoverable Error
o Memory Error
o Thermal Head Disconnected
o Thermal Head Abnormal Temperature
l Recoverable Error (operator intervention is required)
o Cutter Error
o Recoverable Error (operator intervention is not required)
o Thermal head over heat
l Warning (This will not affect any printer behavior)
o EEPROM initialization fail
1D 08 (Reserved) No No
Offline Diagnostic
The following tasks can be performed for offline diagnostic:
When the printer is turned on while Feed Key is pressed down, it enters Offline
Printer Configuration mode. In this mode, all the interfaces are not available.
Main Menu
Once it enters Offline Printer Configuration, it prints Main Menu as follows.
Note
When an operator clicks Feed key, it beeps a short tone which indicates
that a short click is recognized. When an operator holds down Feed key
for a while, it beeps a modulated tone which indicates that a long press is
recognized.
Exit
When Feed Key is only pressed down for a while, it automatically resets and goes
to online mode.
Print Printer Config
When Feed Key is clicked once and then pressed down for a while, it prints the
configuration form, and stays in Main Menu after printing the configuration form.
Emulation
When Feed Key is clicked twice and then pressed down for a while, it prints
Submenu of settings which indicates items relevant to Emulation.
Hardware
When Feed Key is clicked three times and then pressed down for a while, it prints
Submenu of settings which indicates items relevant to Hardware.
Reset to Default Settings
When Feed Key is clicked four times and then pressed down for a while, it resets
all the settings to the default value and it directly goes to Final Confirmation
Menu.
Note
Buffered Printing & Legacy LF + CR are supported in Series ii only.
For Series i:
By clicking Feed Key according to Submenu and then pressing it for a while, it
goes to Setting Menu of an individual setting selected in Submenu and prints all
setting options.
Note
If Feed Key is pressed down for a while without clicking, it goes back to
Main Menu.
By clicking Feed Key according to Setting Menu and then pressing it for a while, it
goes to Final Confirmation Menu of a setting option selected in Setting Menu and
prints the options to confirm if the change is really required or not.
If Feed Key is pressed down for a while without clicking, it goes back to Submenu.
The setting options and its order follow the items listed in Printer Setting Change
command (1F 11).
l Long Press—saves the change into non-volatile memory and goes back to
Top Menu.
l Short Click—cancels the change and goes back to the previous Setting
Menu. If it is the final confirmation of “Reset to Default Setting”, it goes back
to Top Menu without changing any settings.
When the printer is turned on after connecting USB memory device, it goes
to the offline firmware update mode with the green LED on and it
automatically starts updating firmware. Once the update starts, LED is
blinking in red.
Note
l As the premise, in order to enable the functionality of the
offline firmware update, USB Type-B has to be disconnected.
Otherwise, it goes to online mode even if USB memory device
is connected to USB Type-A.
l If a device except the USB memory is connected to USB Type-A,
it does not go to the offline firmware update mode.
l While LED is blinking in red, removing USB device is not
allowed. Otherwise, the printer becomes malfunction after
that.
Folder File
Note
The folder name is based on the time stamp when this folder was created.
First, it figures out the latest folder by checking the root folder name based on
the timestamp. After that, it checks the file in each folder of the latest timestamp
folder in the following order, and updates accordingly if the proper file is stored
in each folder.
1. IPL
2. MAIN
3. SBCS
4. DBCS
5. TABLE
Even if such condition is observed, it simply skips such folder and continues
offline firmware update till the end without indicating any errors.
l yyyymmddhhmmss\7199STD\CONFIG
Printer Configuration is changed along with firmware update at the same time.
1. IPL
2. MAIN
3. SBCS
4. DBCS
5. TABLE
6. Printer Configuration
The offline printer configuration file consists of the binary data of the Printer
Setting Change Commands (1F 11) to configure the printer and the Common
Printer Maintenance Interface (CPMI) Commands (1D 30 04) to reset the tally.
There are two ways to print this form. This form is printed without looping in the
presenter.
l Operation
When “Print Maintenance Info.” is selected in Top Menu of the offline
diagnostics, it prints this form.
l Command
When “Print Maintenance Information Form” command (0x1D 0x64 0x01) is
received, it prints this form.
Before it prints the Maintenance Information Form, it performs the dot failure
detection in order to update the latest dot status.
If ION driver is not installed in the host system and if the printer USB is
configured as ION, the printer automatically switches to NHPI mode temporarily
and “ION>NHPI” is shown in the diagnostic form.
Note
Automatic switching does not happen when ION driver is installed but
EPIC configurations are not done.
In connecting the printer with newly installed EPIC computer case, special
operation is required and the instruction is shown in the diagnostic form as “To
force type ION, Open receipt cover and press feed button for 5 secs” below the
ION>NHPI. The user can execute the special operation to install the Edgeport.
Limitation:
After the automatically switching to NHPI, if EPIC driver is installed in the host
system, the printer needs to restart to detect the EPIC.
Without turning off the printer, if the user switches from ION to Non-ION PC, the
printer cannot automatically switch from EPIC to NHPI.
Note
Take note of the following for Legacy Paper Jam:
l If the cover is closed while Feed Key is pressed down, it prints this form.
l If “Print Printer Config” is selected at Top Menu of the offline diagnostics, it
prints this form.
l If “Print Printer Configuration Form” command (0x1F 0x74) is received, it
prints this form.
Before the printer prints Printer Configuration Form, it performs the dot failure
detection in order to update the latest dot status.
Boot Online
Error/Warning Idle Print
Up Diag.
Unrecoverable Error
Memory Error O O
Note
If the thermal head temperature is more than 90-
degree Celsius, this error is detected.
Paper Jam O O
Cutter Jam O O O O
Cover Open O O O
Paper End O O
Note
If the thermal head temperature is more than 65-
degree Celsius, it suspends printing data to cool down
the head, and it resumes printing once it becomes less
than 55-degree Celsius.
Paper low O O
24V anomaly O O
Unrecoverable error
Those are very critical errors that the printer may not be functional at all and may
require the repair. Once those errors are detected, it is not able to recover from
an error condition unless the printer is reset. Even if the printer is reset, it will
probably detect the same error.
Memory error
RAM error
If there is a failure in terms of iRAM / DRAM access during the power up or during
the memory test of the online diagnostics, it is detected as Memory Error.
ROM error
If there is a failure in terms of the flash memory access during the power up or
during the memory test of the online diagnostics, it is detected as Memory Error.
The printer is not able to recover from this error condition unless the printer is
turned off. Even if it is rebooted, there is a high possibility that same error is
detected because this is the fatal error.
The printer is not able to recover from this error condition unless the printer is
turned off. Even if it is rebooted, there is a high possibility that same error is
detected because this is the fatal error.
This error is internally cleared by force regardless of the printer condition when
the cover is opened and closed or when Error Recovery command (Real–time
Request to Printer) is received. However, it will be detected once again if no
proper action was taken.
Once the paper rolled up into the platen is taken away and the cover is closed
properly then, this error is cleared.
Cutter error
While performing the cut, if one of the following abnormal behaviors is observed,
the printer immediately executes the cutter exercise. For the detail of the cutter
exercise, please see the description of Printer Exercise (1B 7A 07) command.
l Cutter did not leave the home position even if the certain period has
passed.
l Cutter did not return to the home position within the certain period.
In addition, the cutter exercise is executed during the printer power up if the
cutter is not at the home position. It is also conducted if the cover is closed in the
cutter error condition.
l Cutter does not leave the home position: If it recognizes that the cutter is
still at the home after the certain period, it is detected as the cutter error.
l Cutter does not return to the home position: If it recognizes that the cutter
is not able to return to the home position within the certain period, it is
detected as the cutter error.
Once the cover is opened and closed during cutter error status, the cutter error
will clear and then perform cutter exercise. However, the same error may occur
in the cutter exercise triggered by closing the cover unless the inducement of the
cutter error is eliminated.
If the configuration of ”Legacy Paper Jam” is configured as “Knife Jam”, the printer
indicates Cutter error even if it detects Receipt paper jam error.
Note
Even if the cutter overshoots (cannot stop at) the home position while
performing cut, it is not considered as the abnormal condition as long as
returning to the home position is recognized.
Once a paper roll is supplied and the cover is closed properly, this error is
cleared.
Once this error is detected, the printer does not start printing until the thermal
head temperature becomes the normal condition. Once it is recovered, this error
is automatically cleared and it restarts printing. This error is cleared by
opening/closing the cover. However, it may detect the same error before printing
data if the error condition is not recovered.
Once this error is detected, the printer does not start printing until the thermal
head temperature becomes lower than the certain temperature. Once it is
cooled down and reaches the certain temperature, this error is automatically
cleared and it restarts printing. This error is cleared by opening/closing the cover.
However, it may detect the same error before printing data if the error condition
is not recovered.
Warning
It does not affect any printer functionality. Once some of those are detected, the
printer just indicates this by status and LED. It behaves as usual even if a warning
is detected.
2 Idle NA GREEN ON
3 Printing NA GREEN ON
5 (Reserved) - - -
6 (Reserved) - - -
9 (Reserved) - - -
12 (Reserved) - - -
13 (Reserved) - - -
14 (Reserved) - - -
15 (Reserved) - - -
16 (Reserved) - - -
17 (Reserved) - - -
18 (Reserved) - - -
19 (Reserved) - - -
25 (Reserved) - - -
26 (Reserved) - - -
27 (Reserved) - - -
28 (Reserved) - - -
29 (Reserved) - - -
32 (Reserved) - - -
While updating the firmware in IPL mode, LED indication is as follows regardless
of the mode.
l While writing data into the flash memory: Green fast blink
l While verifying data written into the flash memory: Red fast blink
Example
If a system recognizes that the cover is opened, it may send LED Control
Request command (1D 7A 25) so that LED starts blinking RED in 3Hz.
Once it recognizes that the cover is closed, it may send LED Control Request
command (1D 7A 07) to turn off the red blinking and to turn on the green to
indicate that the printer is in online.
7 Green ON NA Keep ON
11 NA OFF NA OFF
12 Amber ON NA Keep ON
22 NA OFF NA OFF
23 Red ON NA Keep ON
l If the printing area width is less than the width of 1 character, the right
margin is shifted towards right to accommodate the width of 1 character.
(This processing is only performed on the line of question.)
l If bitimage or download bitimage is developed, the right margin is shifted
towards right to accommodate one line in vertical for that bitimage. (1 dot
for double density bitimage and 2 dots for single density bitimage)
General
l Eco functions are activated by Lean Receipt Utility.
l Eco settings configured are stored into the non-volatile memory. Therefore,
even if the printer is powered off, the settings remain.
l Eco functions are not available in page mode.
l It essentially has two functionalities. One is the functionality to reduce the
paper consumption. Another is functionality to reduce the power
consumption.
l “ECO function disable/enable” is enables / disables all of Eco function.
Unless this setting is enabled, each function is not valid irrespective of its
individual setting.
Upper space implies the area from the top edge of the paper until the top edge
of the first printable data.
This setting does not affect the physical margin created by the mechanical
distance between the thermal head position and the cutter position.
This setting is ignored when the compatible top margin mode is enabled.
Lower space implies the area from the end edge of the last printable data until
the cutting position.
This setting is ignored when the compatible top margin mode is enabled.
The text print line which consists of ANK characters is changed to 8.13 LPI.
The text print line which includes of DBCS characters is changed to 7.52 LPI.
Example
l If it is configured to 50%, space height becomes half of the original
height.
l If it is 100%, the space is completely removed.
Line Feed spaces which exist in either the top space or the bottom space are not
affected by this setting.
Example
If it is configured to 50%, barcode height becomes half of the original
height.
This setting is ignored when the compatible top margin mode is enabled.
This setting is to specify how other Eco functions treat the space character (0x20).
This function itself does not remove any spaces.
Stand-by mode
It disables / enables the stand-by mode.
Speed reduction
It switches the print mode (High Speed Mode / High Quality Mode). Switching to
“High Quality Mode” reduces the maximum speed which is expected to reduce
the power consumption.
0 (default) –4 –8 –12
–1 –5 –9 –13
–2 –6 –10 –14
–3 –7 –11 –15
Paper Reduction
Paper Reduction
Eco
Command Force
functions Remove Remove Line Barcode Registered
Line Feed Single
Upper Lower Space Height Logo
Reduction High
Space Space Reduction Reduction Removal
Font
LF 0A * * *
DC4 14 * * *
NAK 15 * * *
SYN 16 * * *
ESC! 1B21 *
ESC2 1B32 * * * *
ESC3 1B33 * * * *
ESCE 1B45
ESCG 1B47
ESCJ 1B4A * * *
ESCd 1B64 * * *
FS! 1C21 *
FSW 1C21 *
GS! 1D2F *
GSB 1D42
GSV 1D56 * * *
Eco
Command Force
functions Remove Remove Line Barcode Registered
Line Feed Single
Upper Lower Space Height Logo
Reduction High
Space Space Reduction Reduction Removal
Font
GSk 1D6B *
AXDC1 1F11 * * * * * * * *
Power Reduction
Power Reduction
LF 0A
DC4 14
NAK 15
SYN 16
ESC! 1B21 * *
ESC2 1B32
ESC3 1B33
ESCE 1B45 *
ESCG 1B47 *
ESCJ 1B4A
ESCd 1B64
FS! 1C21 *
FSW 1C21 *
GS! 1D2F *
GSB 1D42 *
GSV 1D56
GSk 1D6B
AXDC1 1F11 * * * *
Based on this setting, characters of code page 874 are constructed according to
the character order sent.
1. The printer checks whether the received character is the Base character. If
the Top, Above, and Below characters are sent before the Base character,
these characters are ignored.
2. After receiving Base character, the printer checks the next character until
receiving the next Base character.
3. If the next character is the Below character, the Above character, or the Top
character, the printer checks whether these Thai characters are valid for
current Base character. If they are valid, it merges these characters’ image
on Base character’s image. If it is invalid character, it will be ignored.
Thai character height is 29 dots for Mode 3 and 51 dots for Mode 7.
The below command functions change, and are different from other code pages.
Add n Extra Dot When CP874 is selected, the line Pitch is character height +
SYN
Rows. n dot.
Set Line Spacing. When CP874 is selected, valid parameter value is greater
ESC 3
than or equal to the character height.
The line pitch is changed by below commands because the code page is changed.
ESC t Note
Same as ESC R.
l Contextual forms
l Word ligatures
l Reverse the Arabic strings
These features can be achieved based on the proportional font and they are
available according to the following conditions:
If Arabic proportional font does not exist in the DBCS font area, the above–
mentioned features are not available, and Codepage 1256 isolated characters
are printed in fixed pitch.
Curly writing is a way to write a word with connection to all the characters in that
word. This feature is supported in contextual forms.
Word Ligatures
Arabic Presentation Forms-A has a few characters defined as word ligatures for
terms frequently used in formulaic expressions in Arabic. By way of example, the
common ampersand (&) represents the conjunctive word and. The ampersand
symbol is a ligature.
Other codes
Receiving data:
Note
Attribute command of Emphasized, Double Strike, Superscript/subscript,
and Italic is supported for Arabic font. However, print quality is not
guaranteed due to some of the Arabic characters is too complex to print
clearly within one-character block by those attributes.
Example
ESC DC2- Select 90 Degree Counter-Clockwise Rotated Print
Example
DC2 - Select Double-Wide Characters
33 21 ! Exclamation mark No
35 23 # Hash No
36 24 $ Dollar No
37 25 % Percent No
38 26 & Ampersand No
42 2A * Asterisk No
43 2B + Plus No
44 2C , Comma No
45 2D – Dash No
46 2E . Full stop No
47 2F / Slash Yes
48 30 0 Zero No
49 31 1 One No
50 32 2 Two No
51 33 3 Three No
52 34 4 Four No
53 35 5 Five No
54 36 6 Six No
55 37 7 Seven No
56 38 8 Eight No
57 39 9 Nine No
58 3A : Colon No
59 3B ; Semi-colon No
61 3D = Equals No
63 3F ? Question mark No
64 40 @ At No
65 41 A Uppercase A No
66 42 B Uppercase B No
67 43 C Uppercase C No
68 44 D Uppercase D No
69 45 E Uppercase E No
70 46 F Uppercase F No
71 47 G Uppercase G No
72 48 H Uppercase H No
73 49 I Uppercase I No
74 4A J Uppercase J No
75 4B K Uppercase K No
76 4C L Uppercase L No
77 4D M Uppercase M No
78 4E N Uppercase N No
79 4F O Uppercase O No
80 50 P Uppercase P No
81 51 Q Uppercase Q No
82 52 R Uppercase R No
83 53 S Uppercase S No
84 54 T Uppercase T No
85 55 U Uppercase U No
86 56 V Uppercase V No
87 57 W Uppercase W No
88 58 X Uppercase X No
89 59 Y Uppercase Y No
90 5A Z Uppercase Z No
92 5C \ Backslash Yes
94 5E ^ Caret/hat No
95 5F _ Underscore No
96 60 ` Accent grave No
97 61 a Lowercase a No
98 62 b Lowercase b No
99 63 c Lowercase c No
100 64 d Lowercase d No
101 65 e Lowercase e No
102 66 f Lowercase f No
103 67 g Lowercase g No
104 68 h Lowercase h No
105 69 i Lowercase i No
106 6A j Lowercase j No
107 6B k Lowercase k No
108 6C l Lowercase l No
109 6D m Lowercase m No
110 6e n Lowercase n No
111 6f o Lowercase o No
112 70 p Lowercase p No
113 71 q Lowercase q No
114 72 r Lowercase r No
115 73 s Lowercase s No
116 74 t Lowercase t No
117 75 u Lowercase u No
118 76 v Lowercase v No
119 77 w Lowercase w No
120 78 x Lowercase x No
121 79 y Lowercase y No
122 7A z Lowercase z No
124 7C | Pipe No
126 7E ~ Tilde No
Spacing (20H)
2. Spacing (SP)
l One Spacing
l Two Spacing
Note
Special characters include two spacing which process outside of the
firmware's Arabic engine is the new requirement to meet specific usage.
The printer supports ESC/POS emulation mode. To activate this mode, configure
the emulation mode to ESC/POS emulation through the Printer Setting Change
command or offline diagnostic mode. The default setting of emulation mode is
NCR 7199 emulation.
Note
In ESC/POS emulation mode, the following NCR emulation–specific
functionalities or configurations are not available:
Command Descriptions
This section provides the detailed description of the commands. These
commands are separated into groups according to their function or use.
Hexadecimal 1B 3D n
Decimal 27 61 n
Value of n l 1,3—Enable
Printer
l 2—Disable
Printer
Default of n 1
This command selects the device to which the host PC transmits data. When the
printer is disabled (n=2), all data except this command and the real-time
commands are ignored.
n Function
2 Disables Printer
ASCII ESC i
Hexadecimal 1B 69
Decimal 27 105
ASCII ESC m
Hexadecimal 1B 6D
Decimal 27 109
Hexadecimal 1B 5C nL nH
Decimal 27 92 nL nH
This command moves the print position to the relative position specified by ((n1 +
n2 x 256) x (horizontal motion unit)) from the current print position.
The horizontal motion unit follows Set Horizontal and Vertical Minimum Motion
Units (1D 50) command.
The positive number moves the print position to the right; the negative number
moves to the left.
Select justification
For details, refer to Select justification on page 43.
Hexadecimal 1B 21 n
Decimal 27 33 n
Bit Function 0 1
Default 0
This command defines the print modes to specify the several character
attributes.
Bit3, Bit4, Bit5 and Bit7 settings are available in some limited condition in 1256
(Arabic) proportional font mode. For more details, refer to Arabic Font Support
on page 338.
When auto replacement of the font with the customized value, <fn= 05> GS
( E (a = 111, 112), is set for the font selected by bit 0, the font to be
replaced is set to enabled.
ASCII ESC % n
Hexadecimal 1B 25 n
Decimal 27 37 n
Range of n 0–1
Default 0
Limitation:
This command is ignored in 1256 (Arabic) proportional font mode.
ASCII ESC M n
Hexadecimal 1B 4D n
Decimal 27 77 n
Range of n 0, 1, 48, 49
Default of n 0
n Character font
When auto replacement of the font with the customized value, <fn=05> GS (
E <a = 111, 112>, is set for the selected font, the font to be replaced is
enabled.
ASCII ESC R n
Hexadecimal 1B 52 n
Decimal 27 82 n
Range 0 ≤ n ≤ 17
Default of n 0
This command affects only specific ASCII code data (23, 24, 25, 26, 40, 5B, 5C, 5D,
5E, 60, 7B, 7C, 7D, 7E).
However, when the default of the international character set is changed with the
customized value, <fn=05> GS ( E <a = 9>, the default value becomes
the one specified by the customized value.
0 U.S.A
1 France
2 Germany
3 U.K.
4 Denmark I
5 Sweden
6 Italy
7 Spain I
8 Japan
9 Norway
10 Denmark II
11 Spain II
12 Latin America
13 Korea
14 Slovenia/ Croatia
15 China
16 Reserved
17 Arabia
ASCII ESC t n
Hexadecimal 1B 74 n
Decimal 27 116 n
Value of n 0 ≤ n ≤ 255
This command selects the international character set. For details of the character
sets, refer to set NCR 7199 Series Thermal Receipt Station Printer User Guide (BCC5-
0000-5172).
1 [Katakana]
2 [PC850 (Multilingual)]
3 [PC860 (Portuguese)]
4 [PC863 (Canadian-French)]
5 [PC865 (Nordic)]
11 Reserved
12 Reserved
13 Reserved
14 Reserved
15 Reserved
16 [WPC1252]
19 [PC858 (Euro)]
20 Reserved
21 Reserved
26 Reserved
30 Reserved
31 Reserved
32 Reserved
33 Reserved
34 Reserved
35 Reserved
36 [PC862 (Hebrew)]
37 [PC864 (Arabic)]
38 Reserved
39 Reserved
40 Reserved
41 Reserved
42 Reserved
43 Reserved
44 Reserved
45 Reserved
46 Reserved
47 Reserved
48 Reserved
49 Reserved
50 [WPC1256 (Arabic)]
51 Reserved
52 Reserved
53 Reserved
127 Hungary
For PC874, the character set will be matching with Wiki codepage 874 and
enlarged version of codepage 874 in NCR Emulation of 7199.
Hexadecimal 1B 2D n
Decimal 27 45 n
It turns the underline mode on or off. Underline is not printed for spaces set by
Horizontal Tab, Set Absolute Starting Position and Set Relative Print Position
command.
The printer behavior of this command and Select Print Modes (Bit 7) is
completely same.
Limitation:
This command is available in some limited condition in 1256 (Arabic)
proportional font mode. For more details, refer to Arabic Font Support on
page 338.
ASCII FS ( E pL pH fn m c
Hexadecimal 1C 28 45 pH fn m c
Decimal 28 40 69 pL pH fn m c
Value of fn 61
Value of m 2
This command transmits set values for top/bottom logo printing by specifying c.
c Function
Data
Data to be transmitted Hex Decimal
amount
(3) Set Values for top/bottom See the succeeding See the succeeding 0 to 11 bytes
logo tables tables
When c = 48 is specified
(3) Set values for top logo Hex Decimal Data amount
When c = 49 is specified
(3) Set values for bottom logo Hex Decimal Data amount
Data
(3) Set values for bottom logo Hex Decimal
amount
d) Prints the top logo while paper feeding to the cutting 30H, 48, 49 1 byte
position 31H
f) Prints the top logo when the roll paper cover is closed 30H, 48, 49 1 byte
31H
g) Prints the top logo while clearing the buffer to recover from 30H, 48, 49 1 byte
a recoverable error 31H
h) Prints the top logo after paper feeding with the paper Feed 30H, 48, 49 1 byte
button has finished 31H
Value of fn 62
Value of m 2
This command sets top logo key code, justification, and number of lines to be
removed after top logo printing.
This command associates key codes (kc1, kc2) of Flash Memory graphics to be
printed as a top logo.
a Function
49 Specifies centering
Flash memory is used as the storage area for set values of top logo printing.
Note
Setting values are maintained after power off.
Value of fn 63
Value of m 2
This command sets the bottom logo key code, and justification.
It associates key codes (kc1, kc2) of Flash Memory Logo to be printed as a bottom
logo.
a Function
49 Specifies centering
Flash memory is used as the storage area for set values of bottom logo printing.
Note
Setting values are maintained even after power off.
Value of fn 64
Value of m 2
Value of a 48, 64 to 67
Value of n 48, 49
a Function
48 Prints the top logo while paper feeding to the cutting position.
65 Prints the top logo when the roll paper cover is closed.
66 Prints the top logo while clearing the buffer to recover from a recoverable error.
67 Prints the top logo after paper feeding with the paper Feed button has finished.
n Function
48 Disabled
49 Enabled
Flash memory is used as the storage area for set values (n).
Note
Setting values are maintained even after power off.
ASCII FS ( E pL pH fn m a n
Hexadecimal 1C 28 45 pL pH fn m a n
Decimal 28 40 69 pL pH fn m a n
Value of fn 65
Value of m 2
Value of a 48, 49
Value of n 48, 49
n = 48 (when a = 49)
a Function
n Function
48 Enables
49 Disables
Flash memory is used as the storage area for set values (n).
Note
Setting values are maintained even after power off.
This command is used when changing the setting of “Logo printing enabled” set
with <fn=64> FS ( E to Disabled temporarily.
ASCII GS ( L pL pH m fn
Hexadecimal 1D 28 4C pL pH m fn
Decimal 29 40 76 pL pH m fn
Hexadecimal 1D 28 4C p1 p2 p3 p4 m fn
Decimal 29 56 76 p1 p2 p3 p4 m fn
Value of m 48
Value of fn 0,48
This command transmits the entire capacity of the Flash Memory area (number
of bytes in the Flash Memory area).
Response format
The decimal value is converted to text data and sent starting from the high order
end.
Example
123456 byte -> 0x37 0x30 0x31 0x32 0x33 0x34 0x35 0x36
0x00
Hexadecimal 1D 28 4C pL pH m fn
Decimal 29 40 76 pL pH m fn
ASCII GS 8 L p1 p2 p3 p4 m fn
Hexadecimal 1D 38 4C p1 p2 p3 p4 m fn
Decimal 29 56 76 p1 p2 p3 p4 m fn
Value of m 48
Value of fn 2, 50
Hexadecimal 1D 28 4C pL pH m fn
Decimal 29 40 76 pL pH m fn
ASCII GS 8 L p1 p2 p3 p4 m fn
Hexadecimal 1D 38 4C p1 p2 p3 p4 m fn
Decimal 29 56 76 p1 p2 p3 p4 m fn
Value of m 48
Value of fn 3, 51
Example
123456 byte -> 0x37 0x31 0x31 0x32 0x33 0x34 0x35 0x36
0x00
ASCII GS ( L pL pH m fn d1 d2
Hexadecimal 1D 28 4C pL pH m fn d1 d2
Decimal 29 40 76 pL pH m fn d1 d2
ASCII GS ( L pL pH m fn d1 d2
Hexadecimal 1D 28 4C pL pH m fn d1 d2
Decimal 29 40 76 pL pH m fn d1 d2
Value of m 48
Value of fn 64
Value of d1 75
Value of d2 67
This command transmits the key code list for defined in Flash Memory.
Example
When two logos are defined with key code ”kc1=0x20, kc2=0x21” and
“kc1=0x22, kc2=0x23”, command response is “0x37 0x72 0x40 0x20 0x21
0x22 0x23 0x00”. If no logo with key code is defined, the response is “0x37
0x72 0x40 0x00”.
Hexadecimal 1D 28 4C pL pH m fn d1 d2 d3
Range 29 40 76 pL pH m fn d1 d2 d3
ASCII GS 8 L p1 p2 p3 p4 m fn d1 d2 d3
Hexadecimal 1D 38 4C p1 p2 p3 p4 m fn d1 d2 d3
Decimal 29 56 76 p1 p2 p3 p4 m fn d1 d2 d3
Value of m 48
Value of fn 65
Value of d1 67
Value of d2 76
Value of d3 82
Value of m 48
Value of fn 66
This command deletes the logo in the user-defined logo area of the flash
memory defined by the key codes (kc1 and kc2) of Define Logo in Flash Memory
by the key code command.
Exceptions:
This command is not available for logos defined by Define Bitmap File as Logo
(1B + BMP file) command and Define Bit Image as Logo (1D 2A n1 n2 d1
... dn) command.
Note
It indicates the total number of bytes of subsequent data after pH.
Note
It indicates the total number of bytes of subsequent data after p4.
Value of m 48
Value of fn 67
Value of a 48, 52
It defines the graphics data (raster format) as the logo specified by the key codes
(kc1, kc2) in the user- defined logo area of the flash memory.
l 48—monochrome (digital)
l 52—multi-tone
xL, xH Specify the number of dots in the horizontal direction as (xL + xH × 256).
yL, yH Specify the number of dots in the vertical direction as (yL + yH × 256).
l 49—Color 1
l 50—Color 2
l 51—Color 3
l 52—Color 4
Exceptions:
The maximum width of each logo is 576/203 inches, and the maximum height of
each logo is 2304/203 inches. If a logo size is more than this, it is not printed.
This command is sharing the same flash memory area with Define Bitmap File as
Logo (1B + BMP file) command and Define Bit Image as Logo command.
However, they are incompatible to each other due to different command
parameters data storing structure.
When this command is executed, all images stored in the user defined logo area
of the flash memory defined by Define Bitmap File as Logo (1B + BMP file)
command and Define Bit Image as Logo (1D 2A n1 n2 d1 ... dn)
command are erased.
Value of m 48
Value of fn 69
Value of x 1, 2
Value of y 1, 2
This command prints the user-defined logo defined by the key codes (kc1 and
kc2) of Define Logo in Flash Memory by the key code command. The logo image
is enlarged by x and y in the horizontal and vertical directions.
Exceptions:
This command is not available for logos defined by Define Bitmap File as Logo
(1B + BMP file) command and Define Bit Image as Logo (1D 2A n1 n2 d1
... dn) command.
Hexadecimal 1D 28 4C pL pH m fn d1 d2
Decimal 29 40 76 pL pH m fn d1 d2
ASCII GS 8 L p1 p2 p3 p4 m fn d1 d2
Hexadecimal 1D 38 4C p1 p2 p3 p4 m fn d1 d2
Decimal 29 56 76 p1 p2 p3 p4 m fn d1 d2
Value of m 48
Value of fn 80
Value of d1 75
Value of d2 67
This command transmits the key code list for defined in RAM.
Transmission data
Hexadecimal 1D 28 4C pL pH m fn d1 d2 d3
Decimal 29 40 76 pL pH m fn d1 d2 d3
ASCII GS 8 ( L p1 p2 p3 p4 m fn d1 d2 d3
Hexadecimal 1D 38 4C p1 p2 p3 p4 m fn d1 d2 d3
Decimal 29 56 76 p1 p2 p3 p4 m fn d1 d2 d3
Value of m 48
Value of fn 81
Value of d1 67
Value of d2 76
Value of d3 82
Value of m 48
Value of fn 82
This command deletes the logo in the user-defined logo area of RAM defined by
the key codes (kc1 and kc2) of Define Logo in RAM by the key code command.
Note
It indicates indicates the total number of bytes of subsequent data after
pH.
Note
It indicates the total number of bytes of subsequent data after p4.
Value of m 48
Value of fn 83
Value of a 48, 52
Range of d 0 ≤ d ≤ 255
It defines the graphics data (raster format) as the logo specified by the key codes
(kc1, kc2) in the user- defined logo area of RAM. Graphic data format is
completely same as Define Logo in Flash Memory by the key code command (1D
38 4C).
l 48—Monochrome (digital)
l 52—Multi-tone
l (b)=1(when a = 48 )
l (b)=1–4 (when a = 52)
xL, xH Specify the number of dots in the horizontal direction as (xL + xH × 256).
yL, yH Specify the number of dots in the vertical direction as (yL + yH × 256).
l 49—Color 1
l 50—Color 2
l 51—Color 3
l 52—Color 4
l (c)=Color 1 (when a = 48)
l (c)=Color 1–4 (when a = 52 )
Exceptions:
The maximum width of each logo is 576/203 inches, and the maximum height of
each logo is 2304/203 inches. If a logo size is more than this, it is not printed.
This command is sharing the same RAM memory area with Define Bitmap File as
Logo (1B + BMP file) command and Define Bit Image as Logo command.
However, they are incompatible to each other due to different command
parameters data storing structure.
When this command is executed, all images stored in the user defined logo area
of RAM defined by Define Bitmap File as Logo (1B + BMP file) command and
Define Bit Image as Logo (1D 2A n1 n2 d1 ... dn) command are erased.
Value of m 48
Value of fn 85
Value of x 1, 2
Value of y 1, 2
This command prints the user-defined logo defined by the key codes (kc1 and
kc2) of Define Logo in RAM by the key code command. The logo image is enlarged
by x and y in the horizontal and vertical directions.
Exceptions:
This command is not available for logos defined by Define Bitmap File as Logo
(1B + BMP file) command and Define Bit Image as Logo (1D 2A n1 n2 d1
... dn) command.
Hexadecimal 1D 28 4C pL pH m fn a bx by c xL xH yL yH d1 … dk
Decimal 29 40 76 pL pH m fn a bx by c xL xH yL yH d1 … dk
Note
It indicates the total number of bytes of subsequent data after pH.
ASCII GS 8 L p1 p2 p3 p4 m fn a bx by c xL xH yL yH d1 … dk
Hexadecimal 1D 38 4C p1 p2 p3 p4 m fn a bx by c xL xH yL yH d1 … dk
Decimal 29 56 76 p1 p2 p3 p4 m fn a bx by c xL xH yL yH d1 … dk
Note
It indicates the total number of bytes of subsequent data after p4.
Value of m 48
Value of fn 112
Value of a 48, 52
Range of bx 1,2
Range of by 1,2
Range of d 0 ≤ d ≤ 255
l 48—Monochrome (digital)
l 52—Multi-tone
bx, by The graphic image is enlarged by bx and by in the horizontal and vertical directions.
xL, xH Specify the number of dots in the horizontal direction as (xL + xH × 256).
yL, yH Specify the number of dots in the vertical direction as (yL + yH × 256).
l 49—Color 1
l 50—Color 2
l 51—Color 3
l 52—Color 4
l (c)=Color 1 (when a = 48)
l (c) =Color 1–4 (when a = 52)
Note
To print long grayscale image larger than over maximum range of height
size (y=2304) with this command, it is recommended to divide image to
small image block per height size (y=50) to print smoothly. For USB NHPI
interface, it is recommended to set USB speed mode setting to High speed
mode to print smoothly.
Hexadecimal 1C 28 45 pL pH fn m c d1 d2 d3
Decimal 28 40 69 pL pH fn m c d1 d2 d3
Value of fn 60
Value of m 2
Value of c 48, 49
This command cancels set values for top /bottom logo printing by specifying c.
c Function
After canceling set values for top/bottom logo printing, no settings remain for
logo printing.
Note
This function is not supported in 7199 Emulation.
Hexadecimal 1D 2F m
Decimal 29 47 m
This command prints the current logo. As for the detail of logo definition
sequence, please refer to Select the current logo on page 79 command.
ASCII FS p n m
Hexadecimal 1C 70 n m
Decimal 28 112 n m
Value of n Logo ID
Range of n 0–255
As for the detail of logo definition sequence, please refer to Select the current
logo on page 79.
Range 1 ≤ n ≤ 255
1 ≤ (xL + xH x 256) ≤ 1023 (0 ≤ xL ≤ 255, 0 ≤ xH ≤ 3)
1 ≤ (yL + yH x 256) ≤ 288 (0 ≤ yL ≤ 255, yH = 0, 1)
0 ≤ d ≤ 255
k = (xL + xH x 256) x (yL + yH x 256) x 8
xL, xH Specify the number of bytes in the horizontal direction as (xL + xH x 256).
yL, yH Specify the number of bytes in the vertical direction as (yL + yH x 256).
Draw Line
Note
This command is supported in Series ii only.
Draw Rectangle
Note
This command is supported in Series ii only.
ASCII GS v 0 m xL xH yL yH d1…dk
Hexadecimal 1D 76 30 m xL xH yL yH d1…dk
Range 0 ≤ m ≤ 3, 48 ≤ m ≤ 51
1 ≤ (xL + xH x 256) ≤ 65535 (0 ≤ xL ≤ 255, 0 ≤ xH ≤ 255)
1 ≤ (yL + yH x 256) ≤ 2303 (0 ≤ yL ≤ 255, 0 ≤ yH ≤ 8)
1 ≤ (yL + yH x 256) ≤ 2303 (0 ≤ yL ≤ 255, 0 ≤ yH ≤ 8)
0 ≤ d ≤ 255
k = (xL + xH x 256) x (yL + yH x 256)
This command prints a raster bit image using the mode specified by m.
xL, xH Specify the number of bytes in the horizontal direction as (xL + xH x 256).
yL, yH Specify the number of dots in the vertical direction as (yL + yH x 256).
Value of m 48
Value of fn 67
Value of a 48
Value of b 48, 52
Value of c 49
Note
The value of k depends on the BMP file
size.
Default None
This command converts Windows BMP data to the specified tone and defines
Flash Memory graphics data (raster format) that corresponds to the key codes
(kc1, kc2).
48 Monochrome (digital)
52 Multi-tone
49 Color 1
Monochrome BMP (1bpp) and color BMP (24bpp, 8bpp, 4bpp) are supported.
Value of m 48
Value of fn 83
Value of a 48
Value of b 48, 52
Value of c 49
Note
The value of k depends on the BMP file
size.
Default None
This command converts Windows BMP data to the specified tone and defines
download graphics data (raster format) that corresponds to the key codes (kc1,
kc2).
49 Monochrome (digital)
52 Multi-tone
49 Color 1
Monochrome BMP (1bpp) and color BMP (24bpp, 8bpp, 4bpp) are supported.
ASCII GS I n
Hexadecimal 1D 49 n
Decimal 29 73 n
Type ID (n=2)
2 - - - Undefined
3 - - - Undefined
5 - - - Undefined
6 - - - Undefined
66 Manufacturer “NCR”
69 Reserved
111 Reserved
Printer information B Depends on the model Depends on the model 0~80 bytes
ASCII GS r n
Hexadecimal 1D 72 n
Decimal 29 114 n
Values of n l 1, 49—printer
status
l 2, 50—cash
drawer status
Range of n l 1–2
l 49–50
Exceptions:
When n is out of the specified range, the command is ignored.
Paper sensor status (n = 1, 49)
4 Off 00 0 Fixed
5,6 - - - Reserved.
7 Off 00 0 Fixed.
Bits 2 and 3: While the cover is open, this shows the state when the cover was
still closed (this command is not executed).
Drawer kick-out connector status (n = 2, 50)
1–3 - - - Reserved
4 Off 00 0 Fixed
5, 6 - - - Reserved
7 Off 00 0 Fixed
ASCII ESC u n
Hexadecimal 1B 75 n
Decimal 27 117 n
l 1—Drawer1 l 1—Drawer 2
closed closed
l 0—Drawer 1 l 0—Drawer 2
open open
This command transmits the current status of the cash drawers. If a drawer is
not connected, this status indicates that the drawer is closed.
Note
This function is not supported in 7199 Emulation.
ASCII GS ( H pL pH fn m d1 d2 d3 d4
Hexadecimal 1D 28 48 pL pH fn m d1 d2 d3 d4
Decimal 29 40 72 pL pH fn m d1 d2 d3 d4
Value of fn 48
Value of m 48
32 ≤ d2 ≤ 126
32 ≤ d3 ≤ 126
32 ≤ d4 ≤ 126
This command specifies process ID related to the processed data, which can be
either print data or other command.
Header 37 55 1 byte
Identifier 22 34 1 byte
NUL 00 0 1 byte
ASCII ESC v
Hexadecimal 1B 76
Decimal 27 118
This command transmits the status of paper sensors as 1 byte of data, as shown
in the table below.
Note
Bits 2 and 3: While the cover is open, this shows the state when the cover
was still closed. (This command is not executed).
4 Off 00 0 Fixed
5, 6 - - - Reserved
7 Off 00 0 Fixed
Hexadecimal 10 04 n
Decimal 16 4 n
The printer immediately transmits its status in accordance with the parameter n
once it receives this command.
Note
This ESC/POS emulation Real Time command is supported to receive and
respond with same method as other commands in each interface mode
(USB NHPI, PRTR, ION, RS232, Ethernet).
On 08 8 Offline state.
5 - - - Undefined.
6 - - - Undefined.
On 04 4 Cover is opened.
On 08 8 Cutter error.
On 04 4 Paper low.
On 08 8 Paper low.
Bit 5 and 6: While the cover is open, this shows the state when the cover was still
closed.
Hexadecimal 10 05 n
Decimal 165 n
The printer immediately takes the recovery action from an error condition in
accordance with the parameter n once it receives this command. This command
is valid when the printer is in an error condition.
n=1
It clears errors and restarts printing. This command does not affect any
attributes and settings specified by previous commands, and it does not clear
any data in the printer as well. Even if the error is cleared by this command, it will
detect same error again after recovery unless an inducement of the error is
eliminated.
n=2
It clears errors and buffers. This command does not affect any attributes and
settings specified by previous commands. Even if the error is cleared by this
command, it will detect same error again after recovery unless an inducement of
the error is eliminated.
Exception
The command is ignored if n is out of range.
Note
This ESC/POS emulation Real Time command is supported to receive and
respond with same method as other commands in each interface mode
(USB NHPI, PRTR, ION, RS232, Ethernet).
Hexadecimal 10 14 fn m t
Decimal 16 20 fn m t
Value of fn 1
Value of m l 0—Drawer 1
l 1—Drawer 2
Value of t 1≤t≤8
Note
t specifies the pulse on time or off time as [ t x 100 ms]
This command outputs the signal specified by t in real time to the output pulse
specified by m. When the setting of “Enabling/disabling buzzer” is enabled with
the customized value, <fn= 05> GS ( E <a = 119>, the internal buzzer
sounds with pulse signal for cash drawer.
Note
l For the sound pattern and buzzer frequency for the internal buzzer, follow
the customized value setting, <fn= 05> GS ( E <a =123 to 126>.
l This ESC/POS emulation Real Time command is supported to receive and
respond with same method as other commands in each interface mode
(USB NHPI, PRTR, ION, RS232, Ethernet).
Hexadecimal 10 14 fn a b
Decimal 16 20 fn a b
Value of fn 2
Value of a 1
Value of b 8
This command executes the printer power-off sequence and transmits the
power-off notice. It also performs the following:
This command does not shut the power off. The operator must turn the power
off after receiving the power-off notice.
If this command is executed, the printer will not continue to process anything. To
recover the printer to print again, it is necessary to turn the power on again or
execute a hardware reset by pressing the Feed key.
Note
This ESC/POS emulation Real Time command is supported to receive and
respond with same method as other commands in each interface mode
(USB NHPI, PRTR, ION, RS232, Ethernet).
Hexadecimal 10 14 03 a n r t1 t2
Decimal 16 20 3 a n r t1 t2
Value of fn 3
Value of a 0
Value of n 0
Value of r 0
Value of t1 1
Value of t2 0
This command stops sounding the internal buzzer. When the buzzer has stopped
sounding by this function, the printer transmits the buzzer sound end response
as shown below to the host PC.
Note
This ESC/POS emulation Real Time command is supported to receive and
respond with same method as other commands in each interface mode
(USB NHPI, PRTR, ION, RS232, Ethernet).
Hexadecimal 1B 28 41 pL pH fn n c
Decimal 27 40 65 pL pH fn n c
Value of fn 97
Value of n 1≤n≤7
Value of c 0 ≤ c ≤ 255
If the cover is opened during sounding and a sound stop is requested by < fn=
03> DLE DC 4, the sound stops.
Sound patterns
Sound Pattern
Pattern
n Xth sound
Name
Counter for making frequency Sound time
Note
When the setting of “Enabling/disabling internal buzzer” is disabled
(default) with the customized value,<fn= 05> GS ( E <a = 119>,
this command will not generate buzzer sound. Then, printer transmits the
buzzer sound end response.
Hexadecimal 10 14 fn d1...d7
Decimal 16 20 fn d1...d7
Value of fn 8
Value of d1 1
Value of d2 3
Value of d3 20
Value of d4 1
Value of d5 6
Value of d6 2
Value of d7 8
This command clears all data stored in the receive buffer and print buffer and
transmits Clear response. If a recoverable error occurs, recovers from the error.
Transmission data
Note
This ESC/POS emulation Real Time command is supported to receive and
respond with same method as other commands in each interface mode
(USB NHPI, PRTR, ION, RS232, Ethernet).
Hexadecimal 1D 28 44
Decimal 29 40 68
Value of m 20
Value of a 1, 2
Value of b 0, 1, 48, 49
Default of b l 1 (when a = 1)
l 0 (when a = 2)
pL, pH specify (pL + pH x 256) as the number of bytes after pH (m and [a1b1]…
[akbk]).
a b
If the graphics data includes a data string matching DLE DC4 (fn = 1 or
2), it is recommended to use this command in advance to disable the real-time
commands.
ASCII GS a n
Hexadecimal 1D 61 n
Decimal 29 97 n
Range 0 ≤ n ≤ 255
Default n=0
While basic ASB status is active, the selected enabled basic ASB status is
transmitted whenever the status changes.
The basic ASB status to be transmitted is the four bytes that follow.
0, 1 Off 00 0 Fixed
3 Off 00 0 Online
On 08 8 Offline
4 On 10 16 Fixed
On 20 32 Cover is open
6 Off 00 0 Paper is not being fed with the paper feed button
7 Off 00 0 Fixed
0–2 - - - Reserved
4 Off 00 0 Fixed
7 Off 00 0 Fixed
(n)
Off/On Hex Decimal Status
Bit
And
Or
4 Off 00 0 Fixed
5, 6 - - - Reserved
7 Off 00 0 Fixed
0–3 - - - Reserved
4 Off 00 0 Fixed
5, 6 - - - Reserved
7 Off 00 0 Fixed
Note
This function is not supported in 7199 Emulation.
ASCII FS ( e pl ph m n
Hexadecimal 1C 28 65 pl ph m n
Decimal 29 40 101 pl ph m n
Value of m m=0
Range of n 0 ≤ n ≤ 255
Default n=0
Header 39 57 1 byte
Status B 40 64 1 byte
NUL 00 0 1 byte
0 On 01 1 Reserved
1 Off 00 0 Reserved
3 Off 00 0 Reserved
5 Off 00 0 Reserved
6 On 40 64 Fixed
7 Off 00 0 Fixed
ASCII GS ( k pL pH cn fn n
Hexadecimal 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
Value of cn 51
Value of fn 67
Value of n 1≤n≤6
This command sets the width of one module of 2-dimensional GS1 DataBar to n
dots.
ASCII GS ( k pLpHcnfnnLnH
Hexadecimal 1D 28 6B pLpHcnfnnLnH
Value of cn 51
Value of fn 71
This command sets the maximum width (segment number) of GS1 DataBar
Expanded Stacked (2-dimensional GS1 DataBar).
ASCII GS ( k pL pH cn fn m n d1...dk
Hexadecimal 1D 28 6B pL pH cn fn m n d1...dk
Value of cn 51
Value of fn 80
Value of m 48
Range of d 0 ≤ d ≤ 255
This command stores symbol data (d1…dk) in 2-dimensional GS1 DataBar in the
symbol storage.
ASCII GS ( k pL pH cn fn m
Hexadecimal 1D 28 6B pL pH cn fn m
Value of cn 51
Value of fn 81
Value of m 48
Note
The user must secure the quiet zones (the space at the top, bottom, right,
and left of the symbols, which is specified by the 2-dimensional GS1
DataBar standard.)
In Standard Mode, if the symbol size exceeds the print area, feed the paper as
much as the symbol’s height, without printing the symbol.
ASCII GS ( k pL pH cn fn m
Hexadecimal 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
Value of cn 51
Value of fn 82
Value of m 48
This command transmits the size information when printing the symbol data
stored by GS ( k <fn=80>) in the symbol storage area.
Note
Printing is excluded from the processing executed by this function.
The size information excludes the quiet zones (the space at the top, bottom,
right, and left of the symbols, which is specified by the 2-dimensional GS1
DataBar standard.)
Transmission data
Header 37 55 1 byte
Identifier 4F 79 1 byte
Separator 1F 31 1 byte
Separator 1F 31 1 byte
Separator 1F 31 1 byte
NULL 00 0 1 byte
Hexadecimal 1D 66 n
Decimal 29 102 n
Value of n Pitch
l 0, 48—Character Font A on
receipt
l 1, 49—Character Font B on
receipt
Hexadecimal 1D 68 n
Decimal 29 104 n
Range of n 1–255
Default 162
This command specifies the bar code height in dots. n dots are equal to n/8 mm
(n/203 inches).
Exceptions
This command is not available for GS1 data bar and QR code.
Hexadecimal 1D 77 n
Decimal 29 119 n
Value of n 1, 2, 3, 4, 5, 6
Default 6
Formulas
n + 1/8 mm (n + 1/203 inch) for receipt.
Caution
When selecting a bar code width of 1, the readability rate is impacted.
This command selects the bar code type and prints a bar code for the ASCII
characters specified. If the bar code width is more than the printable area, it is
not printed.
Bar code horizontal position can be aligned by the Select Justification(1B 61)
command.
There are two formulas to specify the bar code type by this command. The first
formula uses a NULL as a terminator of the string. The second formula has the
length parameter of the string instead of a terminator so that it can include NULL
in the string. Therefore, a bar code which defines NULL as data, e.g. Code 128,
can be specified by the second formula.
Check Digit of UPC and JAN (EAN) codes is automatically calculated and
processed by the printer if it is not sent from a system.
First Formula
Bar Code
m Data n; Length
Type
(ITF)
Second Formula
Note
Stop code is provided by the printer.
Exceptions
Illegal data cancels this command.
HRI print:
GS1 DataBar Truncated
(01)20012345678909
GS1 DataBar Stacked
In the case of Expanded and Expanded stacked, C/D is used for only HRI
characters printing. Even if the input data including wrong C/D is received, the
printer prints the data without correction.
ASCII GS ( k pL pH cn fn n
Hexadecimal 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
Default of n 0
This command sets the number of columns in the data region for PDF417.
When n ≠ 0, it sets the number of columns in the data region to n code words.
ASCII GS ( k pL pH cn fn n
Hexadecimal 1D 28 6B pL pH cn fn n
Value of cn 48
Value of fn 66
Value of n 0, 3 ≤ n ≤ 90
Default of n 0
ASCII GS ( k pL pH cn fn n
Hexadecimal 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
Value of cn 48
Value of fn 67
Default of n 3
This command sets the width of the module for PDF417 to n dots.
ASCII GS ( k pL pH cn fn n
Hexadecimal 1D 28 6B pL pH cn fn n
Decimal 29 40 107 pL pH cn fn n
Value of cn 48
Value of fn 68
Default of n 3
This command sets the row height for PDF417 to [n x (the width of the module)].
ASCII GS ( k pLpHcnfnmn
Hexadecimal 1D 28 6B pLpHcnfnmn
Value of cn 48
Value of fn 69
Value of m l 48, 49
l 48 ≤ n ≤ 53 (when m = 48)
l 1 ≤ n ≤ 40 (when m = 49)
Default of m 49
Default of n 1
When m = 48, the error correction level is set by the “Level Setting” and the error
correction level set by “Ration Setting” is canceled. The numbers of error
correction code words are shown in the following table.
The error correction levels in the following table are determined by the
calculation [Data code word x n x 0.1 = (A)].
Note
Fractions of 0.5 and over are rounded up, and others are truncated.
ASCII GS ( k pLpHcnfnm
Hexadecimal 1D 28 6B pLpHcnfnm
Value of cn 48
Value of fn 70
Value of m 0, 1
Default of m 0
m Function
ASCII GS ( k pLpH cn fn m d1 … dk
Hexadecimal 1D 28 6B pLpH cn fn m d1 … dk
Value of cn 48
Value of fn 80
Value of m 48
This command stores the PDF417 symbol data (d1…dk) in the symbol storage
area.
ASCII GS ( k pL pH cn fn m
Hexadecimal 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
Value of cn 48
Value of fn 81
Value of m 48
This command encodes and prints the PDF417 symbol data in the symbol
storage area with GS ( k <fn= 080>.
User must secure the quiet zone (left, right, upward, and download space areas
defined by the PDF417 symbol specifications) for PDF417 printing.
In Standard Mode, symbols higher than 831 dots cannot be printed with this
printer.
ASCII GS ( k pL pH cn fn m
Hexadecimal 1D 28 6B
Value of cn 48
Value of fn 82
Value of m 48
It transmits the size information for the encoded PDF417 symbol data in the
symbol storage area with GS ( k < fn = 080>.
This function does not print. The size information does not include the quiet zone
(left, right, upward, and downward space areas defined by the PDF417 symbol
specifications).
Transmission data
Header 37 55 1 byte
Identifier 2F 47 1 byte
Separator 1F 31 1 byte
Separator 1F 31 1 byte
Separator 1F 31 1 byte
NULL 00 0 1 byte
For details, refer to QR code: Store the data in the symbol storage area on
page 180.
For details, refer to Maxicode : Print the symbol data in the symbol storage area
on page 186.
For details, refer to Maxicode : Transmit the size information of the symbol data
in the symbol storage area on page 188.
For details, refer to Composite Symbology: Set the width of the module on
page 190.
For details, refer to Composite Symbology: Select HRI character font on page 192.
For details, refer to Composite Symbology: Store the data in the symbol storage
area on page 193.
For details, refer to Composite Symbology: Print the data in the symbol storage
area on page 196.
For details, refer to Composite Symbology: Transmit the size information of the
symbol data in the symbol storage area on page 197.
Aztec Code: Set the number of mode types and data layers
Note
This command is supported in Series ii only.
For details, refer to Aztec Code: Set the number of mode types and data layers on
page 200.
For details, refer to Aztec Code: Set the size of the module on page 202.
For details, refer to Aztec Code: Set the error correction level on page 203.
For details, refer to Aztec Code: Store the data in the symbol storage area on
page 204.
Aztec Code: Print the symbol data in the symbol storage area
Note
This command is supported in Series ii only.
For details, refer to Aztec Code: Print the symbol data in the symbol storage area
on page 205.
For details, refer to QR code: Transmit the size Information of the symbol data in
the symbol storage area on page 182.
For details, refer to DataMatrix: Set the symbol type, number of columns,
number of rows on page 209.
For details, refer to DataMatrix: Set the size of the module on page 211.
For details, refer to DataMatrix: Print the symbol data in the symbol storage area
on page 213.
For details, refer to DataMatrix: Transmit the size information of the symbol data
in the symbol storage area on page 214.
Value of n 0–255
Default l n1 – n4 =
0
l n5 = 64
l n6 = 2
l n7 = 64
l n8 = 2
This command sets the logical origin and the size of the printing area in Page
Mode.
Formulas
x0, y0: The logical origin specified by the calculation of parameters n1, n2, n3 and
n4 based on the absolute origin which is located at the upper left side of the
printing area.
dx, dy: The size of the printing area dx and dy is specified by the calculation of
parameters n5, n6, n7, and n8.
x0 = n1 + n2 x 256
y0 = n3 + n4 x 256
dx = n5 + n6 x 256
dy = n7 + n8 x 256
Exception
This command is valid in Page Mode.
Execute macro
For details, refer to Execute macro on page 226.
ASCII FS g 1 m a1 a2 a3 a4 nL nH d1... dk
Hexadecimal 1C 67 31 m a1 a2 a3 a4 nL nH d1... dk
Value of m 0
This command stores the data (d1… dk) in the area from (a1 + a2 x256 + a3 x
65536 + a4 x 16777216) to (nL + nH x 256) bytes in the Flash Memory.
ASCII FS g 2 m a1a2a3a4 nL nH
Hexadecimal 1C 67 32 m a1a2a3a4 nL nH
Range l m=0
l 0 ≤ (a1 + a2 x 256 + a3 x 65536 + a4 x 16777216)
≤ 1023
l 0 ≤ a1 ≤ 255, 0 ≤ a2 ≤ 3, a3 = 0, a4 = 0)
l 1 ≤ (nL + nH x 256) ≤ 80 (1 ≤ nL ≤ 80, nH = 0)
This command transmits the data in the area from (a1 + a2 x 256 + a3 x 65536 +
a4 x 16777216) to (nL + nH x 256) bytes in the Flash Memory.
Transmission data
ASCII GS ( E pL pH fn d1 d2
Hexadecimal 1D 28 45 pL pH fn d1 d2
Decimal 29 40 69 pL pH fn d1 d2
Value of fn 1
Value of d1 73
Value of d2 78
This command enters the user setting mode and transmits a mode change
notice as below.
Data Group of Change Use Setting Mode Notice Hex Decimal Data
ASCII GS ( E pL pH fn d1 d2 d3
Hexadecimal 1D 28 45 pL pH fn d1 d2 d3
Decimal 29 40 69 pL pH fn d1 d2 d3
Value of fn 2
Value of d1 79
Value of d2 85
Value of d3 84
This command ends the user setting mode and performs a software reset.
It resets all setting values in RAM (the print area, the character styles, and others)
that were in effect at power on. (The data in the Flash memory are not reset).
Hexadecimal 1D 28 45
Decimal 29 40 69
Value of fn 5
Flash memory is used as the storage area for setting values. (Setting values are
maintained even after power off).
This command is processed in user setting mode. (“Change into the user setting
mode” command need to be sent before this command, and “End the user
setting mode session” need to be sent after this command).
Note
Other configuration can be changed by US DC1 (1Fh 11h) command.
Please refer to 7199 POS Printer FW specification for detail.
Value of a
6 Print speed
10 Reserved
Note
This is supported in Series ii only.
97 Reserved
100 Paper auto cutting after closing the roll paper cover
104 Reduction ratio of line spacing where extra line feeds are included
Note
The functions are enabled for the internal buzzer.
Note
The functions are enabled for the internal buzzer.
Note
The functions are enabled for the internal buzzer.
Note
The functions are enabled for the internal buzzer.
Note
The functions are enabled for the internal buzzer.
2 58 mm
6 80 mm (default)
Note
This is supported in Series ii only.
Note
This is supported in Series ii only.
Note
This is supported in Series ii only.
Note
This is supported in Series ii only.
Note
Print speeds 14 to 17 are supported in Series ii only.
0–40 4.0 mm
41–45 4.5 mm
46–50 5.0 mm
51–55 5.5 mm
56–60 6.0 mm
61–65 6.5 mm
66–70 7.0 mm
71–75 7.5 mm
76–-80 8.0 mm
81–85 8.5 mm
86–90 9.0 mm
91–95 9.5 mm
96–100 10.0 mm
101–105 10.5 mm
106–110 11.0 mm
111–115 11.5 mm
1 TermPwr-High (default)
Paper Auto Cutting after Closing the Roll Paper Cover (a = 100)
(nL + nH x 256) Paper Auto Cutting after Closing the Roll Paper Cover
0 Disabled (default)
1 Enabled
0 Disabled (default)
1 Enabled
0 Disabled (default)
1 Enabled
0 None (default)
1 25% reduction
2 50% reduction
3 75% reduction
Reduction Ration of Line Spacing Where Extra Line Feeds are Included (a =
104)
0 None (default)
1 25% reduction
2 50% reduction
3 75% reduction
0 None (default)
1 25% reduction
2 50% reduction
3 75% reduction
1, 49 Font B
0, 48 Font A
0 Disabled (default)
1 Enabled
0 No sound
1 1 time
1 Pattern A (default)
2 Pattern B
3 Pattern C
4 Pattern D
5 Pattern E
0 No sound (default)
1 1 time
ASCII GS ( E pL pH fn a
Hexadecimal 1D 28 45 pL pH fn a
Decimal 29 40 69 pL pH fn a
Value of fn 6
Range of a 3, 5, 6, 8 ≤ a ≤ 10, 13, 97 ≤ a ≤98, 100 ≤ a ≤105, 111 ≤ a ≤ 112, 117, 119 ≤ a ≤ 126
This command transmits the customized value specified by a. For the types of
customized values, refer to Value of a table in Set the Customized Setting Values
command.
Transmission data
(3) Config type (value of a) (ASCII format) 30H–39H 48–57 1 byte–3 bytes
Example
When “Roll paper width” setting is 80 mm, command 0x1D 0x28 0x45
0x02 0x00 0x06 0x03 response is 0x37 0x27 0x33 0x1F 0x36
0x00.
ASCII GS ( E pL pH fn a d1 … dk
Hexadecimal 1D 28 45 pL pH fn a d1 … dk
Decimal 29 40 69 pL pH fn a d1 … dk
Value of fn 11
Value of a 1
This command sets the configuration item for the serial interface specified by a
to the values specified by d.
Note
Setting values are maintained even after power off.
This command is processed in user setting mode. (“Change into the user setting
mode” command needs to be sent before this command, and “End the user
setting mode session” needs to be sent after this command).
1 Transmission speed
Example
To set 9600, d1 = 0 x 39, d2 = 0 x 36, d3 = 0 x 30, d4 = 0 x30.
ASCII GS ( E pL pH fn a
Hexadecimal 1D 28 45 pL pH fn a
Decimal 29 40 69 pL pH fn a
Value of fn 12
Value of a AS
This command transmits the configuration item for the serial interface specified
by a.
a Configuration Item
1 Transmission speed
Transmission data
Example
When serial interface configuration setting is 19200, command response
is 0x37 0x33 0x31 0x1F 0x31 0x39 0x32 0x30 0x30 0x00.
ASCII GS ( E pL pH fn a d1 … dk
Hexadecimal 1D 28 45 pL pH fn a d1 … dk
Decimal 29 40 69 pL pH fn a d1 … dk
48 ≤ d ≤ 50
Value of fn 15
Value of a 1
Note
Setting values are maintained even after power off.
This command is processed in user setting mode. (“Change into the user setting
mode” command needs to be sent before this command, and “End the user
setting mode session” command needs to be sent after this command.)
Note
Supported USB mode and USB protocol are same in both NCR7199 (7199)
mode and ESC/POS emulation mode.
USB VID/ PID or other USB Descriptor information are same for each USB mode
(NHPI, PRTR, ION) in both NCR7199 (7199)mode and ESC/POS emulation mode.
a Configuration Item
1 Class
d1 Class
49 Printer class
50 NHPI
The configuration item set by this function is enabled by executing <fn= 2> GS
( E or restarting the printer. Note that the host PC must be set to enable the
printer to communicate with the host PC.
ASCII GS ( E pL pH fn a
Hexadecimal 1D 28 45 pL pH fn a
Decimal 29 40 69 pL pH fn a
Value of fn 16
Value of a 1
This command transmits the set values for USB communication specified by a.
a Configuration Item
1 Class
Transmission data
Example
When USB communication setting is NHPI, command response is 0x37
0x52 0x31 0x1F 0x31 0x00.
Hexadecimal 1D 28 4B pL pH fn m
Decimal 29 40 75 pL pH fn m
0 ≤ m ≤ 13, 48 ≤ m ≤57
Value of fn 50
Note
Print speed is dynamically changed depending on print density up to the
maximum speed.
m Print Speed
Note
Print speed levels 14 to 17 are supported in Series ii units only.
Note
This function is not supported in 7199 Emulation.
ASCII GS T n
Hexadecimal 1D 54 n
Decimal 29 86 n
Range of n 0,1,48,49
In Standard Mode, this command moves the print position to the beginning of
the print line after performing the operation specified by n, which specifies the
data processing in the print buffer when this command is executed.
n Function
0,48 Erases the data in the print buffer then moves the print position
1,49 Prints the data in the print buffer then moves the print position
ASCII ESC ( Y pL pH m n
Hexadecimal 1B 28 59 pL pH m n
Decimal 27 40 89 pL pH m n
0≤m≤1
0≤n≤1
Select batch print Enable/Disable
m Function
n Function
The printer starts to accumulate print data when m =1 and starts to print under
any of the following conditions:
Note
l A Status command is executed even when batch print is enabled.
l When batch print is enabled, GS ! command set height
magnification of 3x or larger is ignored.
l When batch print is disabled and height magnification is set to 3x or
larger by GS ! command, subsequence set m =1 forces height
magnification to 2x.
l ESC { n Select or Cancel Upside & Down Printing Mode is ignored
when batch print is enabled.
l Accumulated data is cleared by the Clear Buffer command.
ASCII FS &
Hexadecimal 1C 26
Decimal 28 38
ASCII FS .
Hexadecimal 1C 2E
Decimal 28 46
ASCII FS C n
Hexadecimal 1C 43 n
Decimal 28 67 n
Range of n 0, 1, 48, 49
Default of n 0
This command selects a Kanji character code system for the Japanese model.
0, 48 JIS code
ASCII FS S n1n2
Hexadecimal 1C 53 n1n2
Decimal 28 83 n1n2
Default of n2
Standard 1byte 1 1 1 0
Standard 2byte 2 2 2 0
Compressed 1byte 0 0
Compressed 2byte 0 0
The underline is valid on the space set by this command. ESC SP command is
not valid for Asian character code pages. Therefore, this command is used to set
the character right side spacing for characters in Asian code page.
Note
This function is not supported in 7199 Emulation.
ASCII FS ( C pL pH fn m
Hexadecimal 1C 28 43 pL pH fn m
Decimal 28 40 67 pL pH fn m
Value of fn 48
Value of m 1,2,49,50
m Function
2, 50 UTF-8
ASCII GS ( A pL pH n m
Hexadecimal 1D 28 41 pL pH n m
Decimal 29 40 65 pL pH n m
This command executes a specified test point. pL, pH specifies (pL + pH x 256) as
the number of bytes after pH (n and m).
n Paper Source
0, 48 Roll paper
1, 49
2, 50
m Test pattern
1, 49 Reserved
Resets all setting values in RAM (the print area, the character styles, and others)
that were in effect at power on. (The data in the Flash memory is not reset.)
ASCII GS g 0 m nL nH
Hexadecimal 1D 67 30 m nL nH
Decimal 29 103 48 m nL nH
Value of m 0
Range (nL + nH x 256) = 20, 21, 22, 50, 70 (nL = 20, 21, 22, 50, 70, nH = 0)
(nL + nH x 256)
Maintenance Counter [Units]
Hex Decimal
ASCII GS g 2 m nL nH
Hexadecimal 1D 67 32 m nL nH
Decimal 29 103 50 m nL nH
Value of m 0
Range l (nL + nH x 256) = 20, 21, 22, 50, 70, 148, 149, 150, 178,198
l (nL = 20, 21, 22, 50, 70, 148, 149, 150, 178, 198, nH = 0)
This command transmits the value of the maintenance counter specified by (nL +
nH x 256)
(nL + nH x 256)
Maintenance Counter [Units] Type of Counter
Hex Decimal
Example
When autocut operations is 123 times, 0x1D 0x67 0x00 0x32 0x00
command response is 0x5F 0x31 0x32 0x33 0x00.
Diagnostics commands
Command Function
Command Function
Therefore, the output with those commands is different from 180dpi printer.
Command Function
GS 8L 1DH 38H 4CH Define logo in flash memory by the key code
GS (L 1DH 38H 4CH Store the graphics data in the print buffer
Font cell size height is different between Font A and Font B in SBCS2, but it is the
same in SBCS3.
Note
48 Character Mode is not available when SBCS2, SBCS3 font is selected.
Note
This feature is not related to the paper low detection condition setting.
Regardless of the paper low detection setting (enabled or disabled), Sync
Mode 1 switching will happen.
Sync. Mode Batch command, which is coming When the paper is at 10 ft, the printer
Disable after knife cut, are sent after the automatically switches to Sync. Mode 1 to
physical knife cut. immediately detect paper end.
Series i
Paper Low
Receipt Firmware count (Sensor Paper low warning update
Detection
Direction level – Diag setting) in Power Off/On state
(Remaining ft)
30 ft 10 ft Not immediate
20 ft 20 ft Not immediate
30 ft 0 Not immediate
20 ft 10 ft Not immediate
Paper Low Detection Firmware count (Sensor level – Paper low warning update in
(Remaining ft) Diag setting) Power Off/On state
40 ft 0 Immediate
30 ft 10 ft Not immediate
20 ft 20 ft Not immediate
Note
Receipt direction setting is not applicable for Series ii. Both receipt top exit
and front exit are using common criteria as above table.
Note
Take note of the following:
1 The user load a full paper roll in receipt The user load a full paper roll in receipt
station and starts printing. station and starts printing.
Note Note
The paper roll should cover the paper The paper roll should cover the paper
low sensor. low sensor.
2 When the firmware detects paper low at When the firmware detects paper low at
40 ft, the firmware saves this in the Flash 40 ft, the firmware saves this in the Flash
ROM. ROM and the printer status is set as paper
low.
3 The printer prints the receipt, and the The printer prints the receipt, and the
firmware start to count the paper feed firmware start to count the paper feed
length. length.
4 When the paper feed reaches the next 5 ft When the paper feed reaches the next 5 ft
(that is, remaining 35 ft, 30 ft, 25 ft, 20 ft, (that is, remaining 35 ft, 30 ft, 25 ft, 20 ft,
15 ft), the firmware saves this in the Flash 15 ft), the firmware saves this in the Flash
ROM. ROM.
Note Note
If the printer is turned off and then on, If the printer is turned off and then on,
the firmware does not retrieve the latest the firmware does not retrieve the latest
stored value. For example, if the printer stored value. For example, if the printer
is turned off after printing 2 ft of paper, is turned off after printing 2 ft of paper,
the 2-ft count is lost after the printer is the 2-ft count is lost after the printer is
turned back on again. turned back on again.
l Steps 3 and 4 continue until the l Steps 3 and 4 continue until the
configured paper low detection remaining 10 ft is reached.
setting is reached. l At 10 ft remaining, the printer
l At 15 ft remaining, the printer status switches to Receipt Sync Mode 1 for
is set as paper low. effective paper end detection.
l At 10 ft remaining, the printer
switches to Receipt Sync Mode 1 for
effective paper end detection.
Note
Receipt Sync Mode 1 is effective both in Paper low detection enable and
disable. To check functionality related to paper low, use the larger paper
roll that covers the paper roll sensor.
Printers start to accumulate print data when Buffered Printing Setting is enabled
and start to print under any of the following conditions:
ESC { n Select or Cancel Upside & Down Printing Mode is ignored when
Buffered Printing is enabled.
For USB PRTR and NHPI interface, Real-time commands are immediately
processed regardless of the condition of the receiving buffer and the printer
status as soon as it is received.
PRTR
PRTR supports two types of data transfer endpoints, which are control transfer
and BULK transfer. The Real-time command is sent through control transfer,
while print data are sent through BULK transfer. Since the Real-time command is
sent through control transfer, which is different endpoint from print data, the
printer can process command and provide response immediately.
NHPI
NHPI is a type of Human Interrupt Device (HID) interface. It has similar
characteristics with PRTR, which uses Real-time command and print data for
different transfer endpoints. The Real-time command is sent through HID feature
set transfer, while print data are sent through Interrupt OUT transfer.
If the printer cover is opened and the feed key is continuously pressed for 5 or
15 seconds, it triggers the printer to process USB Type setting change. This
process repeats if the feed key is released and then pressed again while the
printer cover is still open. In this case, closing the printer cover triggers the
printer application to print the diagnostic form and reboot the printer to apply
the new USB Type setting.
NHPI
If the current USB Type setting is PRTR or ION(Epic), opening the printer cover
and continuously pressing the feed key for 5 seconds change the USB Type
setting to NHPI mode. The printer emits one beep to indicate that the setting is
changed.
ION(Epic)
If the current USB Type setting is NHPI, opening the printer cover and
continuously pressing the feed key for 5 seconds change the USB Type setting to
ION(Epic) mode. The printer emits two beeps to indicate that the setting is
changed.