•All rights reserved. Reproduction of any part of this manual in any form whatsoever, without STAR’s express permission, is strictly forbidden.
•The contents of this manual are subject to change without notice.
•All efforts have been made to ensure the accuracy of the contents of this manual at the time of printing. However,
should any errors be found, STAR would greatly appreciate being informed of them.
•The above notwithstanding, STAR can assume no responsibility for any errors in this manual.
Appendix: Character Code Tables .............................................................88
Please access the following URL
http://www.star-micronics.co.jp/service/sp_sup_e.htm
for the lastest revision of the manual.
2
[Blank page]
Chapter 1: Outline
The SCP700 Series combines both a quick, quiet and highly reliable thermal
receipt printer with an impact dot slip printer, enabling printing on single or
multiple sheets of slip paper of an unspecified size.
The thermal printer enables receipt printing without a thermal ribbon and makes
paper insertion extremely easy.
The biggest advantage of combining the two printer mechanisms into one unit
is that less space, only one power supply and only one port are necessary,
compared with using a slip printer which is separate from a thermal receipt
printer, each requiring space and a power supply.
Thermal printing on receipt paper is quiet and fast.
1
2
Chapter 2: DIP Switch Settings
The printer’s DIP switches let you change communications parameters, thermal
printing density, interface type, input buffer size, and emulation. This chapter
explains the settings you can make and tells you how to actually change DIP
switch settings.
Accessing the DIP switches
The DIP switches are located inside the printer, underneath the document table.
Use the following procedure to remove the document table so you can operate
the DIP switches.
Make sure that the printer is turned off and unplugged from its wall outlet.
❏
Open the printer cover.
❏
Use a Phillips head screwdriver to remove the two screws that secure the
❏
document table in place.
❏
Carefully work the document table loose and slide it to the left of the
printer out of the way. It is not necessary to remove the document table
complete, just move it enough so you can get at the DIP switches inside.
ON
OFF
ON
OFF
After the document table is opened sufficiently, use a thin flat-blade
❏
screwdriver or some other similar object to change DIP switch settings.
❏
Carefully return the document table to its original position and secure it in
place with the two screws.
3
Available DIP switch settings
There are two DIP switches inside the printer, named DIP Switch 1 and DIP
Switch 2. DIP Switch 1 controls data communication parameters, while DIP
Switch 2 controls other settings.
4
DIP Switch 1
The following table shows all the possible settings for DIP Switch 1. This
switch sets the transmission parameters of the Standard Serial Interface. All
switch settings, except for 1-7 and 1-8, are ON when the printer is shipped from
the factory.
The following table shows all the possible settings for DIP Switch 2. The
factory default setting for this switch is all ON.
Baud RateSee table below
XON/XOFF
mode
Baud RateSwitch 1-1Switch 1-2
2400BPSOFFOFF
4800BPSONOFF
9600BPSONON
19200BPSOFFON
SwitchParameterONOFF
2-1
2-2
2-3Input Buffer Size4 KB45 bytes
Thermal Print DensitySee table below
SwitchParameterONOFF
2-4Always ON
2-5InterfaceStandardOption
2-6Always ON
2-7Not Used
2-8Not Used
Thermal Print DensitySwitch 2-1Switch 2-2
LightOFFOFF
StandardONON
HeavyONOFF
Very HeavyOFFON
5
6
Chapter 3: Memory Switch Settings
Each memory switch is a 16-bit word store in EEPROM. For details on the
functions and settings of memory switches, refer to “Chapter 9”.
The table below shows the factory settings for the memory switches.
Memory SwitchHexadecimal Code
00000
10000
20000
30000
40000
50000
Chapter 4: Control Panel Operations
The control panel gives you some push-button control over the printer’s receipt
and slip printer operations. It also includes indicator lights, which tell you the
current status of the printer at a glance.
RECEIPT SLIPPOWER
7
Indicator lights
The following table describes the meaning of indicator lights when it is on, off,
or flashing.
* All indicators flash to indicate a non-recoverable error.
RECEIPT
Power onPower off
Slip paper
released
Receipt printer
ready
Slip paper
engaged
Receipt printer
not ready
SLIP/RESUME
adjustment mode
Receipt: Stand-by
Slip: Dot
TM-T85 macro
Request
slip paper
Out of receipt
paper/Near end
Automatic
recovery Error
Slip printer error
Receipt printer
error
8
Buttons
The following table describes the function of the two control buttons of the
control panel.
ButtonDescription
RECEIPT
SLIP/RESUME
Producing a test print
The following procedure can be used at any time to test the receipt printer and
the slip printer.
Turn on the printer and insert a piece of paper into the slip printer. Also
❏
make sure that roll paper is loaded for the receipt printer.
Note:
If you want to produce a test print on the receipt printer only, simply don’t
insert paper into the slip printer.
❏
Turn off printer power.
❏
While holding down the
RECEIPT
receipt printer test print starts.
After the receipt test print is complete, the slip printer will produce a test
print on the paper you inserted in the first step of this procedure. The slip
printer test will continue until it reaches the end of the paper.
depressed for a few moments until the printer beeps and the
Press to feed the thermal paper. Holding do wn this b utton f eeds paper
at high speed.
1. Press this button to release or engage slip paper from the slip
printer. (Switching from releasing to engaging is only possible if
slip paper is inserted.)
2. Press this button to clear the errors of the slip printer and receipt
printer.
RECEIPT
button, turn printer back on. Keep
Note:
The slip printer momentarily releases the slip paper when you turn printer
power back on. If you are using a lar g e piece of paper, it may fall out of the slip
printer when this happens, causing the slip printer test to be skipped. Because
of this, it is a good idea to keep hold of the paper in the slip printer when you
turn power back on.
Adjusting the slip printer’s dot alignment
You may never have to use the procedure described in this section, but after you
have been using your printer for some time you may find that the dots of some
graphics do not align correctly. For example, what should look like:
may come out looking like one of the following:
or like this
This is caused when mechanical parts of the printer get out of alignment. This
happens only rarely and you may never experience it at all throughout the life
of the printer. If you do have problems, use the following procedure to correct it.
Execute the test print
❏
When the slip printer produce the test print, hold down the control panel’s
❏
RECEIPT
Adjust Mode. The
Entering the Dot Alignment Adjust Mode causes seven blocks of characters to
be printed as shown below. An asterisk to the left of the blocks indicates which
setting is currently selected. Use the
has the best aligned characters. Press
twice to specify the second block, and so on up to seven times to specify the
seventh block. Pressing the
the seventh block, no matter how many times it is pressed.
and
SLIP/RESUME
POWER
buttons, to enter the Dot Alignment
indicator flashes slowly to indicate this mode.
RECEIPT
RECEIPT
RECEIPT
button more than seven times specifies
9
button to specify which block
once to specify the first block,
10
Note:
To exit this mode, press the
mode setting is stored in the memory, a pattern using the selected setting,
followed by “Adjust Completed” is printed, and the printer ejects the slip paper.
If you press the
after entering the Dot Alignment Adjust Mode, the printer assumes that you do
not want make any settings, so it prints the message “Adjust Complete!” and
exits the mode.
If a paper feed error occurs during this mode, the printer ejects the paper and
this mode is cancelled.
SLIP/RESUME
SLIP/RESUME
button without pressing the
button. The dot alignment adjust
RECEIPT
button
Hexadecimal dump
This procedure prints in hexadecimal format all codes (character codes and
control codes) that are sent to the printer by the computer. The printer does not
execute any control codes (such as 0A - linefeed), it just prints them out. The
hexadecimal dump is useful when you are writing programs for printer control.
Make sure that roll paper is loaded in the receipt printer.
❏
Turn off the printer.
❏
While holding down the control panel’s
❏
printer back on to enter this mode. The printer beeps once to indicate in this
mode.
The printer will now print out the hexadecimal values of any data that is
❏
subsequently sent to it from your computer. The last line buffer should be
flushed by pressing the
❏
To exit this mode, turn the printer off.
Errors
RECEIPT
SLIP/RESUME
button.
11
button, turn the
There are three types of errors:
automatically after some condition is attained,
some action by you before they clear, and
servicing by an authorized dealer. If a slip printer error occurs, the
indicator flashes quickly. If a receipt printer error occurs, the
indicator flashes quickly.
Automatic Recovery Error
Error NameCause
Head Temperature Error Abnormal thermal head
temperature
automatic recovery
non-recoverable
POWER
Flashing Pattern
FastRecovery occurs automatically after
errors that clear
recoverable
errors that require
errors that require
SLIP
RECEIPT
Recovery
head temperature returns to normal.
12
Receipt Printer Recoverable Errors
Error NameCause
Paper Out ErrorNo roll paperSlowInsert paper and press SLIP/RESUME.
Head Up ErrorRaised receipt printer
head
Near EndRoll paper near endSlowPress SLIP/RESUME to resume
Cutter ErrorError during roll paper
cutting
RECEIPT
Flashing Pattern
FastLower head and press SLIP/RESUME.
printing.
FastIf the blade is in the home position,
press SLIP/RESUME to continue
printing. If the blade is not in the home
position, this is a non-recoverable error.
Recovery
Slip Printer Recoverable Errors
Error NameCause
Slip printer mechanism
error
• Carriage motor lock
• Timing signal defect
• Abnormal home
position check
SLIP
Flashing Pattern
FastCorrect the problem and press SLIP/
RESUME.
Recovery
Non-recoverable Errors
First try turning the printer off and then on again. If the error persists or if a nonrecoverable error is indicated by all indicators flashing, contact your nearest
authorized dealer.
Chapter 5: Standard Serial Interface
❏
This chapter provides detailed specifications for the printer’ s standard serial
interface (Connector Type: D-sub 9-pin).
Set the transmission parameters with DIP Switch 1.
Transmission type............Asynchronous serial interface
Baud rate (bps).................2400, 4800, 9600, or 19200
(Selected by DIP switch)
Word format
Start bit:................1
Data bits: ..............7 or 8 (Selected by DIP switch)
Parity:...................Odd, Even, or None
(Selected by DIP switch)
Stop bit:................1
Signal polarities
RS-232C...............Mark = Logic “1” (–3V to –15V)
Space = Logic “0” (+3V to +15V)
Handshaking ....................DTR or XON/XOFF mode (Selected by DIP switch)
Mark [1]
b0b1b2b3b4b5b6 (b7)
Space [0]
ABCD
13
A: Start bit
B: Data bits
C: Vertical parity bit
D: Stop bit
Input (RXD, DSR, INIT)
PrinterHost computer
Output (DTR, TXD, RTS)
PrinterHost computer
75188 or equivalent
14
Standard serial interface pins and signal names
51
9
Pin
Signal
No.
1FG—Frame Ground
2RXDINReceive data
3TXDOUTTransmission data
4DTROUTData terminal ready signal. This signal changes to SPACE when the printer is ready to
5SG—Signal ground
6DSRINSignal line that indicates if the host computer can receive data.
7RTSOUTSame as DTR (Pin 4).
8INITINThis signal can be specified as an internal reset signal using Switch 8 of DIP Switch 1
DirectionFunction
Name
receive data.
SPACE: host can receive
MARK: host cannot receive
The status of this signal is not confirmed.
This signal can be specified as an internal reset signal using Switch 7 of DIP Switch 1
(page 4). MARK of 1ms or longer activates the reset.
(page 4). SPACE of 1ms or longer activates the reset.
6
9N/C—Not connected
Interface connections
❏
Refer to the interface specifications for the host computer for details on
connecting to its interface connector. The following illustration shows a
typical connection configuration.
RS-232C
Printer side
(D-sub 9 pin)
15
IBM PC side
(D-sub 25 pin)
F-GND
RXD
TXD
DTR
S-GND
RTS
INIT
N/C
F-GND
RXD
TXD
DTR
S-GND
RTS
INIT
N/C
1
2
3
4
5
6DSR
7
8
9
Printer side
(D-sub 9 pin)
1
2
3
4
5
6DSR
7
8
9
1
2
3
4
5
6
7
8
20
IBM PC side
(D-sub 9 pin)
1
2
3
4
5
6
7
8
9
F-GND
TXD
RXD
RTS
CTS
DSR
S-GND
DCD
DTR
DCD
RXD
TXD
DTR
S-GND
DSR
RTS
CTS
RI
16
Data protocol
❏
DTR/DSR Mode
Set when dip switch #1-6 is ON. Communication is carried out while handshake
is performed with the DTR and DSR signals. Control is executed by selecting
the DTR signal for the busy signal when data is downloaded to the printer data.
“SPACE” indicates the printer can receive data, and oppositely “MARK”
indicates that data cannot be received.
In the ESC/POS mode, control is executed by selecting the DTR signal for the
host computer’s busy signal when data is uploaded from the printer. “SPACE”
indicates the host can receive data, and oppositely “MARK” indicates that data
cannot be received.
RXD
DTR
Printing
Power ON
DataData Data
Buffer fullBuffer empty
If no error occurs for the printer after turning the power on, the DTR signal line
is set to “SPACE.” After the host computer recognizes that the DTR signal line
is “SPACE,” data text is sent to the RXD signal line. When the printer’s
available buffer space drops below the specified number of bytes (256 bytes if
using 4K-byte reception buffer, 16 bytes if using a 45-byte reception buffer; see
3-2 for details), the DTR signal line is set to “MARK.” After the host computer
recognizes that the DTR signal line is “MARK,” data text transmission is
interrupted, but the printer can receive data up until the data buffer becomes full.
Available space in the data buffer increases as printing is executed, and when
the printer’s available buffer space drops below the specified number of bytes
(256 bytes if using 4K-byte reception buffer, 16 bytes if using a 45-byte
reception buffer), the DTR signal line is set to “SPACE.”
In the ESC/POS mode, printer status transmission can be received by the host
in the DTR/DSR communication mode (status is set after the DSR signal is
confirmed as being “SPACE,” with the exception of some status transmission
commands).
17
Buffer full cancellation in DTR mode (the following is an example in the
Combination mode).
A) Buffer set to “big size” (4K-bytes) (set with dip switch 2-3)
Data buffer
Full
Remainder
256 bytes
DTR “MARK”DTR “SPACE”
Near Full
Near EmptyEmpty
256 bytes
When available space drops below 256 bytes, DTR is set to “MARK.” When
data in the buffer drops below 256 bytes, DTR is set to “SPACE.”
B) Buffer set to “small size” (45-bytes) (set with dip switch 2-3)
Data buffer
Full
Remainder
16 bytes
DTR “MARK”DTR “SPACE”
Near Full
Near EmptyEmpty
16 bytes
When available space drops below 16 bytes, DTR is set to “MARK.” When data
in the buffer drops below 16 bytes, DTR is set to “SPACE.”
18
❏
X-ON / X-OFF Mode
Set when dip switch #1-6 is OFF. Mode whereby the host is informed by TXD
signal of X-ON (DC1) when data can be received or X-OFF (DC3) when data
cannot be received. In the Star mode, X-ON / X-OFF output timing conditions
are set by memory switch 4-C.
In the Combination mode, when memory switch 4-C is set to “0” (factory
setting), exactly one byte is output for X-ON when the printer switches from
offline (printer busy) to online (printer ready), and exactly one byte is output for
X-OFF when the printer switches from online (printer ready) to offline (printer
busy). The same goes for the ESC/POS mode (Dual mode), regardless of the
setting of memory switch C-4. When memory switch C-4 is set to “1,” the XON signal is output is every three seconds.
X–ONX–OFFX–ONX–OFFX–ON
TXD
RXD
Printing
Paper out
signal
ON LINE
lamp
ON
OFF
Power ONLoad paper and press
DataDataData
Paper out
the ON LINE switch.
If no error occurs for the printer after turning the power on, the X-ON signal
(“DC1” by control code name, “11H” by hexadecimal data) is output by the
TXD signal line. X-FF (DC3, 13H) is output when available buffer space drops
below the specified number of bytes (256 bytes if using 4K-byte reception
buffer, 16 bytes if using a 45-byte reception buffer). If memory switch 4C is set
to “1,” an X-OFF signal is output each time one byte of data is received. The
host computer receiving the X-0FF signals interrupts data text transmission, but
the printer can receive data up until the data buffer becomes full. If the amount
of data sent exceeds the amount of available buffer space, the excess data is
discarded. Available space in the data buffer increases as printing is executed,
and the X-ON signal is output when the printer's available buffer space drops
below the specified number of bytes (256 bytes if using 4K-byte reception
buffer, 16 bytes if using a 45-byte reception buffer).
Buffer full cancellation in X-ON / X-OFF mode (the following is an example in
the Combination mode).
A) Buffer set to “big size” (4K-bytes) (set with sip switch 2-3)
Data buffer
Full
Remainder
256 bytes
X-OFFX-ON
Near Full
Near EmptyEmpty
Printer setting conditionsDescription of operation
• When in Star mode and memory switch
is set to “0”
• ESC/POS emulation
When available buffer space drops below
256 bytes, exactly one byte is output for
X-OFF. When data in the buffer drops
below 256 bytes, exactly one byte is
output for X-ON.
• When in Star mode and memory switch
is set to “1”
When available buffer space drops below
256 bytes, an X-OFF signal is output for
each byte of data received. When data in
the buffer drops below 256 bytes, and XON signal is output.
19
256 bytes
B) Buffer set to “big size” (45-bytes) (set with sip switch 2-3)
Data buffer
Full
Remainder
16 bytes
X-OFFX-ON
Near Full
Near EmptyEmpty
16 bytes
20
Printer setting conditionsDescription of operation
• When in Star mode and memory switch
is set to “0”
• ESC/POS emulation
• When in Star mode and memory switch
is set to “1”
3-6) X-ON / X-OFF Signal Transmission Timing
An X-OFF signal is sent when the printer switches from online to offline.
An X-ON signal is sent when the printer switches from offline to online.
In the Star mode, an X-ON signal is sent every three seconds if memory switch
4-C is set to “1.”
4) Suggestions when memory switch 4-4 is ON [only when using interface specially
designed for for ESC/POS (Dual mode)]
(1) Printing is interrupted in the event of an error, the cover is open, there is no paper,
or paper is advanced by the paper advance switch, but the printer does not switch
to busy status.
(2) When handshake with the printer is executed by this setting, be sure to monitor
the status of the printer using the “GS a” command and its automatic data
transmission function. With this setting, the “GS a” command becomes initial
value setting n = 2, and status is automatically transmitted when online/offline
status changes.
(3) If using DLE EOT or DLE ENQ, do not allow the reception buffer to become full.
• Suggestions when the printer is busy and the host cannot transmit data DLE
EOT or DLE ENQ cannot be used if an error occurs when the printer becomes
busy because the reception buffer is full.
• Suggestions when the printer is busy and the host can transmit data
When the reception buffer becomes full during transmission of bit image data,
if a DLE EOT or DLE ENQ command is used in the bit image data, DLE EOT
or DLE ENQ is processed as bit image data. Data sent when the reception
buffer is full may be discarded.
Usage Example: With a 4K-byte reception buffer, status is checked by “ESC v”
or “ESC u” each time a printing line is sent. The amount of data per printing line
is the amount whereby the reception buffer does not become full.
When available buffer space drops below
256 bytes, exactly one byte is output for
X-OFF. When data in the buffer drops
below 256 bytes, exactly one byte is
output for X-ON.
When available buffer space drops below
256 bytes, an X-OFF signal is output for
each byte of data received. When data in
the buffer drops below 256 bytes, and XON signal is output.
Chapter 6: Optional Interface
Optional serial interface
Use a thin flat-blade screwdriver or some other similar object to change DIP
switch settings on the optional serial interface board.
ON
21
OFF
12345678
The following table shows all the possible settings for the DIP switches. All
switch settings, except for 1-7 and 1-8, are ON when the printer is shipped from
the factory.
1FG—Frame Ground
2TXDOUTTransmission data
3RXDINReceive data
4RTSOUTData terminal ready signal. This signal changes to SPACE when the printer is ready to
6DSRINSignal line that indicates if the host computer can receive data.
7SG—Signal ground
20DTROUTSame as RTS (Pin 4).
25INITINThis signal can be specified as an internal reset signal using of DIP Switch 8 (page 21).
DirectionFunction
Name
receive data.
SPACE: host can receive
MARK: host cannot receive
The status of this signal is not confirmed.
This signal can be specified as an internal reset signal using of DIP Switch 7 (page 21).
MARK of 1ms or longer activates the reset.
SPACE of 1ms or longer activates the reset.
1
14
Interface connections
❏
Refer to the interface specifications for the host computer for details on
connecting to is its interface connector. The following illustration shows a
typical connection configuration.
23
(D-sub 25 pin)
F-GND
TXD
RXD
RTS
DSR
S-GND
DTR
INIT
(D-sub 25 pin)
F-GND
TXD
RXD
RTS
DSR
S-GND
DTR
INIT
Printer side
1
2
3
4
6
7
20
25
Printer side
1
2
3
4
6
7
20
25
IBM PC side
(D-sub 25 pin)
1
2
3
4
5
6
7
8
20
IBM PC side
(D-sub 9 pin)
3
2
7
8
6
5
1
4
F-GND
TXD
RXD
RTS
CTS
DSR
S-GND
DCD
DTR
F-GND
TXD
RXD
RTS
CTS
DSR
S-GND
DCD
DTR
Data protocol
The specifications for the DTR and X-ON/X-OFF modes are the same as
❏
for the Standard Serial Interface.
24
Optional parallel interface
Interface:Conforms with Centronics parallel interface standard
Data transfer speed:1000 ~ 5000 CPS
Synchronization:External strobe pulse
Handshaking:Using ACK and BUSY
Logic level:TTL-level compatible
A C K
DATA
STROBE
Approx. 9µs
BUSY
TTT
T: At least 0.5µs
Signal NameSample Circuit
25
DATA 1
4.7kΩ
DATA 8
Input
STR
OBE
1kΩ
100Ω
1000pF
1.8kΩ
BUSY
Output
ACK
Optional parallel interface pins and signal names
(18)(1)
74LS-equivalent
74LS-equivalent
74LS-equivalent
(36)(19)
26
Pin
No.
Signal NameDirectionFunction
1STR
2 - 9DATA 1 - 8IN
10A
11BUSYOUTPrinter is ready to receive data when LOW. HIGH indicates one of the following
12PAPER OUTOUTNormally LOW, this signal goes HIGH when the printer is out of paper.
13SELECTEDOUTHIGH when the printer is on line
14—INThis signal is not checked by printer.
15N/C—Not connected
16SIGNAL GND—Signal ground
17CHASSIS GND—Chassis ground (isolated from logic ground)
18+5VDC—+5V DC (max. 50mA)
19 - 30GND—Twisted pair return signal ground level
31RESET
OBEIN
CKOUT9
Signals when data is ready to be read. Signal goes from HIGH to LOW (for at
least 0.5
µ
s) when data is available.
Information on the first eight bits of parallel data. Each signal is HIGH for logical
1 and LOW for logical 0.
µ
s LOW pulse to acknowledge receipt of data
conditions.
• Data being entered
• Printer off line
• Error condition
INLOW when printer is reset to power-on defaults
32
33EXT GND—External ground
34 - 35N/C—Not connected
36—INThis signal is not checked by printer.
ERROR
OUTNormally HIGH, this signal goes LOW to signal that printing is disabled due to an
error condition.
Chapter 7: Peripheral Unit Driver Circuit
The main logic board of this printer includes a circuit for driving peripheral
units, such as cash drawers. A modular connector for connection of the
peripheral unit is located on the back of the printer. To connect to the drive
circuit, connect the peripheral unit to the modular connector using a cable
supplied by you that meets the following specifications.
• Use a cable with a modular plug like that one shown in the figure below.
Important!
Never connect any other type of plug to the peripheral unit connector.
Modular plug
Modular plug: MOLEX 90075-0007,
AMP641337, or JAPAN BURNDY B-66-4
16
Shield
Wire lead
27
Ferrite core
1 loop
28
Drive circuit
The recommended drive unit is shown below.
[Drive output 24V, max. 1.0A]
F.G
M-GND
M-GND
TR3
TR1
TR2
+5V
+24V
R2
D1
7824
D2
R1
Printer sideUser side
1
2
3
4
5
6
With shield
L1
L2
Peripheral
unit 2
Frame
ground
Peripheral
unit 1
R3
4.7kΩ
1/4W
Compulsion
switch
Notes
• Peripheral Units 1 and 2 cannot be driven simultaneously.
• For continuous driving, do not use drive duty above 20%.
• Compulsion switch status is available as status data.
• Minimum resistance for coils L1 and L2 is 24Ω.
• Absolute maximum ratings for diodes D1 and D2 (Ta = 25°C) are:
Average Rectified Current Io = 1A
Maximum forward surge current (60Hz, 1-cycle sine wave) I
FSM
= 40A
• Absolute maximum rating for transistors TR1 and TR2 (Ta = 25°C) are:
Collector current Ic = 2A
Chapter 8: Automatic Cutter
1
The cutter operates in response to data commands. To enable cutter
operation, set Memory Switch #2-8 to indicate that the cutter is installed.
2
NEVER place fingers or metal objects in the cutter area.
3
If a jam occurs in the cutter area, switch off the power, use tweezers to
remove the jammed paper, then switch the power back on. The printer will
return the blade to the home position.
4
Never clean the cutter blade with alcohol or any other solvent, as this may
remove the blade’s lubrication and shorten the blade life.
29
30
Chapter 9: Control Codes
Important!
Please access the following URL
http://www.star-micronics.co.jp/service/sp_sup_e.htm
for the lastest revision of the manual.
This printer has two command modes: Star mode and ESC/POS mode.
The Star mode emulates thermal receipt printers such as the TSP200 series and
other previous models. The ESC/POS mode emulates the Epson TM-T85
receipt printer and the Epson TM-295 slip printer.
The Star mode commands are as follows.
Print Station Selection (Combo mode only)
Control codesHexadecimal codes Function
<ESC> “+” “A” 0
Print Station Selection
n = 0, “0” : Selects the receipt printer
This command is only valid when it entered at the beginning of a
line. If this command is not set at the beginning of a line, the printer
will ignore the command and continue to print on previously selected
print station.
<ESC>“R”n
Select international character set
Selects an international character set according to the value of n, as
When the value of n3 is UPC-E, UPC-A, JAN/EAN-8, JAN/EAN13, CODE 128 or CODE 93, 1(01H) to 3(03H) or “1”(31H) to
“3”(33H) can be set. When the value of n3 is CODE39, NW-7 or
ITF, 1(01H) to 9(09H) or “1”(31H) to “9”(39H) can be set.
n4: Height of bar code
Can be up to 255 dots (31.9 mm).
If the bar code height is larger than the line feed amount, the line
feed amount is automatically multiplied by an integer.
d1...dk: Bar code data
UPC-E/UPC-A: K = 11 (or 12)
The check digit at the 12th digit is automatically added,
and ignored even if it is specified.
JAN/EAN-8: K = 7 (or 8)
The check digit at the 8th digit is automatically added, and
ignored even if it is specified.
JAN/EAN-13: K = 12 (or 13)
The check digit at the 13th digit is automatically added,
and ignored even if it is specified.
CODE39:The value of k is optional, and the maximum
value also differs according to the modes (21
digits maximum in mode 7).
The start/stop code (“*”) is automatically added.
ITFThe value of k is optional, and the maximum
value also differs according to the modes (40
digits maximum in mode 4).
If the data is number of an odd digits, 0 is
automatically added at the beginning of the data.
CODE 128: The value of k is optional, and the maximum
value also differs according to the modes and the
types of character number (51 digits maximum
in mode 1).
The check character is automatically added.
CODE 93:The value of k is optional, and the maximum
value also differs according to the modes and the
types of character (30 digits maximum in mode
1).
The check characters (C and K) are
automatically added.
NW-7:The value of k is optional, and the maximum
value also differs according to the modes and the
types of character number (29 digits maximum
in mode 7).
The start/stop code is also contained in the data
(it is not automatically added).
The bar code printing start position is at the upper end of the
current line.
If the bar code is positioned beyond the right margin, neither the
bar code nor the character below the bar code will be printed.
Data of CODE 128 and CODE 93
When <LF> is used in a command, some kinds of control code
cannot be sent by the host PC. The control code should be sent
as the data as shown below:
• When sending the following data, express as a set of two
characters.
Express “% (25H)” as “%0 (25H30H)”.
Add “40H-5FH” after “%” for the control codes (00H-1FH).
Express the control code (7FH) as “%5(25H35H)”.
Add “1 - 4 (31H - 34H)” after “%” for the function code.
Add “6 - 8 (36H - 38H)” after “%” for the start code.
Set character spacing
Sets the spacing between characters according to the value of n.
The value of n can be set from 0 through 15, or from “0” through “9”
and “A” through “F”.
The default value of n is 0.
42
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<SO>
0E
Sets the printing magnified double in character width.
Prints the subsequent data including a character spacing set by
<ESC><SP> n, magnified double in character width.
<DC4>
14
Resets the printing magnified in character width.
Resets the printing magnified in character width set by <SO>,
<ESC><SO>, <ESC> “W” n and <ESC> “i”n1n2.
<ESC>“W”n
1B57n
Set the magnification rate in character width
Prints the subsequent data with a character width magnified by a rate
specified by the value of n.
Receipt printer: n= 0, “0”: Reset magnification (same as <DC4>)
Slip printer: n= 0, “0”: Reset magnification (same as <DC4>)
1, “1”: Double magnification (same as <SO>)
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC><SO>
1B0E
Sets the printing magnified double in character width.
Prints the subsequent data magnified double in character width.
This command is only valid with the receipt printer.
<ESC> <DC4>
1B14
Resets the printing magnified in character width set by
<ESC><SO>, <ESC>“h”n and <ESC> “i” n1n2.
This command is only valid with the receipt printer.
43
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC>“h”n
1B68n
Set the magnification rate in character height
Prints the subsequent data with a character height magnified by a rate
specified by the value of n.
Receipt printer: n= 0, “0”: Reset magnification (same as
Slip printer: n= 0, “0”: Reset magnification (same as <DC4>)
1, “1”: Double magnification (same as <SO>)
<ESC>“i”n1 n2
1B69n 1 n2
Sets the magnification rates in character width and height
Prints the subsequent data in the size specified by n1 and n2. The
value of n1 indicates the height magnification and the value of n2
indicates the width magnification.
Receipt printer: n1 (n2)= 0, “0”: Normal height (or width) size
The value of n is between 0(00H) and 5(05H) or “0” (30H) and “5”
(35H). This command is only valid with the receipt printer.
CODE
HEX
FUNCTION
<ESC>“–”n
1B2Dn
Underlining
When the value of n is 1, underlines the subsequent data including a
character spacing set by <ESC><SP> n.
The part to be skipped by the horizontal tab setting and the block
graphic characters are not underlined.
Resets the underline mode when the value of n is 0.
The value of n can be set to 0(00H) or “0”(30H), or 1(01H) or
“1”(31H).
44
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC>“_”n
1B5Fn
Upperlining
When the value of n is 1, over lines the subsequent data including a
character spacing set by <ESC><SP> n.
The part to be skipped by the horizontal tab setting and the block
graphic characters are not upper lined.
Resets the upper line mode when the value of n is 0.
The value of n can be set to 0(00H) or “0”(30H), or 1(01H) or
“1”(31H).
<ESC>“4”
1B34
Select highlight printing
Prints the subsequent data including a character spacing set by
<ESC><SP> n reversed.
The part to be skipped by the horizontal tab setting is not reversed.
Inverted printing
Causes subsequent characters to be inverted.
Enter this command at the beginning of the line. If this code is
entered at any other position, it will be invalid. Therefore, it is not
possible to mix correct and inverted printing in one line.
CODE
HEX
FUNCTION
<DC2>
12
Cancel inverted printing
Cancels inverted printing
Enter this code at the beginning of the line.
45
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC>“E”
1B45
Select emphasized printing
Causes subsequent characters to be emphasized.
Select uni-directional printing
After printing the data in the line buffer, the printer enters the unidirectional mode.
The subsequent data is printed when the print head moves from left
to right.
This command is only valid with the slip printer.
<ESC>“U”“0”or<ESC> “U”<0>
1B55301B5500
Select bi-directional printing
After printing the data in the line buffer, the printer enters the bidirectional mode.
In this mode, the data is printed faster than the uni-directional mode.
This command is only valid with the slip printer.
46
Page Formatting (Line Mode)
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC>“C”n
1B43n
Set page length in lines
Sets the page length using the current line spacing, where n is
between 1 and 127.
Changing the line spacing later does not alter the physical page
length.
The current line becomes the top of the page.
Resets the bottom margin.
Default page length is 42 lines.
This command is only valid with the receipt printer.
<ESC>“C”<0>n
1B4300n
Set page length in inches
Sets the page length to n× 24 mm, where n is between 1 and 22.
The current line becomes the top of the page.
Resets the bottom margin
This command is only valid with the receipt printer.
<ESC>“N”n
1B4En
Set bottom margin
Sets the bottom margin to n lines at the current line spacing, where n
is between 0 and 255.
Bottom margin is reset when you change the page length.
Setting is invalid if the printing area on one page is 36 mm or less.
This command is only valid with the receipt printer.
CODE
HEX
FUNCTION
<ESC>“O”
1B4F
Cancel bottom margin
Cancels the bottom margin.
This command is only valid with the receipt printer.
47
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC>“1”n
1B6Cn
Set left margin at column n at the current character pitch.
The left margin does not move if the character pitch is changed later.
If this function is set in the middle of a line, it will become valid
starting with the following line. When the power is turned on, the left
edge is set as the left margin.
Receipt printer: The setting is invalid if the print area for one line
would be 36 mm or less.
The value of n is between 0 and 255.
Slip printer: The left margin must be at least 18 dots to the left of
the right margin and within the limits below. If the
size of one character and its spacing is larger than
the print area defined by the margins, printing is not
possible and “?” is printed, instead of the character.
The value of n is between 0 and the value of the
right margin - 2.
<ESC>“Q”n
1B51n
Set right margin
Set right margin at column n at the current character pitch.
The right margin does not move if the character pitch is changed
later.
If this function is set in the middle of a line, it will become valid
starting with the following line. When the power is turned on, the
right edge is set as the right margin.
Receipt printer: The setting is invalid if the print area for one line
would be 36 mm or less. The value of n is between
0 and 255.
Slip printer: The right margin must be within the limits below
and set so that the allowable print area is more than
18 dots. If the size of one character and its spacing
is larger than the print area defined by the margins,
printing is not possible and “?” is printed, instead of
the character.
The value of n is between 2 and the value of the
maximum number of print columns.
48
Print Position Control
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<LF>
0A
Line feed
Prints the current line and feeds the paper to the next line.
<CR>
0D
Carriage return
The <CR> code is valid for both the receipt and slip printers only if
memory switch 3-1 is set to 1. (The factory setting is 0.)
If the <CR> code is valid:
Receipt printer : Functions in the same way as an <LF> code.
Slip printer: The function of the <CR> code changes according to
the setting of memory switch 5-8.
When memory switch 5-8 is set to 0 (factory
setting): Functions in the same way as an <LF>
code (CRLF).
When memory switch 5-8 is set to 1: Executed only
when printing. The paper is not fed (CR).
<ESC>“a”n
1B61n
Feed paper n lines
Prints the current line and feeds the paper n lines (where n is between
1 and 127).
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<FF>
0C
From feed
Feeds the paper to the top of the next page, according to the page
length set by <ESC> “C”n or <ESC>”C”<0>n.
This command is only valid with the receipt printer.
<HT>
09
Horizontal tab
Moves the print position to the next horizontal tab stop. Ignored if
there is no next horizontal tab stop on the current line.
49
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<VT>
0B
Vertical tab
Prints the current line and feeds the paper to the next vertical tab stop
and moves the print position to the left margin.
Performs paper feed if no vertical tabs are set or if the current line is
at or below the last vertical tab stop.
This command is only valid with the receipt printer.
<ESC>“A”n
1B41n
Define n/72-inch line spacing
Defines the distance that the paper advances in subsequent line feed.
The line spacing defined here is set by <ESC> “2”.
≤≤
0n85
The default value of n is 12 (1/6-inch feed)
This command is only valid with the slip printer
<ESC>“2”
1B32
Set line spacing to n/72-inch
Set the line spacing to n/72-inch which is defined by <ESC> “A” n.
This command is only valid with the slip printer
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC>“z”“0”or<ESC> “z”<0>
1B7A30or1B7A00
Receipt printer: Set line spacing to 3 mm
Sets the distance that the paper advances in
subsequent line feed to 3 mm.
Slip printer: Set line spacing to 1/12 inch
Sets the distance that the paper advances in
subsequent line feeds to 1/12 inch.
<ESC>“z”“1”or<ESC> “z”<1>
1B7A31or1B7A01
Receipt printer: Set line spacing to 4 mm
Sets the distance that the paper advances in
subsequent line feed to 4 mm.
Slip printer: Set line spacing to 1/6 inch
Sets the distance that the paper advances in
subsequent line feeds to 1/6 inch.
50
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC>“0”
1B30
Receipt printer: Set line spacing to 3 mm
Sets the distance that the paper advances in
subsequent line feed to 3 mm.
Slip printer: Set line spacing to 1/8 inch
Sets the distance that the paper advances in
subsequent line feeds to 1/8 inch.
<ESC>“1”
1B31
Receipt printer: Set line spacing to 3 mm
Sets the distance that the paper advances in
subsequent line feed to 3 mm.
Slip printer: Set line spacing to 7/72-inch
Sets the distance that the paper advances in
subsequent line feeds to 7/72-inch.
<ESC>“J”n
1B4An
Receipt printer: One time n/4-mm feed
Performs a line feed of n/4 mm only once after
printing the data in the line buffer. The space setting
for lines does not change. The value of n is between
1 and 255.
Slip printer: One time n/72-inch feed
Performs a line feed of n/72-inch only once after
printing the data in the line buffer. The space setting
for lines does not change. The value of n is between
1 and 255.
51
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC>“j”n
1B6An
Receipt printer: One time n/4-mm backfeed
Feeds the paper back n/4 mm only once after
printing the data in the line buffer. The space setting
for lines do not change. This command can also
feed the paper back to a previous page; however,
the position in the line on the previous page is
determined by the page length control.
The value of n is between 1 and 255.
Slip printer: One time n/72-inch backfeed
Performs a line feed of n/72-inch only once after
printing the data in the line buffer. The space setting
for lines do not change. The value of n is between 1
and 255.
<ESC>“3”n
1B33n
Set line spacing to n/216-inch
Sets the subsequent line spacing to n/216-inch.
The value of n is between 1 and 255.
Since the min. pitch of the slip paper feed mechanism is 1/144-inch,
the set value is approximated by the following formula
INT (n× 2/3 + 0.5)/144 inch
This command is only valid with the slip printer
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC>“y”n
1B79n
Set line spacing to n/144-inch
Sets the subsequent line spacing to n/144-inch.
The value of n is between 1 and 255.
This command is only valid with the slip printer
<ESC>“I”n
1B49n
One time n/8 mm feed
Performs a line feed of n/8 mm only once after printing the data in
the line bufrer.
The space setting for lines does not change.
The value of n is between 1 and 255.
This command is only valid with the receipt printer.
52
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC>“B”n1n2...<0>
1B42n1n2...00
Set vertical tab stops
Cancels all current vertical tab stops and sets new vertical tab stops
at lines n1, n2, etc., where n1, n2, etc. are numbers between 0 and
255. A maximum of 16 vertical tab stops can be set.
The tab stops must be specified in ascending order; any violation of
ascending order terminates the tab stop list. Standard termination is
by the <0> control code.
The vertical tab stops are set in terms of the current line spacing and
do not move if the line spacing is changed later.
With <ESC> “B” <0>, all vertical tab stops are cancelled. This
command is only valid with the receipt printer. When the power is
turned on, no vertical tabs are set.
<ESC>“D”n1n2...<0>
1B44n1n2...00
Set horizontal tab stops
Cancels all current horizontal tab stops and sets new tab stops at
columns n1, n2, etc. at the current character pitch, where n1, n2, etc.
are numbers between 1 and 255. A maximum of 16 horizontal tab
stops can be set.
The tab stops must be specified in ascending order; any violation of
ascending order terminates the tab stop list. Standard termination is
by the <0> control code.
With <ESC> “D” <0>, all horizontal tab stops are cancelled. The left
edge of the paper is always the reference point for the horizontal tab
positions, regardless of the left margin setting. When the power is
turned on, no horizontal tabs are set.
Dot Graphics Printing
53
CODE
HEX
FUNCTION
<ESC>“K”n<0>m1m2...
1B4Bn00m1m2...
Print normal density graphics
Receipt printer: Prints a 3 (horizontal) × 3 (vertical) dot bit image for
each dot of entered data. Data extending beyond the
right margin is ignored. The relationship between
the entered data and the actual printing is shown
below. The value of n is between 1 and 192.
DOT Position
1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
23
MSB
D8
D7D6D5D4D3D2D1
Image dataLSB
54
Slip printer: Prints a bit image of the number of dots specified by n. After printing the bit
image, the printer automatically returns to the character mode. The
relationship between the pins on the print head and the data is shown below.
Imagedata
Dot Position
1
2
3
4
5
6
7
8
9
(Not Used)
MSBLSB
8 D7 D6 D5 D4 D3 D2 D1
D
The value of n is between 1 and 210.
A maximum of 210 data bytes can printed in one line. Any data exceeding
210 bytes is ignored. Only uni-directional printing is possible.
55
EXAMPLE
We will create the design below using a bit image.
First, since the volume of data is 30, n1 = (1E)
H. If the data m1 ~ m30
is converted to hexadecimal, it appears as shown below.
Print high density graphics
Receipt printer: Prints a 1 (horizontal) × 3 (vertical) dot bit image
for each dot of entered data. Data extending beyond
the right margin is ignored. The relationship
between the entered data and the actual printing is
shown below. The value of n1 + n2 × 256 is
between 1 and 576.
DOT Position
1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
MSB
D8
D7D6D5D4D3D2D1
Image dataLSB
57
Slip printer: Prints a high density bit image of the number of dots specified by n1 and n2.
The value of n1 + 256 × n2 is between 1 and 420.
A maximum of 420 data bytes can printed in one line. Any data exceeding
420 bytes is ignored.
After printing the bit image, the printer automatically returns to the character
mode. The relationship between the pins on the print head and the data is the
same as those shown for the previous bit image code <ESC> “K”.
While printing a high density bit image, the horizontally adjacent dots
cannot be printed.
EXAMPLE
We will create the design below using a bit image.
Printing Sample
First, since the volume of data is 30, n1 = (1E)
H. If the data m1~m30
is converted to hexadecimal, it appears as shown below.
Horizontal density is three times that of the bit image for <ESC>“k”.
(Compare the print samples.)
58
CODE
HEX
FUNCTION
<ESC>“k”n<0>m1m2...
1B6Bn00m1m2...
Print fine density graphics
Prints a 1 (horizontal) × 1 (vertical) dot bit image for each dot of
entered data. Data extending beyond the right margin is ignored. The
relationship between the entered data and the actual printing is
shown below. The value of n is between 1 and 72.
This command is only valid with the receipt printer.
Print fine density graphics
Prints a bit image of the input data using horizontal and vertical
resolutions of 8 dots/mm.
Data extending past the right margin is ignored.
The relationship between the input data and the actual printing is
shown below.
Define download character
Defines one new character and stores it in RAM for later use.
n is the character code of the character defined and must be between
21H and 7F4.
If the maximum of 32 external characters have already been stored,
the oldest stored external character are deleted so that new external
character can be stored.
The character matrix is 12 dots wide and 24 dots high.
Relationship between the character pattern and the character data is
shown below.
This command is only valid with the receipt printer.
Define download character (7 × 9 (half dot) font or 5 × 9 dot font)
Defines download characters
Up to 10 download characters can be defined and the defined
character patterns can be stored in the printer’s RAM.
The values of n1 and n2 are between (21)
H and (7F)H with n1 less
than or equal to n2 and the value of m0 is either (00)H or (80)H.
Defining of download characters begins with character code n1 and
completes with n2. When only one character is defined, n1 = n2.
m0 indicates the relationship between the character pattern and print
head.
m1 m2.... Indicate the character pattern
This command is only valid with the slip printer.
When m0=(00)H
MSB
D
8 D7 D6 D5 D4 D3 D2 D1
LSB
Pin No.
1
2
3
4
5
6
7
8
9
(Not used)
When m0=(80)H
MSB
D
8 D7 D6 D5 D4 D3 D2 D1
When the 7 × 9 (half dot) character size (default setting) is set, the
horizontally adjacent dots cannot be printed.
LSB
Printing possiblePrinting not possible
D8
D7
D6
D5
D4
D3
D2
D1
m2 m4 m6
m1
m3 m5 m7
D8
D7
D6
D5
D4
D3
D2
D1
m2 m4 m6
m1
m3 m5 m7
Over lapping
horizontally
Over lapping
horizontally
65
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC>“&”<1><0>n
<ESC>“&”“1”“0”n
1B260100n
1B263130n
Delete a download character (12 × 24 dot font)
Deletes the download character which was assigned the value n.
This command is only valid with the receipt printer.
<ESC>“%”“1”or<ESC> “%”<1>
1B2531or1B2501
Enable download character set
Enables the download character set.
<ESC>“%”“0”or<ESC> “%”<0>
1B2530or1B2500
Disable download character set
Disables the selected download character set and returns to the builtin ROM character set.
66
Peripheral Device Control
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC> <BEL>n1n2
1B07n1n2
Define drive pulse width for peripheral device #1
Defines the drive pulse width for peripheral devices requiring other
than standard 200 ms pulse time and delay time.
n1 indicates the energizing time and n2 indicates the delay time,
using 10ms units.
<BEL>
07
Control peripheral device #1
Executes drive pulse for peripheral device #1.
<FS>
1C
Control peripheral device #1 immediately
Executes drive pulse for peripheral device #1 immediately.
<EM>
19
Control peripheral device #2 immediately
Drives peripheral device #2. The drive pulse width and delay time
are fixed at 200 ms.
CODE
HEX
FUNCTION
<SUB>
1A
Control peripheral device #2 immediately
Drives peripheral device #2. The drive pulse width and delay time
are fixed at 200 ms.
Auto Cutter Control
67
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC>“d”“0”or<ESC> “d”<0>
1B6430or1B6400
Full-cut command to the auto cutter
Cuts the receipt paper fully.
This command is only valid with the receipt printer.
<ESC>“d”“1”or<ESC> “d”<1>
1B6431or1B6401
Partial-cut command to the auto cutter
Cuts the receipt paper partially.
This command is only valid with the receipt printer.
68
Slip Printer Control
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC><SI>n
1B0Fn
Setting slip sensor
Sets the slip printer TOF/BOF sensor according to the value of n.
Default values are:
n = 0 when memory switch 5-2 = 0 (factory setting)
n = 3 when memory switch 5-2 = 1
<ESC><FF>n
1B0Cn
Slip function
After printing the data in the line buffer, operates the slip printer
according to the value of n.
n = 00, “0” :Operates the clamp
01, “1” :Releases the paper
02, “2” :Releases the paper and waits until it is removed
03, “3” :Feeds the paper backward (backfeed) until it
moves past the TOF sensor, then releases the
paper. (See NOTE below.)
04, “4” :Feeds the paper into the printer (operational feed)
until it moves past the BOF sensor, then releases
the paper.
05, “5” :Feeds the paper according to the direction and
length set by <ESC> <VT> m n (the paper is not
released)
(NOTE) When the slip paper is attached to duplicates, a paper jam
may occur if the paper is always fed backward. Therefore,
the paper should not be ejected with n=3. To feed slip paper
attached to duplicates backward, use <ESC> <VT> to set
the eject length to about half of the paper length, then eject
the paper using <ESC> <FF> 5.
This command is only valid with the slip printer.
69
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC><VT>mn
1B0Bmn
Set the paper eject direction/length
Sets the length of the ejection operation performed using <ESC>
<FF> 5 in line mode.
The value of m determines the ejection direction.
When m= “+”: the ejection direction is into the printer (operational
feed), and the ejection length is n lines (at the current
carriage return)
When m= “-”: the ejection direction is backward (backfeed), and
the ejection length is n lines (at the current carriage
return)
When m= 0 : the ejection direction is backward (backfeed), and
the ejection length is n inches
The default value of n is 0.
This command is only valid with the slip printer.
<EOT>
04
Slip status enquiry
Sends slip printer status information to the host computer.
Status b1 and b5 is variable.
This command is only valid with the slip printer.
70
CODE
HEX
FUNCTION
Page Mode
CODE
HEX
FUNCTION
<ESC><EM>nm<LF> <NUL>
1B19nm0A00
Set the wait time until the automatic clamp is activated
Set the wait time between paper insertion (TOF/BOF sensor senses
the paper) and automatic clamp activation by n × 0.1 sec.
The default value of n is 7 (wait time is 0.7 sec.)
The value of m is fixed to 0.
This command is only valid with the slip printer, besides memory
switch 5-1 is set to 0.
<ESC>“n”
1B6E
Select page mode
Switches from line mode (default) to page mode.
This code is only valid when it is entered at the beginning of the line.
The page mode is suitable even though data is printed in the
rotational direction specified by <ESC> “T” n and in the page
coordinate range specified by <ESC> “*” •••, and though paper with
a horizontal length of a check, etc. is rotated 90 or 270 and printing
is carried out in all modes.
In page mode, since OR is applied to the data in the print area,
characters and bit images can be printed overlapping each other and
each character can be rotated and oriented independently.
In page mode, if printing data and a command such as <CR> or
<LF> are sent in the same way as in line mode, there is an automatic
rotation to the printer side.
All printing of data in the print area is performed according to <LF>.
After printing according to <FF>, the printer returns to line mode. In
addition, if <ESC> “!”, <ESC> “@” or <CAN> are specified,
printing is not performed and the printer leaves page mode and
returns to line mode.
While returning to line mode, the data in the printer buffer, the area
coordinates and the rotation directions are all cleared.
This command is only valid with the slip printer.
The following restrictions exist in page mode.
1)In page mode, half-dot characters cannot be printed since
printing is carried out in normal dot units.
When entering page mode, the ANK font is automatically set to
a 5 × 9 (2 pulses = 1 dot) font.
Since the 7 × 9 font and 5 × 9 (3 pulses = 1 dot) font commands
cannot be executed in page mode, they are executed after the
71
printer returns to line mode.
High density printing of graphics is ignored.
2)Paper feed command
In paper mode, the paper feed command and carriage return are
executed in units of dots. A 1/72-inch (0.353-mm) paper feed is
considered 1 dot. Since a 1-dot pitch in the horizontal direction
is 0.30 mm and a 1-dot pitch in the vertical direction is 0.353
mm, the paper amount that is fed while printing using a 90 or
270 rotation is less when compared with a 0 or 150 rotation.
As a result, when printing using a 90 or 270 rotation, execute a
test print, check the horizontal and vertical dot alignment, then
adjust the alignment as necessary.
3)The following commands are not executed in page mode, but
are stored and executed when the printer returns to line mode.
highlight printing
Underlining<ESC> “-” n
Upperlining<ESC> “_” n
Select print direction<ESC> “U” n
Select emphasized printing/Cancel
emphasized printing
Select left margin<ESC> “1” n
Select right margn<ESC> “Q” n
<SI>/<DC2>
<ESC> “4”/<ESC> “5”
<ESC> “E”/<ESC> “F”
CODE
HEX
FUNCTION
4)The following commands are ignored in page mode.
One time backfeed<ESC> “j” n
Print high density graphics<ESC> “L” •••
Slip function<ESC> <FF> n
Select print station<ESC> “+” “A” n
STX-ETX mode<STX> ••• <ETX>
<ESC>“!”
1B21
Select line mode (default)
If this command is specified while in page mode, printing is not
carried out and the printer returns to line mode.
This command is only valid with the slip printer.
72
CODE
HEX
FUNCTION
<ESC> “*”X
L XH YL YH dXL dXH dYL dYH
1B2AXLXH YLYH dXL dXH dYL dYH
Setting print area in page mode
The coordinates of the current position at the moment that page
mode is entered are (0,0). The starting point of the print area is
defined by XL, XH, YL and YH. In addition, the length DX in the X
direction is specified by dXL and dXH, and the length DY in the Y
direction is specified by dYL and dYH.
Current position (0,0)
DX
(X0,Y0)
Paper feed direction
Print areaDY
Starting point X
0 = XL + (XH× 256) dots
Starting point Y0 = YL + (YH× 256) dots
Length in horizontal direction DX = dXL + (dXH× 256) dots
Length in vertical direction DY = dYL + (dYH× 256) dots
The values of XL, YL, dXL and dYL are between 0 and 255, and the
values of XH, YH, dXH and dYH are between 0 and 1.
However, dXL = dXH = 0 and dYL = dYH = 0 are not included.
In addition, since the maximum range in the X direction (XO + DX)
is 210 dots and the maximum range in the Y direction (YO + DY) is
720 dots, each parameter should be specified to satisfy these ranges.
When the power is turned on, XL = XH = YL = YH = 0 (XO,YO =
0,0)
This command is stored, even in line mode, and the position at the
time that page mode is entered is used as the standard point (0,0).
Since the bottom of the character is used as the baseline, a minimum
print area of 8 dots are necessary in the character height direction to
print data in the page. (When printing a magnified character height,
the paper must be fed before printing.)
This command is only valid with the slip printer.
73
When n = 4, “4,” special mode page mode functions as check high-speed printing mode.
CODE
HEX
FUNCTION
<ESC>“T”n
1B54n
Setting print direction in page mode
Sets the direction in which the printing will be executed in page
mode according to the value of n.
This command is only valid in line mode.
Value of nMode
0 or “0”0 rotation mode (uni-directional printing)
1 or “1”270 rotation mode (uni-directional printing)
2 or “2”180 rotation mode (uni-directional printing)
3 or “3”90 rotation mode (uni-directional printing)
4 or “4”270 rotation mode (bi-directional printing)
The default value of n is 0.
<Rotation direction examples>
n = 0n = 1 or 4n = 2n = 3
0° rotation270° rotation180° rotation90° rotation
12345•••
ABCDE•••
12345•••
ABCDE•••
ABCDE•••
12345•••
ABCDE•••
12345•••
<N=4,“4”: Check high-speed printing mode>
This parameter is only valid when no character data is expanded
into the page area, and this command is added immediately after
<ESC>“n”.
Also, once the check high-speed printing mode has been entered
with <ESC>“T”4, it is not possible to move across to a different
rotation mode (<ESC>“T”0-3) until the page mode has been exited.
The check high-speed printing mode provides high-speed printing
with the check at a 270 degree rotation angle and bi-directional
printing, and a wide range of limitations have been included to
enable bi-directional printing.
74
This mode can only be used with printing data that uses a 5 X 9 (2P-
1) font without decorations.
The limitations are listed below. The quality of the printed product
cannot be guaranteed if these limitations are removed and the unit
used.
[Limitations on the check high-speed printing mode]
• The only characters that can be printed are the 5 X 9 (2P-1) font
ANK characters.
• The double-sized width command cannot be used (the doublesized height command may be used.)
• The bit image command cannot be used.
• Horizontal tabs cannot be used.
• The space setting command for the space between characters
cannot be used.
• The following limitations apply for the Y direction in the printing
area (value set with <ESC> “*”...)
1 As To=0 has been fixed as the starting point for the printing
area, the printing area command set with <ESC> “*” ....
Must be specified with Yo=YL=YH=0. (It will forcibly set
at 0 if it is at any other setting.)
2 The value of Dy must be a six-fold value.
As bi-directional printing in 6-pin units will be performed in this
mode, there are cases where the characters that have been
entered in a misaligned state will be printed in a wave-like style
and will not be able to be distinguished when the value of Dy is
anything other than a six-fold value as a joint will be
established within a single character for return printing.
Consequently, setting anything other than the six-fold value
must not be carried out. However, the printer will discard any
remainders from dividing by six and automatically correct it
into six-fold when any value other than six -fold has been set.
This command is only valid with the slip printer.
CODE
HEX
FUNCTION
<FF>
0C
Print in page mode (only valid when in page mode)
This command can only activate the slip printer. In page mode, all
page data in the page area is printed, then the printer returns to line
mode. After all the page data is printed, the data in the page, the page
print area and the print direction are all initialized.
In addition, this command has no function in line mode.
Customer display commands (Combo mode only)
75
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC>“S”
1B53
Start customer display
Subsequent data is sent through the customer display. Customer
display data is sent as follows.
This command is saved in the print buffer and retrieved from the
print buffer and executed in the same way as the other print data.
<ESC> “S” Customer display data<ESC> “G”
Through the customer display
This command is only effective in the combination mode and when
memory switch 0-8 = 0.
When the customer display is being used, the option RS232C I/F
communication conditions must be baud rate = 9699BPS, data
length = 8 bits, no parity, so set the dip switches accordingly.
<ESC>“G”
1B47
End customer display
This command is regarded as the customer display data end code and
subsequent data is processed as print data. This command is saved in
the print buffer and retrieved from the print buffer and executed in
the same way as the other print data. This command is only effective
in the combination mode and when memory switch 0-8 = 0.
This command is only valid with the slip printer.
76
Other Commands
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<CAN>
18
Cancel printer buffer & Initialize printer
Clears the line buffer, and initializes the commands set already.
Does not affect the external equipment drive conditions set by the
code <ESC> <BEL> n1n2. (This is the same during a mechanical
error.)
(Line buffer means the print data expansion area.)
If <CAN> is specified in page mode while printing using the slip
printer, printing is not carried out and the printer returns to line mode
from page mode.
In addition, <CAN> initializes the print station selection. If the slip
printer was selected, the receipt printer will be re-selected.
This command cannot recover from errors or return to the on-line
status from off-line.
<DC3>
13
Deselect printer
Deselects the printer. The printer disregards all subsequent
characters and commands except <DC1>, which activates the
printer.
<DC1>
11
Set select mode
When the printer receives a <DC1> code, the deselect mode is
canceled and data following this code is input to the buffer.
CODE
HEX
FUNCTION
<RS>
1E
Beep the buzzer
Sounds a brief beep tone.
77
CODE
HEX
FUNCTION
<ESC>“#N,n1n2n3n4”<LF><NUL>
1B23N2Cn1n2n3n40A00
Set the memory switch. In order to enable changed memory switch
setting, turn the printer OFF and ON again or send printer reset
command (<ESC> “?”<LF><NUL>”) to the printer. Changed
memory switch settings are stored in EEPROM and these setting will
be stored as long as the time when they are changed again.
N:Memory switch number (“0”, “1”, “2”, “3”, “4”, “5”)
n1n2n3n4:Mode settings (For details see below)
1)N=0 (Star mode only)
n1 :Always “0”
n3 :Always “0”
(Default)
ParameterSetting“0”“1”
n2Customer display commandsValidInvalid
(Default)
ParameterSetting“0” to “3”“4” to “7” “8” to “A” “B” to “F”
Receipt FF command Form Feed Paper Feed,
n4
FF cut mode—Full-cut—Partial-cut
Cut & Back
Form Feed Paper Feed,
Cut & Back
2)N=1 (Star mode only)
n1 :Always “0”
n2 :Always “0”
(Default)
ParameterSetting“0”“1”
n3Zero styleNormal zero Slashed zero
n4International character
1. From when the power is turned on or
I/F reset until communication possible
2. Test printingBUSYBUSY
3. Paper feed by paper feed switch—BUSY
4. Stop due to no paper—BUSY
5. During waiting for switch input in
macro execution
6. Other error—BUSY
7. Receiving buffer fullBUSYBUSY
BUSYBUSY
—BUSY
79
80
6)N=5 (Star mode)
n1 :Always “0”
n3 :Always “0”
(Default)
ParameterSetting“0”“1”“2”“3”
n2When slip printer <CR>
code is valid
n4Initial status of the TOF/
BOF sensor
Slip printer automatic
clamp
Slip printer automatic
starting print positioning
ParameterSetting“4”“5”“6”“7”
n2When slip printer <CR>
code is valid
n4Initial status of the TOF/
BOF sensor
Slip printer automatic
clamp
Slip printer automatic
starting print positioning
Print +
line feed
(CRLF)
ValidValidValidValid
ValidValidInvalidInvalid
ValidInvalidValidInvalid
Print +
line feed
(CRLF)
InvalidInvalidInvalidInvalid
ValidValidInvalidInvalid
ValidInvalidValidInvalid
print
(CR)
print
(CR)
Print +
line feed
(CRLF)
Print +
line feed
(CRLF)
print
(CR)
print
(CR)
N=5 (ESC/POS mode)
n1 :Always “0”
n2 :Always “0”
n3 :Always “0”
(Default)
ParameterSetting“0”“1”“2”“3”
n4Slip printer automatic
clamp
Slip printer automatic
starting print positioning
ValidValidInvalidInvalid
ValidInvalidValidInvalid
N=A
n1 :Always “0”
n2 :Always “0”
n3 :Always “0”
(Default)
ParameterSetting“0”“1”
n4Receipt adherence-
prevention control
ValidInvalid
N=D
n1 :Always “0”
n2 :Always “0”
n3 :Always “0”
ParameterSetting“0”“1”“2”“3”
n2Thermal head rankABCC
RankAverage resistance value
A1215 ± 67 Ω
B1350 ± 67 Ω
C1485 ± 67 Ω
81
CODE
HEX
FUNCTION
CODE
HEX
FUNCTION
<ESC>“@”
1B40
Initialize printer
Reinitializes the printer. Clears the print buffer and returns settings
to their power-up values.
Does not clear the input buffer, downloaded characters, or conditions
for peripheral devices.
If this command is specified in page mode while printing using the
slip printer, printing is not carried out and the printer returns to line
mode from page mode.
This command cannot recover from errors or return to the on-line
status from off-line.
<ENQ>
05
Enquiry
Causes the printer to transmit a status byte.
Compulsion switch
1: High level (Switch is set to ON.)
CODE
HEX
FUNCTION
Status b3 is variable.
<ESC>“?”<LF> <NUL>
1B3F0A00
Reset the printer hardware.
Resets the printer hardware and produces a test print
Chapter 10: ESC/POS Mode
TM-T85 mode
CodeFunction
HTHorizontal tab
LFPrint line feed
FFPage mode print and return
DLE EOTReal time transmission of status
DLE ENQReal time request to printer
CANCancel print data in page mode
ESC FFPrint page mode data
ESC SPSet right space amount of character
ESC !Universal print mode designation
ESC $Designate absolute printing
ESC %Designate/cancel download characters set
ESC &Define download characters
ESC *Designate bit image mode
ESC -Designate/cancel underline
ESC 2Set 1/6 inch line feed amount
ESC 3Set line feed amount
ESC =Select peripheral equipment
ESC ?Delete download characters
ESC @Initialize printer
ESC DSet horizontal tab position
ESC EDesignate/cancel emphasized print
ESC GDesignate/cancel double print
ESC JPrint and paper feed
ESC LSelect page mode
ESC RSelect international characters
ESC SSelect standard mode
ESC TSelect character print direction in print mode
ESC VDesignate/cancel 90° character rotation
ESC WSet print range in page mode
ESC \Designate relative position
ESC aAlign position
ESC c4Select no effective paper detector at print stop
ESC c5Enable/disable panel switch
83
84
CodeFunction
ESC dPrint and paper feed “n” lines
ESC iPartial cut (one section remaining)
ESC pDesignate pulse generation
ESC tSelect character code table
ESC uTransmission of peripheral equipment status
ESC vTransmission of paper detection status
ESC {Designate/cancel inverted printing
GS !Designate character size
GS $Designate absolute position of vertical direction of characters in page mode
GS *Define download bit image
GS /Print download bit image
GS :Start/finish macro definition
GS BDesignate/cancel reverse printing
GS HSelect print position of HRI characters
GS IPrinter ID transmission
GS LSet left margin
GS PSet basic calculated pitch
GS VPaper cut
GS WSet print range
GS \
GS ^Execute macro
GS aEnable/disable automatic status transmission
GS bDesignate/cancel smoothing
GS fSelect HRI character font
GS hSet bar code height
GS kPrinting of bar code
GS rTransmission of status
GS wSet lateral size of bar code
Designate the relative position of vertical characters when printing in the page
mode
TM-295 mode
CodeFunction
HTHorizontal tab
LFPrint line feed
FFPage mode print and return
DLE EOTReal time transmission of status
CANCancel print data in page mode
ESC SPSet right space amount of character
ESC !Universal print mode designation
ESC %Designate/cancel download characters set
ESC &Define download characters
ESC *Designate bit image mode
ESC 2Set 1/6 inch line feed amount
ESC 3Set line feed amount
ESC =Select peripheral equipment
ESC @Initialize printer
ESC CSingle sheet paper eject length setting
ESC DSet horizontal tab position
ESC FDesignation/cancel single sheet paper reverse direction ejection
ESC JPrint and feed
ESC KPrint and reverse direction feed
ESC LSelect page mode
ESC RSelect international characters
ESC TSelect character print direction in print mode
ESC WSet print range in page mode
ESC c4Select no effective paper detector at print stop
ESC c5Enable/disable panel switch
ESC dPrint and paper feed “n” lines
ESC ePrint and reverse direction feed “n” lines
ESC fSingle sheet paper hold time setting
ESC pDesignate pulse generation
ESC qRelease
ESC tSelect character code table
ESC uTransmission of peripheral equipment status
ESC vTransmission of paper detection status
ESC {Designate/cancel inverted printing
GS IPrinter ID transmission
GS aEnable/disable automatic status transmission
GS rTransmission of status
85
86
TM-295 mode emulation cautionary items
Since, as shown below, the paper feed pitch, dot pitch and the installation
distances between the TOF/BOF sensors and the print head differ depending on
the mechanism of the SCP700 slip and TM-295, the printing results may not be
the same because of the differences in the mechanism. Also, even though, since
the TM-295 is a shuttle printer, the paper feed set values and actual paper feed
amount are different.
DifferenceSCP700 slipTM-295
Difference in the paper feed motor
pitch
Difference in the vertical direction
dot pitch
Difference in the horizontal
direction dot pitch
Difference in the distance from the
top of the paper to the top of the
print head
Difference in the distance from the
TOF sensor to the top of the print
head
Difference in the distance from the
BOF sensor to the bottom of the
print head
1/144 inch units1/60 inch units
0.353mm0.423mm
0.30mm0.315mm
26.5mm
(When automatically feeding)
26.0mm
38.1mm27.3mm
26.5mm ~ 36.5mm
Variable with mechanical
stopper
3.0mm ~ 13.0mm
Variable with mechanical
stopper
<Influence and command differences due to differences in paper feed motor
pitch and horizontal/vertical dot pitch>
Since the pitches are different, the printing results are reduced in the vertical/
horizontal direction compared to the TM-295. Especially in the page mode,
since the coordinates are controlled in dots, the printing results are reduced.
(There is a difference of n/60” dots - n/72” dots in the Y direction.)
In the case of the line mode, since the difference in the paper feed pitch is
absorbed as much as possible, the commands which are connected with the n/
60 inch unit paper feed (<ESC> “3” n, <ESC> “J” n, <ESC> “K” n) use
INT((6n/5)+0.5).
However, since even in this case, depending on the value of n, the paper feed
amount may not be exactly the same, the vertical direction printing position may
be different.
87
<Influence due to the difference in the TOF and BOF sensor positions>
The paper position when the condition of the TOF or BOF sensor changes due
to the status is different to that of the TM-295.
Since the position of the BOF sensor is especially different, whereas the BOF
sensor reports “no paper” at 27.3mm from the bottom of the paper with the TM295, the BOF sensor reports “no paper” at approximately 38mm from the
bottom of the paper with the SCP700. Therefore, when the BOF “no paper”
sensor is effective, the BOF sensor “no paper” is reported quicker than with the
TM-295 and it may not be possible to print in the same position at the bottom
of the same form.
For this reason, by controlling the printing so that it does not stop until
approximately 27.3mm from the bottom of the paper even if the paper has
passed the BOF sensor at the 38.1mm position, this difference is compensated.
However, due to the differences in the paper feed pitch (star = n/72”, TM-295 =
n/60”), the emulation is not perfect.
<Influence due to mechanical stopper position>
With the TM-295, by adjusting the mechanical stopper position, the paper top
position can be changed between 0 to 10mm. However, since the mechanical
stopper position is fixed with the SCP700, if the TM-295 mechanical stopper
position is changed and the printing results are compared, they may be different.
88
Appendix : Character Code Tables
Star Mode
(Character table: Normal)
Note: The (7F)H code is a space when neither normal nor katakana.
Star Mode
(Character table: Normal)
89
90
Star Mode
(Character table: katakana)
Note: Other characters are the same as those for Character table: Normal.
Star Mode
(Character table: IBM (Code page 437))
91
Note: Other characters are the same as those for Character table: Normal.
92
Star Mode
Code Page #850
Multi-lingual
Code Page #852
Latin-2
Code Page #860
Portuguese
Note: Other characters are the same as those for Character table: Normal
Code Page #861
Icelandic
93
Code Page #863
Canadian French
Code Page #866
Russian
Code Page #865
Nordic
Note: Other characters are the same as those for Character table: Normal
94
Star Mode
International Character Set
ESC/POS Mode
Page 0 (PC437)
95
96
ESC/POS Mode
Page 0 (PC437)
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.