STP-131 Commands - Bixolon Printers from Century Systems

STP-131 Commands - Bixolon Printers from Century Systems
Command Manual
STP-131
Thermal Printer
Rev. 1.01
http://www.samsungminiprinters.com
STP-131
1. Control Command List
Command
HT
LF
CR
DLE EOT
ESC SP
ESC !
ESC $
ESC %
ESC &
ESC *
ESC ESC 2
ESC 3
ESC =
ESC ?
ESC @
ESC D
ESC E
ESC G
ESC J
ESC R
ESC V
ESC \
ESC a
ESC c3
ESC c4
ESC c5
ESC d
ESC i
ESC p
ESC t
ESC{
FS p
FS q
GS !
GS *
GS /
GS :
GS B
GS H
GS I
GS L
GS P
GS V
GS W
GS ^
GS f
GS h
GS k
GS r
GS v
GS w
Rev. 1.01
Name
Horizontal tab
Print and line feed
Print and carriage return
Real-time status transmission
Set right-side character spacing
Select print mode(s)
Set absolute print position
Select/cancel user-defined character set
Define user-defined characters
Define user-defined characters
Turn under line mode on/off
Select 1/6-inch line spacing
Set line spacing
Select peripheral device
Cancel user-defined characters
Initialize printer
Set horizontal tab positions
Turn emphasized mode on/off
Turn double-strike mode on/off
Print and feed paper
Select an international character set
Turn 90 clockwise rotation mode on/off
Set relative print position
Select justification
Select paper sensor(s)to output Paper-end signals
Select paper sensor(s) to stop printing
Enable/disable panel buttons
Print and feed paper n lines
Partial cut(one point center uncut)
General pulse
Select character code table
Turn upside-down printing mode on/off
Print NV bit image
Defined NV bit image
Select character size
Define downloaded bit image
Print downloaded bit image
Start/end macro definition
Turn white/black reverse printing mode on/off
Select printing position of HRI characters
Transmit print ID
Set left margin
Set vertical and horizontal motion units
Select cut mode and cut paper
Set printing area width
Execute macro
Select font for HRI characters
Set bar code height
print bar code
Transmit status
Print raster bit image
Set bar code width
-2-
STP-131
2. Control Commands Details
HT
[Name]
[Format]
[Description]
LF
[Name]
[Format]
[Description]
FF
[Name]
[Format]
[Description
CR
[Name]
[Format]
[Description]
CAN
[Name]
[Format]
[Description]
DLE EOT n
[Name]
[Format]
[Range]
[Description]
Rev. 1.01
Horizontal tab.
ASCII
HT
Hex
09
Decimal
9
Moves the print position to the next horizontal tab position.
Print and line feed.
ASCII
LF
Hex
0A
Decimal
10
Prints the data in the print buffer and feeds one line based on the current
line spacing.
Print and return o standard mode in page mode.
ASCII
FF
Hex
0C
Decimal
12
Prints the data in the print buffer collectively and returns to standard mode.
Print and carriage return.
ASCII
HT
Hex
0D
Decimal
13
When automatic line feed is enabled, this command functions the same as
LF; when automatic line feed is disabled, this command is ignored.
Cancel print data in page mode.
ASCII
CAN
Hex
18
Decimal
24
In page mode, deletes all the print data in the current printable area.
Real-time status transmission.
ASCII
DLE
EOT
n
Hex
10
04
n
Decimal
16
4
n
1 ≤n ≤4
Transmits the selected printer status specified by n in real-time, according
to the following parameters :
n = 1 : Transmit printer status.
n = 2 : Transmit off-line status.
n = 3 : Transmit error status.
n = 4 : Transmit paper roll sensor status.
-3-
STP-131
n = 1 : Printer status
Bit
Off/On
Hex
0
Off
00
1
On
02
2
Off
00
On
04
3
Off
00
On
08
4
On
10
5-6
7
Off
00
Decimal
0
2
0
4
0
8
16
0
Function
Not used. Fixed to Off.
Not used. Fixed to On.
Drawer open/close signal is LOW (connector pin 3).
Drawer open/close signal is HIGH (connector pin 3).
On-Line
Off-Line
Not used. Fixed to On.
Undefined.
Waiting for on-line recovery.
n = 2 : Off-line status
Bit
Off/On
Hex
0
Off
00
1
On
02
2
3
Off
00
Decimal
0
2
0
On
On
On
On
Off
8
16
8
16
0
Function
Not used. Fixed to Off.
Not used. Fixed to On.
Undefined.
Paper is not being fed by using the PAPER FEED
button.
Paper is being fed by the PAPER FEED button.
Not used. Fixed to On.
No paper-end stop.
Printing stops due to paper end.
No error.
4
5
6
7
08
10
08
10
00
Bit 5 : Becomes on when the paper end sensor detects paper end and printing stops.
n = 3 : Error status
Bit
Off/On
0
Off
1
On
2
3
Off
4
On
5
Off
6
Off
7
Off
Hex
00
02
00
10
00
00
00
Decimal
0
2
0
16
0
0
0
Function
Not used. Fixed to Off.
Not used. Fixed to On.
Undefined.
Not used. Fixed to Off.
Not used. Fixed to On.
Not used. Fixed of Off.
Not used. Fixed of Off.
Not used. Fixed to Off.
Bit 3 :
If these errors occur due to paper jams or the like, it is possible to recover by
correcting the cause of the error and executing DLE ENQ n(1 ≤ n ≤ 2).
If an error due to a circuit failure (e.g. wire break) occurs, it is impossible to
recover.
Bit 6 :
When printing is stopped due to high print head temperature until the print
head temperature drops sufficiently or when the paper roll cover is open
during printing, bit 6 is On.
Rev. 1.01
-4-
STP-131
n = 4 : Continuous paper sensor status
Bit
Off/On
Hex
Decimal Function
0
Off
00
0
Not used. Fixed to Off.
1
On
02
2
Not used. Fixed to On.
2, 3
Off
00
0
Paper roll end sensor. Paper adequate.
On
0C
12
Paper near-end is detected by the paper
roll near-end sensor.
4
On
10
16
Not used. Fixed to On.
5, 6
Off
00
0
Not roll end sensor. Paper present.
On
60
96
Paper is detected by the paper roll end sensor.
7
Off
00
0
Not used. Fixed to Off.
ESC SP n
[Name]
[Format]
[Range]
[Description]
ESC ! n
[Name]
[Format]
[Range]
[Description]
Bit
0
1,2
3
4
5
6
7
Off/On
Off
On
Off
On
Off
On
Off
On
Off
On
Rev. 1.01
Set right-side character spacing.
ASCII
ESC
SP
n
Hex
1B
20
n
Decimal
27
32
n
0 ≤n ≤255
Sets the character spacing for the right side of the character to n/160
inches.
Select print mode(s).
ASCII
ESC
!
n
Hex
1B
21
n
Decimal
27
33
n
0 ≤n ≤255
Selects print mode(s) using n as follows.
Hex
00
01
00
08
00
10
00
20
00
80
Decimal
0
1
0
8
0
16
0
32
0
128
Function
Character font(9 ×9) selected.
Character font(9 ×7) selected.
Undefined.
Emphasized mode not selected.
Emphasized mode selected.
Double-height mode not selected.
Double-height mode selected.
Double-width mode not selected.
Double-width mode selected.
Undefined.
Underline mode not selected.
Underline mode selected.
-5-
STP-131
ESC-$ nL nH
[Name]
[Format]
[Range]
[Description]
ESC % n
[Name]
[Format]
[Range]
[Description]
Set absolute print position.
ASCII
ESC
$
nL
nH
Hex
1B
24
nL
nH
Decimal
27
36
nL
nH
0 ≤nL ≤255
0 ≤nH≤255
Set the distance from the beginning of the line to the position at with
subsequent characters are to be printed.
● The distance from the beginning of the line to the print position is [(nL +
nH x 256) x (vertical or horizontal motion unit)] inches.
Select / Cancel user-defined character set.
ASCII
ESC
%
n
Hex
1B
25
n
Decimal
27
37
n
0 ≤n ≤255
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.
ESC & y c1 c2 [x1 d1…d(y X x1)]… [xk d1… d(yx X xk)]
[Name]
Define user-defined characters.
[Format]
ASCII ESC & n y c1 c2[x1 d1…d(y X x1)]… [xk d1… d(yx X xk)]
Hex
1B 26 n y c1 c2[x1 d1…d(y X x1)]… [xk d1… d(yx X xk)]
Decimal 27 38 n y c1 c2[x1 d1…d(y X x1)]… [xk d1… d(yx X xk)]
[Range]
y=3
32 ≤ c1 ≤ c2 ≤ 126
0 ≤ x ≤ 12 Font A (12 x 24)
0 ≤ x ≤ 9 Font B ( 9 x 24)
0 ≤ d1 ... d(y x xk) ≤ 255
Defines user-defined characters.
[Description] ● 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.
ESC * m nL nH d1…dk
[Name]
Select bit-image mode.
[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, 32, 33
0 ≤ nL ≤ 255
0 ≤ nH ≤ 3
0 ≤ d ≤ 255
Selects a bit-image mode using m for the number of dots specified by nL
[Description] nH, as follows:
Rev. 1.01
-6-
STP-131
m
0
1
32
33
Mode
8-dot single-density
8-dot double-density
24-dot sigle-density
24-dot double-density
ESC - n
[Name]
[Format]
[Range]
[Description]
Vertical direction
Number
Dot
of Dots
Destiny
8
60 DPI
8
60 DPI
24
180 DPI
24
180 DPI
Turn underline mode on / off.
ASCII
ESC
n
Hex
1B
2D
n
Decimal
27
45
n
0 ≤ n ≤ 2, 48 ≤ n ≤ 50
Turns underline mode on or off, based on the following values of n :
n
0, 48
1, 49
2, 50
ESC 2
[Name]
[Format]
[Description]
ESC 3 n
[Name]
[Format]
[Range]
[Description]
ESC = n
[Name]
[Format]
[Range]
[Description]
Bit
0
1-7
Rev. 1.01
Horizontal direction
Dot
Number of Data
Destiny
(K)
90 DPI
nL + nH x 256
180 DPI
nL + nH x 256
90 DPI
(nL + nH x 256) x 3
180 DPI
(nL + nH x 256) x 3
Function
Turns off underline mode.
Turns on underline mode (1-dot thick).
Turns on underline mode (2-dots thick).
Select default line spacing.
ASCII
ESC
2
Hex
1B
32
Decimal
27
50
Select 1/6-inch line (approximately 4.23mm) spacing.
Set line spacing
ASCII
ESC
3
n
Hex
1B
33
n
Decimal
27
51
n
0 ≤n ≤255
Sets the line spacing to [n X vertical or horizontal motion unit] inches.
Select peripheral device.
ASCII
ESC
=
n
Hex
1B
3D
n
Decimal
27
61
n
0 ≤n ≤3
Selects device to which host computer sends data, using n as follows :
Off/On
Off
On
-
Hex
00
01
-
Decimal
0
1
-
-7-
Function
Printer Disabled.
Printer Enabled.
Undefined.
STP-131
ESC ? n
[Name]
[Format]
[Range]
[Description]
ESC @
[Name]
[Format]
[Description]
Cancel user-defined characters.
ASCII
ESC
?
n
Hex
1B
3F
n
Decimal 27
63
n
32 ≤n ≤126
Cancels user-defined characters.
Initialize printer.
ASCII
ESC
@
Hex
1B
40
Decimal
27
64
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.
ESC D n1… nk NUL
[Name]
Set horizontal tab positions.
[Format]
ASCII
ESC
D
n1… nk NUL
Hex
1B
44
n1… 00
Decimal
27
68
n1… 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 ta positions to be set.
ESC E n
[Name]
[Format]
[Range]
[Description]
ESC G n
[Name]
[Format]
[Range]
[Description]
Rev. 1.01
Turn emphasized mode on / off.
ASCII
ESC
E
n
Hex
1B
45
n
Decimal 27
69
n
1 ≤n ≤255
Turns emphasized mode on or off.
When the LSB is 0, emphasized mode is turned off.
When the LSB is 1, emphasized mode is turned on.
Turn on / off double-strike mode.
ASCII
ESC
G
n
Hex
1B
47
n
Decimal 27
71
n
0 ≤n ≤255
Turns double-strike mode on or off.
● When the LSB is 0, double-strike mode is turned off.
● When the LSB is 1, double-strike mode is turned on.
-8-
STP-131
ESC J n
[Name]
[Format]
[Range]
[Description]
ESC R n
[Name]
[Format]
[Range]
[Description]
Print and feed paper.
ASCII
ESC
G
n
Hex
1B
4A
n
Decimal 27
74
n
0 ≤n ≤255
Prints the data in the print buffer and feeds the paper n X vertical or
horizontal motion unit.
Select an international character set.
ASCII
ESC
R
n
Hex
1B
52
n
Decimal
27
82
n
0 ≤n ≤10
Selects an international character set in from the following table.
n
0
1
2
3
4
[Default]
Character set
U.S.A.
France
Germany
U.K.
Denmark I
n
5
6
7
9
10
Character set
Sweden
Italy
Spain
Norway
Denmark II
n=0
ESC V n
[Name]
[Format]
Turn 90° clockwise rotation mode on/off.
ASCII
ESC
U
n
Hex
1B
56
n
Decimal
27
86
n
[Range]
0≤n≤3, 48≤n≤49
Turns 90° clockwise rotation mode on/off.
[Description] n is used follows:
n
Function
0, 48
Turn off 90° clockwise rotation mode
1, 49
Turns on 90° clockwise rotation mode
ESC \ nL nH
[Name]
[Format]
[Range]
[Description]
Rev. 1.01
Set relative print position.
ASCII
ESC
\
nL
nH
Hex
1B
5C
nL
nH
Decimal
27
92
nL
nH
0 ≤ nL ≤ 255
0 ≤ nL ≤ 255
Selects 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 x 256) x horizontal or vertical motion unit]
-9-
STP-131
ESC a n
[Name]
[Format]
Select justification.
ASCII
ESC
a
n
Hex
1B
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 type of justification as follows.
[Range]
[Description]
n
0, 48
1, 49
2, 50
ESC c 3 n
[Name]
[Format]
[Range]
[Description]
Bit
0
1
2
3
4-7
ESC c 4 n
[Name]
[Format]
[Range]
[Description]
Bit
0
1
2-7
Rev. 1.01
Justification
Left justification
Centering
Right justification
Select paper sensor(s) to output paper end signals.
ASCII
ESC
c
3
n
Hex
1B
63
33
n
Decimal
27
99
51
n
0 ≤n ≤255
Selects the paper sensor(s) to output paper end signals.
■ Each bit of n is used as follows:
Off/On
Off
On
Off
On
Off
On
Off
On
-
Hex
00
01
00
02
00
04
00
08
-
Decimal
0
1
0
2
0
4
0
8
-
Function
Paper roll near-end sensor disable.
Paper roll near-end sensor enable.
Paper roll near-end sensor disable.
Paper roll near-end sensor enable.
Paper roll end sensor disable.
Paper roll end sensor enable.
Paper roll end sensor disable.
Paper roll end sensor enable.
Undefined.
Select paper sensor(s) to stop printing.
ASCII
ESC
c
3
n
Hex
1B
63
34
n
Decimal
27
99
52
n
0 ≤n ≤255
Selects the paper sensor(s) used to stop printing when a paper-end is
detected, using n as follows:
Off/On
Off
On
Off
On
-
Hex
00
01
00
02
-
Decimal
0
1
0
2
- 10 -
Function
Paper roll end sensor disable.
Paper roll end sensor enable.
Paper roll end sensor disable.
Paper roll end sensor enable.
Undefined.
STP-131
ESC c 5 n
[Name]
[Format]
[Range]
[Description]
ESC d n
[Name]
[Format]
[Range]
[Description]
ESC i n
[Name]
[Format]
[Range]
[Description]
Enable / Disable panel button.
ASCII
ESC
c
3
n
Hex
1B
63
35
n
Decimal
27
99
53
n
0 ≤n ≤255
Enables or disables the panel button.
● When the LSB of n is 0, the panel buttons are enabled.
● When the LSB of n is 1, the panel buttons are disabled.
Print and feed n lines.
ASCII
ESC
d
n
Hex
1B
64
n
Decimal
27
100
n
0 ≤n ≤255
Prints the data in the print buffer and feeds n lines.
Partial Cut
ASCII
ESC
i
Hex
1B
69
Decimal
27
105
0 ≤ n ≤ 255
Prints the data in the print cut of paper.
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, 1, 48, 49
0 ≤ t1≤ 255, 0≤ t2 ≤ 255
[Description] Outputs the pulse specified by t1 and t2 to connector pin m as follows.
m
0, 48
1, 49
ESC t n
[Name]
[Format]
[Range]
[Description]
Rev. 1.01
Connector pin
Drawer kick-out connector pin 2
Drawer kick-out connector pin 5
Select character code table.
ASCII
ESC
t
n
Hex
1B
74
n
Decimal
27
116
n
0 ≤ n ≤ n, n = 255
Selects a page n from the character code table.
- 11 -
STP-131
n
0
1
2
3
4
5
255
ESC { n
[Name]
[Format]
[Range]
[Description]
FS p n m
[Name]
[Format]
[Range]
[Description]
Page
0 (PC437 [U.S.A., standard Europe])
1 (Katakana)
2 (PC850 [Multilingual])
3 (PC860 [Portuguese])
4 (PC863 [Canadian-French])
5 (PC865 [Nordic])
Space page
Turns on / off upside-down printing mode.
ASCII
ESC
{
n
Hex
1B
7B
n
Decimal
27
123
n
0 ≤n ≤255
Turns upside-down printing mode on or off.
● When the LSB is 0, upside-down printing mode is turned off.
● When the LSB is 1, upside-down printing mode is turned off.
Print NV bit image.
ASCII
FS
p
n
Hex
1C
70
n
Decimal
28
112
n
1≤n≤255
0≤m≤ 3, 48≤m≤51
Prints a NV bit image n using the mode specified by m.
m
Mode
Vertical Dot Density (DPI)
Horizontal Dot Density (DPI)
0.48
Normal
180
180
1.49
Double-width
180
90
2.50
Double-height
90
180
3.51
Quadruple
90
90
* n is the number of the NV bit image (defined using the FS q command).
* m specifies the bit image mode.
Rev. 1.01
- 12 -
STP-131
FS q n [xL xH yL yH d1…dk]1…[xL xH yL yH d1…dk]n
[Name]
Defined NV bit image.
[Format]
ASCII
FS q
n
[xL xH yL yH d1…dk]1…[xL xH yL yH d1…dk]n
Hex
1B 71
n
[xL xH yL yH d1…dk]1…[xL xH yL yH d1…dk]n
Decimal 28 113
n
[xL xH yL yH d1…dk]1…[xL xH yL yH d1…dk]n
[Range]
1 ≤ n ≤ 255
0 ≤ Xl ≤ 255
0 ≤ xH ≤ 3 ≤ (when 1 ≤ (xL + xH X 256) ≤ 1023
0 ≤ yL ≤ 3 ≤ (when 1 ≤ (xL + xH X 256) ≤ 288
1 ≤ d ≤ 255
k = (xL + xH 256) X (yL + yH X 256) X 8
Total defined data area = 2M bits (256K bytes)
[Description] Define the NV bit image specified by n.
* n s pecifies the number of the defined NV bit image.
* xL, xH specifies (xL + xH 256) 8 dots in the horizontal direction
for the NV bit image you are defining.
* yL, yH specifies (yL + yH 256) 8 dots in the vertical direction
for the NV bit image you are defining.
GS ! n
[Name]
[Format]
[Range]
[Description]
Bit
Select character size.
ASCII
GS
!
n
Hex
1D
21
n
Decimal
29
33
n
0 ≤ n ≤ 255
(1≤ vertical number of times≤ 8, 1≤ horizontal number of times≤8)
Selects the character height using bits 0 to 2 and selects the character
width using bits 4 to 7, as following:
Off/On
n
0-1
4-5
Hex
Decimal
Function
Character height selection. See Table 2
Character width selection. See Table 1
Table 1
Character Width Selection
Hex
00
10
Rev. 1.01
Decimal
0
16
Table 2
Character Height Selection
Width
1(normal)
2(double-width)
Hex
00
01
- 13 -
Decimal
0
1
Width
1(normal)
2(double-width)
STP-131
GS * x y d1...d(x x y x 8)
[Name]
Deffine downloaded bit image.
[Format]
ASCII
GS
*
x
y
d1...d(x x y x 8)
Hex
1D
2A
x
y
d1...d(x x y x 8)
Decimal
29
42
x
y
d1...d(x x y x 8)
[Range]
0 ≤ n ≤ 255
1 ≤ y ≤ 255
x x y ≤ 1536
0 ≤ d ≤ 255
Defines a downloaded bit image using the dots specified by x any y.
[Description] ● x indicates the number of dots in the horizontal direction.
● y indicates the number of dots in the vertical direction.
GS / m
[Name]
[Format]
[Range]
[Description]
m
0, 48
1, 49
2, 53
3, 51
Mode
Normal
Double-width
Double-height
Quadruple
GS :
[Name]
[Format]
[Description]
GS B n
[Name]
[Format]
[Range]
[Description]
Rev. 1.01
Print downloaded bit image.
ASCII
GS
/
n
Hex
1D
2F
n
Decimal
29
47
n
0 ≤ m ≤ 3, 48 ≤ m ≤ 51
Prints a downloaded bit image using the mode specified by m.
m selects a mode from the table below:
Vertical Dot Density(DPI)
180
180
90
90
Horizontal Dot Density(DPI)
180
90
180
90
Start/End macro definition.
ASCII
GS
:
Hex
1D
3A
Decimal
29
58
Starts or ends macro definition.
Turn white/black reverse printing mode on/off.
ASCII
GS
B
n
Hex
1D
42
n
Decimal
29
66
n
0 ≤ n ≤ 255
Turn on or off white/black reverse printing mode.
● When the LSB is 0, white/black reverse printing mode is turned off.
● When the LSB is 1, white/black reverse printing mode is turned off.
- 14 -
STP-131
GS H n
[Name]
[Format]
[Description]
Select printing position of HRI characters.
ASCII
ESC
H
n
Hex
1B
48
n
Decimal
27
72
n
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
Above bar code.
2, 50
Below bar code.
3, 51
Both above and below the bar code.
● HRI indicates Human Readable Interpretation.
GS I n
[Name]
[Format]
[Range]
[Description]
n
1, 49
2, 50
3, 51
GS L nL nH
[Name]
[Format]
[Range]
[Description]
Rev. 1.01
Transmit printer ID.
ASCII
GS
I
n
Hex
1D
49
n
Decimal
29
73
n
1 ≤n ≤3, 49 ≤n ≤51
Transmits the printer ID specified by n as follows :
Printer ID
Printer model ID
Type ID
ROM version ID
Specification
STP-131S / STP-131P
Depends on ROM version
ID (hexadecimal)
30
02
10
Set left margin.
ASCII
GS
L
nL
nH
Hex
1D
4C
nL
nH
Decimal
29
76
nL
nH
1 ≤ nL ≤ 255
0 ≤ nH ≤ 255
Set the left margin using nL and nH.
● The left margin is set to [(nL + nH x 256) x horizontal motion unit)]
inches.
- 15 -
STP-131
GS P x y
[Name]
[Format]
[Range]
[Description]
① GS V m,
[Name]
[Format]
[Range]
[Description]
m
0, 1, 49
66
Set horizontal and vertical motion units.
ASCII
GS
P
x
y
Hex
1D
50
x
y
Decimal
29
80
x
y
1 ≤ x ≤ 255
0 ≤ y ≤ 255
Sets the horizontal and vertical motion units to approximately 25.4/x mm
{1/x inch and} and approximately 25.4/y mm {1/y inches}, respectively.
When x and y are set to 0, the default setting of each value is used
② GS V m n
Select cut mode and cut paper.
① ASCII
GS
V
m
Hex
1D
56
m
Decimal
29
86
m
② ASCII
GS
V
m
Hex
1D
56
m
Decimal
29
86
m
n
n
n
① m = 1, 49
② m = 66, 0 ≤ n ≤ 255
Selects a mode for cutting paper and executes paper cutting.
The value of m selects the mode as follows:
Print Mode
Partial cut (one point center uncut)
Feeds paper (cutting position + [n x )vertical motion unit)]), and
cuts the paper partially (one point center uncut).
GS W nL nH
[Name]
[Format]
[Range]
[Description]
Rev. 1.01
Set printing area width.
ASCII
GS
W
nL
nH
Hex
1D
57
nL
nH
Decimal
29
87
nL
nH
0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
Set the left margin using nL and nH.
● The left margin is set to [(nL + nH x 256) x horizontal motion unit)]
inches.
- 16 -
STP-131
GS ^ r t m
[Name]
[Format]
[Range]
[Description]
Gs f n
[Name]
[Format]
[Range]
[Description]
Execute macro.
ASCII
GS
^
r
t
m
Hex
1D
5E
r
t
m
Decimal
29
94
r
t
m
0 ≤ r ≤ 255
0 ≤ t ≤ 255
m = 0, 1
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 repeats the operation r times.
Select font for Human Readable Interpretation (HRI) characters.
ASCII
GS
f
n
Hex
1D
66
n
Decimal
29
102
n
n = 0, 1, 48, 49
Selects a font for the HRI characters used when printing
a bar code. n selects a font from the following table:
n
0, 48
1, 49
GS h n
[Name]
[Format]
[Range]
[Description]
Rev. 1.01
Font
Font A (12 x 24)
Font B (9 x 24)
Set bar code height.
ASCII
GS
h
n
Hex
1D
68
n
Decimal
29
104
n
1 ≤ n ≤ 255
Set the height of the bar code.
n specifies the number of dots in the vertical direction.
- 17 -
STP-131
① GS k m d1... dk NUL,
② GS k m n d1... dn
[Name]
Print bar code.
[Format]
① ASCII
GS
k
m
d1...dk NUL
Hex
1D
6B
m
d1...dk
00
Decimal
29
104
m
d1...dk
0
② ASCII
GS
V
m
n
d1...dn
Hex
1D
56
m
n
d1...dn
Decimal
29
86
m
n
d1...dn
[Range]
① 0 ≤ m ≤ 6 (k and d depends on the bar code system used.)
② 65 ≤ m ≤ 73 (n and d depends on the bar code system used)
[Description] Selects a bar code system and prints the bar-code.
m selects a bar code system as follows:
m
0
1
2
3
① 4
Bar Code System
UPC-A
UPC-E
JAN13(EAN13)
JAN8(EAN8)
CODE39
Number of Characters
11 ≤ k ≤ 12
11 ≤ k ≤ 12
12 ≤ k ≤ 13
7≤k≤8
1≤k
5
6
ITF
CODABAR
1 ≤ k (even number)
1≤k
65
66
67
68
69
UPC-E
JAN13(EAN13)
UPC-A
CODE39
11 ≤ n ≤ 12
11 ≤ n ≤ 12
12 ≤ n ≤ 13
7≤n≤8
1 ≤ n ≤ 255
70
71
ITF
CODABAR
1 ≤ n ≤ 255 (even number)
1 ≤ n ≤ 255
72
73
CODE93
CODE128
1 ≤ n ≤ 255
2 ≤ n ≤ 255
②
GS r n
[Name]
[Format]
[Range]
[Description]
n
1, 49
2, 50
Rev. 1.01
Remarks
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57, 65 ≤ d ≤ 90,32,
36,37,43,45,46,47
48 ≤ d ≤ 57
48 ≤ d ≤ 57, 65 ≤ d ≤ 68
36,43,45,46,47,58
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57
48 ≤ d ≤ 57, 65 ≤ d ≤ 90,32,
36,37,43,45,46,47
d1 = dk = 42(1)
48 ≤ d ≤ 57
48 ≤ d ≤ 57, 65 ≤ d ≤ 68, 36,
43,45,46,47,58
0 ≤ d ≤ 127
0 ≤ d ≤ 127
Transmit status.
ASCII
GS
r
n
Hex
1D
72
n
Decimal
29
114
n
n = 1, 2, 49, 50
Transmits the status specified by n as follows.
Function
Transmits paper sensor status.
Transmits drawer kick-out connector status.
- 18 -
STP-131
GS v 0 m xL xH yL yH [d1…dk]
[Name]
Transmit status.
[Format]
ASCII
GS
v
0
m
xL x H y L y H [d1…dk]
Hex
1D
76
30 m
xL x H y L y H [d1…dk]
Decimal
29
118
48
m
xL
xH yL
yH [d1 …dk]
[Range]
0 m 3, 48 m 51
0 ≤ xL ≤ 255
0 ≤ xH ≤ 255
0 ≤ yL ≤ 255
0 ≤ d ≤ 255
k = (xL + xH X 256) (yL + yH X 256) (k ≠ 0)
[Description] Selects Raster bit-image mode. The value of m selects the mode, as
follows :
m
0, 48
1, 49
2, 50
3, 51
Mode
Normal
Double-width
Double-height
Quadruple
Vertical Dot Density (DIP)
180 DPI
180 DPI
90 DPI
90 DPI
Horizontal Dot Density (DIP)
180 DPI
90 DPI
180 DPI
90 DPI
* xL, xH, select the number of data bits (xL + xH 256) in the horizontal direction for the bit
image.
* yL, yH, select the number of data bits (yL + yH 256) in the vertical direction for the bit
image.
GS w n
[Name]
[Format]
[Range]
[Description]
n
2
3
4
5
6
Set bar code width.
ASCII
GS
w
n
Hex
1D
77
n
Decimal
29
119
n
2≤n≤6
Set the horizontal size of the bar code.
n specifies the bar code width as follows.
Module width for
multi-level bar code
0.282
0.423
0.564
0.706
0.847
Binary-level bar code
Thin element width (mm)
Thick element width (mm)
0.282
0.706
0.423
1.129
0.564
1.411
0.706
1.834
0.847
2.258
● Multi-level bar codes are as follows : UPC-A, UPC-E, JAn13(ENA13), JAN8(EAN8),
CODE93, CODE128.
● Binary-level bar codes are as follows : CODE39, ITF, CODABAR
Rev. 1.01
- 19 -
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement