STP131_user_manual

STP131_user_manual
Warning - U.S
DATE: July. 2001
MANUAL REVISION 2.0
STP131 Series
Operator's Manual
This equipment has been tested and found to comply with the limits for a Class A
digital device pursuant to Part 15 of the FCC Rules. These limits are designed to
provide reasonable protection against harmful interface when the equipment is
operated in a commercial environment. This equipment generates uses, and can
radiate radio frequency energy and, if not installed and uses in accordance with
the instruction manual, may cause harmful interference to radio communications.
Operation of this equipment in a residential area is likely to cause harmful
interference in which case the user will be required to correct the interference at
his own expense.
Notice - Canada
This Apparatus complies with class "A" limits for radio interference as specified in
the Canadian department of communications radio interference regulations.
Get appareil est conforme aux normes class "A" d'interference radio tel que
specifier par ministre canadien des communications dans les reglements
d'interference radio.
Caution
Some semiconductor devices are easily damaged by static electricity. You should
turn the printer "OFF", before you connect or remove the cables on the rear side,
in order to guard the printer against the static electricity. If the printer is damaged
by the static electricity, you should turn the printer "OFF".
Introduction
The STP131 Series Roll Printer are designed for use with electronic instruments such
as system ECR, POS, banking equipment peripheral equipment, etc.
The main features of the printer are as follows:
1. High speed printing : 17.3(1/6" Feed) lines per second.
2. Low noise thermal printing.
3. RS-232(STP131 Series), Parallel(STP131 Series)
4. The data buffer allows the unit to receive print data even during printing.
5. Peripheral units drive circuit enables control of external devices such as
cash drawer.
6. Characters can be scaled up to 64 times compared to it's original size.
7. Bar code printing is possible by using a bar code command.
8. Different print densities can be selected by DIP switches.
Please be sure to read the instruction in this manual carefully before using your
new STP131 Series.
TEL : 82-31-210-5620
FAX : 82-31-210-5589
NOTE : The socket-outlet shall be near the equipment and it shall
be easy accessible.
Table of Contents
Chapter 1. Setting Up the Printer
1-1. Unpacking
Chapter 1. Setting up the printer
4
1-1. Unpacking
4
1-2. Connecting the cables
5
1-3. Connecting the computer
6
1-4. Connecting the drawer
6
1-5. Connecting the power supply
7
1-6. Installing or replacing the paper roll
8
1-7. Adjustments and settings
10
1-8. Using the Printer
10
Chapter 2. Hexadecimal dumping
12
Chapter 3. The self test
13
Your printer box should include these items. If any items are damaged or missing,
please contact your dealer for assistance.
Operator's Manual
Roll paper
STP131 Series
Chapter 4. Code table
14
Chapter 5. Control commands
22
Power cable
AC Adapter
Interface cable (option)
Appendix
A. Connectors
44
44
Interface connector
44
Drawer connector
46
B. Notes
46
C. Specification
47
25 pin
25 pin
Parallel cable
3
4
9 pin
25 pin
Serial cable
1-2. Connecting the Cables
1-3. Connecting the Computer
You can connect up to three cables to the printer. They all connect to the connector
panel on the back of the printer, which is shown below:
You need an appropriate interface cable.
1. Plug the cable connector securely into the printer's interface connector.
2. Tighten the screws on both sides of the cable connector.
Power supply
connector
Interface connector
Drawer kick-out
connector
3. Attach the other end of the cable to the computer.
1-4. Connecting the Drawer
NOTE : Before connecting any of the cables, make sure that both
the printer and the host are turned off.
WARNING :
Use a drawer that matches the printer specification. Using an improper drawer may
damage the drawer as well as the printer.
CAUTION :
Do not connect a telephone line to the drawer kick-out connector; otherwise the printer
and the telephone line may be damaged.
Plug the drawer cable into the drawer kick-out connector on the back of the printer next
to the power supply connector.
5
6
1-5. Connecting the Power Supply
1-6. Installing or Replacing the Paper Roll
CAUTION :
NOTE : Be sure to use paper rolls that specifications. Do not use papaer
rolls that have the paper glued to the core because the printer
cannot detect the paper end correctly.
When connecting or disconnecting the power supply from the printer, make sure that
the power supply is not plugged into an electrical outlet. Otherwise you may damage the
power supply or the printer.
1. Make sure that the printer is not receiving data; otherwise, data may be lost.
If the power supply's rated voltage and your outlet's voltage do not match, contact your
dealer for assistance. Do not plug in the power cord. Otherwise, you may damage the
power supply or the printer.
2. Open the paper roll cover by pull up the cover.
1. Make sure that the Printer's power switch is turned off, and the power supply's power
cord is unplugged from the electrical outlet.
2. Check the label on the power supply to make sure that the voltage required by the
power supply matches that of your electrical outlet.
3. Plug in the power supply's Adapter cale as shown below. Notice that the flat side of
the plug faces down.
You must turn on the printer before replace the paper roll.
NOTE : Do not open the print cover while the printer is operating.
This may damage the printer.
3. Remove the used paper roll core if there is one.
4. Insert the paper roll.
Power connector
Adapter cable
NOTE : To remove the DC cable connector, make sure that the power
supply's power cord is unplugged; then grasp the connector
at the arrow and pull it straight out.
7
8
5. Be sure to note the correct direction that the paper comes off the roll.
1-7. Adjustments and Settings
The STP131 Series is set up at the factory to be appropriate for almost all users.
It does, however, offer some settings for users with special requirements.
It has DIP switches that allow you to change communication settings, such as
handshaking and parity check, as well as print density.
Ths STP131 Series also has a near-end sensor for the paper. This can give you a
warning when the paper is almost out. If you find that there is not enough paper
remalining on the roll when the paper low is triggered, the Error LED(Red) is turn on.
6. Close the cover.
1-8. Using the Printer
Control Panel
POWER
ERROR
FEED
Button
The button can be disabled by the ESC c 5 command.
NOTE : When closing the cover, press the center of printer cover firmlay
to prevent Paper miss-loading.
Press the FEED button once to advance paper one line. You can also hold down the
FEED button to feed paper continuously.
7. Tear off the paper as shown.
Panel lights
Power(Green)
The POWER light is on whenever the printer is on.
ERROR(Red)
1) The error LED blinks fast when paper is out.
2) The error LED blinks when the Near End Sensor triggered.
NOTE : Both Power and Error LED is blank when the mecha cover is
open.
9
10
Chapter 2. Hexadecimal Dumping
This feature allows experienced users to see exactly what data is coming to the printer.
This can be useful in finding software problems. When you turn on the hexadecimal
dump function, the printer prints all commands and data in hexadecimal format along
with a gulde section to help you find specific commands.
Serial Interface Specification
ON
9L
1
KONKSDOBH
2
3
4
5
2
3
4
5
ON
9L
1
6
78
KONKSDOBH
6
78
D/ S : 1
D/ S : 2
To use the hexadecimal dump function, follow these steps:
1. Set DIP Switch 2 (sw- 7 = Hex dump mode) of your printer ON position.
2. Turn on the power of your printer.
3. Run any software rogram that sends data to the printer. The printer will print all the
codes it receives in a two-column format. The first column contains the hexadecimal
codes and the second column gives the ASCII characters that corresponds to the
codes.
DIP Switch Functions
No.
1
2
3
4
5
6
7
8
No.
1
2
3
4
5
6
7
8
Level
1
2
3
4
5
6
7
Function
Density
Handshaking
Auto Feeding
Reserved
Language
Dip Switch 1
D/W1
ON
OFF
OFF
ON
ON
OFF
ON
ON
Dark
Xon/Xoff
With cutting
Combination code
English
BPS
2400
4800
9600
19200
38400
57600
115200
Function
Cut
Not used. Fixed to OFF
Not used. Fixed to OFF
Not used. Fixed to OFF
Not used. Fixed to OFF
Not used. Fixed to OFF
Not used. Fixed to OFF
Not used. Fixed to OFF
Dip Switch 2
ON
Full Cut
D/W2
OFF
ON
OFF
OFF
ON
ON
ON
1B 21 00 1B 26 02 40 40
02 0D 1B 44 0A 14 1E 28
00 01 0A 41 0D 42 0A 43
S/W3
OFF
OFF
ON
ON
OFF
ON
ON
40
28
43
. ! . .&[email protected]@@@
. . .D. . . . ( ( (
. . .A.B.CCC
A period (.) is printed for each code that has no ASCII equivalent.
During the hex dump, all commands except DEL EOT is disabled.
OFF
Normal
DTR/DSR
Without cutting
Completion code
Korean
4. Close the cover, then the printer enters the hexadecimal dump mode.
5. Set DIP Switch 2 (sw- 7 = Hex dump mode) of your printer off position and then
hexadecimal mode is off.
OFF
Partial Cut
11
12
Chapter 3. The self test
The self-test checks whether the printer has any problems. If the printer does not
function properly, contact your dealer. The self-test checks the following;
1. Make sure paper roll has been installed properly.
2. Turn on the power while holding down the FEED button. The self-test begins.
3. The self-test prints the current printer status, which provides the control ROM version
and the DIP switch setting.
4. After printing the current printer status, self-test printing will print the following, and
pause.
Self-test printing.
Please press the FEED button
5. Press the FEED button to continue printing. The printer prints a pattern using the
built-in character set.
6. The self-test automatically ends and cuts the paper after printing the following.
***
SELF TEST
***
The printer is ready to receive data as soon as it completes the self-test.
Page 0 (PC437 : USA, Standard Europe)
(International Character Set : USA)
13
14
15
16
17
18
19
20
Chapter 5. Control Commands
The commands listed in the table below are available for control of the printer.
Commands
Command Classification
Name
Command
HT
Horizontal tab
LF
Print and line feed
CR
Print and carriage return
DLE EOT
Real-time status transmission
ESC SP
Set right-side character spacing
ESC !
Select print mode(s)
ESC $
Set absolute print position
ESC %
Select/cancel user-defined character set
ESC &
Define user-defined characters
ESC *
Select bit-image mode
ESC -
Turn under line mode on/off
ESC 2
Select 1/6-inch line spacing
ESC 3
Set line spacing
ESC =
Select peripheral device
ESC ?
Cancel user-defined characters
ESC @
Initialize printer
ESC D
Set horizontal tab positions
ESC E
Turn emphasized mode on/off
ESC G
Turn double-strike mode on/off
ESC J
Print and feed paper
ESC R
Select an international character set
ESC V
Turn 90 clockwise rotation mode on/off
ESC \
Set relative print position
ESC a
Select justification
ESC c3
Select paper sensor(s)to output Paper-end signals
ESC c4
Select paper sensor(s) to stop printing
ESC c5
Enable/disable panel buttons
ESC d
Print and feed paper n lines
International Character Set
21
22
Executing
Setting
Standard
Mode
(
)
Control Commands
HT
Command Classification
Name
Command
ESC i
Partiall cut(one point center uncut)
ESC p
General pulse
ESC t
Select character code table
ESC {
Turn upside-down printing mode on/off
GS !
Select character size
GS *
Define downloaded bit image
GS /
Print downloaded bit image
GS :
Start/end macro definition
GS B
Turn white/black reverse printing mode on/off
GS H
Select printing position of HRI characters
GS I
Transmit print ID
GS L
Set left margin
GS P
Set vertical and horizontal motion units
GS V
Executing
Setting
[Name]
[Format]
Standard
Mode
[Description]
(
)
LF
[Name]
[Format]
[Description]
)
Select cut mode and cut paper
(
)
GS W
Set printing area width
(
)
GS ^
Execute macro
GS f
Select font for HRI characters
GS h
Set bar code height
GS k
print bar code
GS r
Transmit status
GS w
Set bar code width
[Name]
[Format]
[Description]
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.
CR
[Name]
[Format]
[Description]
Command classification
Executing : Printer executes the command, which does not affect the following data.
Setting : Printer uses flags to make setting, and those setting affect the following data.
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.
CAN
Standard mode
[Name]
[Format]
: Enagled
) : Enabled only when the command is used at the beginning of a line.
: Enabled only when data is not present in the buffer.
Page mode
:
:
Disabled :
Ignored :
Print and line feed.
ASCII
LF
Hex
0A
Decimal
10
Prints the data in the print buffer an feeds one line based on the current
line spacing.
FF
(
(
Horizontal tab.
ASCII
HT
Hex
09
Decimal
9
Moves the print position to the next horizontal tab position.
[Description]
Enagled
Only setting is possible.
Parameters are processed as printable data.
Command codes and parameters are all ignored.
23
24
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.
n = 3 : Error status
Bit
Off/On
Off
0
On
1
2
Off
3
On
4
Off
5
Off
6
7
Off
DLE EOT n
[Name]
[Format]
[Range]
[Description]
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.
n = 1 : Printer status.
Bit
Off/On
0
Off
1
On
2
Off
3
4
5-6
7
Hex
00
02
00
Decimal
0
2
0
On
04
4
Off
On
On
Off
00
08
10
00
0
8
16
0
n = 2 : Off-line status.
Bit
Off/On
Hex
0
Off
00
1
On
02
2
Off
00
On
04
3
Off
00
4
5
6
7
Decimal
0
2
0
4
0
On
08
8
On
Off
Off
Off
10
00
00
00
16
0
0
00
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 of 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.
Function
Not used, Fixed to Off.
Not used. Fixed to On.
Drawer open/close signal is LOW
(connecotor pin 3).
Drawer open/close signal is HIGH
(connector pin 3).
On-line.
Off-line.
Not used. Fixed to On.
Undefined.
Not used. Fixed to Off.
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.
n = 4 : Continuous paper sensor status.
Bit
Off/On
Hex
Decimal
0
Off
00
0
1
On
02
2
2,3 Off
00
0
On
0C
12
4
5, 6
Function
Not used. Fixed to off.
Not used. Fixed to On.
Cover is closed.
Cover is open.
Paper is not being feed by using the PAPER
FEED button/
Paper is being feed by the PAPER FEED
button.
Not used. Fixed to On.
Not used. Fixed of Off.
Not used. Fixed of Off.
Not used. Fixed of Off.
7
Bit 5 : Becomes on when the paper end sensor detects paper end and printing stops.
25
26
On
Off
On
Off
10
00
60
00
16
0
96
0
Function
Not used, Fixed to Off.
Not used. Fixed to On.
Paper roll near-end sensor. Paper adequate.
Paper near-end is detected by the paper
roll near-end sensor.
Not used. Fixed to On.
Not roll end sensor. Paper present.
Paper is detected by the paper roll end sensor.
Not used. Fixed to Off.
ESC SP n
[Name]
[Format]
[Range]
[Description]
ESC % n
[Name]
[Format]
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 x
horizontal or vertical motion unis].
[Range]
[Description]
ESC ! n
[Name]
[Format]
[Range]
[Description]
Bit
0
1
2
3
4
5
6
7
ESC & y c1 cw [x1 d1...d(y x x1)...[xk d1...d(y x xk)]
Select print modes.
ASCII
ESC
!
n
Hex
1B
21
n
Decimal
27
33
n
0 < n < 255
Selects print mode(s) using n as follows:
Off/On
Off
On
Off
On
Off
On
Off
On
Off
On
Hex
00
01
00
08
00
10
00
20
00
80
Decimal
0
1
0
8
0
16
0
32
0
128
[Name]
[Format]
[Range]
Function
Character font A (12 x 24)
Character font B (9 x 24)
Undefined.
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.
[Description]
[Range]
[Description]
Define user-defined characters.
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)]
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-deined 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 secifies the number of dots in the horizontal direction.
ESC * m nL nH d1...dk
[Name]
[Format]
[Range]
ESC-$ nL nH
[Name]
[Format]
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.
[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.
m
0
1
32
33
27
28
Select bit-image mode.
ASCII
ESC
m nL nH d1 ... dk
*
2A
Hex
1B
m nL nH d1 ... dk
42
Decimal 27
m nL nH d1 ... dk
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 and
nH, as follows:
Mode
8-dot single-density
8-dot double-density
24-dot sigle-density
24-dot double-density
Vertical direction
Number
Dot
of Dots
Density
8
60 DPI
8
60 DPI
24
180 DPI
24
180 DPI
Horizontal direction
Dot
Number of Data
Density
(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
ESC - n
ESC ? n
[Name]
[Format]
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:
Function
Turns off underline mode.
Turns on underline mode (1-dot thick).
Turns on underline mode (2-dots thick).
[Name]
[Format]
Select default line spacing.
ASCII
ESC
2
Hex
1B
32
Decimal
27
50
Select 1/6-inch line (approximately 4.23mm) spacing.
[Description]
[Range]
[Description]
n
0, 48
1, 49
2, 50
[Range]
[Description]
[Description]
[Name]
[Format]
[Name]
[Format]
[Range]
[Description]
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
ESC 3 n
[Name]
[Format]
n
n
n
ESC @
ESC 2
[Name]
[Format]
Cancel user-defined characters.
ASCII
ESC
?
Hex
1B
3F
Decimal
27
63
32 < n < 126
Cancels user-defined characters.
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.
[Range]
[Description]
Set horizontal tab positions.
ESC
D
ASCII
n1...nk
NUL
1B
44
Hex
n1...nk
00
27
68
Decimal
n1...nk
0
1 < n < 255
0 < k < 32
Sets horizontal tab position.
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 = n
[Name]
[Format]
[Range]
[Description]
Bit
0
1-7
Set 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
-
ESC E n
[Name]
[Format]
[Range]
[Description]
Function
Printer disabled.
Printer disabled.
Undefined.
29
30
Turn emphasized mode on/off.
ESC
E
ASCII
n
1B
45
Hex
n
27
69
Decimal
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.
ESC G n
[Name]
[Format]
[Range]
[Description]
ESC V n
Turn on/off double-strike mode.
G
n
ASCII
ESC
47
n
Hex
1B
71
n
Decimal
27
0 < n < 255
Turns emphasized 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.
[Name]
[Format]
ESC
1B
27
V
56
86
n
n
n
[Range]
[Description]
n
0, 48
1, 49
Function
ESC J n
[Name]
[Format]
[Range]
[Description]
Print and feed paper.
ESC
n
J
ASCII
1B
n
4A
Hex
27
n
74
Decimal
0 < n < 255
Prints the data in the print buffer and feeds the paper [n x vertical or
horizontal motion unit] inches.
ESC \ nL nH
[Name]
[Format]
[Range]
[Description]
ESC R n
[Name]
[Format]
[Range]
[Description]
n
0
1
2
3
4
Select an international character set.
n
R
ESC
ASCII
n
52
1B
Hex
n
82
27
Decimal
0 < n < 10
Selects an international character set n from the following table.
Character set
n
Character set
U.S.A.
5
Sweden
France
6
Italy
7
Germany
Spain
U.K.
9
Norway
Denmark I
10
Denmark II
[Default]
n=0
Set relative print position.
ESC
\
ASCII
nL
nH
1B
5C
Hex
nL
nH
27
92
Decimal
nL
nH
0 < nL < 255
0 < nH < 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]
ESC a n
[Name]
[Format]
[Range]
[Description]
n
0, 48
1, 49
2, 50
31
32
Select justification.
ESC
a
ASCII
n
1B
61
Hex
n
27
97
Decimal
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:
Justification
Left justification
Centering
Right justification
ESC c 3 n
ESC \ nL nH
[Name]
[Format]
[Range]
[Description]
[Name]
[Format]
Select paper sensor(s) to output paper end signals.
ASCII
ESC
c
3
n
Hex
1B
63
33
n
Decimal
27
99
51
n
[Range]
0 < n < 255
[Description]
Selects the paper sensor(s) to output paper end signals.
Each bit of n is used as follows:
Bit
Off/On
Hex
Decimal
Function
0
Off
00
0
Paper roll near-end sensor disabled.
On
01
1
Paper roll near-end sensor enabled.
1
Off
00
0
Paper roll near-end sensor disabled.
On
02
2
Paper roll near-end sensor enabled.
2
Off
00
0
Paper roll end sensor disabled.
On
04
4
Paper roll end sensor enabled.
3
Off
00
0
Paper roll end sensor disabled.
On
08
8
Paper roll end sensor enabled.
4-7
Undefined.
Set relative print position.
\
ESC
nL
nH
ASCII
1B
5C
nL
nH
Hex
27
92
nL
nH
Decimal
0 < nL < 255
0 < nH < 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]
ESC a n
[Name]
[Format]
[Range]
[Description]
n
0, 48
1, 49
2, 50
Select justification.
ESC
ASCII
a
n
1B
Hex
61
n
27
Decimal
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:
ESC c 4 n
Justification
Left justification
Centering
Right justification
[Name]
[Format]
Select paper sensor(s) to stop printing.
ASCII
ESC
c
4
n
Hex
1B
63
34
n
Decimal
27
99
52
n
[Range]
0 < n < 255
[Description]
Selects the paper sensor(s) used to stop printing when a paper-end is
detected, using n as follows:
Bit
Off/On
Hex
Decimal
Function
0
Paper roll end sensor disabled.
Off
00
0
Paper roll end sensor enabled.
On
01
1
1
Paper roll end sensor disabled.
Off
00
0
Paper roll end sensor enabled.
On
02
2
2-7
Undefined.
-
33
34
ESC t n
ESC c 5 n
[Name]
[Format]
[Range]
[Description]
[Name]
[Format]
Enable/Disable panel buttons.
ASCII
ESC
c
5
n
Hex
1B
63
35
n
Decimal
27
99
53
n
0 < n < 255
Enables or disables the panel buttons.
When the LSB is 0, the panel buttons are enabled.
When the LSB is 1, the panel buttons are disabled.
[Range]
[Description]
n
0
1
2
3
4
5
255
ESC d n
[Name]
[Format]
[Range]
[Description]
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.
Select character code table.
ESC
t
ASCII
n
1B
74
Hex
n
27
116
Decimal
n
0 < n < n, n = 255
Selects a page n from the character code table.
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
ESC { n
[Name]
[Format]
ESC i n
[Name]
[Format]
[Range]
[Description]
Partial Cut
ASCII
ESC
i
Hex
1B
69
Decimal
27
105
0 < n < 255
Prints the data in the print cut of paper.
[Range]
[Description]
ESC p m t1 t2
[Name]
[Format]
[Range]
[Description]
m
0, 48
1, 49
Generate pulse.
ESC
p
ASCII
m
t1
t2
1B
70
Hex
m
t1
t2
27
112
Decimal
m
t1
t2
m = 0, 1, 48, 49
0 < t1 < 255, 0 < t2 < 255
Outputs the pulse specified by t1 & t2 to connector pin m as follows:
Connector pin
Drawer kick-out connector pin 2
Drawer kick-out connector pin 5
35
36
Turn 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 on.
GS / m
GS ! n
[Name]
[Format]
[Range]
[Description]
Bit
0-1
Off/On
Hex
Decimal
Function
n
Character height selection. See Table 2
4-5
Character width selection. See Table 1
Table 1
Character Width Selection
Hex
00
10
[Name]
[Format]
Print downloaded bit image.
ASCII
GS
/
m
Hex
1D
2F
m
Decimal
29
47
m
[Range]
0 < m < 3, 48 < m < 51
[Description]
Prints a downloaded bit image using the mode specified by m.
m selects a mode from the table below:
Horizontal Dot Density(DPI)
m
Mode
Vertical Dot Density(DPI)
180
180
0, 48 Normal
180
90
1, 49 Double-width
180
2, 50 Double-height 90
90
90
3, 51 Quadruple
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 thecharacter height using bits 0 to 2 and selects the character width
using bits 4 to 7, as following:
Decimal
0
16
Width
1(normal)
2(double-width)
Table 2
Character Height Selection
Hex
00
01
Decimal
0
1
GS :
Width
1(normal)
2(double-width)
[Name]
[Format]
[Description]
GS * x y d1...d(x x y x 8)
[Name]
[Format]
[Range]
[Description]
Start/End macro definition.
ASCII
GS
:
Hex
1D
3A
Decimal
29
58
Starts or ends macro definition.
GS B n
Deffine downloaded bit image.
x
ASCII
y
GS
d1...d(x x y x 8)
*2A
d1...d(x x y x 8)
x
Hex
y
1D
42
d1...d(x x y x 8)
x
Decimal
y
29
0 < n < 255
1 < y < 255
x x y < 1536
0 < d < 255
Defines a downloade'd bit image using the dots specified by x any y.
x indicates the number of dots in the horizontal direction.
y indicates the number of dots in the vertical direction.
[Name]
[Format]
[Range]
[Description]
37
38
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 on.
GS P x y
GS H n
[Name]
[Format]
[Description]
n
0, 48
1, 49
2, 50
3, 51
[Name]
[Format]
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:
[Range]
[Description]
Printing postion
Not printed.
Above bar code.
Below bar code.
Both above and below the bar code.
1 GS V m,
[Name]
[Format]
HRI indicates Human Readable Interpreatiion.
GS I n
[Name]
[Format]
[Range]
[Description]
n
1, 49
2, 50
3, 51
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 mode ID
Type ID
ROM version ID
Specification
STP130S/STP130P
Depends on ROM version
[Range]
[Description]
ID (hexadecimal)
30
02
10
m
0, 1, 49
66
GS L nL nH
[Name]
[Format]
[Range]
[Description]
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
2 GS V m n
Select cut mode and cut paper.
1 ASCII
GS
V
m
Hex
1D
56
m
Decimal
29
86
m
2 ASCII
GS
V
m
n
Hex
1D
56
m
n
Decimal
29
86
m
n
1 m = 1, 49
2 m = 66, 0 < n < 255
Selects a mode for cutting paper and exectes 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
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.
[Name]
[Format]
[Range]
[Description]
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 printing area width to the area specified by nL and nH.
The printing area width is set to [(nL + nH x 256) x horizontal motion unit)]
inches.
Printable area
Left margin
Printable area
Printing area width
Left margin
39
40
Printing area width
1 GS k m d1... dk NUL, 2 GS k m n d1... dn
[Name]
Print bar code.
1 ASCII
[Format]
GS
k
m
d1...dk NUL
Hex
1D
6B
m
d1...dk 00
Decimal
29
107
m
d1...dk 0
2 ASCII
GS
V
m
n d1... dn
Hex
1D
56
m
n d1... dn
Decimal
29
86
m
n d1... dn
[Range]
1 0 < m < 6 (k and d depends on the bar code system used.)
2 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:
GS ^ r t m
[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 exceuting 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 priner executes the
macro once. The printer repeats the operation r times.
m
1
Gs f n
[Name]
[Format]
[Range]
[Description]
n
0, 48
1, 49
Select font for Human Readable Interpreation(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:
Font
Font A (12 x 24)
Font B (9 x 24)
2
GS h n
[Name]
[Format]
[Range]
[Description]
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.
41
42
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
UPC-A
UPC-E
JAN13(EAN13)
JAN8(EAN8)
11 < n < 12
11 < n < 12
12 < n < 13
7<n<8
69
CODE39
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
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
APPENDIX
GS r n
[Name]
[Format]
[Range]
[Description]
n
1, 49
2, 50
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.
A. Connectors
Function
Transmits paper sensor status.
Transmits drawer kick-out connector status.
GS w n
Power supply
connector
[Name]
[Format]
Set bar code width.
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.
Module width for
Binary-level bar code
multi-level bar code
n
Thin element width (mm)
Thick element width (mm)
2
0.282
0.282
0.706
3
0.423
0.423
1.129
4
0.564
0.564
1.411
5
0.706
0.706
1.834
6
0.847
0.847
2.258
Drawer kick-out
connector
STP131 Series Connector
(Serial/Parallel Interface)
Interface Connector
Serial Interface
Pin No.
Mulit-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
43
Interface connector
44
Signal name
Direction
Function
FG
-
Frame Ground
2
TxD
Output
Transmit Data
3
RxD
Input
Receive Data
5
CTS
Input
Data Set Ready
7
SG
-
Signal Ground
4
RTS
Output
Data Terminal Ready
Serial Communication Interface(Example)
Drawer Connector
Ho s t
20
19
18
21
22~ 25
Pr i n t er
TXD(O)
RXD(I)
RTS(O)
CTS(I)
FG, SG (GND)
CONNECT
2
3
8
7
5
4
6
RXD(I)
TXD(O)
CTS(I)
RTS(O)
FG, SG (GND)
DTR(O)
DSR(I)
Pin No.
Signal name
Direction
1
Frame ground
-
2
Drawer kick-out drive signal 1
Output
3
Drawer open/close signal
Input
4
+24V
-
5
Drawer kick-out drive signal 2
Output
6
Signal ground
-
Parallel Interface
Pr i n t er
Ho s t
1
/ STROBE(I/ O)
2
DATA0(I/ O)
3
DATA1(I/ O)
4
DATA2(I/ O)
5
DATA3(I/ O)
6
DATA4(I/ O)
7
DATA5(I/ O)
8
DATA6(I/ O)
9
DATA7(I/ O)
10
/ ACK(I)
11
BUSY(I)
12
PE(I)
SLCT
13
/ ERROR(I)
15
GND
22~ 25
25 PINE FEMALE
1
/ STROBE(I/ O)
2
DATA0(I/ O)
3
DATA1(I/ O)
4
DATA2(I/ O)
5
DATA3(I/ O)
6
DATA4(I/ O)
7
DATA5(I/ O)
8
DATA6(I/ O)
9
DATA7(I/ O)
10
/ ACK(I)
11
BUSY(I)
12
PE(I)
SLCT
13
/ ERROR(I)
15
GND
18~ 25
25 PINE FEMALE
B. Notes
Paper dust inside the printer may lower the print quality. In this case clean the printer
as follows.
1) Open the printer cover and remove the paper if exists.
2) Clean the print head with a cotton swab moistened with alcohol solvent.
3) Clean the platen roller and paper end sensor with cotton swab
moistened with water.
4) Insert a paper roll and close the printer cover.
The remained amount of paper detected by paper near end sensor varies with
the diameter of the paper core.
To adjust the remained amount, contact your dealer.
°ÿ14, 16~ 21 : NC
45
46
C. Specification
Printing method
Dot density
Printing width
Paper width
Characters per line (default)
Thermal line printing
180 X 180 dpi (7dots/mm)
72.192 + 0.2 mm
79 ~ 80 mm
42 (Font A) (12 x 24)
56 (Font B) ( 9 x 24)
Printing speed
17.3 lines/sec(1/6" Feed)
73.3 mm/sec
Receive Buffer Size
15K Bytes
NOTE : Printing speed may be slower, depending on the data transmission speed and the
combination of control commands.
Input voltage
Supply voltage
Frequency
Output voltage
Temperautre
Enviromental
conditions
Humidity
30 ~ 80 % RH (Operating)
10 ~ 90 % RH (Storage)
; Except for paper
LIFE
*
MCBF
*
Mechanism
Head
Auto Cutter
Thermal paper
15,000,000 lines
100million pulse
(Approximately 100 Km)
1,500,000 Cuts
30,000,000 lines
°ÿPaper
- Paper thickness : 0.065 ~ 0.1mm
- Roll size : ¨Ê50 ~ 79.5(w)
- Roll spool diameter
1) Inside : ¨Ê12mm (0.47")
2) Outside : ¨Ê18mm (0.71")
JF01-000041
47
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