TP-3XXX Programming Manual V6.1 (000001)
TP-3XXX Programming Manual V6.1 (000001)
Programmer Manual
www.code-soft.com
CODE SOFT
1. COMMANDS
1.1 Command Notation
[Name] The name of the command.
[Format] The code sequence.
[Range] Gives the allowable ranges for the arguments.
[Description] Describes the commands function.
[Details] Describes the usage of the command in detail.
[Notes] Provides important information on setting and using the printer command, if necessary.
[Default] Gives the default values, if any, for the command parameters.
[Reference] Lists related commands.
[Example] Gives examples of how to use the command.
Hex indicates the hexadecimal equivalents.
Decimal indicates the decimal equivalents.
[ ]k indicates the contents of the [ ] should be repeated k times.
V 6.10
CODE SOFT
1.2 Explanation of Terms
(1) Receive buffer
The receive buffer is a buffer that stores, as is, the data received from the host (the reception
data). The reception data is stored in the receive buffer temporarily, and is then processed
sequentially.
(2) Print buffer
The print buffer is a buffer that stores the image data to be printed.
(3) Print buffer full
This is the state where the print buffer is full. If new print data is input while the print buffer is
full, the data in the print buffer is printed out and a line feed is executed. This is the same
operation as the LF operation.
(4) Start of line
The start of line state satisfies the following condition:
There is no print data (including spaces and portions of data skipped due to bit image data)
currently in the print buffer.
There is no print data (including portions of data skipped due to HT)
The print position is not specified by the ESC $ or ESC \ command.
(5) Printable area
The maximum range within which printing is possible under the printer specifications. The printable
area for this printer is as follows:
The length of the horizontal direction in standard mode:
approximately 72.1 mm {576/203"}
The length of the horizontal direction in page mode:
approximately 72.1 mm {576/203"}
The length of the vertical direction in page mode: approximately 117.3 mm {1662/360"}
(6) Printing area
Printing range is set by the command. It must be printing area printable area.
(7) Ignore
The state in which all codes, including parameters, are read in and discarded, and nothing happens.
(8) Inch
A unit of length. One inch is 25.4 mm.
(9) MSB
Most Significant Bit
(10) LSB
Least Significant Bit
(11) Base line
Standard position when character data is stored in the print buffer.
Normal character in standard mode and page mode:
V 6.10
CODE SOFT
Command List
HT
LF
FF (*)
Horizontal tab
CAN (*)
ESC FF (*)
ESC SP n
ESC ! n
ESC $ nL nH
ESC % n
ESC & y c1 c2 [x1 d1...d(y
x1)]...[xk d1...d(y xk)]
ESC * m nL nH d1... dk
ESC n
ESC 2
ESC 3 n
ESC = n (*)
ESC ? n
ESC @
ESC D n1...nk NUL
ESC E n
ESC G n
ESC J n
ESC L (*)
ESC M n (*)
ESC R n
ESC S (*)
ESC T n (*)
ESC V n(*)
ESC \ nL nH
ESC a n
V 6.10
Select justification
CODE SOFT
ESC c 3 n (*)
ESC c 4 n (*)
ESC C 5 n
ESC d n
ESC p m t1 t2
ESC t n
ESC { n
FS p n m (*)
FS q n [xL xH yL yH d1
dk]1[xL xH yL yH d1dk]n
(*)
GS ! n (*)
GS $ nL nH (*)
GS * x y d1...d(x y 8)
GS / m
GS : (*)
GS B n (*)
GS H n
GS L nL nH
GS P x y (*)
GS V m GS V m n
GS W nL nH
GS \ nL nH
GS ^ r t m (*)
GS a n (*)
GS f n (*)
GS h n
GS k m d1dk NUL
GS k m n d1..dn
GS r n (*)
GS v 0 m xL xH yL yH d1....dk
GS w n
FS ! n
V 6.10
Transmit status
Print raster bit image
Set bar code width
Set print mode(s) for Kanji characters
CODE SOFT
FS &
FS n
FS .
FS 2 c1 c2 d1...dk
FS S n1 n2
FS W n
ESC B n t
ESC C m t n
V 6.10
CODE SOFT
1.3. Control Commands
HT
[Name]
Horizontal tab
[Format]
ASCII
HT
Hex
09
Decimal
[Description] Moves the print position to the next horizontal tab position.
[Details]
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.
The default setting of the horizontal tab position for the paper roll is font A
(12 24) every 8th character (9th, 17th, 25th, ... column).
[Reference]
ESC D
LF
[Name]
[Format]
ASCII
LF
Hex
Decimal
0A
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]
V 6.10
ESC 2, ESC 3
CODE SOFT
FF (*)
[Name]
[Format]
ASCII
Hex
FF
0C
Decimal 12
[Description] Prints the data in the print buffer collectively and returns to standard mode.
The buffer data is deleted after being printed.
[Details]
The printing area set by ESC W is reset to the default setting.
The printer does not execute paper cutting.
This command sets the print position to the beginning of the line.
This command is enabled only in page mode.
[Reference] ESC FF, ESC L, ESC S
CAN (*)
[Name]
[Format]
ASCII
CAN
Hex
18
Decimal
[Description]
[Details]
24
In page mode, deletes all the print data in the current printable area.
This command is enabled only in page mode.
If data that existed in the previously specified printing area also exists in the
currently specified printing area, it is deleted.
[Reference]
ESC L, ESC W
[Format]
ASCII
DLE
Hex
[Range]
[Description]
EOT
10
Decimal 16
1 n4
04
n
n
[Details]
V 6.10
CODE SOFT
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.
Even though the printer is not selected using ESC = (select peripheral device),
this command is effective.
The printer transmits the current status. Each status is represented by onebyte
data.
The printer transmits the status without confirming whether the host computer
can receive data.
The printer executes this command upon receiving it.
This command is executed even when the printer is off-line, the receive buffer
is full, or there is an error status with a serial interface model.
With a parallel interface model, this command can not be executed when the
printer is busy. This command is executed even when the printer is off-line or
there is an error status when DIP switch 2-1 is on 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.
n = 1: Printer status
Bit Off/On Hex
Decimal
Function
00
02
00
04
00
On-line
08
Off-line
10
16
3
4
5,6
7
V 6.10
Undefined.
0
00
00
n = 2: Off-line status
Bit Off/On
Hex
Decimal
Function
00
02
00
Cover is closed.
04
Cover is open.
CODE SOFT
3
00
08
10
16
00
No paper-end stop.
20
32
00
No error.
40
64
Error occurs.
00
6
7
n = 3: Error status
Bit
Off/On
Hex
Decimal
Function
00
02
Undefined.
00
No auto-cutter error.
08
10
16
00
No unrecoverable error.
20
32
00
No auto-recoverable error.
40
64
00
6
7
00
02
2,3
00
0C
12
10
16
5,6
00
60
96
00
7
[Reference]
V 6.10
Function
DLE ENQ, GS a, GS r
10
CODE SOFT
DLE ENQ n (*)
[Name]
[Format]
ASCII
DLE ENQ n
Hex
[Range]
[Description]
10
05
Decimal 16
1n2
[Details]
Recover from an error aft clearing the receive and print buffers
V 6.10
11
CODE SOFT
DLE DC4 n m t (*)
[Name]
[Format]
ASCII
DLE
DC4
Hex
10
14
Decimal 16
[Range]
20
n=1
m = 0, 1
1t8
The pulse ON time is [ t 100 ms] and the OFF time is [ t 100ms].
When the printer is in an error status when this command is processed, this
command is ignored.
When the pulse is output to the connector pin specified while ESC p or DEL
DC4 is executed while this command is processed, this command is ignored.
The printer executes this command upon receiving it.
With a serial interface model, this command is executed even when the printer
is off-line, the receive buffer is full, or there is an error status.
With a parallel interface model, this command cannot be executed when the
printer is busy. This command is executed even when the printer is off-line or
there is an error status when DIP switch 2-1 is on.
If print data includes the same character strings as this command, the printer
performs the same operation specified by this command. The user must
consider this.
This command should not be used within the data sequence of another
command that consists of 2 or more bytes.
This command is effective even when the printer is disabled with ESC = (Select
peripheral device).
[Reference]
V 6.10
ESC p
12
CODE SOFT
ESC FF (*)
[Name]
[Format]
ASCII
ESC FF
Hex
1B
Decimal
0C
27
12
[Description] In page mode, prints all buffered data in the printing area collectively.
This command is enabled only in page mode.
[Details]
After printing, the printer does not clear the buffered data, setting values for
ESC T and ESC W, and the position for buffering character data.
[Reference] FF, ESC L, ESC S
ESC SP n
[Name]
[Format]
ASCII
ESC
Hex
Decimal
[Range]
SP
1B
20
27
32
n
n
0 n 255
[Description] Sets the character spacing for the right side of the character to [ n horizontal or
vertical motion units].
[Details]
The right-side character spacing for double-width mode is twice the normal
value. When characters are enlarged, the right-side character spacing is n
times normal value.
This command does not affect the setting of kanji characters.
This command sets values independently in each mode (standard and page
modes).
The horizontal and vertical motion unit are specified by GS P. Changing the
horizontal or vertical motion unit does not affect the current right-side spacing.
The GS P command can change the horizontal (and vertical) motion unit.
However, the value cannot be less than the minimum horizontal movement
amount, and it must be in even units of the minimum horizontal movement
amount.
In standard mode, the horizontal motion unit is used.
In page mode, the horizontal or vertical motion unit differs in page mode,
depending on starting position of the printable area as follows:
1 When the starting position is set to the upper left or lower right of the
printable area using ESC T, the horizontal motion unit ( x) is used.
2 When the starting position is set to the upper right or lower left of the
printable area using ESC T, the vertical motion unit ( y) is used.
The maximum right-side spacing is 255/180 inches. Any setting exceeding the
maximum is converted to the maximum automatically.
[Default]
[Reference]
V 6.10
n=0
GS P
13
CODE SOFT
ESC ! n
[Name]
[Format]
ASCII
ESC
Hex
1B
Decimal
[Range]
27
n
21
33
0 n 255
On
-
01
-
1
-
2
3
Off
00
Undefined.
Emphasized mode not selected.
On
Off
08
00
8
0
On
Off
10
00
16
0
On
-
20
-
32
-
Off
On
00
80
0
128
[Details]
When both double-height and double-width modes are selected, quadruple size
characters are printed.
The printer can underline all characters, but can not underline the space set by
HT or 90 clockwise rotated characters.
The thickness of the underline is that selected by ESC , regardless of the
character size.
When some characters in a line are double or more height, all the characters
on the line are aligned at the baseline.
ESC E can also turn on or off emphasized mode. However, the setting of the
last received command is effective.
ESC can also turn on or off underline mode. However, the setting of the last
received command is effective.
GS ! can also select character size. However, the setting of the last received
command is effective.
Emphasized mode is effective for alphanumeric and Kanji. All print modes
except emphasized mode is effective only for alphanumeric.
[Default]
[Reference]
V 6.10
n=0
ESC -, ESC E, GS !
14
CODE SOFT
ESC $ nL nH
[Name]
[Format]
ASCII
ESC
Hex
1B
Decimal
[Range]
$
27
nL nH
24
nL nH
36
nL nH
0 nL 255
0 nH 255
[Description] Sets the distance from the beginning of the line to the position at which
subsequent characters are to be printed.
The distance from the beginning of the line to the print position is
[( nL + nH 256) (vertical or horizontal motion unit)] inches.
[Details]
[Reference]
V 6.10
ESC \, GS $, GS \, GS P
15
CODE SOFT
ESC % n
[Name]
[Format]
ASCII
ESC
Hex
Decimal
[Range]
1B
25
27
37
n
n
0 nL 255
When the user-defined character set is canceled, the internal character set is
automatically selected.
n is available only for the least significant bit.
[Default]
[Reference]
n=0
ESC &, ESC ?
[Range]
1B
26
27
y=3
32 c1 c2 126
0 x 12 Font A (12 24)
0 x 9 Font B (9 17)
0 d1 ... d(y xk) 255
V 6.10
16
CODE SOFT
cleared.
The user-defined character definition is cleared when:
ESC @ is executed.
ESC ? is executed.
FS q is executed.
GS *is executed.
The printer is reset or the power is turned off.
When the user-defined characters are defined in font B (9 17), only the most
significant bit of the 3rd byte of data in vertical direction is effective.
[Default]
[Reference]
[Example]
When font A (12 24) is selected.
V 6.10
17
CODE SOFT
V 6.10
18
CODE SOFT
ESC * m nL nH d1... dk
[Name]
[Format]
1B
2A m nL nH d1...dk
Decimal 27
[Range]
42 m nL nH d1...dk
m = 0, 1, 32, 33
0 nL 255
0 nH 3
0 d 255
[Description] Selects a bit-image mode using m for the number of dots specified by nL and nH,
as follows:
m
Vertical Direction
Number of Dot
Density
Dots
Mode
Horizontal Direction
Dot
Number of Data
0
1
8-dot single-density
8-dot double-density
8
8
67 DPI
67 DP
Density
100 DPI
200 DPI
32
33
24-dot single-density
24-dot double-density
24
24
200DPI
200 DPI
100 DPI
200DPI
[Details]
(K)
nL + nH 256
nL + nH 256
(nL + nH 256) 3
(nL + nH 256) 3
If the values of m is out of the specified range, nL and data following are
processed as normal data.
The nL and nH indicate the number of dots of the bit image in the horizontal
direction. The number of dots is calculated by nL + nH 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
to not print a dot.
If the width of the printing area set by GS L and GS W less than the width
required by the data sent with the ESC * command, the following will be
performed on the line in question (but the printing cannot exceed the maximum
printable area):
The width of the printing area is extended to the right to accommodate the
amount of data.
If step does not provide sufficient width for the data, the left margin is
reduced to accommodate the data.
After printing a bit image, the printer returns to normal data processing mode.
This command is not affected by print modes (emphasized, double-strike,
underline, character size or white/black reverse printing), except upside-down
printing mode.
The relationship between the image data and the dots to be printed is as
follows:
When 8-dot bit image is selected:
V 6.10
19
CODE SOFT
V 6.10
20
CODE SOFT
ESC n
[Name]
[Format]
ASCII
ESC
Hex
1B
Decimal
[Range]
n
2D
27
45
0 n 2, 48 n 50
[Details]
0, 48
1, 49
2, 50
The printer can underline all characters (including right-side character spacing),
but cannot underline the space set by HT.
The printer cannot underline 90clockwise rotated characters and white/black
inverted characters.
When underline mode id turned off by setting the value of n to 0 or 48, the
following data is not underlined, and the underline thickness set before the
mode is turned off does not change. The default underline thickness is 1 dot.
Changing the character size does not affect the current underline thickness.
Underline mode can also be turned on or off by using ESC !. Note, however,
that the last received command is effective.
This command does not affect the setting of Kanji characters.
[Default]
[Reference]
n=0
ESC !
ESC 2
[Name]
[Format]
ASCII
ESC
Hex
Decimal
1B
32
27
50
V 6.10
ESC 3
21
CODE SOFT
ESC 3 n
[Name]
[Format]
ASCII
ESC
Hex
1B
Decimal
[Range]
n
33
27
51
0 n 255
[Description] Sets the line spacing to [ n vertical or horizontal motion unit] inches.
The line spacing can be set independently in standard mode and in page mode.
[Details]
The horizontal and vertical motion unit are specified by GS P. Changing the
horizontal or vertical motion unit does not affect the current line spacing.
The GS P command can change the horizontal (and vertical) motion unit.
However, the value cannot be less than the minimum vertical movement
amount, and it must be in even units of the minimum vertical movement amount.
In standard mode, the vertical motion unit (y) is used.
In page mode, this command functions as follows, depending on the starting
position of the printable area:
When the starting position is set to the upper left or lower right of the
printable area using ESC T, the vertical motion unit (y) is used.
When the starting position is set to the upper right or lower left of the print
able area using ESC T, the horizontal motion unit ( x) is used.
The maximum paper feed amount is 1016 mm (40 inches). Even if a paper
feed amount of more than 1016 mm (40 inches) is set, the printer feeds the
paper only 1016 mm (40 inches).
[Default]
[Reference]
ESC 2, GS P
ESC = n (*)
[Name]
[Format]
ASCII
ESC
Hex
1B
Decimal
[Range]
3D n
27
61 n
1 n 255
[Description]
[Details]
On
-
01
-
1
-
Printer enabled
Undefined
When the printer is disabled, it ignores all data except for error-recovery commands (DLE
EOT, DLE ENQ, DLE DC4) until it is enabled by this command.
[Default]
V 6.10
n=1
22
CODE SOFT
ESC ? n
[Name]
[Format]
ASCII
ESC
Hex
1B
Decimal
[Range]
n
3F
27
63
n
n
32 n 126
ESC @
[Name]
Initialize printer
[Format]
ASCII
Hex
ESC
1B
Decimal 27
@
40
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.
[Details]
V 6.10
23
CODE SOFT
ESC D n1...nk NUL
[Name]
[Format]
ASCII
ESC
Hex
1B
Decimal
[Range]
27
n1...nk
44
NUL
n1...nk
68
n1...nk
00
0
1 n 255
0 k 32
[Default]
[Reference]
V 6.10
The default tab positions are at intervals of 8 characters (columns 9, 17, 25,...) for
font A (12 24).
HT
24
CODE SOFT
ESC E n
[Name]
[Format]
ASCII
ESC
Hex
1B
Decimal
[Range]
n
45
27
69
0 n 255
[Description]
[Details]
[Default]
n=0
ESC !
ESC G n
[Name]
[Format]
ASCII
ESC
Hex
Decimal
[Range]
1B
27
n
47
71
n
n
0 n 255
[Default]
[Reference]
V 6.10
n=0
ESC E
25
CODE SOFT
ESC J n
[Name]
[Format]
ASCII
ESC
Hex
1B
Decimal
[Range]
27
n
4A
74
0 n 255
[Description] Prints the data in the print buffer and feeds the paper [ n vertical or horizontal
motion unit] inches.
[Details]
After printing is completed, this command sets the print 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.
The horizontal and vertical motion unit are specified by GS P.
The GS P command can change the vertical (and horizontal) motion unit.
However, the value cannot be less than the minimum vertical movement
amount, and it must be in even units of the minimum vertical movement amount.
In standard mode, the printer uses the vertical motion unit ( y).
In page mode, this command functions as follows, depending on the starting
position of the printable area:
When the starting position is set to the upper left or lower right of the
printable area using ESC T, the vertical motion unit (y) is used.
When the starting position is set to the upper right or lower left of the print
able area using ESC T, the horizontal motion unit ( x) is used.
The maximum line spacing is 1016mm (40 inches). When the setting value
exceeds the maximum, it is converted to the maximum automatically.
[Reference]
V 6.10
GS P
26
CODE SOFT
ESC L (*)
[Name]
[Format]
ASCII
ESC
Hex
Decimal
[Description]
[Details]
1B
4C
27
76
[Reference]
V 6.10
27
CODE SOFT
ESC M n (*)
[Name]
[Format]
ASCII
ESC
Hex
1B
Decimal
[Range]
n
4D
27
77
n
n
n = 0, 1, 48, 49
[Description]
ESC R n
[Name]
[Format]
ASCII
ESC
Hex
R n
1B
52 n
Decimal 27
[Range]
82 n
0 n 15
France
Germany
3
4
U.K.
Denmark
5
6
Sweden
Italy
7
8
Spain
Japan
9
10
Norway
Denmark
11
12
Spain
Latin
13
14
Korea
Slovenia/Croatia
15
Chinese
The character sets for Slovenia/Croatia and China are supported only in the Simplified
Chinese model.
[Default]
V 6.10
28
CODE SOFT
ESC S (*)
[Name]
[Format]
ASCII
ESC
Hex
Decimal
[Description]
[Details]
1B
53
27
83
[Reference]
V 6.10
29
CODE SOFT
ESC T n (*)
[Name]
[Format]
ASCII
ESC
Hex
[Range]
1B
Decimal
0n3
27
n
54 n
84
48 n 51
[Description] Selects the print direction and starting position in page mode.
n specifies the print direction and starting position as follows:
n
Print Direction
Starting Position
0, 48
Left to right
Upper left
[Details]
1, 49
2, 50
Bottom to top
Right to left
Lower left
Lower right
3, 51
Top to bottom
Upper right
When the command is input in standard mode, the printer executes only
internal flag operation. This command does not affect printing in standard
mode.
This command sets the position where data is buffered within the printing area
set by ESC W.
Parameters for horizontal or vertical motion units ( x or y) differ as follows,
depending on the starting position of the printing area:
If the starting position is the upper left or lower right of the printing area, data
is buffered in the direction perpendicular to the paper feed direction:
Commands using horizontal motion units: ESC SP, ESC $, ESC \
Commands using vertical motion units: ESC 3, ESC J, GS $, GS \
If the starting position is the upper right or lower left of the printing area, data
is buffered in the paper feed direction:
Commands using horizontal motion units: ESC 3, ESC J, GS $, GS \
Commands using vertical motion units: ESC SP, ESC $, ESC \
[Default]
[Reference]
V 6.10
n=0
ESC $, ESC L, ESC W, ESC \, GS $, GS P, GS \
30
CODE SOFT
ESC V n(*)
[Name]
[Format]
ASCII
ESC
Hex
1B
n
56
Decimal 27
86
0 n 1, 48 n 49
[Range]
[Description]
n
n
[Details]
[Default]
[Reference]
n=0
ESC !, ESC
[Format]
ASC II
ESC
Hex
Decimal
[Range]
1B
W xL
57 xL
27
[Description] The horizontal starting position, vertical starting position, printing area width,
and printing area height are defined as x0, y0, dx (inch), dy (inch), respectively.
Each setting for the printing area is calculated as follows:
x0 = [( xL + xH 256) (horizontal motion unit)]
y0 = [( yL + yH 256) (vertical motion unit)]
dx = [ dxL + dxH 256] (horizontal motion unit)]
dy = [ dyL + dyH 256] (vertical motion unit)]
The printing area is set as shown in the figure below.
[Details]
If this command is input in standard mode, the printer executes only internal
flag operation. This command does not affect printing in standard mode.
If the horizontal or vertical starting position is set outside the printable area, the
printer stops command processing and processes the following data as normal
data.
If the printing area width or height is set to 0, the printer stops command
V 6.10
31
CODE SOFT
processing and processes the following data as normal data.
This command sets the position where data is buffered to the position specified
by ESC T within the printing area.
If (horizontal starting position + printing area width) exceeds the printable area,
the printing area width is automatically set to (horizontal printable area horizontal starting position).
If (vertical starting position + printing area height) exceeds the printable area,
the printing area height is automatically set to (vertical printable area - vertical
starting position).
The horizontal and vertical motion unit are specified by GS P. Changing the
horizontal or vertical motion unit does not affect the current printing area.
The GS P command can change the horizontal (and vertical) motion unit.
However, the value cannot be less than the minimum horizontal movement
amount, and it must be in even units of minimum horizontal movement amount.
Use the horizontal motion unit ( x) for setting the horizontal starting position and
printing area width, and use the vertical motion unit ( y) for setting the vertical
starting position and printing area height.
When the horizontal starting position , vertical starting position, printing area
width, and printing area height are defined as X, Y, Dx, and Dy respectively, the
printing area is set as shown in the figure below.
xL = xH = yL = yH = 0
dxL = 0, dxH = 2, dyL = 126, dyH = 6
V 6.10
32
CODE SOFT
ESC \ nL nH
[Name]
[Format]
ASCII
ESC
Hex
1B
Decimal
[Range]
nL
5C
27
92
nH
nL
nL
nH
nH
0 nL 255
0 nH 255
[Description] Sets the print starting position based on the current position by using the
horizontal or vertical motion unit.
This command sets the distance from the current position to [( nL + nH 256)
[Details]
[Reference]
V 6.10
ESC $, GS P
33
CODE SOFT
ESC a n
[Name]
Select justification
[Format]
ASCII
ESC
Hex
[Range]
[Description]
1B
n
61 n
Decimal 27
97 n
0 n 2, 48 n 50
Aligns all the data in one line to the specified position
n selects the justification as follows:
n
Justification
0,48
Left justification
1, 49
2, 50
[Details]
Centering
Right justification
The command is enabled only when processed at the beginning of the line in
standard mode.
If this command is input in page mode, the printer performs only internal flag
operations.
This command has no effect in page mode.
This command executes justification in the printing area.
This command justifies the space area according to HT, ESC $ or ESC \.
[Default]
n=0
[Example]
V 6.10
34
CODE SOFT
ESC c 3 n (*)
[Name]
[Format]
ASCII
ESC c 3 n
Hex
[Range]
[Description]
[Details]
1B
63 33 n
Decimal 27
0 n 255
99 51 n
On
Off
01
00
1
0
On
Off
02
00
2
0
On
Off
04
00
4
0
4-7
On
-
08
-
8
-
It is possible to select multiple sensors to output signals. Then, if any of the sensors detects a
paper end, the paper end signal is output.
The command is available only with a parallel interface and is ignored with a serial
interface.
Sensor is switched when executing this command. The paper end signal switching be
delayed depending on the receive buffer state.
If either bit 0 or bit 1 is on, the paper roll near-end sensor is selected as the paper sensor
outputting paper-end signals
If either bit 2 or bit 3 is on, the paper roll end sensor is selected as the paper sensor
outputting paper-end signals.
When all the sensors are disabled, the paper end signal always outputs a paper present
status.
V 6.10
35
CODE SOFT
ESC c 4 n (*)
[Name]
[Format]
ASCII
ESC
Hex
1B
63 34
Decimal 27
0 n 255
[Range]
[Description]
99 52
Selects the paper sensor(s) used to stop printing when a paper-end is detected, using n as
follows:
Bit
Off/On
0
Off
[Details]
Hex
00
Decimal
0
Function
Paper roll near-end sensor disabled
On
Off
01
00
1
0
2-7
On
-
02
-
2
-
When a paper sensor is enabled with this command, printing is stopped only when the
corresponding paper is selected for printing.
When a paper-end is detected by the paper roll sensor, the printer goes offline after
printing stops.
When either bit 0 or 1 is on, the printer selects the paper roll near-end sensor for the paper
sensor to stop printing.
[Default]
n=0
ESC C 5 n
[Name]
[Format]
ASCII
ESC
Hex
1B
Decimal
[Range]
5
63
27
99
n
35
53
n
n
0 n 255
[Default]
V 6.10
n=0
36
CODE SOFT
ESC d n
[Name]
[Format]
ASCII
ESC
Hex
1B
Decimal
[Range]
n
64
27
100
0 n 255
[Description] Prints the data in the print buffer and feeds n lines.
This command sets the print starting position to the beginning of the line.
[Details]
This command does not affect the line spacing set by ESC 2 or ESC 3.
The maximum paper feed amount is 1016 mm (40 inches). If the paper feed
amount ( nx line spacing) of more than 1016 mm (40 inches) is specified, the
printer feeds the paper only 1016 mm (40 inches).
[Reference] ESC 2, ESC 3
ESC p m t1 t2
[Name]
Generate pulse
[Format]
ASCII
ESC
Hex
Decimal
[Range]
1B
27
m t1 t2
70
112
m t1 t2
m t1 t2
m = 0, 1, 48, 49
0 t1 255, 0 t2 255
[Reference]
V 6.10
DLE DC4
37
CODE SOFT
ESC t n
[Name]
[Format]
ASCII
Hex
[Range]
ESC
1B
n
74 n
Decimal 27 116 n
0 n 10, 16 n 21
[Default]
V 6.10
1
2
Katakana
PC850:Multilingual
3
4
PC860:Portuguese
PC863 [Canadian French]
5
6
PC865:Nodic
West Europe
7
8
Greek
Hebrew
9
10
PC755:East Europe
Iran
16
17
WPC1252
PC866:Cyrillic#2
18
19
PC852:Latin2
PC858
20
21
IranII
Latvian
n=0
38
CODE SOFT
ESC { n
[Name]
[Format]
ASCII
ESC {
Hex
[Range]
[Description]
1B
7B n
Decimal 27
0 n 255
123 n
[Details]
[Default]
n=0
[Example]
V 6.10
39
CODE SOFT
FS p n m (*)
[Name]
[Format]
ASCII
FS p n m
Hex
[Range]
1C 70 n m
Decimal
0 n 255
28 112 n m
0 m 3 , 48 m 51
[Description]
Double-width
Double-height
200 dpi
100 dpi
100 dpi
200 dpi
3, 51
Quadruple
100 dpi
100 dpi
[References] ESC , FS q, GS /, GS v 0
V 6.10
40
CODE SOFT
[Format]
ASCII
FS q
Hex
[Range]
are defining.
This command cancels all NV bit images that have already been defined by this command.The
printer can not redefine only one of several data definitions previously defined. In this case,
all data needs to be sent again.
From the beginning of the processing of this command till the finish of hardware
reset,mechanical operations (including initializing the position of the printer head when
the cover is open, paper feeding by using the FEED button, etc.) cannot be performed.
During processing this command, the printer is in BUSY when writing the data to the NV
user memory and stops receiving data. Therefore it is prohibitted to transmit the data
including the real-time commands during the execution of this command.
NV bit image means a bit image which is defined in a non-volatile memory by FS q and
printed by FS p.
In standard mode, this command is effective only when processed at the beginning of the
line.
In page mode, this command is not effective.
This command is effective when 7 bytes <FSyH> is processed as a normal value.
When the amount of data exceeds the capacity left in the range defined by xL, xH, yL,
yH, the printer processes xL, xH, yL, yH out of the defined range.
In the first group of NV bit images, when any of the parameters xL, xH, yL, yH is out of the
definition range, this command is disabled.
In groups of NV bit images other than the first one, when the printer processes xL, xH, yL,
yH out of the defined range, it stops processing this command and starts writing into the
NV images. At this time, NV bit images that havent been defined are disabled
(undefined), but any NV bit images before that are enabled.
V 6.10
41
CODE SOFT
The d indicates the definition data. In data (d) a 1 bit specifies a dot to be printed and a 0
bit specifies a dot not to be printed.
This command defines n as the number of a NV bit image. Numbers rise in order from NV
bit image 01H. Therefore, the first data group [xL xH yL yH d1...dk] is NV bit image 01H,
and the last data group [xL xH yL yH d1...dk] is NV bit image n. The total agrees with the
number of NV bit images specified by command FS p.
A definition data of a NV bit image consists of [xL xH yL yH d1...dk]. Therefore, when only
one NV bit image is defined n=1, the printer processes a data group [xL xH yL yH
d1...dk] once. The printer uses ([data: (xL + xH 256) (yL + yH 256) 8] + [header
:4])bytes of NV memory.
The definition area in this printer is a maximum of 0.5M bits (64K bytes). This command
can define several NV bit images, but cannot define a bit image data whose total
capacity [bit image data + header] exceeds 0.5M bits (64K bytes).
The printer is busy immediately before writing into NV memory.
The printer does not transmit ASB status and perform status detection during processing
of this command even when ASB is specified.
When this command is received during macro definition, the printer ends macro
definition,and begins performing this command.
Once a NV bit image is defined, it is not erased by performing ESC @, reset, and power
off.
This command performs only definition of a NV bit image and does not perform
[Details]
[Reference] FS p
V 6.10
42
CODE SOFT
V 6.10
43
CODE SOFT
GS ! n (*)
[Name]
[Format]
ASCII
Hex
[Range]
GS
1D
Decimal 29
0 n 255
n
21 n
33 n
Function
1
2
3
4
5
6
7
Table 1
Character Width Selection
Hex
Decimal
Width
00
0
1(normal)
10
20
16
32
2(double-width)
3
30
40
48
64
4
5
50
60
80
96
6
7
70
112
Table 2
Character Height Selection
Hex
Decimal
Width
00
0
1(normal)
[Details]
V 6.10
10
20
16
32
2(double-height)
3
30
40
48
64
4
5
50
60
80
96
6
7
70
112
This command is all characters (alphanumeric and Kanji) effective except for
44
CODE SOFT
HRI characters.
If n is outside of the defined range, this command is ignored.
In standard mode, the vertical direction is the paper feed direction, and the
horizontal direction is perpendicular to the paper feed direction. However,
when character orientation changes in 90 clockwise-rotation mode, the
relationship between vertical and horizontal directions is reversed.
In page mode, vertical and horizontal directions are based on the character
orientation.
When characters are enlarged with different sizes on one line, all the
characters on the line are aligned at the baseline.
The ESC ! command can also turn double-width and double-height modes on
or off. However, the setting of the last received command is effective.
[Default]
n=0
[Reference] ESC !
GS $ nL nH (*)
[Name]
[Format]
ASCII
Hex
[Range]
GS $ nL nH
1D 24 nL nH
Decimal 29 36 nL nH
0 nL 255, 0 nH 255
[Description] Sets the absolute vertical print starting position for buffer character data in page
mode.
This command sets the absolute print position to [( nL + nH 256) (vertical or
horizontal motion unit)] inches.
[Details] This command is effective only in page mode.
If the [( nL + nH 256) (vertical or horizontal motion unit)] exceeds the
specified printing area, this command is ignored.
The horizontal starting buffer position does not move.
The reference starting position is that specified by ESC T.
This command operates as follows, depending on the starting position of the
printing area specified by ESC T:
When the starting position is set to the upper left or lower right, this
command sets the absolute position in the vertical direction.
When the starting position is set to the upper right or lower left, this
command sets the absolute position in the horizontal direction.
The horizontal and vertical motion unit are specified by GS P.
The GS P command can change the horizontal and vertical motion unit.
However, the value cannot be less than the minimum horizontal movement
amount, and it must be in even units of the minimum horizontal movement
amount.
[Reference] ESC $, ESC T, ESC W, ESC \, GS P, GS \
V 6.10
45
CODE SOFT
GS * x y d1...d(x y 8)
[Name]
[Format]
[Range]
29
42
d1 ...d(x y 8)
1 x 255
1 y 48
x y 1536
0 d 255
[Description] Defines a downloaded bit image using the number of dots specified by x and y
x specifies the number of dots in the horizontal direction.
[Details]
[Reference]
V 6.10
GS /
46
CODE SOFT
GS / m
[Name]
[Format]
ASCII
GS
Hex
1D
Decimal
[Range]
m
2F
29
47
0 m 3, 48 m 51
Mode
0, 48
1, 49
Normal
Double-width
200
200
200
100
2, 50
3, 51
Double-height
Quadruple
100
100
200
100
[Details]
This command is ignored if a downloaded bit image has not been defined.
In standard mode, this command is effective only when there is no data in the
print buffer.
This command has no effect in the print modes (emphasized, double-strike,
underline, character size, or white/black reverse printing), except forupsidedownprinting
mode.
If the downloaded bit-image to be printed exceeds the printable area, the
excess data is not printed.
Refer to Figure 3.12.3 for the downloaded bit image development position in
page mode.
If the printing area width set by GS L and GS W is less than one line in vertical,
the following processing is performed only on the line in question:
The printing area width is extended to the right up to one line in vertical. In
this case, printing does not exceed the printable area.
If the printing area width cannot be extended by one line in vertical, the left
margin is reduced to accommodate one line in vertical.
[Reference] GS *
V 6.10
47
CODE SOFT
GS : (*)
[Name]
[Format]
ASCII
GS
Hex
1D
3A
Decimal 29
58
GS B n (*)
[Name]
[Format]
ASCII
Hex
[Range]
GS
1D
Decimal 29
0 n 255
42 n
66 n
[Default]
V 6.10
n=0
48
CODE SOFT
GS H n
[Name]
[Format]
ASCII
GS
Hex
[Range]
1D
H
48
n
n
Decimal 29 72 n
0 n 3, 48 n 51
[Description] Selects the printing position of HRI characters when printing a bar code.
n selects the printing position as follows:
n
Printing position
0, 48
Not printed
1, 49
2, 50
3, 51
[Default] n = 0
[Reference] GS f, GS k
V 6.10
49
CODE SOFT
GS L nL nH
[Name]
[Format]
ASCII
GS
Hex
1D
Decimal
[Range]
nL nH
4C
29
76
nL nH
nL nH
0 nL 255
0 nH 255
[Default]
[Reference]
V 6.10
nL = 0, nH = 0
GS P, GS W
50
CODE SOFT
GS P x y (*)
[Name]
[Format]
ASCII
Hex
[Range]
GS P x y
1D 50 x y
Decimal 29 80 x y
0 x 255
0 y 255
[Description] Sets the horizontal and vertical motion units to approximately 25.4/ x mm { 1/ x
inches} and approximately 25.4/ y mm {1/ y inches}, respectively.
[Details]
When x and y are set to 0, the default setting of each value is used.
The horizontal direction is perpendicular to the paper feed direction and the
vertical direction is the paper feed direction.
In standard mode, the following commands use x or y, regardless of character
rotation (upside-down or 90 clockwise rotation):
Commands using x: ESC SP, ESC $, ESC \, FS S, GS L, GS W
Commands using y: ESC 3, ESC J, GS V
In page mode, the following command use x or y, depending on character
orientation:
When the print starting position is set to the upper left or lower right of the
printing area using ESC T (data is buffered in the direction perpendicular to
the paper feed direction):
Commands using x: ESC SP, ESC $, ESC W, ESC \, FS S
Commands using y: ESC 3, ESC J, ESC W, GS $, GS \, GS V
When the print starting position is set to the upper right or lower left of the
printing area using ESC T (data is buffered in the paper feed direction):
Commands using x: ESC 3, ESC J, ESC W, GS $, GS \
Commands using y: ESC SP, ESC $, ESC W, ESC \,FS S, GS V
The command does not affect the previously specified values.
The calculated result from combining this command with others is truncated to
the minimum value of the mechanical pitch.
V 6.10
51
CODE SOFT
GS V m GS V m n
[Name]
[Format]
ASCII
GS
Hex
1D
56
Decimal 29
ASCII
Hex
GS
1D
86
V
56
Decimal 29
[Range]
m n
m n
86
m n
m =1,49
m = 66, 0 n 255
[Description] Selects a mode for cutting paper and executes paper cutting. The value of m
selects the mode as follows:
m
0, 1, 49
Print mode
Partial cut (one point left uncut)
66
Feeds paper (cutting position + [ n (vertical motion unit)]), and cuts the paper partially
(one point left uncut).
V 6.10
52
CODE SOFT
GS W nL nH
[Name]
[Format]
ASCII
GS
Hex
1D
Decimal
[Range]
nL nH
57
29
87
nL nH
nL nH
0 nL 255
0 nH 255
[Description] Sets the printing area width to the area specified by nL and nH.
The printing area width is set to [( nL + nH 256) horizontal motion unit]]
inches.
[Details]
V 6.10
53
CODE SOFT
Double density mode = 1 dot
Downloaded bit image (GS /):
Double width mode or Quadruple mode = 2 dots
Normal mode or Double-height mode = 1 dot
NV bit image (FS p):
Double width mode or Quadruple mode = 2 dots
Normal mode or Double-height mode = 1 dot
Raster bit image (GS r 0):
Double width mode or Quadruple mode = 2 dots
Normal mode or Double-height mode = 1 dot
[Default]
nL = 0, nH = 2
For 58mm paper width model; nL = 104, nH = 1
[Reference]
GS L, GS P
GS \ nL nH
[Name]
[Format]
ASCII
GS
Hex
1D
Decimal
[Range]
29
nL
nH
5C nL
nH
92 nL nH
0 nL 255
0 nH 255
[Description] Sets the relative vertical print starting position from the current position in page mode.
This command sets the distance from the current position to [(nL + nH 256)
vertical or horizontal motion unit].
[Details]
V 6.10
54
CODE SOFT
GS ^ r t m (*)
[Name]
Execute macro
[Format] ASCII
Hex
GS ^ r t m
1D 5E r t m
Decimal 29 94 r t m
[Range] 0 r 255
0 t 255
m = 0, 1
[Description] Executes a macro.
r specifies the number of times to execute the macro.
t specifies the waiting time for executing the macro.
m specifies macro executing mode.
When the LSB of m = 0:
The macro executes r times continuously at the interval specified by t.
When the LSB of m = 1:
After waiting for the period specified by t, the PAPER OUT LED indicators
blink and the printer waits for the FEED button to be pressed. After the
button is pressed, the printer executes the macro once. The printer
[Details]
[Reference] GS :
V 6.10
55
CODE SOFT
GS a n (*)
[Name]
[Format]
ASCII
GS
Hex
[Range]
1D
Decimal
0 n 255
29
61
97
n
n
[Description] Enables or disables ASB and specifies the status items to include, using n as follows:
Bit Off/On
Hex
Decimal
Status for ASB
0
Off
00
0
Drawer kick-out connector pin 3 status
disabled.
On
01
1
Drawer kick-out connector pin 3 status
enabled.
1
Undefined.
2
Off
On
00
04
0
4
Off
On
00
08
0
8
4-7
Undefined.
[Details] If any of the status items in the table above are enabled, the printer transmits the status when
this command is executed. The printer automatically transmits the status whenever the enabled
status item changes. The disabled status items may change, in this case, because each status
transmission represents the current status.
If all status items are disabled, the ASB function is also disabled.
If the ASB is enabled as a default, the printer transmits the status when the printer data
reception and transmission is possible at the first time from when the printer is turned on.
The following four status bytes are transmitted without confirming whether the host is ready to
receive data. The four status bytes must be consecutive, except for the XOFF code.
Since this command is executed after the data is processed in the receive buffer, there may be
a time lag between data reception and status transmission.
When the printer is disabled by ESC = (Select peripheral device), the four status bytes are
transmitted whenever the status changes.
When using DLE EOT, GS I, or GS r, the status transmitted by these commands and ASB
status must be differentiated, according to the procedure in Appendix G, Transmission Status
Identification.
V 6.10
56
CODE SOFT
GS f n (*)
[Name]
[Format] ASCII GS f
Hex
1D 66 n
Decimal 29 102 n
[Range] n = 0, 1, 48, 49
[Description] Selects a font for the HRI characters used when printing a bar code.
n selects a font from the following table:
n
Font
0, 48
Font A (12 24)
Font B (9 17)
1, 49
n=0
[Reference] GS H, GS k
GS h n
[Name]
[Format]
ASCII
GS h
Hex
1D 68 n
Decimal 29 104 n
[Range]
1 n 255
n = 162
[Reference] GS k
V 6.10
57
CODE SOFT
GS k m d1dk NUL GS k m n d1..dn
[Name]
Remarks
48 d 57
1
2
UPC-E
JAN13 (EAN13)
11 k 12
12 k 13
48 d 57
48 d 57
3
4
JAN8 (EAN8)
CODE39
7k8
1 k 255
48 d 57
45 d 57
65 d 90
d = 32, 36, 37, 43,
45, 46, 47
5
ITF
1 k 255even
number
CODABAR
1 k 255
d = 42
48 d 57
48 d 57,
65 d 68,
d = 36, 43, 45, 46,
47, 58
V 6.10
58
CODE SOFT
65
66
UPC-A
UPC-E
11 n 12
11 n 12
48 d 57
48 d 57
67
68
JAN13 (EAN13)
JAN8 (EAN8)
12 n 13
7n8
48 d 57
48 d 57
69
CODE39
1 n 255
45 d 57
65 d 90
d = 32, 36, 37, 43, 45,
46, 47
70
ITF
1 n 255even
number
71
CODABAR
1 n 255
d = 42
48 d 57
48 d 57,
65 d 68,
d = 36, 43, 45, 46,
72
73
CODE93
CODE128
1 n 255
2 n 255
47, 58
0 d 127
0 d 127
[Details for ]
. This command ends with a NUL code.
. When the bar code system used is UPC-A or UPC-E, the printer prints the bar code data after
receiving 12 bytes bar code data and processes the following data as normal data.
. When the bar code system used is JAN13 (EAN13), the printer prints the bar code after
receiving 13 bytes bar code data and processes the following data as normal data.
. When the bar code system used is JAN8 (EAN8), the printer prints the bar code after
receiving 8 bytes bar code data and processes the following data as normal data.
. The number of data for ITF bar code must be even numbers. When an odd number of data
is input, the printer ignores the last received data.
[Details for ]
. n indicates the number of bar code data, and the printer processes n bytes from the next
character data as bar code data.
. If n is outside of the specified range, the printer stops command processing and processes
the following data as normal data.
[Details in standard mode]
. If d is outside of the specified range, the printer only feeds paper and processes the following
data as normal data.
. If the horizontal size exceeds printing area, the printer only feeds the paper.
. This command feeds as much paper as is required to print the bar code, regardless of the
line spacing specified by ESC 2 or ESC 3.
. This command is enabled only when no data exists in the print buffer. When data exists in
the print buffer, the printer processes the data following m as normal data.
. After printing bar code, this command sets the print position to the beginning of the line.
. This command is not affected by print modes (emphasized, double-strike, underline,
character size, white/black reverse printing, or 90 rotated character, etc.), except for
upside-down printing mode.
V 6.10
59
CODE SOFT
[Details in page mode]
. This command develops bar code data in the print buffer, but does not print it. After
processing bar code data, this command moves the print position to the right side dot of the
bar code.
. If d is out of the specified range, the printer stops command processing and processes the
following data as normal data. In this case the data buffer position does not change.
. If bar code width exceeds the printing area, the printer does not print the bar code but moves
the data buffer position to the left side out of the printing area.
When CODE93 (m = 72) is used:
. The printer prints an HRI character ( ) as start character at the beginning of the HRI
character string.
. The printer prints an HRI character ( ) as a stop character at the end of the HRI character
string.
. The printer prints HRI characters ( + an alphabetic character) as a control character (<00>H
to <1F>H and <7F>H):
V 6.10
60
CODE SOFT
GS r n (*)
[Name]
Transmit status
[Format] ASCII GS r
Hex
1D 72
n
n
Decimal 29 114 n
[Range] n = 1, 2, 49, 50
[Description] Transmits the status specified by n as follows:
N
Function
1, 49
Transmits paper sensor status
2, 50
2,3
On
Off
03
00
3
0
On
Off
0C
00
12
0
5,6
7
Off
00
Undefined.
Not used. Fixed to Off.
Bits 2 and 3: When the paper end sensor detects a paper end, the printer goes offline and does not
execute this command. Therefore, bits 2 and 3 do not transmit the status of paper end.
Bit
Off/On Hex
Decimal
Status for ASB
0
Off
00
0
Drawer kick-out connector pin 3 is LOW.
V 6.10
1-3
On
-
01
-
1
-
4
5,6
Off
-
00
-
0
-
Off
00
61
CODE SOFT
GS v 0 m xL xH yL yH d1....dk
[Name]
[Format]
ASCII GS v
Hex
[Range]
0 m xL xH yL yH d1...dk
1D 76 30 m xL xH yL yH d1...dk
[Description] Selects Raster bit-image mode. The value of m selects the mode, as follows:
m
Mode
Vertical Dot Density
Horizontal Dot ensity
0, 48
Normal
200 DPI
200 DPI
1, 49
2, 50
Double-width
Double-height
200 DPI
100 DPI
100 DPI
200 DPI
3, 51
Quadruple
100 DPI
100 DPI
xL, xH, select the number of data bits ( xL+ xH256) in the horizontal direction for the bit
image.
yL, yH, select the number of data bits ( yL+ yH256) in the vertical direction for the bit
[Details]
image.
In standard mode, this command is effective only when there is no data in the
print buffer.
This command has no effect in all print modes (character size, emphasized,
double-strike, upside-down, underline, white/black reverse printing, etc.) for
raster bit image.
If the printing area width set by GS L and GS W is less than the minimum width,
the printing area is extended to the minimum width only on the line in question.
The minimum width means 1 dot in normal (m=0, 48) and double-height (m=2,
50), 2 dots in double-width (m=1, 49) and quadruple (m=3, 51) modes.
Data outside the printing area is read in and discarded on a dot-by-dot basis.
The position at which subsequent characters are to be printed for raster bit
image is specified by HT (Horizontal Tab), ESC $ (Set absolute print position),
ESC \ ( Set relative print position), and GS L (Set left margin ). If the position at
which subsequent characters are to be printed is not a multiple of 8, print speed
may decline.
The ESC a (Select justification) setting is also effective on raster bit images.
When this command is received during macro definition, the printer ends macro
definition, and begins performing this command. The definition of this
command should be cleared.
d indicates the bit-image data. Set time a bit to 1 prints a dot and setting it to 0
does not print a dot.
V 6.10
62
CODE SOFT
GS w n
[Name]
[Format] ASCII GS w n
Hex
1D 77 n
Decimal 29 119 n
[Range] 2 n 6
[Description] Set the horizontal size of the bar code.
n specifies the bar code width as follows:
n
Module Width (mm) for
Binary-level bar codes
Multi-level Bar Code
Thin element width (mm)
Thick element width (mm)
2
0.25
0.25
0.625
0.375
0.375
1.0
0.5
0.5
1.25
0.625
0.625
1.625
0.75
0.75
1.875
V 6.10
63
CODE SOFT
FS ! n
[Name]
[Format]
ASCII
FS
Hex
Decimal
1C
n
21
28
33
0 n 255
[Range]
[Description] Sets the print mode for Kanji characters, using n as follows:
Bit
Off/On
Hex
Decimal
Function
Undefined.
1
2
Off
00
Undefined.
Double-width mode is OFF.
On
Off
04
00
4
.
On
-
08
-
8
-
Undefined.
6
7
Off
00
Undefined.
Underline mode is OFF.
On
80
128
[Details]
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.
The thickness of the underline is that specified by FS , regardless of the
character size.
When some of the characters in a line are double or more height, all the
characters on the line are aligned at the baseline.
It is possible to emphasize the Kanji character using FS W or GS !, the setting
of the last received command is effective.
It is possible to turn under line mode on or off using FS , and the setting of the
last received command is effective.
[Default]
[Reference]
V 6.10
n=0
FS -, FS W, GS !
64
CODE SOFT
FS &
[Name]
[Format]
FS &
Hex
1C 26
Decimal 28 38
[Description] Selects Kanji character mode.
[Reference] FS ., FS C
FS n
[Name]
[Format]
ASCII
FS
Hex
Decimal
[Range]
1C
28
n
2D
45
0 n 2, 48 n 50
[Description] Turns underline mode for Kanji characters on or off, based on the following values
of n.
n
0, 48
1, 49
2, 50
[Details]
Function
Turns off underline mode for Kanji characters
Turns on underline mode for Kanji characters (1-dot thick)
Turns on underline mode for Kanji characters (2-dot thick)
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.
After the underline mode for Kanji characters is turned off by setting n to 0,
underline printing is no longer performed, but the previously specified underline
thickness is not changed. The default underline thickness is 1 dot.
The specified line thickness does not change even when the character size
changes.
It is possible to turn underline mode on or off using FS !, and the last received
command is effective.
[Default]
[Reference]
V 6.10
n=0
FS !
65
CODE SOFT
FS .
[Name]
[Format] ASCII FS .
Hex
1C 2E
Decimal 28 46
[Description] Cancels Kanji character mode.
[Reference] FS &, FS C
FS 2 c1 c2 d1...dk
[Name]
[Format]
ASCII
FS
Hex
Decimal
[Range]
1C
c1 c2 d1...dk
32
28
50
c1 c2 d1...dk
c1 c2 d1...dk
c1 and c2 indicate character codes for the defined characters. The range of
values for c1 and c2 differ depending on the character code system used.
Model type
c1
c2
c1 = 77H
21H c2 7EH
c1 = ECH
40H c2 7EH
c1 = FEH
80H c2 9EH
A1H c2 FEH
c1 = FEH
A1H c2 FEH
0 d 255
k = 72
[Description] Defines user-defined Kanji characters for the character codes specified by c1 and
c2.
[Details]
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.
[Default]
[Reference]
V 6.10
All spaces.
FS C
66
CODE SOFT
V 6.10
67
CODE SOFT
FS S n1 n2
[Name]
[Format]
ASCII
FS
Hex
1C
Decimal
[Range]
n 1 n2
53
28
83
n 1 n2
n 1 n2
0 n 1 255
0 n 2 255
[Description] Sets left- and right-side Kanji character spacing n1 and n2, respectively.
When the printer model used supports GS P, the left-side character spacing is
[n1 horizontal or vertical motion units], and the right-side character spacing is
[ n2 horizontal or vertical motion units].
[Details]
When double-width mode is set, the left- and right-side character spacing is
twice the normal value.
The horizontal and vertical motion units are set by GS P. The previously
specified character spacing does not change, even if the horizontal or vertical
motion unit is changed using GS P.
The value cannot be less than the minimum horizontal movement amount, and
must be in even units of the minimum horizontal movement amount.
In standard mode, the horizontal motion unit is used.
In page mode, the horizontal or vertical motion unit differs in page mode,
depending on starting position of the printable area as follows:
When the starting position is set to the upper left or lower right of the
printable area using ESC T, the horizontal motion unit ( x) is used.
When the starting position is set to the upper right or lower left of the
printable area using ESC T, the vertical motion unit ( y) is used.
The maximum right-side spacing is 255/180 inches for the paper roll and is
approximately 35.983 mm {255/150 inches}. Any setting exceeding the
maximum is converted to the maximum automatically.
[Default]
[Reference]
V 6.10
n1 = 0, n2 = 0
GS P
68
CODE SOFT
FS W n
[Name]
[Format]
ASCII
FS
Hex
W
1C
Decimal
[Range]
n
57
28
87
0 n 255
[Default]
n=0
[Reference]
FS !, GS !
ESC B n t
[Name]
[Format]
ASCII
Hex
[Range]
ESC
1B
n
42
Decimal 27 66
1<=n<=91<=t<=9
t
n
t
n
V 6.10
69
CODE SOFT
ESC C m t n
[Name]
[Format]
ASCII
ESC
Hex
[Range]
1B
m
43
t
m
n
t
Decimal 27 67 m t n
1<=m<=201<=t<=200<=n<=3
V 6.10
70