76 Command Set
76 Command Set
Command
Set
Contents
Contents ..................................................................................................................................2
I. Command List.......................................................................................................................4
II. Control Commands ..............................................................................................................5
1.HT .....................................................................................................................................5
2.LF......................................................................................................................................5
3.CR .....................................................................................................................................5
4.DLE EOT n ...................................................................................................................6
5.ESC SP n ......................................................................................................................8
6.ESC ! n ........................................................................................................................8
7.ESC % n .......................................................................................................................9
8.ESC & y c1 c2 [x1 d1...d(y x x1)]...[xk d1...d(y xxk)] .................................................9
9.ESC * m nL nH d1...dk .......................................................................................... 10
10.ESC - n .................................................................................................................... 12
11.ESC 2.......................................................................................................................... 12
12.ESC 3 n .................................................................................................................... 12
13.ESC <.......................................................................................................................... 13
14.ESC ? n .................................................................................................................... 13
15.ESC @ ........................................................................................................................ 13
16.ESC D n1...nk NUL ................................................................................................ 14
17.ESC E n .................................................................................................................... 14
18.ESC G n ................................................................................................................... 15
19.ESC J n .................................................................................................................... 15
20.ESC K n .................................................................................................................... 16
21.ESC M n .................................................................................................................. 16
22.ESC R n.................................................................................................................... 16
23.ESC U n ................................................................................................................... 17
24.ESC a n .................................................................................................................... 17
25.ESC c 5 n .............................................................................................................. 18
26.ESC d n.................................................................................................................... 18
27.ESC e n .................................................................................................................... 19
28.ESC p m t 1 t 2................................................................................................... 19
29.ESC t n .................................................................................................................... 19
30.ESC { n .................................................................................................................... 20
31.ESC r n(#) ................................................................................................................ 21
32. GS a n .................................................................................................................... 21
33.GS r n ...................................................................................................................... 22
III. Kanji Control Commands .................................................................................................. 23
1.FS ! n......................................................................................................................... 23
2.FS & ............................................................................................................................. 23
3.FS - n ......................................................................................................................... 24
2
4.FS . ............................................................................................................................... 24
5.FS 2 c1 c2 d1...dk ................................................................................................ 24
6.FS ? c1 c2 ............................................................................................................... 25
7.FS S n1 n2 .............................................................................................................. 25
8.FS W n ...................................................................................................................... 26
9.GS ( F pL pH a m nL nH(for BM) ..................................................................... 26
10.GS FF (for BM)......................................................................................................... 27
3
I. Command List
Type Command Name
LF Print and line feed
CR Print and carriage return
HT JMP to the next TAB position
ESC D n Set horizontal tab positions
ESC J n Print and Feed n dots paper
Print
ESC d n Print and Feed n lines
Command
ESC K Print and reverse feed paper
ESC e Print and reverse feed paper n lines
GS ( F Set adjustment values(s)
GS FF Feed marked paper to print starting position
ESC U Select/Cancel print one-way
ESC 2 Select default line spacing
Line spacing
ESC 3 n Set line spacing
Command
ESC a n Select justification
ESC ! n Select print mode(s)
ESC M n Select character font
ESC G n Turn on/off double-strike mode
ESC E n Set or Cancel bold font
ESC SP n Set the space between chars
ESC { n Turn upside-down printing mode on/off
ESC - n Set the underline dots(0,1,2)
ESC % n Select/Cancel user-defined characters
FS & Select Chinese mode
Character FS . Select character mode
Command FS ! Set print mode for Kanji characters
FS - n Turn underline mode on/off for characters
FS ? Cancel user-defined Kanji characters
FS W Turn quadruple-size mode on/off for Kanji characters
FS 2 c1 c2 Define user-defined Kanji characters
FS S n1 n2 Set left and right -side Kanji character spacing
ESC & Define user-defined characters
ESC ? n Cancel user-defined characters
ESC R n Select and internation character set
ESC t n Select character code table
Bit Image
ESC * Select bit-image mode
Command
Init Command ESC @ Initialize printer
DLE EOT n Real-time status transmission
Status
GS r n Transmit status
Command
ESC p m Generate pulse
4
ESC < Print head reset
GS a n Enable/Disable ASB
controls
parameter ESC c 5 n Select/Cancel panel button。
Command
1.HT
[Name] Horizontal tab
[Format] ASCII HT
Hex 09
Decimal 9
[Description] Moves the print position to the next horizontal tab position.
[Notes]
This command is ignored unless the next horizontal tab
position has been set.
If the next horizontal tab position exceeds the printing area,
the printer sets the printing position to [printing area width +
1].
Horizontal tab positions are set with ESC D.
If this command is received when the printing position is at
[printing area width + 1], the printer executes print
buffer-full printing of the current line and horizontal tab
processing from the beginning of the next line.
[Reference] ESC D
2.LF
[Name] Print and line feed
[Format] ASCII LF
Hex 0A
Decimal 10
[Description] Prints the data in the print buffer and feeds one line, based
on the current line spacing.
[Note] This command sets the print position to the beginning of the
line.
[Reference] ESC 2, ESC 3
3.CR
[Name] Print and carriage return
[Format] ASCII CR
5
Hex 0D
Decimal 13
[Description] This command will print the date of the buffer area, but not
feed paper.
[Notes] • This command line feed is ignored with a serial interface
model.
• Sets the print starting position to the beginning of the
line.
[Reference] LF
4.DLE EOT n
[Name] Real-time status transmission
[Format] ASCII DLE EOT n
Hex 10 04 n
Decimal 16 4 n
[Range] 1 n 4
[Description] Transmits the selected printer status specified by n in
real-time, according to the following parameters:
n = 1: Transmit printer status
n = 2: Transmit offline status
n = 3: Transmit error status
n = 4: Transmit paper roll sensor status
[Notes] • When the status is transmitted ,the printer only
transmitted one-byte but not affirm the condition of DSR
signal.
• This command is executed even when the printer is
offline, the receive buffer is full, or there is an error status
with a serial interface model.
• With a parallel interface model, this command cannot be
executed when the printer is busy. This command is
executed even when the printer is offline or in error status,
with a parallel interface model.
• When Auto Status Back (ASB) is enabled using the GS a
command, the status transmitted by the DLE EOT
command and the ASB status must be differentiated.
• If printer not select outside device command ,ESC =
select the command still effective.
• The printer executes this command upon receiving it.
• The status is transmitted whenever the data sequence
<10>H<04>H<n>
(1 n 4) is received.
Example:
In ESC m nL nH d1...dk, d1=<10>H, d2=<04>H,
d3=<01>H
6
• Do not use this command within another command that
consists of 2 or more bytes.
Example:
If you attempt to transmit ESC 3 n to the printer, but
DTR (DSR for the host computer) goes to MARK before
n is transmitted and then DLE EOT 3 interrupts before n
is received, the code <10>H for DLE EOT 3 is
processed as the code for ESC 3 <10>H.
n = 1: Printer status
Bit Hex Decimal Function
0 00 0 Not used. Fixed to Off.
1 02 2 Not used. Fixed to On.
2 00 0 Drawer open/close signal is LOW.(connector
pin3)
04 4 Drawer open/close signal is HIGH.(connector
pin3)
3 00 0 Online.
08 8 Offline.
4 10 16 Not used. Fixed to On.
5 00 0 Not wait online recover.
20 32 Wait online recover.
6 -- -- Undefined.
7 00 0 Not used. Fixed to Off.
n = 2: Offline status
Bit Hex Decimal Function
0 00 0 Not used. Fixed to Off.
1 02 2 Not used. Fixed to On.
2 00 0 Platen is closed.
04 4 Platen is opened.
3 00 0 Paper is not being fed by using the FEED button.
08 8 Paper is being fed by the FEED button.
4 10 16 Not used. Fixed to On.
5 00 0 Printer not paper out
20 32 Printer paper out
6 00 0 No error.
40 64 Error occurred.
7 00 0 Not used. Fixed to Off.
n = 3: Error status
Bit Hex Decimal Function
0 00 0 Not used. Fixed to Off.
1 02 2 Not used. Fixed to On.
7
2 -- -- Undefined.
3 00 0 No auto cutter error.
08 8 Auto cutter error occurred.
4 10 16 Not used. Fixed to On.
5 00 0 No unrecoverable error.
20 32 Unrecoverable error occurred.
6 00 0 Printer head temperature and voltage is normal.
40 64 Printer head temperature and voltage is out of range.
7 00 0 Not used. Fixed to Off.
n = 4: Continuous paper sensor status
Bit Hex Decimal Function
0 00 0 Not used. Fixed to Off.
1 02 2 Not used. Fixed to On.
2.3 00 0 Paper roll sensor: Paper present.
0c 12 Paper roll near-end detected by paper roll sensor.
4 10 16 Not used. Fixed to On.
5.6 00 0 Paper roll sensor: Paper present.
60 96 Paper roll end detected by paper roll sensor.
7 00 0 Not used. Fixed to Off.
[Reference] DLE ENQ, GS a
5.ESC SP n
[Name] Set right-side character spacing
[Format] ASCII ESC SP n
Hex 1B 20 n
Decimal 27 32 n
[Range] 0 n 255
[Description] Sets the character spacing for the right side of the character
to [n×0.159 mm.
[Notes] • The right-side character spacing for double-width mode
is twice the
normal value.
[Default] n=0
6.ESC ! n
[Name] Select print mode(s)
[Format] ASCII ESC ! n
Hex 1B 21 n
Decimal 27 33 n
[Range] 0 n 255
[Description] Selects print mode(s) using n as follows:
Bit Off/On Hex Decimal Function
8
0 Off 00 0 Character Font A (11×9).
On 01 1 Character Font B (9×9).
1 - - - Undefined.
2 - - - Undefined.
3 Off 00 0 Emphasized mode not selected.
On 08 8 Emphasized mode selected.
4 Off 00 0 Double-height mode not selected.
On 10 16 Double-height mode selected.
5 Off 00 0 Double-width mode not selected.
On 20 32 Double-width mode selected.
6 - - - Undefined.
7 Off 00 0 Underline mode not selected.
On 80 128 Underline mode selected.
[Notes] • When both double-height and double-width modes are
selected, quadruple-size characters are printed.
• The printer can underline all characters, but cannot
underline the space set by HT or 90°clockwise rotated
characters.
• Underline mode selected by this command is not affect
Kanji characters to print .print mode is set by FS !.
[Default] n=1
[Reference] ESC -, ESC E
7.ESC % n
[Name] Select/cancel user-defined character set
[Format] ASCII ESC % n
Hex 1B 25 n
Decimal 27 37 n
[Range] 0 n 255
[Description] Selects or cancels the user-defined character set.
• When the LSB of n is 0, the user-defined character set is
canceled.
• When the LSB of n is 1, the user-defined character set is
selected.
[Notes] • When the user-defined character set is canceled, the
built-in
character set is automatically selected.
• n is available only for the least significant bit.
[Default] n=0
[Reference] ESC &, ESC ?
9
[Format] ASCII ESC & y c1 c2 [x1 d1...d(y x x1)]...[xk
d1...d(y x xk)]
Hex 1B 26 y c1 c2 [x1 d1...d(y x x1)]...[xk
d1...d(y x xk)]
Decimal 27 38 y c1 c2 [x1 d1...d(y x x1)]...[xk
d1...d(y x xk)]
[Range] y=3
32 c1 c2 ≤ 126
0 x 12 (when Font A (11×9) is selected)
0 x 9 (when Font B (9×9) is selected)
0 d1 ... d(y × xk) 255
[Description] Defines user-defined characters.
• y specifies the number of bytes in the vertical direction.
• c1 specifies the beginning character code for the
definition, and c2 specifies the final code.
• x specifies the number of dots in the horizontal direction.
[Notes] • The allowable character code range is from ASCII code
<20>H to <7E>H.
• It is possible to define multiple characters for
consecutive character codes. If only one character is
desired, use c1 = c2.
• d is the dot data for the characters. The dot pattern is in
the horizontal direction from the left side. Any remaining
dots on the right side are blank.
• The data to define user-defined characters is (y×x)
bytes.
• Set a corresponding bit to 1 to print a dot or 0 not to print
a dot.
• This command can define different user-defined
character patterns for each font. To select a font, use
ESC !.
• User-defined characters and a downloaded bit image
cannot be defined simultaneously. When this command is
executed, the downloaded bit image is cleared.
• The user-defined character definition is cleared when:
1) ESC @ is executed.
2) ESC ? is executed.
3) The power is turned off.
• The max define character is 8
[Default] The internal character set
[Reference] ESC %, ESC ?
9.ESC * m nL nH d1...dk
[Name] Select bit-image mode
10
[Format] ASCII ESC * m nL nH d1...dk
Hex 1B 2A m nL nH d1...dk
Decimal 27 42 m nL nH d1...dk
[Range] m = 0, 1
0 nL 255
0 nH 3
0 d 255
K = nL+nH x 256
[Description] Selects a bit-image mode using m for the number of dots
specified by nL and nH, as follows:
m Mode Vertical Direction Horizontal Direction Dot
Dot Density Density
0 8-dot single-density 60 dpi 90 dpi
1 8-dot double-density 60 dpi 180 dpi
[Notes] • If the value of m is out of the specified range, nL and the
data following are processed as normal data.
• The nL and nH indicate the number of dots in the bit
image in the horizontal direction. The number of dots is
calculated by nL + nH x 256.
• If the bit-image data input exceeds the number of dots
to be printed on a line, the excess data is ignored.
• d indicates the bit-image data. Set a corresponding bit
to 1 to print a dot or to 0 not to print a dot.
[Description] • If m and nL exceed appoint area, the latter data is
according to the conventional data processing
• Back to the conventional data processing mode after
print a Bit-image.
• The relationship between bit-image data and the point
to print as follows:
.
11
10.ESC - n
[Name] Turn underline mode on/off
[Format] ASCII ESC - n
Hex 1B 2D n
Decimal 27 45 n
[Range] n =0,1 48 49
[Description] Turns underline mode on or off, based on the following
values
n Function
0, 48 Turns off underline mode
1, 49 Turns on underline mode
[Notes] • The printer can underline all characters (including
right-side character spacing), but cannot underline the
space set by HT.
• Underline mode can also be turned on or off by using
ESC !.
• If n exceed appoint limits, the command is ignore.
• Setting the current underline command not affect the
Kanji character to print.
[Default] n=0
[Reference] ESC !
11.ESC 2
[Name] Select default line spacing
[Format] ASCII ESC 2
Hex 1B 32
Decimal 27 50
[Description] Selects 4.233 mm line spacing.
[Reference] ESC 3
12.ESC 3 n
[Name] Set line spacing
[Format] ASCII ESC 3 n
Hex 1B 33 n
Decimal 27 51 n
[Range] 0 n 255
[Description] Sets the line spacing to [n×0.175 mm].
[Default] n = 24
[Reference] ESC 2
12
13.ESC <
[Name] Print head reset
[Format] ASCII ESC <
Hex 1B 3c
Decimal 27 60
[Description] Move the print head to wait-printing position.
[Notes] • First, the print head move to the most left side, and then
move to the most right side ,finally move to the most left
side.
• the most left side can by initial position sensor detect.
• Because of executing the command need to detect initial
position , the print position can remove after executing the
command.
14.ESC ? n
[Name] Cancel user-defined characters
[Format] ASCII ESC ? n
Hex 1B 3F n
Decimal 27 63 n
[Range] 32 n 126
[Description] Cancels user-defined characters.
[Notes] • This command cancels the patterns defined for the
character codes specified by n. After the user-defined
characters are canceled, the corresponding patterns for the
internal characters are printed.
• This command deletes the pattern defined for the
specified code in the font selected by ESC !.
• If a user-defined characters have not been defined, the
printer ignores this command.
[Reference] ESC &, ESC %
15.ESC @
[Name] Initialize printer
[Format] ASCII ESC @
Hex 1B 40
Decimal 27 64
[Description] Clears the data in the print buffer and resets the printer
mode to the mode that was in effect when the power was
turned on.
[Notes] • The DIP switch settings are not checked again.
13
16.ESC D n1...nk NUL
[Name] Set horizontal tab positions
[Format] ASCII ESC D n1...nk NUL
Hex 1B 44 n1...nk 00
Decimal 27 68 n1...nk 0
[Range] 1 n 255
0 k 32
[Description] Sets horizontal tab positions.
• n specifies the column number for setting a horizontal tab
position from the beginning of the line.
• k indicates the total number of horizontal tab positions to
be set.
[Notes] • The horizontal tab position is stored as a value of
[character width x n] measured from the beginning of the
line. The character width includes the right-side character
spacing, and double-width characters are set with twice the
width of normal characters.
• This command cancels the previous horizontal tab
settings.
• When setting n = 8, the print position is moved to column 9
by sending HT.
• Up to 32 tab positions (k = 32) can be set. Data exceeding
32 tab positions is processed as normal data.
• Transmit [n]k in ascending order and place a NUL code 0
at the end.
When [n]k is less than or equal to the preceding value
[n]k-1, tab setting is finished and the following data is
processed as normal data.
• ESC D NUL cancels all horizontal tab positions.
• The previously specified horizontal tab positions do not
change, even if the character width changes.
• The character width is memorized for each standard
mode.
[Default] The default tab positions are at intervals of 8 characters
(columns 9, 17, 25,...) for Font A (9×9).
[Reference] HT
17.ESC E n
[Name] Turn emphasized mode on/off
[Format] ASCII ESC E n
Hex 1B 45 n
Decimal 27 69 n
[Range] 0 n 255
14
[Description] Turns emphasized mode on or off
When the LSB of n is 0, emphasized mode is turned off.
When the LSB of n is 1, emphasized mode is turned on.
[Notes] • Only the least significant bit of n is enabled.
• Not print emphasize Bit-image.
• This command and ESC ! turn on and off emphasized
mode in the same way. Be careful when this command is
used with ESC !.
• Printer output is the same in double-strike mode and in
emphasized mode.
• This command is affect the printing of alphanumeric and
Kanji character.
• In emphasized mode the print two-pass will change slow.
[Default] n=0
[Reference] ESC !, ESC G
18.ESC G n
[Name] Turn on/off double-strike mode
[Format] ASCII ESC G n
Hex 1B 47 n
Decimal 27 71 n
[Range] 0 n 255
[Description] Turns double-strike mode on or off.
• When the LSB of n is 0, double-strike mode is turned off.
• When the LSB of n is 1, double-strike mode is turned on.
[Notes] • Only the lowest bit of n is enabled.
• Not print emphasize Bit-image.
• Printer output is the same in double-strike mode and in
emphasized mode.
• This command is affect the printing of alphanumeric and
Kanji character.
• In double-strike mode the print two-pass will change slow.
[Default] n=0
[Reference] ESC E
19.ESC J n
[Name] Print and feed paper
[Format] ASCII ESC J n
Hex 1B 4A n
Decimal 27 74 n
[Range] 0 n 255
[Description] Prints the data in the print buffer and feeds the paper [n×
0.176 mm].
[Notes] • After printing is completed, this command sets the print
15
starting position to the beginning of the line.
• The paper feed amount set by this command does not
affect the values set by ESC 2 or ESC 3.
[Reference] ESC K
20.ESC K n
[Name] Print and reverse feed paper
[Format] ASCII ESC K n
Hex 1 B 4B n
Decimal 27 75 n
[Range] 0 n 48
[Description] Prints the data in the print buffer and reverse feed paper the
paper [n 0.176 mm].
[Notes] • If n exceed specified limits, printer only print data but no
reverse feed paper .
• Not more than twice consecutive use this command.
• Reverse feed can lead to the following problem:
1) Feed paper space is not right.
2) Printer’s noise bigger than ordinary circumstances.
3)Paper may and color bar rub dirty.
[Reference] ESC J
21.ESC M n
[Name] Select character font
[Format] ASCII ESC M n
Hex 1B 4D n
Decimal 27 77 n
[Range] n = 0, 1, 48, 49
[Description] Selects the character font.
n Function
0, 48 Character Font A (11×9) selected.
1, 49 Character Font B (9×9) selected.
[Default] n=1
22.ESC R n
[Name] Select an international character set
[Format] ASCII ESC R n
Hex 1B 52 n
Decimal 27 82 n
[Range] 0 n 15
[Description] Selects international character set n from the following
table:
n Character set
16
0 U.S.A
1 France
2 Germany
3 U.K
4 Denmark I
5 Sweden
6 Italy
7 Spain I
8 Japan
9 Norway
10 Denmark II
11 Spain II
12 Latin America
13 Korea
14 Slovenia/Croatia
15 China
[Default] n=0
23.ESC U n
[Name] Select/Cancel print one-way
[Format] ASCII ESC U n
Hex 1B 55 n
Decimal 27 85 n
[Range] 0 n 255
[Description] Select/Cancel print one-way.
• When the LSB of n is 0, the print one-way is enabled.
• When the LSB of n is 1, the print one-way is disabled.
• Only the lowest bit of n is valid.
[Notes] • When setting print one-way, the print head from left to
right.
• To avoid horizontal direction to irregularities, so suggesting
use one-way print.
[Default] n=0
24.ESC a n
[Name] Select justification
[Format] ASCII ESC a n
Hex 1B 61 n
Decimal 27 97 n
[Range] 0 n 2, 48 n 50
[Description] Aligns all the data in one line to the specified position.
n selects the justification as follows:
n Justification
17
0,48 Left justification
1, 49 Centering
2, 50 Right justification
[Notes] • The command is enabled only when processed at the
beginning of the line in standard mode.
• This command executes justification in the printing area.
• This command justifies the space area according to HT or
ESC \.
[Default] n=0
[Example]
Left justification Centering Right justification
ABC ABC ABC
ABCD ABCD ABCD
ABCDE ABCDE ABCDE
25.ESC c 5 n
[Name] Enable/disable panel buttons
[Format] ASCII ESC c 5 n
Hex 1B 63 35 n
Decimal 27 99 53 n
[Range] 0 n 255
[Description] Enables or disables the panel buttons.
• When the LSB of n is 0, the panel buttons are enabled.
• When the LSB of n is 1, the panel buttons are disabled.
[Notes] • Only the lowest bit of n is valid.
• When the panel buttons are disabled, none of them are
usable when the printer cover is closed.
[Default] n=0
26.ESC d n
[Name] Print and feed n lines
[Format] ASCII ESC d n
Hex 1B 64 n
Decimal 27 100 n
[Range] 0 n 255
[Description] Prints the data in the print buffer and feeds n lines.
[Notes] • This command sets the print starting position to the
beginning of the line.
• This command does not affect the line spacing set by ESC
2 or ESC 3.
• The maximum paper feed amount is 1016 mm. If the paper
feed amount (n x line spacing) of more than 1016 mm is
18
specified, the printer feeds the paper only 1016 mm.
[Reference] ESC e
27.ESC e n
[Name] Print and reverse feed paper n lines
[Format] ASCII ESC e n
Hex 1B 65 n
Decimal 27 101 n
[Range] 0 n 2
[Description] Prints the data in the print buffer and reverse feed paper n
lines.
[Notes] • If n exceed specified limits, printer only print data but no
reverse feed paper .
• Not more than twice consecutive use this command.
• Reverse feed can lead to the following problem:
1) Feed paper space is not right.
2) Printer’s noise bigger than ordinary circumstances.
3) Paper may and color bar rub dirty.
[Reference] ESC d
28.ESC p m t1 t2
[Name] Generate pulse
[Format] ASCII ESC p m t1 t2
Hex 1B 70 m t1 t2
Decimal 27 112 m t1 t2
[Range] m=0, 48
0 t1 ≤ 5
0 t2 ≤ 255
[Description] Outputs the pulse specified by t1 and t2 to connector pin m
as follow :
On time= t1 x 2 millisecond
Off time= t2 x 2 millisecond
When t2 <t1 ,the printer dispose t1 x 2 millisecond
If t2 > 50,it will be disposed t2=50.
29.ESC t n
[Name] Select character code table
[Format] ASCII ESC t n
Hex 1B 74 n
Decimal 27 116 n
[Range] 0 n 5, 16 n 19, n = 255
[Description] Selects page n from the character code table.
N Code Page
19
0 CP437 [U.S.A., Standard Europe]
1 Katakana
2 CP850 [Multilingual]
3 CP860 [Portuguese]
4 CP863 [Canadian-French]
5 CP865 [Nordic]
16 WCP1252 Latin I
17 PC866
18 CP852 [Latina 2]
19 CP858 Multilingual Latin Ⅰ+Euro)
21 Vietnam
22 PC857[Turkey]
255 Thai
[Default] n=0
30.ESC { n
[Name] Turns on/off upside-down printing mode
[Format] ASCII ESC { n
Hex 1B 7B n
Decimal 27 123 n
[Range] 0 n 255
[Description] Turns upside-down printing mode on or off.
• When the LSB of n is 0, upside-down printing mode is
turned off.
• When the LSB of n is 1, upside-down printing mode is
turned on.
[Notes] • Only the lowest bit of n is valid.
• This command is enabled only when processed at the
beginning of a line in standard mode.
• In upside-down printing mode, the printer rotates the line
to be printed by 180 and then prints it.
[Default] n=0
[Example]
20
31.ESC r n(#)
[Name] select printing color
[Format] ASCII ESC r n
Hexadecimal Code 1B 72 n
Decimal Code 27 114 n
[Range] n = 0, 1, 48, 49
[Description] printing color:
n = 0, 48 black
n = 1, 49 red
[Notes] • Only valid when enter the command at the beginning of a line
• Only valid for double color printing
[Default] •n = 0
32. GS a n
[Name] Enable/Disable Automatic Status Back (ASB)
[Format] ASCII GS a n
Hex 1D 61 n
Decimal 29 97 n
[Range] 0 n 255
[Description] Enables or disables ASB and specifies the status items to
include, using n as follows:
Bit Off/On Hex Decimal Status for ASB
21
33.GS r n
[Name] Transmit status
[Format] ASCII GS r n
Hex 1D 72 n
Decimal 29 114 n
[Range] 1 n 2, 49 n 50
[Description] Transmits the status specified by n as follows:
n Function
1, 49 Transmits paper sensor status
2,50 Transmits drawer status
[Notes] • When using a serial interface
When DTR/DSR control is selected, the printer transmits
only 1 byte after confirming the host is ready to receive data
(DSR signal is SPACE). If the host computer is not ready to
receive data (DSR signal is MARK), the printer waits until
the host is ready.
When XON/XOFF control is selected, the printer transmits
only 1 byte without confirming the condition of the DSR
signal.
•This command is executed when the data in the receive
buffer is developed. Therefore, there may be a time lag
between receiving this command and transmitting the
status, depending on the receive buffer status.
•When Auto Status Back (ASB) is enabled using GS a, the
status transmitted by GS r and the ASB status must be
differentiated using.
•The status types to be transmitted are shown below:
Paper sensor status (n = 1, 49):
Bit Off/On Hex Decimal Status for ASB
0,1 - - - Undefined.
2,3 Off 00 0 Paper roll end sensor: paper adequate.
On (0C) (12) Paper roll end sensor: paper near end.
4 Off 00 0 Not used. Fixed to Off.
5,6 - - - Undefined.
7 Off 00 0 Not used. Fixed to Off.
Drawer status (n = 2, 50):
Bit Off/On Hex Decimal Status for ASB
0 Off 00 0 `
On 01 1 Drawer is closed.
1-3 -- -- -- Undefined.
4 Off 00 0 Not used. Fixed to Off.
5,6 - - - Undefined.
7 Off 00 0 Not used. Fixed to Off.
22
[Reference] DLE EOT, GS a
1.FS ! n
[Name] Set print mode(s) for Kanji characters
[Format] ASCII FS ! n
Hex 1C 21 n
Decimal 28 33 n
[Range] 0 n 255
[Description] Sets the print mode for Kanji characters, using n as follows:
Bit Off/On Hex Decimal Function
0 - - - Undefined.
1 - - - Undefined.
2 Off 00 0 Double-width mode is OFF.
On 04 4 Double-width mode is ON.
3 Off 00 0 Double-height mode is OFF.
On 08 8 Double-height mode is ON.
4 - - - Undefined.
5 - - - Undefined.
6 - - - Undefined.
7 Off 00 0 Underline mode is OFF.
On 80 128 Underline mode is ON.
[Notes] • When both double-width and double-height modes are set
(including right- and left-side character spacing),
quadruple-size characters are printed.
•The printer can underline all characters (including right-
and left-side character spacing), but cannot underline the
space set by HT and 90° clockwise-rotated characters.
[Default] n=0
[Reference] FS , FS W
2.FS &
[Name] Select Kanji character mode
[Format] ASCII FS &
Hex 1C 26
Decimal 28 38
[Description] Selects Kanji character mode.
[Notes] For Kanji model:
•When the Kanji character mode is selected, the printer
processes all Kanji code as two bytes each.
•Kanji codes are processed in the order of the first byte and
23
second byte.
•Kanji character mode is not selected when the power is
turned on.
[Reference] FS. FS C
3.FS - n
[Name] Turn underline mode on/off for Kanji characters
[Format] ASCII FS - n
Hex 1C 2D n
Decimal 28 45 n
[Range] 0 n 1
[Description] Turns underline mode for Kanji characters on or off, based
on the following values of n.
n Function
0, 48 Turns off underline mode for Kanji characters
1, 49 Turns on underline mode for Kanji characters (1-dot thick)
2, 50 Turns on underline mode for Kanji characters (1-dot thick)
[Notes] •The printer can underline all characters (including right-
and left-side
Character spacing), but cannot underline the space set by
HT and 90° clockwise-rotated characters.
[Default] n=0
[Reference] FS !
4.FS .
[Name] Cancel Kanji character mode
[Format] ASCII FS .
Hex 1C 2E
Decimal 28 46
[Description] Cancels Kanji character mode.
[Notes] For Kanji model:
• When the Kanji character mode is not selected, all
character codes are processed one byte at a time as ASCII
code.
• Kanji character mode is not selected when the power is
turned on.
[Reference] FS & ,FS C
5.FS 2 c1 c2 d1...dk
[Name] Define user-defined Kanji characters
[Format] ASCII FS 2 c1 c2 d1...dk
Hex 1C 32 c1 c2 d1...dk
Decimal 28 50 c1 c2 d1...dk
24
[Range] c1 and c2 indicate character codes for the defined
characters.
Model type c1 c2
Chinese kanji supporting model c1 = FEH A1H ≤c2 ≤ FEH
0 d 255
k = 32
[Description] Defines user-defined Kanji characters for the character
codes specified by c1 and c2.
[Notes] c1 and c2 indicate character codes for the defined
characters. c1 specifies for the first byte, and c2 for the
second byte.
d indicates the dot data. Set a corresponding bit to 1 to print
a dot or to 0 to not print a dot.
After defines user-defined Kanji characters, it can redefine
old defining Kanji characters, but not defines new Kanji
characters.
After defines user-defined Kanji characters, the definition is
all effective, only if execute redefine or ESC @,FS ? or
printer reset or power is turn off.
[Default] All spaces.
[Reference] ESC c 1
6.FS ? c1 c2
[Name] Cancel user-defined Kanji characters
[Format] ASCII FS ? c1 c2
Hex 1C 3F c1 c2
Decimal 28 63 c1 c2
[Range] c1 and c2 indicate character codes for the defined
characters.
Model type c1 c2
Chinese kanji supporting model c1 = FEH A1H ≤c2 ≤ FEH
[Description] Cancel user-defined Kanji characters
• Cancel user-defined Kanji characters for the character
codes specified by c1 and c2,print margin characters after
Cancel user-defined Kanji characters .
[Notes] • It is ignore if not define user-defined Kanji characters.
[Reference] FS 2, FS c
7.FS S n1 n2
[Name] Set left- and right-side Kanji character
spacing
[Format] ASCII FS S n1 n2
Hex 1C 53 n1 n2
25
Decimal 28 83 n1 n2
[Range] 0 n1 32
0 n2 32
[Description] Sets left- and right-side Kanji character
spacing to n1 and n2, respectively.
[Notes] • When double-width mode is set, the left-
and right-side character spacing is twice the
normal value.
• The Kanji characters spacing which is set to
half dot as unit.
[Default] n1 = 0, n2 = 0
8.FS W n
[Name] Turn quadruple-size mode on/off for Kanji characters
[Format] ASCII FS W n
Hex 1C 57 n
Decimal 28 87 n
[Range] 0 n 255
[Description] Turns quadruple-size mode on or off for Kanji characters.
• When the LSB of n is 0, quadruple-size mode for Kanji
characters is turned off.
• When the LSB of n is 1, quadruple-size mode for Kanji
characters is turned on.
[Notes] • Only the lowest bit of n is valid.
In quadruple-size mode, the printer prints the same size
characters as when double-width and double-height modes
are both turned on.
[Default] n=0
[Reference] FS !
26
pL and pH specifies the number of the parameter such as a
to (pL + (pH x 256))bytes.
• a specifies setting values for the positions to start printing
and cutting
a Function
1 Setting value for the positions to start the printing.
2 Setting value for the positions to start the cutting.
• m specifies the direction of the adjustment.
m Function
0,48 Specifies a forward paper feeding direction
1,49 Specifies a backward paper feeding direction.
• nL and nH specifies the setting value to [(nL + nH x 256)
0.125 mm].
• The adjustment value for the print starting position (a = 1)
is affected with the following commands: GS FF
• The adjustment value for the paper cutting position (a = 2)
is affected with the following commands: GS V m n
[Default] All adjustment values are set to “0”.
(At the factory setting, the print starting position and the
cutting position are set to the head position and the cutter
position respectively when the BM sensor detects the BM.)
[Reference] GS FF, GS V
27