Sbi Clerical Rect Advertisement 2019 PDF
Sbi Clerical Rect Advertisement 2019 PDF
Sbi Clerical Rect Advertisement 2019 PDF
ESC/POS® Mode
Command Specifications
Revision 2.40
This printer does not have a switch to go between online and offline. The following conditions are required to go
offline.
• The time after initializing the mechanism when turning on the power or causing a reset by the
interface until communication is possible
• When executing a self-test • When the cover is open
• When printing has stopped because there is no paper
(When the roll paper end sensor detects that paper is out, or the roll paper near end sensor de-
tects that paper is out using ESCc4, or paper is out when the print stop is enabled.)
• When waiting to switch at macro execution
• While there is a temporary error in the power voltage
• When there is an error
7 SG - Signal ground
20 DTR Output (1) When DTR/DSR control is selected:
Indicates whether the printer is BUSY.
The SPACE status indicates the printer is READY; the MARK status indicates that the printer
is BUSY.
The DIP switch or the memory switch settings change the conditions for the printer to be BUSY.
(*1)
The following conditions are required to enter a BUSY (MARK) state.
When XON/XOFF control is selected, XON and XOFF are transmitted with the following timings.
The transmission timing varies according to the DIP switch settings or the memory switch settings.
XON code: <11> H
XOFF code: <13> H
For (3) below, XON is not transmitted when the reception buffer is full.
For (6) below, XOFF is not transmitted when the reception buffer is full.
<XON/XOFF Transmission Timing>
Busy condition (*1)
Printer Status
OFF ON
(1) When online for the first time after turning the power
Transmission Transmission
on or a reset using the interface
(2) When the buffer full status was cancelled for recep-
XON Transmission Transmission
tion buffer
Transmission
(3) When shifting from offline to online - Transmission
(4) When recovered from a recoverable error using a
- Transmission
command
XOFF (5) When the reception buffer entered buffer full status Transmission Transmission
Transmission
(6) When shifting from online to offline - Transmission
• If the other connected party is DCE, be careful so that there is no status without a handshake (where data is
flows) (DTE: Data Terminal Equipment; DCE: Data Circuit Terminating Equipment)
• When transmitting data to the printer, turn on the power to the printer and initialize first.
Host Printer
TXD RXD
DSR DTR
CTS RTS
RXD TXD
DTR DSR
F.G F.G
S.G S.G
• Printing will stop but the printer will not enter a BUSY state when printing stops because of an error, the cover
is open, paper is out when printing stops are enabled, or when paper feeds are executed using the paper feed
switch.
• When using DLE EOT, DLE ENQ and DLE DC4, the reception buffer does not enter a buffer full status.
• Precautions on the host which cannot receive data transmissions when the printer is BUSY DLEEOT, DLEENQ
and DLEDC4 cannot be used when an error occurs when the printer has entered a BUSY state because the
reception buffer is full.
• Precautions on the host which can receive data transmissions when the printer is BUSY DLEEOT, DLEENQ
and DLEDC4 are handled as bit image data when using the DLEEOT, DLEENQ and DLEDC4 partway through
the bit image data when the reception buffer is full when transmitting bit image data. Also, it is possible to lose
data when received while the reception buffer is full.
The printer can be reset using interface pins 6 and 25 by changing the DIP switch or the memory switch setting.
But when a signal that does not satisfy the requirements above is input, printer operation is not guaranteed.
TRS
SPACE
MARK
SPACE (H)
TRS
MARK (L)
1. General Description
The Compatibility Mode is a mode that uses the Centronix interface as standard, which is widely in use.
2. Specifications
Data transmission method: 8 Bit Parallel
Synch method: According to externally supplied nStrobe signal
Handshake: According nAck signals and Busy signals
Signal level: All signals are TTL compatible
Status data transfer from the printer to the host is performed in either Nibble or Byte Mode.
General Description
Data transmissions from asynch printers controlled by the host are regulated. Nibble Mode data transmissions
use an existing control line to transmit data 4 bits (Nibble) at a time. The Byte Mode uses bidirectional communi-
cations to transfer 8 bits of data lines. In either case, communications are in half-duplex because it is not possible
to execute both simultaneously with the Compatibility Mode.
<Note>
• Initial ‘n’ of signal name indicates an ‘L’ active signal
Bidirectional communications are not possible on hosts with even oneof theabovesignal lines.
• Always use twisted pair lines for each signal line when using the interface and connect the return side to the
signal ground level.
• All interface conditions use TTL levels as standard and must satisfy the following characteristics. Each signal
rise and fall times must be a maximum of 0.5 μs.
• Data transmissions for which nAck signals or Busy signals are ignored are prohibited. When ignored, data can
be lost.
• Use the shortest distance necessary for the interface cable.
tHold-1
nStrobe
Busy
Peripheral Busy
tReady tBusy
nACK
tNext
Standards
Minimum [ns] Maximum [ns]
Data Hold Time (host) tHold-1 - 500
Data Hold Time (printer) tHold-2 - -
Data Setup Time tSetup - 500
STROBE Pulse Width tSTB - 500
READY Cycle Idle Time tReady - -
BUSY Output Delay Time tBUSY 0 500
Data Processing Time tReply 0 ∞
ACKNLG Pulse Width tACK 1usec/9usec (*1) -
BUSY Cancel Time tnBUSY 0 ∞
ACK Cycle Idle Time tNext - 0
(*1) Memory Switch Setting: ACK Pulse Width
ON = 9usec
OFF = 1usec (Default)
When applying a printer reset using the interface (#31 pin nInit signal) in the Compatibility Mode, the following
characteristics must be met. However, the printer reset is ignored when the signal nSelectln (pin #36, 1284-Active
HIGH) is active in reverse mode.
Reset Minimum Pulse Width TRS 50μsec (min)
Rise Time tf 500nsec (max)
Fall Time tr 500nsec (max)
nSelectIn
(1284-Active)
min. 0 max. 1
nInit
tf TRS tf
1-2-6 Receiving Status from the Printer Using a Bidirectional Parallel Interface
It is possible to transmit the status from the printer using bidirectional communications functions according to the
Nibble and Byte Mode which conform to IEEE1284 standards, when using a bidirectional parallel interface. When
doing so, compared to RS-232 serial interface specifications, you must pay attention to the following points be-
cause the printer cannot insert real-time interrupts to the host.
• The transmission buffer size in the printer is 128 bytes. (Excluding ASB status) Because statuses that exceed
this are discarded, create a receive status (Reverse Mode) on the host side so that status are not lost.
• When using ASB, it is preferred that the host side be in a receive waiting status (a reverse idle status). If that is
not possible, put the host side into a Reverse Mode to constantly monitor the presence of data.
• When using ASB, ASB status is transmitted with priority over other statuses in the Reverse Mode. Also, ASB
status that are accumulated without being sent from the last sent ASB status to the latest ASB status ate bundled
into one ASB status and transmitted, and the latest ASB status is then transmitted after that.
The following data is accumulated when a near end detection occurs, the cover is open and cover close is per-
formed.
First Status Second Status Third Status Fourth Status Near End
1
0000 1000 0000 0000 0000 0011 0000 0000 Detection
Cover
2
0010 1000 0000 0000 0000 0011 0000 0000 Open
Cover
3
0000 1000 0000 0000 0000 0011 0000 0000 Closed
Then, when the ASB status is received, the combination of actually transferred ASB is a total of 8 bytes: ASB (1 +
2 + 3) + the latest ASB (3).
First Status Second Status Third Status Fourth Status
ASB (1 + 2 + 3)
0010 1000 0000 0000 0000 0011 0000 0000
+
First Status Second Status Third Status Fourth Status
Latest ASB (3)
0001 1000 0000 0000 0000 0011 0000 0000
Specifications: See the section “Bluetooth Interface model” in the separate “Product Specifications TSP650II”.
ESC FF
ESC L
Standard Mode Page Mode Print
ESC S
FF
Print
• The values set using each command are common settings for both the standard mode and the page mode, but
the settings of the following commands are set independently for each. → ESCSP,ESC2,ESC3,FSS
• In the standard mode, the maximum number of dots are set for the X direction, but in the page mode, the Y
direction (the X direction when not rotated) when rotated in either the 90 degree direction or the 270 degree di
rection becomes larger. For details see the print region setting command (ESCW) for the page mode.
The following are performed when expanding print data to the print region.
(1) The print region is set by ESCW, ESCW sets the left side as the print region origin (X0, y0) at the point all
operations for previous printings and paper feeds are completed received by the printer. The square shape
formed by the two sides of the dx pitch in the X direction (horizontal direction) including the origin and the dy
pitch in the Y direction (vertical direction) from the origin (x0, y0) is the print region (When ESCW is not set,
the initial value is the print region).
(2) If the print region is set by ESCW and print direction is set by ESCT, the point A in the figure 2.3.1 is the ini
tial value and print data expands to the print region when the printer receives the print data. In the case of
characters, this starting point is the base line. Download bit images and bar codes are expanded for the top
of the base line using the lower left point of the image data as the base line (Fig. 2.3.2 Point B) However, the
HRI characters that come below the bar codes are printed below the base line. When trying to expand char
acters that are taller than standard characters (double-tall characters) or download bit images, the portion that
is beyond the height of standard characters is not printed.
(3) If print data is outside of the print region (including the space right of the character) before receiving the com
mands (LF, ESCJ, etc.) accompanying a line feed, a line feed is automatically performed in the print region
and the expanding position of the print data is moved one line and the next expansion position becomes the
head of the line. The line feed amount is the line feed amount set by ESC2 and ESC3.
(4) The initial value of the line feed amount when using basic calculated pitch correction of 180 DPI is 4.23 mm
(1/6 inch). This is equivalent to 33 dots. Therefore, when using expanded characters that are beyond the
double-tall size in the vertical direction in the next line of print data, download bit images that are larger than
two lines or bar codes that are taller than characters, the line amount will be insufficient and the upper dots of
the characters in the next print data will overlap, so the amount of line feed must be increased. The line feed
amount of the first line in the example below must be more than 28 dots (Fig. 3.12.4).
<Ex.> When printing a download bit image for 6 bytes in the vertical direction:
(Vertical dot count (8 x 6) – Starting line feed amount (20)) x Basic calculated pitch conversion in the vertical
direction (360/180) = 56
Therefore, the line feed must be 56 pitches (28 dots) in excess.
ESCW, xL, xH, yL, yH, dxL, dxH, dyL, dyH
ESCTn
ESC354 ← Additional line feed amount
LF
GS/1
ESC2 ← Returns to a line feed amount of 4.23 mm (1/6 inch)
Note: The basic calculated pitch is 1/180 horizontally and 1/360 vertically with default, so a differences is
generated with the position specification according to the print direction. By setting the basic calculated
pitch in the vertical direction to 1/180 using a command (GSP), a difference will not be generated by print
direction.
STAR The page print region setting, print data expansion position, line feed, position movement amount in the page
mode are affected by the basic calculated pitch correction.
For details, see the command details for GSP (basic calculated pitch specification) and ESCW (print region
setting command).
A
(x0, y 0) Expansion
20 dot
Base Line
4 dot
Point A
Printing
(dx, dy)
Bar Code
Height h dot
(y x8) dots
40dot
A
Bar code
(GS k m)
Double 24 dot Download
20 dot high Bit image
Expanded
(GS * x y)
Base Line
A
Bit image
4dot 8dot
Expansion Direction
A
(x0, y0)
20 dot
Base Line
AAA
(GS * x y)
20 dot
Base Line
4 dot
Print Region
(dx, dy)
Standard Commands
Command
Class Page GS P
Commands Name Std Mode
Mode Effect
Exe. Set
HT Horizontal tab ○ ○ ○
LF Line feed ○ ○ ○
FF Print and recover to page mode ○ Ignored ○
CR Print and carriage return ○ ○ ○
CAN Cancel print data in page mode ○ Ignored ○
DLE EOT Real-time status transmission ○ ○ ○
DLE ENQ Real-time request to printer ○ ○ ○
DLE DC4 Real-time output of specified pulse ○ ○ ○
ESC FF Print data in page mode ○ Ignored ○
ESC SP Set character right space amount ○ ○ ○ ○
ESC ! Batch specify print mode ○ ○ ○
ESC $ Specify absolute position ○ ○ ○ ○
ESC % Specify/cancel download character set ○ ○ ○
ESC & Define download characters ○ ○ ○
ESC * Specify bit image mode ○ ○ ○
ESC - Specify/cancels underline mode ○ ○ ○
ESC 2 Set default line spacing ○ ○ ○
ESC 3 Set line feed amount ○ ○ ○ ○
ESC = Select peripheral device ○ ○ ○
ESC ? Delete download characters ○ ○ ○
ESC @ Initialize printer ○ ○ ○ ○
ESC D Set horizontal tab position ○ ○ ○
ESC E Specify/cancel emphasized printing ○ ○ ○
ESC G Specify/cancel double printing ○ ○ ○
ESC J Print and Paper Feed ○ ○ ○ ○
ESC L Select page mode ○ (L) Ignored
ESC M Select character font ○ ○
ESC R Select international characters ○ ○ ○
ESC S Select standard mode ○ Ignored ○
• Reception buffer
The buffer for storing data (reception data) received from the host, as it is called the reception buffer.
Reception data is temporarily stored in the reception buffer, then processed sequentially.
• Print buffer
The buffer for storing image data for printing is called the print buffer.
• Print buffer full
The state in which the buffer has no more space available is called print buffer full. When the print buffer is full in
standard mode, data in the print buffer is printed and a line feed is performed when new print data is processed.
This is the same as a LF. When the print buffer is full in the page mode, the printer move the print position to the
head of the next line then starts with the new print data.
• Top of line
The top of line is a state that satisfies the following conditions.
1. There is currently no print data in the print buffer.
2. There is no skipped portion using HT
3. A print position has not been specified using ESC$, and ESC \
• Printable region
This is the maximum printable area with the printer’s specifications.
• Print region
This is the printing area specified by a command. (Print region ≤ printable region)
• ANK character base line
24 Dots
Ay㩷 20 Dots㩷
㪓㪄㪄㩷 㪙㪸㫊㪼㩷㪣㫀㫅㪼㩷
enhanced printing)
< Base Line㩷
enhanced printing)
----㩷 Base Line㩷
<
24 Dots 20 Dots
Base Line
24Dots
Base Line
• ASB Function
Sends the automatic status to the host each time the printer’s status changes.
1. Undefined codes
Codes from <00>H to <1F>H are targeted. When codes not defined as commands in this region are re
ceived, they are discarded.
(Ex.) If processing the data string of <30>H<31>H<03>H<32>H<0A>H<33>H, the printer will discard
<03>H as an undefined code.
2. Undefined commands
When data continuing the codes of ESC, FS, GS, DLE are codes not defined as commands, ESC,
FS,GS, DLE and subsequent codes are discarded.
(Ex.) If processing the data string of <30>H<1B>H<22>H<31>H<32>H, the printer will read and dis
card <1B>H<22>H as an undefined command.
4. Real-time Commands
Real-time commands are stored in the reception buffer.
HT
Notes: • Operators must use caution for other commands when the data string of <10>H<04>H<n>
(Spec. A: 1
≤ n ≤ 4, Spec. B: 1
≤ n ≤ 5) is received because it operates in the same manner
as this command. Example: In ESC * m nL nH [d1...dk], d1=<10>H, d2=<04>H, d3=<01>H
• Do not use this command to interrupt code strings of other commands that consist of 2 or
more codes.
Example: If you attempt to transmit DLE EOT 3 up to transmitting ESC3 by trying to transmit
ESC 3 n from the host, it is processed as ESC 3 <10>H. Operators must use caution.
Reference DLE ENQ, GS r, Appendix-2
Details • Quadruple-size characters are printed by specifying both double-tall (bit 4 = 1) and double-
wide (bit 5 = 1) modes.
• An underline is applied to the entire character width, including the ESC SP (character right
space amount). However, underlines are not applied to portions that have been skipped
using HT (horizontal tab) or ESC V (character 90 degree rotation).
• The thickness of the underline is set by ESC - (specify/cancel underlines) regardless of the
character.
• The base line for characters is the same when there are characters having different vertical
direction ratios in the same line.
• The setting of the last received command is effective even when emphasized printing is
executed by the ESC E (specify/cancel emphasized printing) command.
• The setting of the last received command is effective even when underlines are executed by
the (ESC -) Specify/cancel underline command.
• The setting of the last received command is effective even when character size is executed
by the GS! command.
• Emphasized printing (bit 3) is effective for ANK and Chinese characters. Other printing
modes are effective only on ANK characters. • Specifications using this command are
ignored in HRI characters.
STAR The following are the font configurations on STAR printers.
For the STAR printer, the font select commands, <ESC> <RS> F, can also be used.
Reference ESC %, ESC ?
12Dots
MSB
d1 d4 d34
24Dots
d2 d5 d35
LSB
d3 d6 d36
9 Dots
MSB
d1 d4 d25
24 Dots
d2 d5 d26
LSB
d3 d6 d27
Details • If the value of m is out of the specified range, nL and subsequent data are processed as
normal data.
• nL and nH indicate the number of dots in the bit image in the horizontal direction to print. The
number of dots is calculated by (nL + nH x256).
• If the bit-image data input exceeds the number of dots that can be printed on one line, the
excess data is discarded.
• d indicates the bit-image data. Bits that correspond to the dots to print are 1, and the bits that
correspond to the dots that are not printed are 0.
• After processing bit images, the printer returns to normal data processing.
• Excluding upside-down printing, print modes (emphasized printing, double printing,
underlines, character sizes and black/white inverted printing) are unaffected.
• For details on the bit image expansion position in the page mode, see section 2.
Explanations of the Page Mode.
STAR • Dot density (when the STAR printer head = 203 DPI) on STAR printers.
MSB d1 d2 d3
24Dots
LSB
MSB d1 d2 d3
24Dots
LSB
MSB
d1 d4 d7
LSB
d2 d5 d8
24Dots
d3 d6 d9
LSB
d2 d5 d8 24Dots
d3 d6 d9
n Function
0, 48 Cancels underline
1, 49 Sets to one-dot width underline and specifies underlines.
2, 50 Sets to two-dot width underline and specifies underlines.
Details • An underline is applied to the entire character width, including the ESC SP (character right
space amount). However, underlines are not applied to portions that have been skipped
using HT (horizontal tab) or ESC V (character 90 degree rotation).
• Underlines are not applied to ESCV (characters rotated 90 degrees clockwise) or GSB
(black/white inverted characters).
• When underline mode is cancelled by setting the value of n = 0 or n = 48, subsequent data is
not underlined, and the underline thickness set before the mode is turned off is maintained.
The default underline thickness is 1 dot.
• Character size does not affect the set underline thickness.
• Underline mode can also be turned on or off by using ESC ! (batch specify print mode).
Note, however, that the last received command is effective. Therefore, if the underline
mode is canceled using the ESC – command after specifying underlines using the ESC !
command, the ESC ! command is cancelled.
• This command does not affect Chinese characters.
STAR • Underlines are applied to the following positions for both Font A and Font B.
• 1-dot thickness underline → 24th dot
• 2-dot thickness underline → 23rd and 24th dot
Reference ESC !
Reference ESC 3
Details • If the printer is selected to be invalid, the printer discards all data from the next data until the
printer is made valid again by this command. (This excludes DLEEOT, DLEENQ, DLEDC4.)
STAR • Even when the printer is not invalid, the printer specification of this command (n = 1) is
processed.
Details • It is possible to select the character font using ESC! (Batch specify Chinese character print
mode), but the last command received is effective.
STAR • The following are the font configurations on STAR printers.
Reference ESC !
Spec. B:
n International character set
0 America
1 France
2 Germany
3 UK
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 Vietnam
17 Arabia
Details • Executes only a printer internal flag operation when this command is input in standard mode.
The command does not affect printing in standard mode.
• The character expansion starting point is in the print region specified by ESC W (Set print
region in page mode).
• The basic calculated pitch (x or y) used with the following commands differs according to the
starting point.
a. If the starting point is upper left or lower right (feeds paper and expands characters in the
vertical direction)
Commands using x : ESC SP, ESC $, ESC \, FS S
Commands using y : SC 3, ESC J, GS $, GS \
b. If the starting point is upper right or lower left
Commands using x : ESC 3, ESC J, GS $, GS \
Commands using y : ESC SP, ESC $, ESC \, FS S
Reference ESC $, ESC L, ESC W, ESC \, GS $, GS P, GS\
n Function
0, 48 Cancels 90 degree clockwise rotation
1, 49 Specifies 90 degree clockwise rotation
Details • Underlines are not applied to characters rotated 90 degrees clockwise even when ESC !,
ESC – or FS – commands are given.
• If 90 degree clockwise rotation is specified, double-wide and double-tall commands in the 90
rotation mode enlarges characters in the opposite directions to double-wide and double-tall
commands.
• This command only affects printing in standard mode.
• In page mode, this command is only effective for the setting.
• This command is effective for ANK and Chinese characters.
STAR • Characters are rotated as shown below when printing 90 degree clockwise rotation
characters.
(X+Dx-1, Y+Dy-1)
Details • This command is effective only when input at the top of the line when standard mode is being
used.
• This command does has no affect in page mode. In page mode, this command is only
effective for the setting.
• Specifies the alignment position in the printing region that has been set.
• Portions skipped using the following commands are also targeted for position alignment.
a. HT : Horizontal tab
b. ESC $ : Specify absolute position
c. ESC \ : Specify relative position
[Ex.]
Name Select paper out sensor to enable at paper out signal output
Code ASCII ESC c 3 n
Hex. 1B 63 33 n
Decimal 27 99 51 n
Defined Region 0 ≤ n ≤ 15
Initial Value Spec. A: n = 15
Spec. B: n = 0
Function Selects paper out detector that outputs a paper out signal when paper has run out.
Spec. B:
Bit Function “0” “1”
7 Undefined -- --
6 Undefined -- --
5 Undefined -- --
4 Undefined -- --
3 Undefined -- --
2 Undefined -- --
1 Paper roll near end detector Invalid Valid
0 Paper roll near end detector Invalid Valid
Details • It is possible to select a multiple of detectors for signal output at the same time. If any of the
detectors detects the end of the paper, the paper end signal is output.
• This command is only effective when using a parallel interface. It is ignored when using a
serial interface.
• The detector switches when this command is executed so there may be some delay from
reception of this command until switching to the paper out signal, depending on the status of
the reception buffer.
• If either bit 0 or bit 1 is set to 1, select the paper roll near end detector as the paper out
detector for paper out signal output.
• If either bit 2 or bit 3 is set to 1, select the paper roll end detector as the paper out detector
for paper out signal output.
• If all detectors are invalid, the paper out signal is constantly output as having paper.
Details • To stop printing, the printer stops after printing the current line and feeding paper.
• The printer goes offline when printing is stopped.
• If either bit 0 or bit 1 is set to 1, select the paper roll near end detector as the paper out
detector effective to stop printing.
m Connector Pin
0, 48 Drawer kick connector pin #2
1, 49 Drawer kick connector pin #5
Details Drawer kick on time is set to t1 x 2 ms; off time is set to t2 x 2 ms.
ON
OFF
t1 t2
Spec. B:
n Character Type
0 PC437 (USA: Standard Europe)
1 Katakana
2 PC850(Multilingual)
3 PC860(Portuguese)
4 PC863(Canadian-French)
5 PC865(Nordic)
16 WPC1252
17 PC866 (Cyrillic #2)
18 PC852 (Latin2)
19 PC858
20 Thai Character Code 42 [Thai]
21 Thai Character Code 11 [Thai]
22 Thai Character Code 13 [Thai]
23 Thai Character Code 14 [Thai]
24 Thai Character Code 16 [Thai]
25 Thai Character Code 17 [Thai]
26 Thai Character Code 18 [Thai]
255 Blank page
Reference ESC GS t
The NV bit image data defined by “GS ( L <fn=67>, GS ( 8 <fn=67>” is printable by this
command.
• See Appendix-11 for setting details.
Related Commands ESC *, FS q, GS \, GS v 0
Reference Appendix -11
Related Commands FS p
d1 d97 d49057
MSB
d2 d98 d49058
: : :
: : :
: : :
: : :
: : :
: : :
: : :
: : :
: : :
: : :
: : :
d96 d949152
<Horizontal Direction Magnification Ratio Specification> <Vertical Direction Magnification Ratio Specification>
Bit-7 Bit-6 Bit-5 Bit-4 Hor. Dir. Bit-3 Bit-2 Bit-1 Bit-0 Hor. Dir.
Mag. Ratio Mag. Ratio
0 0 0 0 1 0 0 0 0 1
0 0 0 1 2 0 0 0 1 2
0 0 1 0 3 0 0 1 0 3
0 0 1 1 4 0 0 1 1 4
0 1 0 0 5 0 1 0 0 5
0 1 0 1 6 0 1 0 1 6
0 1 1 0 7 0 1 1 0 7
0 1 1 1 8 0 1 1 1 8
1 0 0 0 Undefined 1 0 0 0 Undefined
1 0 0 1 Undefined 1 0 0 1 Undefined
1 0 1 0 Undefined 1 0 1 0 Undefined
1 0 1 1 Undefined 1 0 1 1 Undefined
1 1 0 0 Undefined 1 1 0 0 Undefined
1 1 0 1 Undefined 1 1 0 1 Undefined
1 1 1 0 Undefined 1 1 1 0 Undefined
1 1 1 1 Undefined 1 1 1 1 Undefined
Name Specify absolute position for character vertical direction in page mode
Code ASCII GS $ nL nH
Hex. 1D 24 nL nH
Decimal 29 36 nL nH
Defined Region 0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255
Function Specifies the character vertical direction position for the data expansion starting position
using the absolute position based on the starting point in page mode. The position of the
character vertical direction for the next data expansion starting position is the position
specified by [(nL + nH x 256) x basic calculated pitch] from the starting point.
Details • When not in page mode, this command is ignored.
• Specifications for absolute positions that exceed the specified print range are ignored.
• The position of the character horizontal direction of the data expansion starting position does
not move.
• The starting point that is used as a reference is specified by ESC T.
• The following operations occur depending on the starting point of (Selecting the character
printing direction in page mode) ESC T.
a. If the starting point is upper left or lower right, specify the absolution position for the
paper feed direction (character vertical direction). Use the basic calculated pitch (y) for the
horizontal direction at this time.
b. If the starting point is upper right or lower left, specify the absolution position for the paper
feed in the vertical direction (character vertical direction). Use the basic calculated pitch (x)
for the horizontal direction at this time.
• The basic calculated pitch is set by GSP (Set basic calculated pitch).
• If the calculation results in fractions, the pitch is corrected to a minimal mechanical pitch and
the rest is discarded.
Reference ESC $, ESC T, ESC W, ESC \, GS P, GS \
See section 2. Explanations of the Page Mode.
d1 dy+1 dyx2+1
MSB
d2 dy+2 dyx2+2
: : :
LSB :
: : : : y x 8 dots
: : : :
: : : :
: : : :
: : : :
: : : :
: : : :
: : : :
: : : :
: : : :
: : : :
dx x y x 8
dy dy x 2 dy x 3
Reference GS /
Details • This command is effective only when processed at the top of the line when standard mode is
being used.
• When in page mode, this command is ignored.
• When processing this command while defining a macro, the macro definition is terminated
and the command commences with processing.
• After the test print is completed, the printer executes a hardware reset. Therefore, download
characters and download bit images and macros are handled as being undefined and the
reception buffer and print buffer are cleared. The printer returns all settings to their default
status.
• After the final test print, this executes a paper cut.
• After the command is processed, the printer enters a BUSY state.
Print Density
m Single Color Printing Mode 2-color Printing Mode Red Print Density
Double Resolution Mode
*1
250 Print density -3 Print density -1
251 Print density -3 Print density -1
252 Print density -2 Print density -1
253 Print density -2 Print density -1
254 Print density -1 Standard print density (Standard)
255 Print density -1 Standard print density (Standard)
0 Standard print density (Standard) Standard print density (Standard)
1 Print density + 1 Standard print density (Standard)
2 Print density + 1 Standard print density (Standard)
3 Print density + 2 Print density + 1
4 Print density + 2 Print density + 1
5 Print density + 3 Print density + 1
6 Print density + 3 Print density + 1
*1) See the appropriate printer specifications manual for details on the print modes that are available.
Print Density
m Single Color Printing Mode 2-color Printing Mode Red Print Density
Double Resolution Mode
*2
0 Standard print density (Standard) Standard print density (Standard)
1 Print density + 1 Standard print density (Standard)
2 Print density + 1 Standard print density (Standard)
3 Print density + 2 Print density + 1
4 Print density + 2 Print density + 1
5 Print density + 3 Print density + 1
6 Print density + 3 Print density + 1
*2) See the appropriate printer specifications manual for details on the print modes that are
available.
STAR This command changes the print density after the test print is stopped.
When in two-color print mode, you can only set print density for red print using this command.
The print density setting using this command is invalid when in low peak current mode.
STAR The speed setting is disabled during reduced printing in the vertical direction. However, this
command setting is enabled when reduced printing in the vertical direction is released.
The decimal value indicating the total capacity is converted to text data and sent in order from the MSB.
Ex.: When the total capacity is 1200 bytes:
“1200” (Hex:31H, 32H, 30H, 30H, Decimal:49, 50, 48, 48) is converted to 4-bytes of data.
• This command is used when sending total capacity, and the total byte capacity of the region is sent regard-
less of the current setting for the NV graphics data. This total capacity includes the information region.
• When the value that indicates the entire capacity is “0” (Hex:30H, Decimal:48), it is not possible to use the
NV graphics function.
The decimal value indicating the unused capacity is converted to text data and sent in order from the MSB.
Ex.: When the unused capacity is 120 bytes:
“120” (Hex:31H, 32H, 30H, Decimal:49, 50, 48) is converted to 3-bytes of data.
• Information region is also included in the use capacity.
• Do not use this function at the same time as the NV bit image (FS q) command.
• See the Note for <Function 48> for a detailed explanation of the sending process.
ASCII GS 8 L p1 p2 p3 p4 m fn d1 d2
Hex. 1D 38 4C p1 p2 p3 p4 m fn d1 d2
Decimal 29 56 76 p1 p2 p3 p4 m fn d1 d2
*2 Send one block with identification information (3rd byte) as 41Hex, when the defined NV graphcis data
count is over 41.
• If there is no defined NV graphics key code list, it sends the following format.
• See the Note for <Function 48> for a detailed explanation of the sending process.
ASCII GS 8 L p1 p2 p3 p4 m fn d1 d2 d3
Hex. 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
• This function also erases the NV graphics data defined by the “FS q” command.
Function Erases the NV graphics data defined by key codes kc1 and kc2.
• The erased area is set to be an “unused area.”
• The erased key code becomes undefined.
• Do not use this function for macro definition because this function is not compatible with the macros.
Function Defines the NV graphics data (in raster format) as the record specified by key codes kc1 and kc2.
• “b” specifies a number of colors of the definition data.
• “xL” and “xH” specify the horizontal size of definition data to “xL + xH x 256” dots.
• “yL” and “yH” specify the vertical size of definition data to “yL + yH x 256” dots.
When xL + xH × 256 = 512
k-1 k
7 6 5 4 3 2 1 0
MSB LSB
Notes
• When the specification of (xL + xH×256), and (yL + yH×256) exceed the remaining
capacity of the NV graphics region, this function does not operate.
• When processing this function when the NV bit image is defined using FS q, after all
NV bit images are deleted, define data using this function.
• This function uses the NV graphics area of “Number of data sets (k) + Management data (14 bytes)”.
• The NV bit image data defined by this command is printable by “FS p”. See Appendix-11 for setting
details.
Function Prints the NV graphics data defined by key codes kc1 and kc2.
• Selected data can be printed in the “horizontal x-times” by “vertical y-times” scale.
Details • This function is used to print the NV graphics data defined by Function 67.
• The printer prints data only when the NV graphics data that matches the specified key code is defined.
• If data with the specified key code is not found, the data of this counter is discarded.
• This command is effective only when no data exists in the print buffer in standard mode.
• If any data exists in the print buffer, the data for this counter is discarded.
• Data for this counter is discarded in page mode.
• If graphics that exceeds the print area size is specified, the data within the print area is printed out but the
excess data is not printed out.
• The horizontal and vertical size of NV graphics can be specified by “x” and “y”.
• Excluding upside-down printing, print modes (emphasized printing, overlap printing, underlines, character
sizes, black/white inverted printing, and 90 degree rotation) are unaffected.
• When normal mode or double-width mode is specified, the paper is fed for the number of dots (the height of
NV graphics) and when double-height mode or 4x mode is specified, the paper is fed for the number of dots
(NV graphics height multiplied by 2) regardless of the settings of default line spacing (ESC 2) and line feed
amount (ESC 3).
• After these graphics are printed, the next printing starts at the beginning of a line (the printer is at the
“beginning of the line” and has “no print data”), and subsequent data is processed as normal data.
Notes • The following explains the DPI and the maximum print area.
• “Vertical” refers to the paper feeding direction, and “horizontal” refers to a direction perpendicular to the
paper feed direction.
Star • Dot density of STAR printers (STAR printer head: 203 DPI)
XxY Mode Horizontal Direction Dot Density Vertical Direction Dot Density
1x1 Normal mode 203 DPI 203 DPI
1x2 Double-high Mode 203 DPI 101 DPI
2x1 Double-wide Mode 101 DPI 203 DPI
2x2 Double-high, Double-wide Mode 101 DPI 101 DPI
Function Stores raster-format graphics data in the print buffer using horizontal bx/vertical by.
• xL and xH specify the horizontal direction of the raster graphic in (xL + xH×256) dots.
• yL and yH specify the vertical direction of the raster graphic in (yL + yH×256) dots.
• c specifies the color of the print data.
Defined Region pL = 3, pH = 0
cn = 48, fn = 65
0 ≤ n ≤ 30
Initial Value n=0
Details The setting of this function affects processes of Functions 081 and 082.
When automatic processing is specified (n = 0), the maximum row number in the data region is 30.
The following data is not included in the number of positions.
• Start patterns and stop patterns
• Indicator code words of the right and left levels.
The number of positions when automatic processing is specified (n = 0), calculates the number of
code words based on the current print region, when processing Functions 081, and 082, module
width (Function 067), and the option settings (Function 070).
This setting is valid until ESC @ is executed, the printer is reset or the power is turned off.
Defined Region pL = 3, pH = 0
cn = 48, fn = 66
n = 0, 3 ≤ n ≤ 90
Initial Value n=0
Details The setting of this function affects processes of Functions 081 and 082.
When automatic processing is specified (n = 0), the maximum row number in the data region is 90.
The number of positions when automatic processing is specified (n = 0), calculates based on the
current print region, when processing Functions 081, and 082, and module width (Function 068).
This setting is valid until ESC @ is executed, the printer is reset or the power is turned off.
Details The setting of this function affects processes of Functions 081 and 082.
This setting is valid until ESC @ is executed, the printer is reset or the power is turned off.
Set in units of 1 dot.
Details The setting of this function affects processes of Functions 081 and 082.
This setting is valid until ESC @ is executed, the printer is reset or the power is turned off.
The height of one level is recommended to be set to 3 to 5 times the module width.
When the symbol vertical size is less than 5 mm (0.2 inches), there is the possibility that the
reading rate will drop.
It is possible to check the vertical size of the symbol using the size information status of Function
082.
Reference GS ( k Function 081, 082, ESC @
Details The setting of this function affects processes of Functions 081 and 082.
• When m = 48, the error correction level is set by level.
The error correction level set by ratio is discarded.
The number of error correction code words is fixed regardless of the number of code words of the
data region.
m Function
0 Selects the standard PDF417 options.
1 Selects the simple PDF417 options.
.
Details The setting of this function affects processes of Functions 081 and 082.
This setting is valid until ESC @ is executed, the printer is reset or the power is turned off.
Details Data stored in the symbol saving region using this function is processed using Function 081 and
082.
After processing Functions 081 and 082, data of the saving region is maintained.
k bytes of d1 … dk are processed as symbol data.
This function specifies only the data word count of the symbol.
The printer automatically applies this so the following data is not included in the d1 … dk data.
• Start patterns and stop patterns
• Indicator code words of the right and left levels.
• Descriptor related to symbol length (initial code word of the data region)
This setting is valid until this function is reset, ESC @ is executed, the printer is reset or the power is
off.
Reference GS ( k Function 081, 082, ESC @
Name Encodes and prints PDF417 symbol data stored in the symbol saving region
Code ASCII GS ( k pL pH cn fn m
Hex. 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
Defined Region pL = 3, pH = 0
cn = 48, fn = 81, m = 48
Function Executes encoding and printing the symbol data stored in the symbol saving region, by GS ( k Function
command.
Note The user must ensure the quiet zone.
Reference GS ( k Function 080
Name Send size information of the symbol data of the PDF417 symbol saving region
Code ASCII GS ( k pL pH cn fn m
Hex. 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
Defined Region pL = 3, pH = 0
cn = 48, fn = 82, m = 48
Function Sends the size information of the symbol data stored in the symbol saving region by GS ( k Function 080.
Details The size information of the symbol is not printed with the processing of this function.
Size information indicates the size of the symbol printed by Function 081.
The quiet zone does not include size information.
Data of the size information is shown below.
Transmission data Hex Decimal Data length
Header 37H 55 1Byte
Identifier 2FH 47 1Byte
Horizontal Size *1 30H to 39H 48 to 57 1 to 5 Bytes
Delimiter 1FH 31 1Byte
Vertical Size *1 30H to 39H 48 to 57 1 to 5 Bytes
Delimiter 1FH 31 1Byte
Fixed Value 31H 49 1Byte
Delimiter 1FH 31 1Byte
Other Information *2 30H/31H 48/49 1Byte
NUL 00H 0 1Byte
* 1 The horizontal and vertical sizes are shown as the number symbol dots.
The decimal value of the horizontal and vertical sizes are converted to character data
and sent in order from the MSB.
Ex.: When the horizontal size is 120 dots, “120” is converted to 3 bytes of data (Hex:31H,
32H, 30H, Decimal:49, 50, 48).
* 2 “Other information” indicates whether it is possible to print symbol data stored in the sav-
ing region.
Hex Decimal Data length
30H 48 Printable
31H 49 Not printable
n1 Function
49 Selects the mode 1 conversion processing.
50 Selects the mode 2 conversion processing.
Function Stores symbol data (d1...dk) in the QR Code symbol storage area.
Name Prints QR Code symbol data stored in the symbol saving region
Code ASCII GS ( k pL pH cn fn m
Hex. 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
Defined Region pL = 3, pH = 0
cn = 49, fn = 81, m = 48
Function Executes encoding and printing the symbol data stored in the symbol saving region, by GS ( k Function 181
command.
Name Send size information of the symbol data of the QR Code symbol saving region
Code ASCII GS ( k pL pH cn fn m
Hex. 1D 28 6B pL pH cn fn m
Decimal 29 40 107 pL pH cn fn m
Defined Region pL = 3, pH = 0
cn = 49, fn = 82, m = 48
Function Sends the size information of the symbol data stored in the symbol saving region by GS ( k Function 080.
Details The size information of the symbol is not printed with the processing of this function.
Size information indicates the size of the symbol printed by Function 181.
The quiet zone does not include size information.
Data of the size information is shown below.
Transmission data Hex Decimal Data length
Header 37H 55 1Byte
Identifier 36H 54 1Byte
Horizontal Size *1 30H to 39H 48 to 57 1 to 5 Bytes
Delimiter 1FH 31 1Byte
Vertical Size *1 30H to 39H 48 to 57 1 to 5 Bytes
Delimiter 1FH 31 1Byte
Fixed Value 31H 49 1Byte
Delimiter 1FH 31 1Byte
Other Information *2 30H/31H 48/49 1Byte
NUL 00H 0 1Byte
* 1 The horizontal and vertical sizes are shown as the number symbol dots.
The decimal value of the horizontal and vertical sizes are converted to character data
and sent in order from the MSB.
Ex.: When the horizontal size is 120 dots, “120” is converted to 3 bytes of data (Hex:31H,
32H, 30H, Decimal:49, 50, 48).
* 2 “Other information” indicates whether it is possible to print symbol data stored in the sav-
ing region.
Hex Decimal Data length
30H 48 Printable
31H 49 Not printable
Name 2D GS1 DataBar: Set The maximum width of the 2D GS1DataBar Expanded Stacked
Code ASCII GS ( k pL pH cn fn nL nH
Hex. 1D 28 6B pL pH cn fn nL nH
Decimal 29 40 107 pL pH cn fn nL nH
Defined Region pL = 4, pH = 0
cn = 51
fn = 71
106 ≤ n ≤ 3952
Initial Value (nL + nH x 256) = 141 (nL = 141, nH = 0)
Function The maximum width of the 2D GS1DataBar Expanded Stacked is set to n dots.
Note The setting for this function affects the processing of function 381.
This setting is enabled until ESC@ is executed, the printer is reset, or the power is turned off.
The set unit is 1 dot.
The width is set as 0.125 mm (1/203 inches).
Reference GS ( k Function 381, ESC @
Note Data stored in the symbol saving region by this function is processed using function 381.
After processing functions 381 and 382, data in the saving region is maintained.
k bytes for d1...dk are processed as symbol data.
This setting is valid until this function is reset, ESC@ is executed, the printer is reset, or the power is off.
Reference GS ( k Function 381, ESC @
Name Compound symbol: Set The maximum width of the 2D GS1DataBar Expanded Stacked
Code ASCII GS ( k pL pH cn fn nL nH
Hex. 1D 28 6B pL pH cn fn nL nH
Decimal 29 40 107 pL pH cn fn nL nH
Defined Region pL = 4, pH = 0
cn = 52
fn = 71
106 ≤ n ≤ 3952
Initial Value (nL + nH x 256) = 141 (nL = 141, nH = 0)
Function The maximum width of the GS1DataBar Expanded Stacked in compound symbols is set to n dots.
Note The setting for this function affects the processing of function 481.
This setting is enabled until ESC@ is executed, the printer is reset, or the power is turned off.
The set unit is 1 dot.
The width is set as 0.125 mm (1/203 inches).
Reference GS ( k Function 481, ESC @
Function Select the font for HRI characters when printing combined symbols.
n HRI font
0,48 not printed
1,49 printed (Select font A(12x24))
2,50 printed (Select font B(9x17))
Note Data stored in the symbol saving region by this function is processed using function 481.
When “Print” HRI is selected, HRI is printed under 1D bar codes.
When the combined symbol uses a 2D code (GS1 DataBar Stacked, GS1 DataBar Stacked Omnidirectional,
GS1 DataBar Expanded Stacked), this setting is not affected and HRI is not printed.
This setting is valid until this function is reset, ESC@ is executed, the printer is reset, or the power is off.
Reference GS ( k Function 481, ESC @
a = 48
Details • This command is ignored if there is no download bit image data defined.
• This command is effective only when no data exists in the print buffer in standard mode.
• Excluding upside-down printing, print modes (emphasized printing, overlap printing,
underlines, character sizes and black/white inverted printing) are unaffected.
• If there is download bit image data defined that exceeds the print region, that excess portion
is not printed.
• Regardless of the line feed amount set by ESC 2 (Initial line feed amount setting) and ESC 3
(Line feed amount setting), a paper feed is executed for the amount of dots (the height of the
download bit image n) when in normal mode and horizontal double wide mode, and for the
amount of dots (the height of the download bit image n x 2) when in double high mode and
double wide double high mode.
• See section 2.3.2 for details on the download bit image expansion position in page mode.
STAR • Dot density (when the STAR printer head = 203 DPI) on STAR printers.
m Mode Density of Vertical Direction Dots Density of Horizontal Direction Dots
0, 48 Normal Mode 203 DPI 203 DPI
1, 49 Double-wide Mode 203 DPI 101 DPI
2, 50 Double-tall Mode 101 DPI 203 DPI
3, 51 Quadruple Mode 101 DPI 101 DPI
Reference GS *
Δ=Space
Reference GS C 1, GS C 2, GSC ;, GS c
Print Speed
Bit-5 Bit-4 Print Speed
0 0 High speed
0 1 Mid-speed
1 0 Slow speed
1 1 Undefined
STAR • This command changes the print speed after the test print is stopped.
Spec. B
n Printer ID Type Specifications
1, 49 Model ID See the models below.
2, 50 Type ID (See <Type ID> in the table below.)
3, 51 ROM version ID Depends on the ROM version
65 Firmware Version Depends on the Firmware Version
66 Manufacturers Name STAR
67 Model Name See the models below.
68 Serial Number “0000000000000000”
69 Double bytes Character Japanese Kanji : KANJI JAPANESE
Type Chinese Character : CHINA GB2312 or CHINA GB18030
Taiwan Chinese Character : TAIWAN BIG-5
<Type ID>
Bit Function “0” “1”
7 Fixed at “0”
6 Undefined --- ---
5 Undefined --- ---
4 Fixed at “0”
3 MICR Reader None Yes
2 Direct connection to customer display None Yes
1 Auto-cutter None Yes
0 2 Byte Code Handling None Yes
Printable Region
Details • This command is effective only when input at the top of the line when standard mode is being
used.
• This command has no affect in page mode. This command is only effective for the setting.
• The maximum setting for the left margin is the same size as the printable region for the
horizontal direction.
Specifications that exceed the maximum value are rounded off to that value.
• The basic calculated pitch is set by GSP (Set basic calculated pitch). Also, after setting the
left margin, it is not affected even if the basic calculated pitch is changed.
• Use the basic calculated pitch (x) for the horizontal direction of GS P (Set basic calculated
pitch) to calculate the left margin.
If the calculation results in fractions, the pitch is corrected to a minimal mechanical pitch and
the rest is discarded.
• See Appendix-4 for setting details.
Reference GS P, GS W Appendix -4
Details • This command is effective only when processed at the top of the line when standard mode is
being used.
• Cuts paper.
STAR • The auto-cut function differs according to the model. A partial cut is executed on those
models that cannot perform a full cut.
A full cut is executed on those models that cannot perform a partial cut. Refer to the product
specifications manual for the specifications of the auto-cut function.
• Models that do not have the auto-cut function do not cut paper. However, commands that
accompany a paper feed of (cutting position + [n x basic calculated pitch]) (n = 65, 66), a
paper feed of (tear bar position + [n x basic calculated pitch]) is executed.
Reference ESC i, ESC m
Details • This command is effective only when processed at the top of the line when standard mode is
being used.
• Feeds paper to the cutting position when n = 0, then cuts the paper.
• Feeds paper [n x basic calculated pitch] beyond the cutting position when n ≠ 0, then cuts the
paper.
• The basic calculated pitch is set by GSP (Set basic calculated pitch).
• Use the basic calculated pitch (y) relating to the vertical direction for the paper feed amount.
If the calculation results in fractions, the pitch is corrected to a minimal mechanical pitch and
the rest is discarded.
STAR • The auto-cut function differs according to the model. A partial cut is executed on those
models that cannot perform a full cut.
A full cut is executed on those models that cannot perform a partial cut. Refer to the product
specifications manual for the specifications of the auto-cut function.
• Models that do not have the auto-cut function do not cut paper. However, commands that
accompany a paper feed of (cutting position + [n x basic calculated pitch]) (n = 65, 66), a
paper feed of (tear bar position + [n x basic calculated pitch]) is executed.
Reference ESC i, ESC m
Printable Region
Details • This command is effective only when processed at the top of the line when standard mode is
being used.
• This command has no affect on page mode when in page mode. Only the setting is effective
for this command.
• When a value that exceeds the printable region of one line, the entire region, excluding the
left margin, is set as the print region width.
• The basic calculated pitch is set by GSP (Set basic calculated pitch). Also, the set printing
region width is not changed even if the basic calculated pitch is changed after setting the
print region width.
• Use the basic calculated pitch (x) for the horizontal direction of GS P (Set basic calculated
pitch) to calculate the print region width.
If the calculation results in fractions, the pitch is corrected to a minimal mechanical pitch and
the rest is discarded.
• If the print region width is smaller than the width of the first character expanded at the top of
the line (including the right space), the following are processed only on that line.
1. The print region is expanded to the right for the size of that character within the range that
does not exceed the printable region.
2. If there is not enough space even if 1. is executed, the print region is expanded to the left
side.
3. If there is not enough space even if 2. is executed, the right space deleted.
• See Appendix-4 for setting details.
Reference GS L, GS P, Appendix -4
Name Specify relative position for character vertical direction in page mode
Code ASCII GS \ nL nH
Hex. 1D 5C nL nH
Decimal 29 92 nL nH
Defined Region 0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
Function • Specifies the character vertical direction position for the data expansion starting position
using the relative position based on the current point in page mode. This sets the position
moved from the current position to [(nL + nH x 256) x basic calculated pitch] for the next data
expanding starting position.
Details • When not in page mode, this command is ignored.
• If the direction below the current position is specified for the characters, specify a positive
number; if the direction above is specified, a negative number is used.
• Negative numbers are represented by the complement of 65536. For example, when moving
in the upward direction N pitches, use:
nL + nH × 256 = 65536-N
• Specifications for relative positions that exceed the specified print region are ignored.
• The following operations occur depending on ESC T (Selecting the character printing
direction in page mode).
a. If the starting point is upper left or lower right, specify the relative position for the paper
feed direction.
Use the basic calculated pitch (y) for the horizontal direction at this time.
b. If the starting point is upper right or lower left, specify the relative position for the paper
feed in the vertical direction. Use the basic calculated pitch (x) for the horizontal direction at
this time.
• The basic calculated pitch is set by GSP (Set basic calculated pitch).
• If the calculation results in fractions, the pitch is corrected to a minimal mechanical pitch and
the rest is discarded.
Reference ESC $, ESC T, ESC W, ESC \, GS $, GS P
Reference GS H, GS k
4 CODE39 1≤k 48 ≤ d ≤ 57, 65 ≤ d ≤ 90, 32, 36, 37, 43, 45, 46, 47
2 ≤ k (However, this is an
5 ITF 48 ≤ d ≤ 57
even number.)
For 2:
m Bar Code Type Defined region of n Defined region of d
65 UPC-A 11 ≤ n ≤ 12 48 ≤ d ≤ 57
66 UPC-E 11 ≤ n ≤ 12 48 ≤ d ≤ 57
67 JAN13(EAN13) 12 ≤ n ≤ 13 48 ≤ d ≤ 57
68 JAN8(EAN8) 7≤n≤8 48 ≤ d ≤ 57
69 CODE39 1 ≤ n ≤ 255 48 ≤ d ≤ 57, 65 ≤ d ≤ 90,32, 36, 37, 43, 45, 46, 47
70 ITF 2 ≤ n ≤ 255 (Even number) 48 ≤ d ≤ 57
71 CODABAR 1 ≤ n ≤ 255 48 ≤ d ≤ 57, 65 ≤ d ≤ 68,36, 43, 45, 46, 47, 58
72 CODE93 1 ≤ n ≤ 255 0 ≤ d ≤ 127
73 CODE128 2 ≤ n ≤ 255 0 ≤ d ≤ 127
Details For 1:
• This command is quit by the NULL code.
• For UPC-A and UPC-E, a bar code is printed when 12 bytes of bar code data are input.
Subsequent data is processed as normal data.
• For JAN13 (EAN13), a bar code is printed when 13 bytes of bar code data are input.
Subsequent data is processed as normal data.
• For JAN8 (EAN8), a bar code is printed when 8 bytes of bar code data are input.
Subsequent data is processed as normal data.
•The data count for ITF bar codes is always even numbered. If the data count is odd
numbered, the last data is ignored.
For 3:
• n specifies the data count. n bytes from the next data is processed as bar code data.
• When n exceeds the region, n bytes are received and discarded.
• ITF bar code data count must always be odd. The last data will be ignored for even
numbered data.
When in standard mode:
• When d exceeds the region, only paper feed is executed, and data is received for the
counter and discarded.
• If the horizontal width of the bar code exceeds the print region of one line, the paper is fed
without printing the bar code.
• This is valid only when there is no data in the print buffer. When there is data in the print
buffer, it is received by the counter and then discarded.
• Sets the next print position to the beginning of the next line after printing the bar code.
• Print mode (enhanced printing, duplex printing, underlines, character size, 90˚ rotation) is
unaffected, except upside-down printing.
• If the top of the bar code data string is not a code set selection character, the command is
stopped and processing is handled normally from subsequent data.
• If the combination of ‘{‘ and 1 character immediately after does not conform to either of
the special characters, the command is stopped and processing is handled normally from
subsequent data.
• If a character that cannot be used with the selected code set is received, the command is
Special
Characters Hex. Decimal
The first SP after d1 is the data division identifier for identifying (AI).
SP 20 32
The SP is reflected by the HRI but is not included in the encoding data.
“(“ is reflected by the HRI. This is useful when using “(“,”)” to highlight the AI.
( 28 40
It is not included in encoding data.
The first “)“ after d1 is the data division identifier for identifying (AI).
) 29 41
The “)“ is reflected by the HRI but is not included in the encoding data.
The check digit calculated by modulus 10 is inserted automatically at the
* 2A 42 position specified in “*”.
The check digit is reflected in the HRI instead of the “*”.
A space character is used as the HRI character for FNC1 and FNC3 function characters.
A space character is used as the HRI control characters (00H to 1FH and 7FH).
Special
Characters Hex. Decimal
“(“ is reflected by the HRI. This is useful when using “(“,”)” to highlight the AI.
( 28 40
It is not included in encoding data.
The first “)“ after d1 is the data division identifier for identifying (AI).
) 29 41
The “)“ is reflected by the HRI but is not included in the encoding data.
If the double-digit lead for the bar code data line is not a number, or is not “(“ and a number, command
processing is stopped at this point and the next data is processed as standard data.
If the combination of ‘{‘ and the character directly behind does not correspond to, command processing is
stopped at this point and the next data is processed as standard data.
Although “*” can be used, it is not reflected in the HRI or the encoding data.
STAR • If printing bar codes that require check digits on STAR printers, even if the check digit is sent
as a bar code, the check digit that was calculated on the printer is printed.
Reference GS H, GS f, GS h, GS w, Appendix-6
Defined Region 0 ≤ m ≤ 3, 48 ≤ m ≤ 51
0 ≤ xL ≤ 128, xH=0 (0 ≤ xL +xH×256) ≤ 128)
0 ≤ yL ≤ 255, 0 ≤ yH ≤ 15 (0 ≤ yL +yH×256 ≤ 4095)
0 ≤ d ≤ 255
k = (xL+xH×256) × (yL+yH×256) However, k ≠ 0
• xL and xH specify the horizontal direction data count for one bit image (xL + xH x 256) in bytes.
• yL and yH specify the vertical direction data count for one bit image (yL + yH x 256) in dots.
Details • This command is effective only when there is no print data in the print buffer when standard
mode is selected.
• Print modes (character size, enhanced characters, duplicated characters, upside down,
unline, black/white inverted, etc.) do not affect raster bit images.
• Data not in the print region is discarded in dot increments.
• It is possible to specify any position to start printing raster bit images according to HT
(Horizontal tab), ESC $ (Specify absolute position), ESC \ (Specify relative position) and GS
L (Specify let margin). However, if the print starting position is no a multiple of 8, printing
speed will decrease.
• ESC a (Position alignment) settings are effective also for raster bit images.
• When executing this command while defining a macro, the macro definition is terminated and
the command commences with processing.
The macro during this time is undefined.
• d specifies defined data.
• Bits that correspond to the dots to print are 1, and the bits that correspond to the dots that
are not printed are 0.
STAR • On STAR printers, the ACK pulse width when using a parallel interface is fixed at 1 μsec.
• When in page mode, transmission of this command is prohibited. If sent, the results of the
print are not guaranteed.
• Dot density (when the STAR printer head = 203 DPI) on STAR printers.
k-1 k
7 6 5 4 3 2 1 0
MSB LSB
Details • Multi-level bar codes specify the follow bar code types.
UPC-A, UPC-E, JAN13 (EAN13), JAN8 (EAN8), CODE 93, CODE 128
• Binary level bar codes specify the follow bar code types.
CODE39, ITF, CODABAR
STAR • The bar codes that are printed do not conform to each standard, so you should confirm
before actual use.
Particularly, if n = 1 is specified, the bar code is not guaranteed.
• The following are the module widths on STAR printers.
Binary Level Bar Code
Multi-level Bar Code
n Fine Element Width Thick Element Width
Module Width [mm]
[mm] [mm]
1 0125 0.125 0.375
2 0.25 0.25 0.625
3 0.375 0.375 1.125
4 0.5 0.5 1.375
5 0.625 0.625 1.75
6 0.75 0.75 2.25
Reference GS k
FS ! n
Details • Quadruple-size characters are printed by specifying both double-tall and double-wide modes.
• An underline is applied to Chinese characters for the entire character width, including the FS
S (left and right character space amount).
However, underlines are not applied to portions that have been skipped using HT (horizontal
tab) or rotated 90 degrees.
• The width of the Chinese character underline is set by FS - (specify Chinese character
underline) regardless of the character size.
• The base line for characters is the same when there are characters having different vertical
direction ratios in the same line.
• Chinese character size can be specified by FS W and GS !, but the last executed command
is effective.
• Chinese character underline is specified and cancelled by FS -, but the last executed
command is effective.
STAR • This command is ignored when the memory switch location of use is specified as SBCS
(single byte countries).
Reference FS -, FS W, GS !
< Chinese Kanji Specifications/ Taiwanese Kanji Specifications/ Korean Kanji Specifications>
• If Kanji mode is specified, the first byte that follows processing of the character code
equivalent to the first byte of the Kanji code is processed as the second byte of the Kanji
code.
• Kanji codes are processed in the order first byte, second byte.
• Kanji mode is specified as the default setting.
STAR • This command is ignored when the memory switch location of use is specified as SBCS
(single byte countries).
• ANK adornment commands are possible for Kanji enhancement (ESC E) and black/white
inversion (GS B) However, if the Kanji is enlarged over three times, enhancement is ignored.
Specifications A: Enhancement of Kanji is ignored for those characters rotated
90 degrees to the right (ESC V) .
Specifications B: Enhancement of Kanji is effective for those characters rotated 90 degrees
to the right (ESC V).
• The following shows the 2 byte code defined area.
Specifications Defined Area
Upper Bytes Lower Bytes
Japanese Kanji Characters JIS Type 0x21 to 0x7E 0x21 to 0x7E
Japanese Kanji Characters/Shift JIS Type 0x81 to 0x9F 0x40 to 0xFE
0xE0 to 0xEF
Chinese Kanji characters 0xA1 to 0xFD 0xA1 to FE (*)
Taiwanese Kanji characters 0xA1 to 0xFD 0x40 to FE
Korean Kanji characters 0xA1 to 0xFD 0xA1 to FE
(*) Bit – 7 of the lower bytes of the Chinese Kanji is always processed as MASK (0xA1A1 →
0xA121)
Reference FS., FS C
FS & FS C n(n=1)
FS FS C n(n=0)
JIS SHIFT-JIS
Code System Code System
<Command Ignored> FS C n(n=1) <Command Ignored>
·FS C n(n=0) ·FS C n(n=1)
·FS & ·FS &
·FS .
FS &
ANK Characters
Chinese Kanji
(Font-A/Font-B)
FS .
<Command Ignored> <Command Ignored>
·FS C n(n=0 / n=1) ·FS C n(n=0 / n=1)
Details • An underline is applied to Chinese characters for the entire character width, including the left
and right character space amount.
However, underlines are not applied to portions that have been skipped using HT (horizontal
tab) or rotated 90 degrees to the right.
• When Chinese character underline mode is cancelled by setting the value of n to 0,
subsequent Chinese character data is not underlined, and the underline thickness set before
the mode is turned off is maintained.
In default, the underline width for Chinese characters is set to 1 dot.
• The set Chinese character underline width is the constant specified thickness regardless of
the size of the character.
• The FS ! (Batch specify Chinese character print mode) command can also turn Chinese
character underline mode on or off, but the setting of the last received command is effective.
STAR • This command is ignored when the memory switch location of use is specified as SBCS
(single byte countries).
• The underline for Chinese characters is applied in the following positions.
• 1-dot width underline → 24th dot
• 2-dot thickness underline → 23rd and 24th dot
Reference FS !
d1 d4 • • • • • • • • • • • • • d70 6
24 5
dots d2 d5 • • • • • • • • • • • • • d71 4
3
d3 d6 • • • • • • • • • • • • • d72
2
1
LSB
Details • If using the JIS code type, the Chinese characters codes below are effective. This command
is enabled only when using Japanese language specifications.
First Byte: <21>H to <7E>H
Second Byte: <21>H to <7E>H
• If using the SHIFT-JIS code type, the Chinese characters codes below are effective.
First Byte: <81>H to <9F>H and <E0>H to <EF>H
Second Byte: <40>H to <7E>H and <80>H to <FC>H
STAR • This command is ignored when the memory switch location of use is specified as SBCS
(single byte countries).
ESC/POS black mark related commands are to control the top of form (black mark) functions. These commands
are effective only when the black mark function is valid.
Reference GS ( F
Details • This command is effective only when processed at the top of the line when standard mode is
being used.
• Feeds paper to the TOF position (black mark) when n = 0, then cuts the paper.
• Feeds paper [n x basic calculated pitch] beyond the TOF position (black mark) when n ≠ 0,
then cuts the paper.
• The basic calculated pitch is set by GSP (Set basic calculated pitch).
• Use the basic calculated pitch (y) relating to the vertical direction for the paper feed amount.
If the calculation results in fractions, the pitch is corrected to a minimal mechanical pitch and
the rest is discarded.
STAR • The auto-cut function differs according to the model. A partial cut is executed on those
models that cannot perform a full cut.
A full cut is executed on those models that cannot perform a partial cut. Refer to the product
specifications manual for the specifications of the auto-cut function.
• Models that do not have the auto-cut function do not cut paper. However, commands that
accompany a paper feed of (cutting position + [n x basic calculated pitch]) (n = 65, 66), a
paper feed of (tear bar position + [n x basic calculated pitch]) is executed.
• The TOF position (black mark) varies according to the paper used and to customer
specifications.
Reference ESC i, ESC m
STAR original commands are not regulated by the ESC/POS control codes, but are standard for improved func-
tions and for independent STAR functions.
The functions outlined below are disabled when the OCR B font is selected.
• Code page
• Blank code page
• Country characters
• Slashed zero
Character modifier, expansion and external character settings are disabled when using the
OCR B font for reading using a scanner. Check the OCR B font in actual use before using.
Restrictions
1) Sleep mode decrease
2) Invalid when in Page mode
Doc 1 Doc 1
PE PE
Receive Receive
and discard E and discard
T
Doc 2 Doc 2
E
T
Doc 3 Doc 3
E E
When this function is enabled, the interface is determined to have been disconnected when no data is received
for a specified period of time at the data read section of the printer.
When a disconnection is detected during a command execution, the command parsing is stopped.
When data cancel is enabled, the print start function using the timer (ESC GS g 1) is disabled, and data is
canceled.
n1=0 and n2=0: Initializes the interface disconnection detection function through data
reception timeout.
(Returns to the MSW settings. The initial value for the timeout time is 3 seconds.)
n1=1 : Set enable/disable and the timeout time for data reception timeouts.
When n2 is 0, the disconnection detection function is disabled due to data reception timeouts.
When n2 is anything except for 0, the data reception timeout is set. (Units: seconds, 1 to 255
seconds)
* Echoes back the specified contents from the host as is until ESC GS ETX s n1 n2, and then
sends the timeout setting value and NUL.
ESC SYN 0 n
Name Set presenter paper recovery function and automatic recovery time
Code ASCII ESC SYN 1 n
Hex. 1B 16 31 n
Decimal 27 22 49 n
Defined Region 0 ≤ n ≤ 255
Initial Value Memory Switch Setting
Function Sets presenter paper automatic recovery function and automatic recovery time.
This command is ignored when a presenter is not connected.
Settings using this command are effective from the next sheet when the printer processes
this command and paper has already been supplied to the presenter.
n Function
n=0 Paper automatic recovery function invalid.
1 ≤ n ≤ 255 Paper automatic recovery function valid.
Automatic recovery time: n x 0.5 sec (0.5 sec to 127.5 sec)
Defined Region 1 ≤ m ≤ 2, 49 ≤ m ≤ 50
0 ≤ t1 ≤ 255, 0 ≤ t2 ≤ 255
Initial Value t1 = 2, t2 = 2
Function Specify Snout LED ON/OFF times.
m specifies the snout operation mode.
m Snout Operating Mode
1, 49 This command specifies the LED ON/OFF times while the presenter is operating.
(LED lights in orange while the printer is printing.)
2, 50 This command specifies the LED ON/OFF times for recoverable and non-recover-
able errors.
Defined Region 1 ≤ m ≤ 2, 49 ≤ m ≤ 50
0 ≤ t1 ≤ 255, 0 ≤ t2 ≤ 255
This command is specialized for printing mark sheets for lotteries. This command can print lines.
<Print Sample>
L O T T E R Y 1 0
01 05 32 85 86 50 70 77 08
50 21 42 46 40 12 02 06 78
Mark Printing
Mark 1 Mark 0 Mark 1 Mark 0 Mark 1 Mark 0 Mark 2 Mark height h Mark LF amount v
Mark 1 Mark 0 Mark 2 Mark 0 Mark 1 Mark 0 Mark 1 Mark height h Mark LF amount v
Mark 1 Mark 0 Mark 1 Mark 0 Mark 2 Mark 0 Mark 2 Mark height h Mark LF amount v
• Example Transmission
1. Mark height, Line feed amount setting
<ESC> <GS> *1 h v (h = “010”, v = “020”)
2. Color of each mark number, Horizontal width setting
<ESC> <GS> *2 m c w (Mark number 0 setting: m = “0”, c = “0”, w = “016”)
<ESC> <GS> *2 m c w (Mark number 0 setting: m = “1”, c = “1”, w = “040”)
<ESC> <GS> *2 m c w (Mark number 0 setting: m = “2”, c = “0”, w = “040”)
3. Register the mark format specified by 1 and 2 in advance in the non-volatile memory (it is possible to print
marks that are not registered in the non-volatile memory.)
<ESC> <GS> *W
4. Printing Marks
<ESC><GS>*0nm1m2m3m4m5m6m7
(n = “007”, m1 = “1”, m2 = “0”, m3 = “1”, m4 = “0”, m5 = “1”, m6 = “0”, m7 = “2”)
<ESC><GS>*0nm1m2m3m4m5m6m7
(n = “007”,m1 = “1”, m2 = “0”, m3 = “2”, m4 = “0”, m5 = “1”, m6 = “0”, m7 = “1”)
<ESC><GS>*0nm1m2m3m4m5m6m7
(n = “007”, m1 = “1”, m2 = “0”, m3 = “1”, m4 = “0”, m5 = “2”, m6 = “0”, m7 = “2”)
Name Specify mark color and mark horizontal width for each mark number
Code ASCII ESC GS * 2 m c w
Hex. 1B 1D 2A 32 m c w
Decimal 27 29 42 50 m c w
Defined Region “0” ≤ m ≤ ”9”
“0” ≤ c ≤ ”1”
“001” ≤ w ≤ ”999”
Initial Value Non-volatile memory
Function Specifies mark color and mark horizontal width for each mark number.
m specifies the mark number.
c specifies the mark color.
w specifies the mark horizontal width (number of dots).
If w exceeds the print region, this command is ignored.
m, c and w are ASCII character strings that are represented by decimals; They are
composed of character codes “0” to “9.”
c Mark Color
n = “0” (48) White
n = “1” (49) Black
ESC GS * C
This command functions to print logos, like the one below, by only changing the product name, when only prod-
uct names can be changed in systems that are already in use. Also, this function has two operating modes.
1) Standard Auto Logo Function
The Auto Logo function is preset and executes the following operations using the print cut command under the
current system as a trigger.
1. Starts up the Auto Logo function using the current system cut command as a trigger
2. Prints if there is print data in the image buffer
3. Executes user macro 1
4. Prints Auto Logo
5. Executes user macro 2
Logo 2 is printed by #4 Auto Logo printing according to the command character “/” that was preset in the cur-
rent print data and embedding the Logo number “2” to print. Specifically, if the product is registered with
“CHEESEBURGER/2” the logo 2 coupon ticket is automatically printed for the purchaser of a cheese burger.
Also, Logo 1 for the header is used for company logos. By registering to the user macro 2 of #5, cut command +
Logo 1 print command, the company logo of logo1 will be printed. User macro 1 of #3 is used when it is neces-
sary to position the Auto Logo in the center. When doing so, register the left alignment command using the user
macro 2 of #5 and return to its original setting.
Header 㩷 Logo1㩷
********************
MCDONALD’S
******************** 㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㩷
********************
1 CHEESEBURGER
. $2.00 㩷MCDONALD’S
㪤 㪘㪚 㪛㪦㪥㪘㪣㪛㪪㩷
2 COKE
. $1.00
㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㩷
********************
-------------------------
---------- 1.㪈㪅㪚㪟㪜㪜㪪㪙㪬㪞㪜㪩㩷㩷㩷㩷㩷㩷㩷㩷㩻㪉㪅㪇㪇
CHEESEBURGER $2.00㩷
TOTAL $3.00㩷 2㪉㪅㪚㪦㪢㪜㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷
COKE
. $1.00㩷
㩷㩷㩷㩷㩷㩻㪈㪅㪇㪇
㩷 Current System
-------------------------
㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㩷 ----------
TOTAL $3.00㩷 Print Data
㪫㪦㪫㪘㪣㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩻㪊㪅㪇㪇㩷
Partial Cut
4. AutoLogo printed
COKE 㩷 Logo3㩷
********************
MCDONALD’S
㩷 㩷 㩷 㩷 㩷 Header Logo1㩷
********************
MCDONALD’S
******************** 㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㩷
********************
1.CHEESEBURGER $2.00 㩷㪤 㪘 㪚 㪛 㪦 㪥 㪘 㪣 㪛 㪪 㩷
2.COKE $1.00 MCDONALD’S
㪁 㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㪁㩷
********************
-------------------------
---------- 㪈㪅㪚㪟㪜㪜㪪㪙㪬㪞㪜㪩㩷㩷㩷㩷㩷㩷㩷㩷㩻㪉㪅㪇㪇
1.CHEESEBURGER $2.00㩷
TOTAL $3.00㩷 2.COKE $1.00㩷
㪉㪅㪚㪦㪢㪜㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩻㪈㪅㪇㪇
㩷 Current System
-----------------------------------
㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㪄㩷
TOTAL $3.00㩷 Print Data
㪫㪦㪫㪘㪣㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩷㩻㪊㪅㪇㪇㩷
********************
MCDONALD’S 㩷
Note: • With this setting, user macro and command character are invalid.
(“/” is printed as a character if the command character is set to “/” when setting.)
The commands that are the triggers for the Auto Logo function are below.
When the standard Auto Logo Function is turned on by n = 1, the following trigger commands
function only as triggers and do not cut paper. Therefore, it is necessary to register any cut
command to the user macro 2.
When the simple Auto Logo Function is turned on by n = 2, the following cut commands are
executed and are the triggers for the simple Auto Logo function.
•<GS> V m: C
ut command
• <GS> V m n: C
ut command
•<ESC> i: F
ull cut command (not recommended)
•<ESC> m: P
artial cut command (not recommended)
Reference ESC GS / W, ESC GS / C, ESC GS / 2, ESC GS / 3, ESC GS / 4, ESC GS / 5, ESC GS / 6
A command character is a character that is a command for specifying the logo number to
print with the Auto Logo printing.
When “/” is specified as the command character, “/2/3” is embedded in the print data.
The printer does not process the “/” as character data but as a command and stores number
that follows at the end and prints it as an Auto Logo in the order that it is stored. Therefore, if
“/2/3” is embedded, Auto Logo will print Logo2 and Logo3 in that order. If the specified logo
has not been registered, logo printing will be ignored.
Also, if there is no set command character setting, a logo will not be printed.
Note that “/2/3” is processed as a command is not printed.
However, using the “<ESC> <GS> /5 n” command it is possible to switch “/2/3” to a space.
In the same way as with “/2/3/2/2” if a logo is duplicated, only the initial logo is printed.
A maximum of 32 logos can be stored as Auto Logos.
Continuing after the command character, the following shows the defined area of the
character d that specifies the logo number.
“1” ≤ d ≤ ”9” (49 ≤ d ≤ 57) → Logo number 1 to 9
“A” ≤ d ≤ ”F” (65 ≤ d ≤ 70) → Logo number 10 to 16
The logo of key codes kc1 and kc2 defined by “GS ( L <fn=67>” or “GS 8 L <fn=67>” is
possible to print by the Logo number of this command.
The following table shows he key codes and logo number.
n kc1 kc2 n kc1 kc2
“1” 0 1 “9” 0 9
“2” 0 2 “A” 1 0
“3” 0 3 “B” 1 1
“4” 0 4 “C” 1 2
“5” 0 5 “D” 1 3
“6” 0 6 “E” 1 4
“7” 0 7 “F” 1 5
“8” 0 8
Header
*********************
**************
MACDONALDS
MCDONALD’S
***************
********************
1.CHEESBUGER
1.CHEESEBURGER $2.00
2.COKE
2.COKE $1.00
-----------------------------------
- -- -- -- --- -- -- --- -- -- -
TOTAL $3.00
TOTAL $3.00
********************
MCDONALD’S
ESC GS BEL m t1 t2
ON
Drive Pulse
OFF
20 × t1 (msec) 20 × t2 (msec)
ON
Drive Pulse
OFF
20 × n1(msec) 20 × n2(msec)
Drives for external buzzers set using this command is performed by <ESC> <GS> <EM>
<DC2> m n1 n2.
The setting value is not initialized by <ESC> “@” and <CAN>.
Specifies the number of repetitions of the buzzer drive with (n2 x 256 + n1).
The buzzer will not ring while printing.
This command is prohibited for uses other than to ring the buzzer.
(If this command is used to drive the cash drawer on models that have an external device
terminal, the system will be damaged. Absolutely never use it for other purposes.)
The buzzer can be stopped by pressing the paper feed switch or opening the cover when it is
ringing.
[EX.]
n1 = 8
ON
ON OFF
(Note) If the off time is set to 0 (zero), it is possible to ring the buzzer
continuously for the amount of n1. For example, if on = 5 seconds, off = 0,
and n1 = 20 times, the buzzer will ring for 100 seconds.
p1
START p2 STOP
PDF417 is configured by a fixed bar pattern for starting and stopping, and a bar pattern called a code word.
Code words are configured by 17 modules.
4 11111 3 5
<Code Word>
<ESC> <GS> “x” “S” “1” specifies values of error correction levels.
PDF417 can read information even if a portion of the data is corrupted by using the error correction.
By increasing this level, the bar code size increases because there is more preparatory information.
<ESC> <GS> “x” “S” “2” and <ESC> <GS> “x” “S” “3” specify the size of the module that configures the code
word.
The X direction size (in dot increments) is determined by <ESC> <GS> “x” “S” “2” for the module, and <ESC>
<GS> “x” “S” “3” specifies the Y direction size from the aspect.
Module size setting is the basis for the bar code image that is generated, so the resulting print will vary accord-
ing to that setting.
It is recommended to use (4) Bar code expansion information acquisition (<ESC> <GS> “x” “I”) as a means for
checking these errors prior to printing.
n p1, p2
(Specify Method to Specify Bar Code Size) (Size Specification)
USE_LIMITS
p1: p2: Proportions of Vertical (p1) and Horizontal (p2)
0 (Specify ratio of bar code horizontally and
However, p1: p2 = 1: 99 to 10 : 1 (p1/p2 = 0.01 to 10)
vertically)
p1: Number of lines (0, 3 to 90), p2: Number of columns
USE_FIXED (0, 1 to 30)
1 (Specifies number of lines and number of However, p1 * p2 ≤ 928
columns of bar code.) When either p1 or p2 specifies 0, it indicates that that
setting value is variable.
Setting the bar code size using this command specifies the general size of the bar code. The size will automati-
cally be corrected according to the other settings.
ESC GS x S 1 n
ESC GS x D nL nH d1 d2 … dk
Standard mode
If there is unprinted data in the line buffer, after that data is printed, and this command
is executed, the bar code is printed. Therefore, it is not possible to print with other data
(characters, bit images, or bar codes) existing in the same line.
Page mode
This command only expands bar code data to the image buffer.
If the following errors occur, “Error” information is sent from the printer.
• When an error is generated when generating a bar code, due to the combination of the bar
code setting commands.
• When the bar code data that is generated exceeds the printable size of PDF417.
• When the print data exceeds the currently set print region
Transmission format: <ESC> <GS> “x” “I” n
n
0 No Error
1 Error
This command is for models equipped with an expansion control function for page control of line unit commands,
by controlling the image buffer by page.
ESC GS g 0 m n
ESC GS g 1 m n
n Operating Mode
0 Print starting timer = initial value
1 to 255 Print starting timer n x 10 msec.
Cell
Alignment Pattern
<ESC> <GS> “y” “S” “1” Sets the error correction level
QR codes can be read even if a part of the data is corrupted, by using error correction. Raising this level in-
creases the size of the bar code because there is an increase in preparatory information.
<ESC> <GS> “y” “S” “2” Specifies the size of the cell (One four squared region configuring the QR code)
The QR code is formed into a square of an equivalent size in the vertical and horizontal directions, but the size
of the bar code image that is generated depends on the cell size setting. See Appendix 9 for details on the ac-
tual printed size of the QR code.
These settings are individual settings. Therefore, even though there may not be any particular problem in each
of them, there is the potential for an error to be generated. (See the descriptions below.) In such cases, the bar
code will not be generated and the (4) Print command (<ESC> <GS> “y” “P”) is ignored. With the (5) Get bar
code expansion information command, an error code is returned.
• Error is generated when generating a bar code by the combination of each setting command.
• Print data exceeds the currently set print region
Therefore, it is recommended to use (5) Get bar code expansion information command (<ESC> <GS> “y” “I”) as
a means for checking for these errors prior to printing.
ESC GS y S 1 n
ESC GS y S 2 n
ESC GS y I
ESC GS h 0 k m n
Usage example
1) 180˚ inversion function enabled: <ESC> <GS> h 0 k m n (k=0x01,m=0x00,n=0x00)
2) Print data transmission: Print data (Print length should be within image buffer length)
3) Trigger command transmission: <GS> V m n (Cutter command is 180˚ inversion trigger.)
ESC GS c h v
• Reduced printing in the horizontal direction compresses the entire horizontal direction 67%.
• Reduced printing in the vertical direction prints in Double Resolution mode, so this is invalid
in low peak current mode and powered USB I/F.
• Disabled in Page Mode.
• Reduced printing of barcodes can be enabled or disabled by memory switch setting.
However, cares must be taken as the print position other than the barcode is affected if
reduced printing is disabled.
ESC GS ) B pL pH fn [parameter]
Before setting the text search After setting the text search
Name Set the number of times to run the text search macro
Code ASCII ESC GS ) B pL pH fn m
Hex. 1B 1D 29 42 pL pH fn m
Decimal 27 29 41 66 pL pH fn m
Defined Region pL = 2, pH = 0
fn = 49
m=0, 1
Initial Value Depends on setting registered in the non-volatile memory (At the time of shipment: m = 0)
Function Sets the number of times to run the text search macro when the strings match.
m Set
0 Run one time
1 Run for the number of times strings match
No setting when the parameter is not a valid value.
This setting is applied to printer operations when this command is processed.
This setting is registered to non-volatile memory by the ESC GS ) B <Function 80) command.
This command is ignored when the text search macro is running.
Disabled in Page Mode.
Name Set to print the string that matches in the text search
Code ASCII ESC GS ) B pL pH fn m
Hex. 1B 1D 29 42 pL pH fn m
Decimal 27 29 41 66 pL pH fn m
Defined Region pL = 2, pH = 0
fn = 50
m=0, 1, 2
Initial Value Depends on setting registered in the non-volatile memory (At the time of shipment: m = 0)
Function Sets the string print operation when strings match.
m Set
0 Prints the string
1 Does not print the string
2 Switches the string with a blank character
No setting when the parameter is not a valid value.
This setting is applied to printer operations when this command is processed.
This setting is registered to non-volatile memory by the ESC GS ) B <Function 80) command.
This command is ignored when the text search macro is running.
Disabled in Page Mode.
Defined Region pL = 2, pH = 0
fn = 81
m=0
Initial Value ---
Function Initialize text search settings and definitions
The following shows the contents to initialize.
Function No Contents Initial Value
Function 48 Enable and disables text search Invalid
Function 49 Set the number of times to run the text search macro 1 time
Function 50 Set to print the string that matches in the text search Prints the string
Function 64 Define the text search string No text search string definition
Function 65 Define the text search macro No text search macro definition
Function 66 Define the timing of the text search macro execution soon after cutting
This setting is applied to printer operations when this command is processed.
This setting is registered to non-volatile memory by the ESC GS ) B <Function 80) command.
This command is ignored when the text search macro is running.
Disabled in Page Mode.
ESC GS ) I pL pH fn [parameter]
Exemple: When “Simplified Chinese GB18030" and "Traditional Chinese BIG5 " are installed in the printer:
ESC GS ) I pL pH fn k1 k2 CHINA GB18030 , TAIWAN BIG-5 , LF NUL
(k1 = 29, k2 =0)
When the multibyte font is not installed in the printer, the following data is sent:
ESC GS ) I pL pH fn k1 k2 LF NUL
(k1 = 2, k2 =0)
ESC GS ) L pL pH fn [parameter]
Details • The CRC operation is used only for the logo graphics data currently stored in the printer.
• The key codes, size and color information are excluded from the CRC operation.
• When the printer receives the command, it calculates the CRC and sends it.
• If a logo containing multiple colors is stored, the logo data of the “n+1” color is added after the logo data of
the “n-th” color and calculated. •
• The CRC operation is as follows.
16 15 2 0
CRC16: P olynomial = x +x +x +x
Initial value: FFFF (Hex)
Shift direction: Right
Output XOR: FFFF (Hex)
* See the sample codes for concrete implementation examples.
• The CRC of only the stored logo can be sent by the “GS ( L” or “GS 8 L” command.
• When logo data is stored, the CRC of the received data is operated.
• If the logo data exceeds the horizontal print area, the CRC is operated based on the data that is received
when logo data is stored.
• A CRC of the logo, stored by the “FS q” command, cannot be sent.
Calculate CRC of
key code specified
Send CRC
int i,j;
result = 0xFFFF;
result ^= data[i];
result >>= 1;
result ^= CRC16;
else
result >>= 1;
return result;
Notes • If a logo is registered by the “FS q” command, the logo data already existing is erased.
• If a logo is registered by the “GS (L” or “GS 8 L” command, the logo that has been registered by the “FS q”
command is erased and the new one is registered.
Reference GS ( L, GS 8 L
Defined Region pL = 3, pH = 0
fn = 49
32 ≤ kc1 ≤ 126, 32 ≤ kc2 ≤ 126
Function Send the individual used capacity of NV graphics already stored in the printer.
Details • The used capacity is the total number of bytes of the used region.
• The management data (14 bytes) are also included in the use capacity.
• The only NV graphics memory capacity, stored by the “GS ( L” or “GS 8 L” command, cannot be sent.
• The NV graphics memory capacity, stored by the “FS q” command, cannot be sent.
ESC GS s O z a n c1 c2 d1 d2 t1 t2
Defined Region Z = 0
a = 0, 1, 48, 49
1 ≤ n ≤ 255
1 ≤ c1 + c2 x 256 ≤ 65535
0 ≤ d1 + d2 x 256 ≤ 65535
0 ≤ t1 + t2 x 256 ≤ 65535
Initial Value ---
Function Plays back the specified NV audio.
a specifies the area where the audio data to playback is stored.
a Audio data storage area
1, 49 User area
n specifies the audio number to playback.
(c1 + c2 x 256) specifies the number of times.
(d1 + d2 x 256) specifies the delay time.
Delay time is the time from starting to process this command to the start of audio playback
(in seconds).
(t1 + t2 x 256) specifies the interval time.
Interval time is the time from the end of the previous audio to the start of the next audio (in
seconds).
Time
If audio is already being played back, playback after waiting for the end of the audio.
If the printer is printing, playback after printing is ended.
When the parameter has an invalid value, there is no audio playback.
If the audio data of the specified audio number has not been registered, there will be no
playback.
Audio will stop by inputting the FEED switch while there is audio playback using this
command.
Audio will stop using the NV audio stop command (ESC GS s P) while there is audio
playback using this command.
ESC GS s R z n1 n2 n3 d1 … dn
Defined Region Z = 0
1 ≤ (n = n1 + n2 x 256 + n3 * 65536) ≤ 16,777,215
0 ≤ d ≤ 255
Initial Value ---
Function Does not register audio data in the non-volatile memory and plays back one time while
receiving data.
(k1 + k2 x 256 + k3 x 65536) specifies the number of bytes of the audio data.
d is audio data in sampling frequency of 11.025 kHz, ADPCM format in quantization bit rate
of 4 bits.
When data transfer from the host is slow (theoretical value: 44,100 bps or lower), playback is
intermittent.
Defined Region Z = 0
0 ≤ n ≤ 255
0 ≤ [ k1 + k2 x 256 + k3 x 65536 ] 1 + … + [ k1 + k2 x 256 + k3 x 65536 ] n ≤ 1701888
0 ≤ d ≤ 255
I
nitial Value English (See table below)
n English Audio
1 Welcome !
2 Thank you !
3 Order coming in.
4 Drink Order coming in.
5 Food Order coming in.
6 Order has been Cancelled.
7 New order coming in.
8 Order to go coming in.
9 Print finished.
10 Please take your receipt.
11 Please come again.
12 Please give your receipt to the operator.
13 Now printing, please wait a moment.
14 Please do not pull the paper until printing finishes.
15 Thank you for visiting.
16 Please take the number ticket.
17 Please have a seat and wait a moment.
18 Thank you for your purchase.
19 Please wait here, we will guide you shortly.
Function All data already registered in the user area is erased when starting processing of this
command.
Registers n audio data to the user area. (However, when n = 0, nothing is registered.)
Audio numbers are set in ascending order in the order they are registered from user area
audio number 1 to n.
(k1 + k2 x 256 + k3 x 65536) specifies the number of bytes of the audio data.
d is audio data in sampling frequency of 11.025 kHz, monoaural ADPCM format in
quantization bit rate of 4 bits.
The size of the registration region is 1,662 KB (approx. 308 seconds).
This command should be specified a the top of the line. However, if there is unprinted data in
the line buffer, this command is executed after printing that data.
When the first parameter is determined to be free of error, the printer starts processing this
command.
If the defined area specified by the parameter is not empty, or if there is an error in the
parameter specification, register processing is aborted.
Defined Region a = 1, 49
0 ≤ t1 + t2 x 256 ≤ 65535
Initial Value ---
Function Lump-playback of NV audio registered in the non-volatile memory from #1 in ascending
order.
a specifies the audio data registration area.
a Audio data storage area
1, 49 User area
(t1 + t2 x 256) specifies how many seconds from the top to playback each audio data.
However, when (t1 + t2 x 256) = 0, plays back each audio data completely without specifying
the number of seconds.
Insert 1 second of interval time between the previous audio and the next audio.
Audio will stop by inputting the FEED switch while this command is running.
Audio will stop using the NV audio stop command (ESC GS s P) while running this
command.
(1)This is a line printer. Printing is always accompanied by a paper feed. Therefore, if a value that is smaller
than the print data is set for one line of a line feed, paper will be fed more than the set amount to print that
data.
For example, if one line feed is set to 10 dots (10/180 inches), a paper feed of only 10 dots will occur, but if
printing a bit image, paper will be fed 24 dots.
(2)When the printer enters a data wait state for data from the host, printing and a paper feed is temporarily
stopped, but when starting printing with data input, the paper feed can occur between 1 to 3 dots when
starting printing. This particularly affects printing of bit images.
(3)The auto-cutter is recommended to after printing more than ten lines or after a paper feed. (If the cut paper is
too small, it may not be easy to discharge, or can cause a paper jam.)
Error TSP600 TSP700 TSP800 TSP900 TUP1000 TSP700II TSP650 TSP500 TSP800II FVP10 BSC10 TSP043 TSP650II
Recoverable
Cover Open Error ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
Error
Paper out error ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
Near-end error ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
Auto-
Heat high
recovery ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
temperature error
Error
Auto-cutter error ○ x x x x x x x x x x x x
Non-
Power voltage
recoverable ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
error
Error
Thermistor error ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
SRAM error ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
FLASH error ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
EEPROM error x x ○ ○ ○ ○ ○ ○ ○ ○ x ○ x
Auto-cutter error x ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
Paper jam at
x x x ○ x x x ○ x x x x x
presenter
1. Printer Status (n = 1)
Contents Status Compatibility Per Model
“0” “1” TSP600 TSP700 TSP800 TUP900 TSP1000 TSP700II TSP650 TSP500 TSO800II FVP10 BSC10 TSP043 TSP650II
7 Fixed at “0” - - - - - - - - - - - - -
6 Undefined (“0”) - - - - - - - - - - - - -
5 Undefined (“0”) - - - - - - - - - - - - -
4 Fixed at “1” - - - - - - - - - - - - -
ON LINE/OFFLINE
3 ONLINE OFFLINE ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
Status
Drawer kick
2 “L” “H” ○ ○ ○ x x ○ ○ ○ ○ ○ ○ ○ ○
connector pin #3
Presenter Cover Closed Open x x x x x x x x x x x x x
1 Fixed at “1” - - - - - - - - - - - - -
0 Fixed at “0” - - - - - - - - - - - - -
Bit-2: Drawer kick connector #3 pin status is allocated for models not equipped with a presenter; presenter cover status is allocated to those models equipped with a
presenter. TUP900 is provided with a presenter, but this bit is invalid because it does not have a presenter cover.
6-3
7 Fixed at “0” - - - - - - - - - - - - -
No
6 Error
error
Error ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
4 Fixed at “1” - - - - - - - - - - - - -
No SW SW
3 Paper SW input
Input Input
○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
1 Fixed at “1” - - - - - - - - - - - - -
0 Fixed at “0” - - - - - - - - - - - - -
0 Fixed at “0” - - - - - - - - - - - - -
Bit-2: Black mark error status is allocated for models not equipped with a presenter; mechanical error status is allocated to those models equipped with a presenter.
Black mark error status is set only when the black mark is enabled.
A mechanical error on models provided with a presenter represents a paper jam in the presenter and black mark errors.
7 Fixed at “0” - - - - - - - - - - - - -
Paper out Has Paper
6 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
sensor paper Out
Paper out Has Paper
5 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
sensor paper Out
4 Fixed at “1” - - - - - - - - - - - - -
Near-end Has Paper
3 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
Sensor paper Out
Near-end Has Paper
2 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
Sensor paper Out
Black mark White Black
○ ○ ○ x x ○ - x ○ x x x -
sensor status detection detection
1 Fixed at “1” - - - - - - - - - - - - -
0 Fixed at “0” - - - - - - - - - - - - -
Bit-2: This bit functions as the status indicating the near end sensor when the black mark is disabled. When using the black mark, it functions as the status to
indicate the black mark sensor status.
However, on TUP900/TSP1000/TUP500/FVP10, it functions as the status to indicate the near end sensor even when using black marks.
7 Fixed at “0” - - - - - - - - - - - - -
Undefined
6
(“0”)
- - - - - - - - - - - - -
Undefined
5
(“0”)
- - - - - - - - - - - - -
4 Fixed at “1” - - - - - - - - - - - - -
Presenter Has Paper Out
3
paper status paper (Recovered) x x x ○ x x x ○ x x x x x
Undefined
2
(“0”)
- - - - - - - - - - - - -
1 Fixed at “1” - - - - - - - - - - - - -
0 Fixed at “0” - - - - - - - - - - - - -
6-5
Paper SW No SW SW
6 ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
input Input Input
5 Cover Status Closed Open ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
4 Fixed at “1” - - - - - - - - - - - - -
ONLINE/
3 OFFLINE ONLINE OFFLINE ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
Status
Drawer kick
2 connector “L” “H” ○ ○ ○ ○ x x ○ ○ x ○ ○ ○ ○ ○
pin #3
Presenter
Closed Open ○ x x x x x x x x x x x x x
Cover
1 Undefined (“0”) - - - - - - - - - - - - -
0 Undefined (“0”) - - - - - - - - - - - - -
Bit-2: Drawer kick connector #3 pin status is allocated for models not equipped with a presenter; presenter cover status is allocated to those models equipped with a
presenter. TUP900 and TUP500 are provided with a present er, but this bit is invalid because it does not have a presenter cover.
Bit-2: Black mark error status is allocated for models not equipped with a presenter; mechanical error status is allocated to those models equipped with a presenter.
Black mark error status is set only when the black mark is enabled.
6-7
A TUP900/TUP500 mechanical error represents a paper jam in the presenter and black mark errors.
ESC/POS Command Specification 6-7
ESC/POS Command Specifications
Undefined
5 - - - - - - - - - - - - -
(“0”)
4 Fixed at “0” - - - - - - - - - - - - -
Undefined
3 - - - - - - - - - - Fixed at “1” -
(“0”)
Undefined
2 - - - - - - - - - - Fixed at “1” -
(“0”)
Stack sensor
Has paper Paper Out ○ x x x x ○ x x x x x Fixed at “1” x
paper status
Undefined
0 - - - - - - - - - - Fixed at “1” -
(“0”)
Bit-6: This bit is set only when black marks are effective.
6-8
With a wireless LAN I/F, the printer status sending specifications are Star Original Expanded Status Specifications
(*2).
See the table below for printer status sending specifications for Ethernet I/F.
(1) Printer Status Sending Specifications Automatic Status Sending Destination Specifications
Spec. Star Original Expanded ASB Specifications (*2) Distributes to All Hosts Connected to the Communication Port
Ethernet I/F Used Printer Status Sending Automatic Status Sending Destination
Specifications Specifications
IFBD-HE05/06 Star Original Expanded Status Distributes to All Hosts Connected to
(2) F/W Version (Main) Ver. Specifications
Spec. 1.0.1 (*2) the Communication Port
IFBD-HE05/06 ESC/POS Standard Status Sends Only to Host for Print Session
F/W Version (Main) Ver. Compatibility Specifications
1.1.0 (*1)
The following will describe printer status transmission specifications for using an Ethernet interface and a wireless
LAN interface.
See the Star Line Mode Command Specifications foe details on Star’s ASB specifications.
1) Transmission Format
<Length Details>
• 2 byte value indicating status data byte count (0x0000 ≤ Length ≤ 0x0200)
• When the status data is 10 bytes: Length = 0x000a
• Apply Length = 0x0000 to only transmit STAR ASB.
• When STAR ASB Second Byte B-7 is applied with Length, set to Bit-7 = 1
Status analysis detects the total byte count of ASB using the first byte of STAR ASB, and detects whether Length
is appended using the second byte bit-7 of STAR ASB. It is also possible to analyze the status by getting the byte
count of subsequent byte counts.
STAR
Status Cause Length Status Data
ASB
Status Type Separated Data Status Printer Separated
First/
Third/Fourth
Second Character Character
Bytes Type Length Status
Bytes 1 2
n Parameter
Cause
ESC/POS ASB STAR
0x000B “50” Omitted “:” “B” 0x0004 Status “;”
Automatic Status*1 ASB
DLE EOT n STAR
0x000A “51” “01”≤n≤”05” “:” “B” 0x0001 Status “;”
Printer Status Request ASB
GS I n STAR “01”≤n≤”03”
0x000A “61” “:” “B” 0x0001 Status “;”
Printer ID Request ASB “31”≤n≤”33”
GS r n STAR “01”≤n≤”02”
0x0008 “62” “:” “B” 0x0001 Status “;”
Printer Status Request ASB “31”≤n≤”32”
ESC SYN 3 n STAR “00“≤n≤”01”
0x0011 “13” “:” “B” 0x0008 Status “;”
Presenter Counter Request ASB “30”≤n≤”31”
ESC GS x I
ASB 0x000C “16” Omitted “:” “B” 0x0005 Status “;”
Request PDF417 Information
ESC GS y I
ASB 0x000D “19” Omitted “:” “B” 0x0006 Status “;”
Request QR Code Information
ESC GS ETX n1 n2
ASB 0x000D “20” Omitted “:” “B” 0x0008 Status “;”
Print end counter request
ESC u n
ASB 0x000D “A0” "01" “:” “B” 0x0001 Status “;”
Status request
ESC v
ASB 0x000D “A0” Omitted “:” “B” 0x0001 Status “;”
Status request
Blank code pages are code tables that are empty from character code 80H to FFH. They can be specified using
the command below.
• ESC t n (n = 255)
• ESC GS t n (n=255)
Also, it is possible to write data to the blank code page area using the command below.
• ESC GS = . . . . .
d3 • • • • d4 0 0 0 0
d5 • • • • • • d6 • • 0 0 0 0
d7 • • d8 • • 0 0 0 0
d9 • • d10 • • 0 0 0 0
d11 • • d12 • • 0 0 0 0
d13 • • d14 • • 0 0 0 0
d15 d16 • • 0 0 0 0
d17 d18 • • 0 0 0 0
d19 d20 • • 0 0 0 0
d21 • d22 • 0 0 0 0
d23 • • d24 0 0 0 0
d25 • • d26 0 0 0 0
d27 • • d28 0 0 0 0
d29 • • • d30 0 0 0 0
d31 • • • d32 0 0 0 0
d33 • • d34 0 0 0 0
d35 • • d36 0 0 0 0
d37 • • • d38 0 0 0 0
d39 • • • • • • • d40 • • • 0 0 0 0
d41 • • • • • • • d42 • • • 0 0 0 0
d43 d44 0 0 0 0
d45 d46 0 0 0 0
d47 d48 0 0 0 0
d3 • • • d4 0 0 0 0 0 0 0
d5 • • • • • d6 0 0 0 0 0 0 0
d7 • • • • • d8 0 0 0 0 0 0 0
d9 • • • • d10 0 0 0 0 0 0 0
d11 • • • • d12 0 0 0 0 0 0 0
d13 • • • • d14 0 0 0 0 0 0 0
d15 • • d16 0 0 0 0 0 0 0
d17 • • d18 0 0 0 0 0 0 0
d19 • • d20 0 0 0 0 0 0 0
d21 • • • d22 0 0 0 0 0 0 0
d23 • • • • d24 0 0 0 0 0 0 0
d25 • • • d26 0 0 0 0 0 0 0
d27 • • • d28 0 0 0 0 0 0 0
d29 • • • d30 0 0 0 0 0 0 0
d31 • • d32 0 0 0 0 0 0 0
d33 • • d34 0 0 0 0 0 0 0
d35 • • • d36 0 0 0 0 0 0 0
d37 • • • d38 0 0 0 0 0 0 0
d39 • • • • • • • d40 0 0 0 0 0 0 0
d41 • • • • • • • d42 0 0 0 0 0 0 0
d43 d44 0 0 0 0 0 0 0
d45 d46 0 0 0 0 0 0 0
d47 d48 0 0 0 0 0 0 0
EPSON has models that have 180 DPI and 203 DPI print heads. STAR’s print head is 203 DPI. Therefore, when
targeting models with the EPSON 180 DPI print head, it is necessary to correct the line spacing that will be caused
by the difference in the head’s print density. Correction is done using the memory switches (Print dot count: ESC/
POS Compatible Mode/Max). Setting the memory switches to ESC/POS compatible mode artificially makes the
number of dot counts the same as an EPSON printer. However, if the target model has a 203 DPI print head, cor-
rection is unnecessary so memory switches for print dot settings are not equipped.
1. TSP600/TSP700
2 TSP800
3 TUP900
Print Region Initial Values
Print Region Setting Initial Value
(Memory Switch Setting) nL nH Print region
104mm 64 3 104mm
80mm 128 2 80mm
72mm 64 2 72mm
56mm 192 1 56mm
Basic calculated pitch initial value: X=1/203 (inch), Y=1/203 (inch)
5 TSP700II
Initial Value of Print Region
Print Region Setting Print Position Setting Initial Value
(Memory Switch
(Memory Switch Setting) nL nH Print region
Setting)
ESC/POS Compatible Mode 56 2 71mm
80mm
Max. 128 2 80mm
ESC/POS Compatible Mode 0 2 64mm
72mm
Max. 64 2 72mm
ESC/POS Compatible Mode 120 1 47mm
52.5mm
Max. 164 1 52.5mm
ESC/POS Compatible Mode 104 1 45mm
50.8mm
Max. 150 1 50.8mm
ESC/POS Compatible Mode 112 1 46mm
52mm
Max. 160 1 52mm
Basic calculation pitch initial value: X=1/180(inch), Y=1/360(inch)
6 TSP650/BSC10/TSP043/TSP650II
Initial Value of Print Region
Print Region Setting Print Position Setting Initial Value
(Memory Switch
(Memory Switch Setting) nL nH Print region
Setting)
ESC/POS Compatible Mode 0 2 64mm
72mm
Max. 64 2 72mm
ESC/POS Compatible Mode 104 1 45mm
50.8mm
Max. 150 1 50.8mm
Basic calculation pitch initial value: X=1/180(inch), Y=1/360(inch)
7 TUP500
Initial value of the print region
Print Region Setting Initial Value
(Memory Switch Setting) nL nH Print Region
80 mm 128 2 80 mm
72 mm 64 2 72 mm
52 mm 160 1 52 mm
• FVP10
Print region initial value
Printing Region Setting Printing Position Setting Initial Value
(Memory Switch Setting) (Memory Switch Setting) nL nH Printing Region
72mm ESC/POS Compatibility 0 2 64mm
Mode
Max. 64 2 72mm
52.5mm ESC/POS Compatibility 120 1 47mm
Mode
Max. 164 1 52.5mm
50.8mm ESC/POS Compatibility 104 1 45mm
Mode
Max. 150 1 50.8mm
52mm ESC/POS Compatibility 112 1 46mm
Mode
Max. 160 1 52mm
Basic Calculated Pitch Initial Value: X = 1/180 (inch), Y = 1/360 (inch)
• TSP600/TSP700
• TSP800
• TUP900
• TSP1000
• TSP650/BSC10/TSP043/TSP650II
• TUP500
• FVP10
EPSON has models that have 180 DPI and 203 DPI print heads. STAR’s print head is 203 DPI. Therefore, when
targeting models with the EPSON 180 DPI print head, it is necessary to correct the line spacing that will be caused
by the difference in the head’s print density. Correction is done using the memory switches (Print dot count: ESC/
POS Compatible Mode/Max). Setting the memory switches to ESC/POS compatible mode artificially makes the
number of dot counts the same as an EPSON printer. The page mode printing region initial value (= maximum
value) changes according to the basic calculated pitch correction when the memory switch print dot count in page
mode is set to ESC/POS Compatible mode. However, if the target model has a 203 DPI print head, correction is
unnecessary so memory switches for print dot settings are not equipped.
The following illustrates the basic calculated pitch correction of the print region in page mode on TSP700.
<Basic calculated pitch correction conceptual view; TSP700; Print dots = ESC/POS compatible mode; Print region
setting is 72 mm>
(0,0)
117.3mm
938 dot
STAR Printer
(0,0)
203 DPI
Correction
117.3mm
576 dot
( 576,1876 )
Print Head 180DPI
(0,0)
180 DPI
Correction
STAR Printer
103.9mm
72mm
831 dot
64mm
512 dot
( 511,1661 )
Page mode print region initial value (dxL, dxH, dyL, dyH) <Print Dot count: ESC/POS compatible mode>
Basic Initial Value (= Maximum Value)
Print region
Calculated Printable Region Width
Setting
Pitch
(Memory
Correction dxL dxH dyL dyH
Switch X Dir. Y Dir.
(DIPSW
Setting)
Setting)
203DPI 128 2 84 7 80mm 117.3mm
80mm
180DPI 56 2 126 6 71mm 103.9mm
203DPI 64 2 84 7 72mm 117.3mm
72mm
180DPI 0 2 126 6 64mm 103.9mm
203DPI 164 1 84 7 52.5mm 117.3mm
52.5mm
180DPI 120 1 126 6 47mm 103.9mm
203DPI 150 1 84 7 50.8mm 117.3mm
50.8mm
180DPI 104 1 126 6 45mm 103.9mm
Basic calculated pitch initial value: X=1/180 (inch), Y=1/360 (inch)
Page mode print region initial value (dxL, dxH, dyL, dyH) <Print Dot count: Maximum>
Basic Initial Value (= Maximum Value)
Print region
Calculated Printable Region Width
Setting
Pitch
(Memory
Correction dxL dxH dyL dyH
Switch X Dir. Y Dir.
(DIPSW
Setting)
Setting)
203/180
80mm 128 2 84 7 80mm 117.3mm
DPI
203/180
72mm 64 2 84 7 72mm 117.3mm
DPI
203/180
52.5mm 164 1 8 7 52.5mm 117.3mm
DPI
203/180
50.8mm 150 1 84 7 50.8mm 117.3mm
DPI
Basic calculated pitch initial value: X=1/180 (inch), Y=1/360 (inch)
• TSP800
Page mode print region initial value (dxL, dxH, dyL, dyH)
Basic Initial Value (= Maximum Value)
Print region
Calculated Printable Region Width
Setting
Pitch
(Memory
Correction dxL dxH dyL dyH
Switch X Dir. Y Dir.
(DIPSW
Setting)
Setting)
203/180
104mm 64 3 128 6 104mm 104mm
DPI
Basic calculated pitch initial value: X=1/180 (inch), Y=1/360 (inch)
Page mode print region initial value (dxL, dxH, dyL, dyH)
Basic Initial Value (= Maximum Value)
Print region
Calculated Printable Region Width
Setting
Pitch
(Memory
Correction dxL dxH dyL dyH
Switch X Dir. Y Dir.
(DIPSW
Setting)
Setting)
203/180
104mm 64 3 96 9 104mm 300mm
DPI
203/180
80mm 128 2 96 9 80mm 300mm
DPI
203/180
72mm 64 2 96 9 72mm 300mm
DPI
203/180
56mm 192 1 96 9 56mm 300mm
DPI
Basic calculated pitch initial value: X=1/203 (inch), Y=1/203 (inch)
• TSP1000
Page mode print region initial value (dxL, dxH, dyL, dyH)
Basic Initial Value (= Maximum Value)
Print region
Calculated Printable Region Width
Setting
Pitch
(Memory
Correction dxL dxH dyL dyH
Switch X Dir. Y Dir.
(DIPSW
Setting)
Setting)
80mm -- 128 2 96 9 80mm 300mm
72mm -- 64 2 96 9 72mm 300mm
55mm -- 184 1 96 9 55mm 300mm
52mm -- 160 1 96 9 52mm 300mm
47mm -- 120 1 96 9 47mm 300mm
42mm -- 80 1 96 9 42mm 300mm
Basic calculated pitch initial value: X=1/203 (inch), Y=1/203 (inch)
Page mode print region initial value (dxL, dxH, dyL, dyH) <Print positions: ESC/POS compatible mode>
Basic Initial Value (= Maximum Value) Maximum Value
Print region
Calculated Printable Region
Setting Printable Region Width
Pitch Width
(Memory
Correction dxL dxH dyL dyH
Switch
(DIPSW X Dir. Y Dir. X Dir. Y Dir.
Setting)
Setting)
203DPI 128 2 84 7 80mm 117.3mm 80mm 300mm
80mm
180DPI 56 2 126 6 71mm 103.9mm 80mm 300mm
203DPI 64 2 84 7 72mm 117.3mm 72mm 300mm
72mm
180DPI 0 2 126 6 64mm 103.9mm 72mm 300mm
203DPI 164 1 84 7 52.5mm 117.3mm 52.5mm 300mm
52.5mm
180DPI 120 1 126 6 47mm 103.9mm 52.5mm 300mm
203DPI 150 1 84 7 50.8mm 117.3mm 50.8mm 300mm
50.8mm
180DPI 104 1 126 6 45mm 103.9mm 50.8mm 300mm
203DPI 160 1 84 7 52mm 117.3mm 52mm 300mm
52mm
180DPI 112 1 126 6 46mm 103.9mm 52mm 300mm
Basic calculated pitch initial value: X=1/180 (inch), Y=1/360 (inch)
Page mode print region initial value (dxL, dxH, dyL, dyH) <Print positions: Maximum>
Basic Initial Value (= Maximum Value) Maximum Value
Print region
Calculated Printable Region
Setting Printable Region Width
Pitch Width
(Memory
Correction dxL dxH dyL dyH
Switch
(DIPSW X Dir. Y Dir. X Dir. Y Dir.
Setting)
Setting)
80mm 203/180DPI 128 2 84 7 80mm 117.3mm 80mm 300mm
72mm 203/180DPI 64 2 84 7 72mm 117.3mm 72mm 300mm
52.5mm 203/180DPI 164 1 8 7 52.5mm 117.3mm 52.5mm 300mm
50.8mm 203/180DPI 150 1 84 7 50.8mm 117.3mm 50.8mm 300mm
52mm 203/180DPI 160 1 84 7 52mm 117.3mm 52mm 300mm
Basic calculated pitch initial value: X=1/180 (inch), Y=1/360 (inch)
Page mode print region initial value (dxL, dxH, dyL, dyH) <Print positions: ESC/POS compatible mode>
Basic Initial Value (= Maximum Value) Maximum Value
Print region
Calculated Printable Region
Setting Printable Region Width
Pitch Width
(Memory
Correction dxL dxH dyL dyH
Switch
(DIPSW X Dir. Y Dir. X Dir. Y Dir.
Setting)
Setting)
203DPI 64 2 84 7 72mm 117.3mm 72mm 250mm
72mm
180DPI 0 2 126 6 64mm 103.9mm 64mm 250mm
203DPI 150 1 84 7 50.8mm 117.3mm 50.8mm 250mm
50.8mm
180DPI 104 1 126 6 45mm 103.9mm 50.8mm 250mm
Basic calculated pitch initial value: X=1/180 (inch), Y=1/360 (inch)
Page mode print region initial value (dxL, dxH, dyL, dyH) <Print positions: Maximum>
Basic Initial Value (= Maximum Value) Maximum Value
Print region
Calculated Printable Region
Setting Printable Region Width
Pitch Width
(Memory
Correction dxL dxH dyL dyH
Switch
(DIPSW X Dir. Y Dir. X Dir. Y Dir.
Setting)
Setting)
72mm 203/180DPI 64 2 84 7 72mm 117.3mm 72mm 250mm
50.8mm 203/180DPI 150 1 84 7 50.8mm 117.3mm 50.8mm 250mm
Basic calculated pitch initial value: X=1/180 (inch), Y=1/360 (inch)
• TUP500
Page mode print region initial value (dxL, dxH, dyL, dyH)
Basic Initial Value (= Maximum Value)
Print region
Calculated Printable Region Width
Setting
Pitch
(Memory
Correction dxL dxH dyL dyH
Switch X Dir. Y Dir.
(DIPSW
Setting)
Setting)
80 mm -- 128 2 96 9 80 mm 300 mm
72 mm -- 64 2 96 9 72 mm 300 mm
52 mm -- 160 1 96 9 52 mm 300 mm
Basic calculated pitch initial value: X=1/203 (inch), Y=1/203 (inch)
* TUP500 can set the print region in 1 mm units.
• TSP800II
Page mode print region initial value (dxL, dxH, dyL, dyH)
Printing Basic Initial Value (= Max. Value)
Region Calculated dxL dxH dyL dyH Printable Region Width
Setting Pitch Offset
X Dir. Y Dir.
(Memory (Set by DIP
Switch switches)
Setting)
104mm -- 64 3 208 7 104mm 250mm
72mm -- 64 3 208 7 72mm 250mm
Basic Calculated Pitch Initial Value: X = 1/180 (inch), Y = 1/360 (inch)
Page mode print region initial value (dxL, dxH, dyL, dyH) <Print Dot Count: ESC/POS Compatibility Mode>
Printing Basic Initial Value Maximum Value
Region Calculated dxL dxH dyL dyH Printable Region Printable Region
Setting Pitch Offset Width Width
(Memory (Set by DIP X Y X Y
Switch switches) Direction Direction Direction Direction
Setting)
72mm 203 DPI 64 2 84 7 72mm 117.3mm 72mm 300mm
180 DPI 0 2 126 6 64mm 103.9mm 72mm 300mm
52.5mm 203 DPI 164 1 84 7 52.5mm 117.3mm 52.5mm 300mm
180 DPI 120 1 126 6 47mm 103.9mm 52.5mm 300mm
50.8mm 203 DPI 150 1 84 7 50.8mm 117.3mm 50.8mm 300mm
180 DPI 104 1 126 6 45mm 103.9mm 50.8mm 300mm
52mm 203DPI 160 1 84 7 52mm 117.3mm 52mm 300mm
180DPI 112 1 126 6 46mm 103.9mm 52mm 300mm
Basic Calculated Pitch Initial Value: X = 1/180 (inch), Y = 1/360 (inch)
Page mode print region initial value (dxL, dxH, dyL, dyH) <Print Dot Count: Max>
Printing Basic Initial Value Maximum Value
Region Calculated dxL dxH dyL dyH Printable Region Printable Region
Setting Pitch Offset Width Width
(Memory (Set by DIP X Y X Y
Switch switches) Direction Direction Direction Direction
Setting)
72mm 203/180 DPI 64 2 84 7 72mm 117.3mm 72mm 300mm
52.5mm 203/180 DPI 164 1 8 7 52.5mm 117.3mm 52.5mm 300mm
50.8mm 203/180 DPI 150 1 84 7 50.8mm 117.3mm 50.8mm 300mm
52mm 203/180 DPI 160 1 84 7 52mm 117.3mm 52mm 300mm
Basic Calculated Pitch Initial Value: X = 1/180 (inch), Y = 1/360 (inch)
• BSC10/TSP043
Page mode print region initial value (dxL, dxH, dyL, dyH) <Print positions: ESC/POS compatible mode>
Basic Initial Value (= Maximum Value) Maximum Value
Print region
Calculated Printable Region
Setting Printable Region Width
Pitch Width
(Memory
Correction dxL dxH dyL dyH
Switch
(DIPSW X Dir. Y Dir. X Dir. Y Dir.
Setting)
Setting)
203DPI 64 2 84 7 72mm 117.3mm 72mm 300mm
72mm
180DPI 0 2 126 6 64mm 103.9mm 64mm 300mm
203DPI 150 1 84 7 50.8mm 117.3mm 50.8mm 300mm
50.8mm
180DPI 104 1 126 6 45mm 103.9mm 50.8mm 300mm
Basic calculated pitch initial value: X=1/180 (inch), Y=1/360 (inch)
Page mode print region initial value (dxL, dxH, dyL, dyH) <Print positions: Maximum>
Basic Initial Value (= Maximum Value) Maximum Value
Print region
Calculated Printable Region
Setting Printable Region Width
Pitch Width
(Memory
Correction dxL dxH dyL dyH
Switch
(DIPSW X Dir. Y Dir. X Dir. Y Dir.
Setting)
Setting)
72mm 203/180DPI 64 2 84 7 72mm 117.3mm 72mm 300mm
50.8mm 203/180DPI 150 1 84 7 50.8mm 117.3mm 50.8mm 300mm
Basic calculated pitch initial value: X=1/180 (inch), Y=1/360 (inch)
This section provides a detailed description of how to use the page mode.
The following outlines the representative command transmission procedures when using the page mode.
1. Page mode is used by the printer receiving the ESC L (Select page mode) command.
2. The print region is specified by the ESC W (Select print region in page mode) command.
3. The print direction is specified by the ESC T (Select character print direction in page mode) command.
4. Send print data.
5. The printer prints the print data send, using the FF (Print and recover page mode) command.
6. After printing, the printer recovers to standard mode.
With the program in example 1, the print region of the size of 200 x 400 pitch is ensured from the origin point (0,0).
Printing is performed on that first line.
Print Paper
(0,0)
Print 200
Page Mode lesson
TEST 1
The reason for the line break between lesson and Test 1 in the figure above is because it was automatically in-
serted due to the fact that a space could not be inserted after lesson in the horizontal direction in the print range
of 200 x 400 pitch. This line feed amount is a value specified by ESC 3 (Set line feed amount). Also, several print
regions can be set until FF is executed. However, when print regions are overlapped, an OR operation is used for
data that is newly written and data that was already written.
To delete only a portion of the buffered data, use the CAN (Cancel print data in page mode) command. CAN de-
letes all data in the print region currently specified. Therefore, specify the print region that encloses the portion to
delete using ESC W, then use the CAN command to delete that data.
However, be careful because the portion in the specified print region, even if a portion of the characters, will be
deleted.
ESC/POS Command Specifications 6-26
<Example 2: Sample Program using Basic>
100 PRINT #1, CHR$(&H1B); “L”;
110 PRINT #1, CHR$(&H1B); “W”; CHR$(0); CHR$(0); CHR$(0); CHR$(0);
120 PRINT #1, CHR$(200); CHR$(0); CHR$(144); CHR$(1);
130 PRINT #1, CHR$(&H1B); “T”; CHR$(0);
140 PRINT #1, “Page mode lesson 2 CAN command”
150 PRINT #1, CHR$(&HA);
160 PRINT #1, “ABCDEFGHIJKLMNOPQRST1234567890”
170 PRINT #1, CHR$(&HC);
Initially, send ESC L to switch to page mode (line number 100). Next, use ESC W to send eight arguments from xL
to dyH to ensure the print region. In this example, to ensure a printer region of the size of 200 in the x direction and
400 in the y direction from the origin (0,0), send arguments in the order of 0,0,0,0,200,0,144,1. (Line numbers 110
to 120) Also, specify using ESC T. Specify the print direction with 0. (Line number 130) These settings send the
print data “Page mode lesson 2 CAN command” and “ABCDEFGHIJKLMNOPQRST1234567890” (line numbers
140 to 160). By sending FF, (line number 170), the following will be printed.
(0,0)
200 Print Paper
It is possible to delete a portion of the data by adding the next program before sending FF.
170 PRINT #1, CHR$(&H1B); “W”; CHR$(72); CHR$(0); CHR$(120); CHR$(0);
180 PRINT #1, CHR$(36); CHR$(0); CHR$(48); CHR$(0);
190 PRINT #1, CHR$(&H18);
200 PRINT #1, CHR$(&HC);
The character string GHI, in the figure below, is deleted as a result of adding the program above. Also, if deleting
using the CAN command, a space is used without filling the deleted portion.
With CODE 128 bar codes, it is possible to express one character of full ASCII128 character groups or two digits
numbers with one bar code character by combining 103 bar code types and three types of code sets.
• Code Set A Expresses ASCII characters of 00H to 5FH
• Code Set B Expresses ASCII characters of 20H to 7FH
• Code Set C Expresses two-digit numbers with one character
(100 types of 00 to 99)
The following four special characters(SP, “(“, “)”, “*”) operate as shown below.
Special Characters
Characters Hex. Decimal
The first SP after d1 is the data division identifier for identifying (AI).
SP 20 32
The SP is reflected by the HRI but is not included in the encoding data.
“(“ is reflected by the HRI. This is useful when using “(“,”)” to highlight the AI.
( 28 40
It is not included in encoding data.
The first “)“ after d1 is the data division identifier for identifying (AI).
) 29 41
The “)“ is reflected by the HRI but is not included in the encoding data.
The check digit calculated by modulus 10 is inserted automatically at the
* 2A 42 position specified in “*”.
The check digit is reflected in the HRI instead of the “*”.
The available data ranges for each code set (CODE A, CODE B, CODE C) are shown in the following table.
Bar code data for special characters (FNC1, FNC3) or “(“,”)”, “*”, “{“ sends double-byte characters as shown in
the following table.
Sends 13 digits of data except for AI (application identifiers) and check digits.
AI (“01”) is added automatically.
One check digit is added automatically.
When HRI printing is enabled, 18 digits of [“(01)”, (d1...d13), check digit] are printed by the HRI.
When the setting for the bar code height is smaller than [module width x33], the bar code height is printed at the
[module width x33]. (Except for HRI heights)
Sends 13 digits of data except for AI (application identifiers) and check digits.
AI (“01”) is added automatically.
One check digit is added automatically.
When HRI printing is enabled, 18 digits of [“(01)”, (d1...d13), check digit] are printed by the HRI.
When the setting for the bar code height is smaller than [module width x13], the bar code height is printed at the
[module width x13]. (Except for HRI heights)
Sends 13 digits of data except for AI (application identifiers) and check digits.
When HRI printing is enabled, 18 digits of [“(01)”, (d1...d13), check digit] are printed by the HRI.
When the setting for the bar code height is smaller than [module width x10], the bar code height is printed at the
[module width x10]. (Except for HRI heights)
When sending special characters (FNC1) or “(“,”)”, the following double-byte data is sent.
Send data
Data ASCII Hex. Decimal
FNC1 {+1 7B + 31 123 + 49
( {+( 7B + 28 123 + 40
) {+) 7B + 29 123 + 41
When HRI character printing is enabled, special characters are handled in the HRI as shown below.
Control characters (FNC1) are not printed.
Special characters (“(“,”)”) are printed.
Bar code data [“{“ + (“(“, “)”)] is printed as (“(“, “)”).
When the setting for the bar code height is smaller than [module width x34], the bar code height is printed at the
[module width x34]. (Except for HRI heights)
When print startup control is set to page units, printing starts when the image buffer length is full or the following
commands are run.
If the following commands are not received, start printing after a 1-second timeout.
For details on image buffer length and how to set print startup control, see the product specifications manual.
The portion of NV bit image data defined by “GS ( L <fn=67>” or “GS ( 8 <fn=67>” is possible to print by FS p n
command. The following table shows the contrast table of the parameter at that time. <SP> in the table below is
space (20H).
6-10-1 Self-printing
1) When the Bluetooth information is printed at the end of self-printing, the communication with the host device is
terminated.
Therefore, if you continue to transmit data using commands after self-printing, you need to open the virtual COM
port again.
• ESC/POS Black Mark Related Commands (When black marks are effective)
Commands Model Name
TSP700 TSP600 TSP800 TUP900 TSP1000 TSP700II TSP650 TUP500 TSP800II FVP10 BSC10 TSP043 TSP650II
FF ○ ○ ○ ○ ○ ○ x ○ ○ ○ ○ ○ x
DLE ENQ ○ ○ ○ ○ ○ ○ x ○ ○ ○ ○ ○ x
GS FF x x x ○ ○ ○ x ○ ○ ○ ○ ○ x
GS ( F x x x ○ ○ x x x x x x x x
GS ( M n=1 x x x ○ ○ x x x x x x x x
GS ( M n=2 x x x ○ ○ x x x x x x x x
GS ( M n=3 x x x ○ ○ x x x x x x x x
GS < ○ ○ ○ x x ○ x x ○ ○ ○ ○ x
GS V ○ ○ ○ ○ ○ ○ x ○ ○ ○ ○ ○ x
ESC GS c x x x x x x x x x ○ ○ ○ ○
TSP700 TSP600 TSP800 TUP900 TSP1000 TSP700II TSP650 TUP500 TSP800II FVP10 BSC10 TSP043 TSP650II
ESC GS ) L (fn = 48) x x x x x x x x x x ○ ○ ○
ESC GS ) L (fn = 49) x x x x x x x x x x Ver. 1.3 Ver. 1.3 ○
or later or later
ESC GS ) L (fn = 50) x x x x x x x x x x Spec.A Spec.A Spec. B
Ver. 1.3 Ver. 1.3
or later or later
• ESC/POS Black Mark Related Commands (When black marks are effective)
Commands Model Name
TSP700 TSP600 TSP800 TUP900 TSP1000 TSP700II TSP650 TUP500 TSP800II FVP10 BSC10 TSP043 TSP650II
FF ○ ○ ○ ○ ○ ○ x ○ ○ ○ ○ ○ x
DLE ENQ ○ ○ ○ ○ ○ ○ x ○ ○ ○ ○ ○ x
GS FF x x x ○ ○ ○ x ○ ○ ○ ○ ○ x
GS ( F x x x ○ ○ x x x x x x x x
GS ( M n=1 x x x ○ ○ x x x x x x x x
GS ( M n=2 x x x ○ ○ x x x x x x x x
GS ( M n=3 x x x ○ ○ x x x x x x x x
GS < ○ ○ ○ x x ○ x x ○ ○ ○ ○ x
GS V ○ ○ ○ ○ ○ ○ x ○ ○ ○ ○ ○ x
ESC GS s O x x x x x x x x x x x x x
ESC GS s P x x x x x x x x x x x x x
ESC GS s R x x x x x x x x x x x x x
ESC GS s I x x x x x x x x x x x x x
ESC GS s U x x x x x x x x x x x x x
ESC GS s T x x x x x x x x x x x x x
Spec.A,B:
Ver. 1.2
or older
Spec. A Spec. A Spec. A Spec. A Spec. A Spec. A Spec. A Spec. A Spec. A
GS k x x x
Spec. B Spec. B Spec. B Spec. B Spec. B Spec. B Spec. B Spec. B Spec. B Spec.A,B,C
Ver.2.0
or later
GS r x x x ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
GS v 0 x x x ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
GS w x x x ○ ○ ○ ○ ○ ○ ○ ○ ○ ○
• ESC/POS Black Mark Related Commands (When black marks are effective)
Commands Model Name
TSP700 TSP600 TSP800 TUP900 TSP1000 TSP700II TSP650 TUP500 TSP800II FVP10 BSC10 TSP043 TSP650II
FF x x x ○ ○ ○ x x ○ ○ ○ ○ x
DLE ENQ x x x ○ ○ ○ x x ○ ○ ○ ○ x
GS FF x x x ○ ○ ○ x x ○ ○ ○ ○ x
GS ( F x x x ○ ○ x x x x x x x x
GS ( M
x x x ○ ○ x x x x x x x x
n=1
GS ( M
x x x ○ ○ x x x x x x x x
n=2
GS ( M
x x x ○ ○ x x x x x x x x
n=3
GS < x x x x x ○ x x ○ ○ ○ ○ x
GS V x x x ○ ○ ○ x x ○ ○ ○ ○ x
On USB printer class, the following models ignore the status request command.
• TSP700, TSP600, TSP800, TUP900, TSP1000, TSP700II, Ver. 1.0 to Ver.1.4, TSP650 Ver. 1.0 to Ver. 1.4
• Standard Commands
Commands Model Name
TSP700 TSP600 TSP800 TUP900 TSP1000 TSP700II TSP650 TUP500 TSP800II FVP10 BSC10 TSP043 TSP650II
Ver5.0 Ver2.0
HT × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
LF × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
FF × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
CR × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
CAN × × × × × or later × × or later × × × ○
Spec. Spec.
B-2 B-2 Spec.
DLE EOT × × × × × × × × × ×
Ver5.0 Ver2.0 B-2
or later or later
DLE ENQ × × × × × × × × × × × × ×
Ver5.0 Ver2.0
DLE DC4 × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC FF × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC SP × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC ! × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC $ × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC % × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC & × × × × × or later × × or later × × × ○
Spec.A Spec.A
ESC * × × × × × Ver5.0 × × Ver2.0 × × × Spec.B
or later or later
Ver5.0 Ver2.0
ESC - × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC 2 × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC 3 × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC = × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC ? × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC @ × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC D × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC E × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC G × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC J × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC L × × × × × or later × × or later × × × ○
Ver5.0 Ver2.0
ESC M × × × × × or later × × or later × × × ○
Spec.A Spec.A
ESC R × × × × × Ver5.0 × × Ver2.0 × × × Spec.B
or later or later