COMBINATION PRINTER
SCP700 SERIES
Programmer’s Manual
Download from Www.Somanuals.com. All Manuals Search And Download.
TABLE OF CONTENTS
Chapter 1: Outline ........................................................................................1
Chapter 2: DIP Switch Settings ..................................................................2
Accessing the DIP switches ........................................................2
Available DIP switch settings .....................................................3
Chapter 3: Memory Switch Settings ...........................................................6
Chapter 4: Control Panel Operations ........................................................7
Indicator lights ............................................................................7
Buttons ........................................................................................8
Producing a test print ..................................................................8
Adjusting the slip printer’s dot alignment ..................................9
Hexadecimal dump ...................................................................11
Errors ........................................................................................11
Chapter 5: Standard Serial Interface .......................................................13
Standard serial interface pins and signal names .......................14
Interface connections ................................................................15
Data protocol .............................................................................16
Chapter 6: Optional Interface ...................................................................21
Optional serial interface ............................................................21
Optional serial interface pins and signal names ........................22
Interface connections ................................................................23
Data protocol .............................................................................23
Optional parallel interface ........................................................24
Optional parallel interface pins and signal names ....................25
Chapter 7: Peripheral Unit Driver Circuit ..............................................27
Modular plug .............................................................................27
Drive circuit ..............................................................................28
Chapter 8: Automatic Cutter ....................................................................29
Chapter 9: Control Codes ..........................................................................30
Chapter 10: ESC/POS Mode .......................................................................83
TM-T85 mode ...........................................................................83
TM-295 mode ...........................................................................85
TM-295 mode emulation cautionary items ...............................86
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
[Blank page]
Download from Www.Somanuals.com. All Manuals Search And Download.
1
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
3
❏ 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.
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
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.
Switch
Parameter
ON
OFF
1-1
1-2
1-3
1-4
1-5
Baud Rate
See table below
Data Length
Parity Check
8 bits
7 bits
Enabled
Even
Disabled
Odd
Parity Selection
XON/XOFF
mode
1-6
Handshake
DTR/mode
1-7
1-8
Serial I/F Pin 6 Reset Signal
Serial I/F Pin8 Reset Signal
Active
Active
Inactive
Inactive
Baud Rate
Switch 1-1
Switch 1-2
2400BPS
4800BPS
9600BPS
19200BPS
OFF
ON
OFF
OFF
ON
ON
OFF
ON
DIP Switch 2
The following table shows all the possible settings for DIP Switch 2. The
factory default setting for this switch is all ON.
Switch
Parameter
ON
OFF
2-1
2-2
2-3
Thermal Print Density
Input Buffer Size
See table below
4 KB
45 bytes
Download from Www.Somanuals.com. All Manuals Search And Download.
5
Switch
Parameter
ON
OFF
2-4
2-5
2-6
2-7
2-8
Always ON
Interface
Standard
Option
Always ON
Not Used
Not Used
Thermal Print Density
Switch 2-1
Switch 2-2
Light
Standard
Heavy
OFF
ON
OFF
ON
ON
OFF
ON
Very Heavy
OFF
Download from Www.Somanuals.com. All Manuals Search And Download.
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 Switch
Hexadecimal Code
0
1
2
3
4
5
0000
0000
0000
0000
0000
0000
Download from Www.Somanuals.com. All Manuals Search And Download.
7
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
SLIP
POWER
RECEIPT
SLIP/RESUME
Indicator lights
The following table describes the meaning of indicator lights when it is on, off,
or flashing.
Indicator Light
On
Off
Flashing (slow)
Flashing (fast)
Slip: Dot
adjustment mode
Automatic
Power on
Power off
POWER
recovery Error
Receipt: Stand-by
TM-T85 macro
Slip paper
released
Slip paper
engaged
Request
slip paper
Slip printer error
SLIP
Receipt printer
ready
Receipt printer
not ready
Out of receipt
paper/Near end
Receipt printer
error
RECEIPT
* All indicators flash to indicate a non-recoverable error.
Download from Www.Somanuals.com. All Manuals Search And Download.
8
Buttons
The following table describes the function of the two control buttons of the
control panel.
Button
Description
Press to feed the thermal paper. Holding down this button feeds paper
at high speed.
RECEIPT
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.
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 button, turn printer back on. Keep
RECEIPT depressed for a few moments until the printer beeps and the
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.
Note:
The slip printer momentarily releases the slip paper when you turn printer
power back on. If you are using a large 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.
Download from Www.Somanuals.com. All Manuals Search And Download.
9
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 and SLIP/RESUME buttons, to enter the Dot Alignment
Adjust Mode. The POWER indicator flashes slowly to indicate this mode.
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 RECEIPT button to specify which block
has the best aligned characters. Press RECEIPT once to specify the first block,
twice to specify the second block, and so on up to seven times to specify the
seventh block. Pressing the RECEIPT button more than seven times specifies
the seventh block, no matter how many times it is pressed.
Download from Www.Somanuals.com. All Manuals Search And Download.
10
To exit this mode, press the SLIP/RESUME button. The dot alignment adjust
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.
Note:
If you press the SLIP/RESUME button without pressing the RECEIPT button
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
11
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 SLIP/RESUME button, turn the
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 RECEIPT button.
❏ To exit this mode, turn the printer off.
Errors
There are three types of errors: automatic recovery errors that clear
automatically after some condition is attained, recoverable errors that require
some action by you before they clear, and non-recoverable errors that require
servicing by an authorized dealer. If a slip printer error occurs, the SLIP
indicator flashes quickly. If a receipt printer error occurs, the RECEIPT
indicator flashes quickly.
Automatic Recovery Error
POWER
Flashing Pattern
Error Name
Cause
Recovery
Head Temperature Error Abnormal thermal head
temperature
Fast
Recovery occurs automatically after
head temperature returns to normal.
Download from Www.Somanuals.com. All Manuals Search And Download.
12
Receipt Printer Recoverable Errors
RECEIPT
Flashing Pattern
Error Name
Cause
Recovery
Paper Out Error
Head Up Error
No roll paper
Slow
Insert paper and press SLIP/RESUME.
Lower head and press SLIP/RESUME.
Raised receipt printer
head
Fast
Slow
Fast
Near End
Roll paper near end
Press SLIP/RESUME to resume
printing.
Cutter Error
Error during roll paper
cutting
If 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.
Slip Printer Recoverable Errors
SLIP
Flashing Pattern
Error Name
Cause
Recovery
Slip printer mechanism • Carriage motor lock
Fast
Correct the problem and press SLIP/
RESUME.
error
• Timing signal defect
• Abnormal home
position check
Non-recoverable Errors
First try turning the printer off and then on again. If the error persists or if a non-
recoverable error is indicated by all indicators flashing, contact your nearest
authorized dealer.
Download from Www.Somanuals.com. All Manuals Search And Download.
13
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]
Space [0]
b0
b1
b2
b3
b4
b5
b6
(b7)
A: Start bit
B: Data bits
C: Vertical parity bit
D: Stop bit
A
B
C
D
Input (RXD, DSR, INIT)
Printer
Host computer
Output (DTR, TXD, RTS)
Printer
Host computer
75188 or equivalent
Download from Www.Somanuals.com. All Manuals Search And Download.
14
Standard serial interface pins and signal names
5
1
6
9
Pin Signal
No. Name
Direction
Function
1
2
3
4
FG
—
IN
Frame Ground
Receive data
RXD
TXD
DTR
OUT
OUT
Transmission data
Data terminal ready signal. This signal changes to SPACE when the printer is ready to
receive data.
5
6
SG
—
IN
Signal ground
DSR
Signal line that indicates if the host computer can 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.
7
8
RTS
INIT
OUT
IN
Same as DTR (Pin 4).
This signal can be specified as an internal reset signal using Switch 8 of DIP Switch 1
(page 4). SPACE of 1ms or longer activates the reset.
9
N/C
—
Not connected
Download from Www.Somanuals.com. All Manuals Search And Download.
15
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
IBM PC side
(D-sub 9 pin)
(D-sub 25 pin)
F-GND
1
2
3
4
5
1
2
3
4
5
F-GND
RXD
TXD
TXD
RXD
RTS
DTR
S-GND
CTS
DSR
S-GND
DCD
DTR
DSR
RTS
INIT
N/C
6
7
8
9
6
7
8
20
Printer side
(D-sub 9 pin)
IBM PC side
(D-sub 9 pin)
F-GND
1
2
3
4
5
1
2
3
4
5
DCD
RXD
TXD
DTR
S-GND
DSR
RTS
CTS
RI
RXD
TXD
DTR
S-GND
DSR
RTS
INIT
N/C
6
7
8
9
6
7
8
9
Download from Www.Somanuals.com. All Manuals Search And Download.
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.
Data
Buffer full
Data
Data
RXD
DTR
Buffer empty
Printing
Power ON
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).
Download from Www.Somanuals.com. All Manuals Search And Download.
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
Near Full
Near Empty
256 bytes
Empty
Remainder
256 bytes
DTR “MARK”
DTR “SPACE”
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
Near Full
Near Empty
16 bytes
Empty
Remainder
16 bytes
DTR “MARK”
DTR “SPACE”
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.”
Download from Www.Somanuals.com. All Manuals Search And Download.
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 X-
ON signal is output is every three seconds.
X–ON
X–OFF
X–ON
X–OFF
X–ON
TXD
RXD
Data
Data
Data
Printing
Paper out
signal
ON
ON LINE
lamp
OFF
Paper out
Power ON
Load paper and press
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).
Download from Www.Somanuals.com. All Manuals Search And Download.
19
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
Near Full
Near Empty
256 bytes
Empty
Remainder
256 bytes
X-OFF
X-ON
Printer setting conditions
Description of operation
• When in Star mode and memory switch 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.
is set to “0”
• ESC/POS emulation
• When in Star mode and memory switch 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 X-
ON signal is output.
is set to “1”
B) Buffer set to “big size” (45-bytes) (set with sip switch 2-3)
Data buffer
Full
Near Full
Near Empty
16 bytes
Empty
Remainder
16 bytes
X-OFF
X-ON
Download from Www.Somanuals.com. All Manuals Search And Download.
20
Printer setting conditions
Description of operation
• When in Star mode and memory switch 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.
is set to “0”
• ESC/POS emulation
• When in Star mode and memory switch 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 X-
ON signal is output.
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
21
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
1
2
3
4
5
6
7
8
OFF
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.
Switch
Parameter
ON
OFF
1
2
3
4
5
6
7
8
Baud Rate
See table below
Data Length
Parity Check
8 bits
7 bits
Enabled
Even
Disabled
Odd
Parity Selection
Handshake
DTR/DSR
Active
XON/XOFF
Inactive
Inactive
Serial I/F Pin 6 Reset Signal
Serial I/F Pin 25 Reset Signal
Active
Baud Rate
Switch 1
Switch 2
2400BPS
4800BPS
9600BPS
19200BPS
OFF
ON
OFF
OFF
ON
ON
OFF
ON
Download from Www.Somanuals.com. All Manuals Search And Download.
22
Optional serial interface pins and signal names
13
25
1
14
Pin Signal
No. Name
Direction
Function
1
2
3
4
FG
—
OUT
IN
Frame Ground
Transmission data
Receive data
TXD
RXD
RTS
OUT
Data terminal ready signal. This signal changes to SPACE when the printer is ready to
receive data.
6
DSR
IN
Signal line that indicates if the host computer can 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.
7
SG
DTR
INIT
—
OUT
IN
Signal ground
20
25
Same as RTS (Pin 4).
This signal can be specified as an internal reset signal using of DIP Switch 8 (page 21).
SPACE of 1ms or longer activates the reset.
Download from Www.Somanuals.com. All Manuals Search And Download.
23
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.
Printer side
IBM PC side
(D-sub 25 pin)
(D-sub 25 pin)
F-GND
1
2
3
4
1
2
3
4
5
F-GND
TXD
TXD
RXD
RTS
RXD
RTS
CTS
DSR
S-GND
DTR
DSR
S-GND
DCD
DTR
6
7
6
7
20
25
8
INIT
20
Printer side
(D-sub 25 pin)
IBM PC side
(D-sub 9 pin)
F-GND
1
2
3
4
F-GND
TXD
TXD
RXD
RTS
3
2
7
8
RXD
RTS
CTS
DSR
S-GND
DTR
DSR
S-GND
DCD
DTR
6
7
6
5
1
4
20
25
INIT
Data protocol
❏ The specifications for the DTR and X-ON/X-OFF modes are the same as
for the Standard Serial Interface.
Download from Www.Somanuals.com. All Manuals Search And Download.
24
Optional parallel interface
Interface:
Conforms with Centronics parallel interface standard
1000 ~ 5000 CPS
External strobe pulse
Using ACK and BUSY
TTL-level compatible
Data transfer speed:
Synchronization:
Handshaking:
Logic level:
A C K
Approx. 9µs
DATA
STROBE
T
T
T
BUSY
T: At least 0.5µs
Download from Www.Somanuals.com. All Manuals Search And Download.
25
Signal Name
Sample Circuit
4.7kΩ
DATA 1
DATA 8
74LS-equivalent
1kΩ
74LS-equivalent
74LS-equivalent
100Ω
1000pF
STROBE
1.8kΩ
BUSY
ACK
Optional parallel interface pins and signal names
(18)
(1)
(36)
(19)
Download from Www.Somanuals.com. All Manuals Search And Download.
26
Pin
No.
Signal Name Direction
Function
Signals when data is ready to be read. Signal goes from HIGH to LOW (for at
least 0.5 µs) when data is available.
1
STROBE
IN
IN
Information on the first eight bits of parallel data. Each signal is HIGH for logical
1 and LOW for logical 0.
2 - 9
DATA 1 - 8
10
11
ACK
OUT
OUT
9µs LOW pulse to acknowledge receipt of data
BUSY
Printer is ready to receive data when LOW. HIGH indicates one of the following
conditions.
• Data being entered
• Printer off line
• Error condition
12
13
PAPER OUT
SELECTED
—
OUT
OUT
IN
Normally LOW, this signal goes HIGH when the printer is out of paper.
HIGH when the printer is on line
This signal is not checked by printer.
Not connected
14
15
N/C
—
16
SIGNAL GND
CHASSIS GND
+5VDC
—
Signal ground
17
—
Chassis ground (isolated from logic ground)
+5V DC (max. 50mA)
18
—
19 - 30
31
GND
—
Twisted pair return signal ground level
LOW when printer is reset to power-on defaults
RESET
IN
32
OUT
Normally HIGH, this signal goes LOW to signal that printing is disabled due to an
error condition.
ERROR
33
34 - 35
36
EXT GND
N/C
—
—
IN
External ground
Not connected
—
This signal is not checked by printer.
Download from Www.Somanuals.com. All Manuals Search And Download.
27
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
Shield
Wire lead
Download from Www.Somanuals.com. All Manuals Search And Download.
28
Drive circuit
The recommended drive unit is shown below.
[Drive output 24V, max. 1.0A]
1
2
F.G
With shield
L1
TR1
Peripheral
unit 1
D1
7824
D2
3
4
+24V
M-GND
TR2
R3
4.7kΩ
1/4W
L2
5
6
M-GND
TR3
Peripheral
unit 2
Compulsion
switch
+5V
R1
R2
Frame
ground
Printer side
User side
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
= 40A
FSM
• Absolute maximum rating for transistors TR1 and TR2 (Ta = 25°C) are:
Collector current Ic = 2A
Download from Www.Somanuals.com. All Manuals Search And Download.
29
Chapter 8: Automatic Cutter
1The cutter operates in response to data commands. To enable cutter
operation, set Memory Switch #2-8 to indicate that the cutter is installed.
2NEVER place fingers or metal objects in the cutter area.
3If 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.
4Never clean the cutter blade with alcohol or any other solvent, as this may
remove the blade’s lubrication and shorten the blade life.
Download from Www.Somanuals.com. All Manuals Search And Download.
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)
Receipt- Slip
Control codes
Hexadecimal codes Function
1B 2B 41 30
Page
36
printer
printer
<ESC> “+” “A” 0
<ESC> “+” “A” <0>
Select receipt printer
1B 2B 41 00
<ESC> “+” “A” 3
<ESC> “+” “A” <3>
1B 2B 41 33
1B 2B 41 03
Select slip printer
36
Character Selection
Receipt- Slip
printer printer
Control codes
Hexadecimal codes Function
Page
36
Select international character
set
<ESC> “R” n
1B 52 n
<ESC> “/” “1”
<ESC> “/” <1>
1B 2F 31
1B 2F 01
Select slash zero
36
<ESC> “/” “0”
<ESC> “/” <0>
1B 2F 30
1B 2F 00
Select normal zero
Select bar code printing
36
<ESC> “b” n1 n2 n3 n4 1B 62 n1 n2 n3 n4
37
d1 ... <RS>
<ESC> “M”
<ESC> “p”
d1 ... 1E
1B 4D
1B 70
Select 12-dot pitch printing
Select 7 × 9 (half dot) font
Select 14-dot pitch printing
Select 15-dot pitch printing
41
41
41
41
<ESC> “P”
1B 50
Select 5 × 9 (2 pulses = 1 dot)
font
41
Download from Www.Somanuals.com. All Manuals Search And Download.
31
Receipt- Slip
printer printer
Control codes
<ESC> “:”
Hexadecimal codes Function
Select 16-dot pitch printing
Page
41
41
41
42
1B 3A
Select 5 × 9 (3 pulses = 1 dot)
font
<ESC> <SP> n
1B 20 n
Set character spacing
Set the printing magnified
double in character width.
<SO>
0E
Resets the printing magnified
in character width.
<DC4>
14
42
42
42
42
43
43
43
43
44
44
Set the magnification rate in
character width.
<ESC> “W” n
<ESC> <SO>
<ESC> <DC4>
<ESC> “h” n
<ESC> “i” n1 n2
1B 57 n
1B 0E
Sets the printing magnified
double in character width.
Resets the printing magnified
in character width.
1B 14
Sets the magnification rate in
character height.
1B 68 n
1B 69 n1 n2
Sets the magnification rates
in character width and height.
<ESC> “–” “1”
<ESC> “–” <1>
1B 2D 31
1B 2D 01
Select underlining
Cancel underlining
Select upperlining
Cancel upperlining
<ESC> “–” “0”
<ESC> “–” <0>
1B 2D 30
1B 2D 00
<ESC> “_” “1”
<ESC> “_” <1>
1B 5F 31
1B 5F 01
<ESC> “_” “0”
<ESC> “_” <0>
1B 5F 30
1B 5F 00
<ESC> “4”
<ESC> “5”
<SI>
1B 34
1B 35
0F
Select highlight printing
Cancel highlight printing
Inverted printing
44
44
44
44
45
45
<DC2>
12
Cancel inverted printing
Select emphasized printing
Cancel emphasized printing
<ESC> “E”
<ESC> “F”
1B 45
1B 46
<ESC> “U” “1”
<ESC> “U” <1>
1B 55 31
1B 55 01
Select uni-directional
printing
45
45
<ESC> “U” “0”
<ESC> “U” <0>
1B 55 30
1B 55 00
Select bi-directional printing
Download from Www.Somanuals.com. All Manuals Search And Download.
32
Page Formatting
Receipt- Slip
Control codes
Hexadecimal codes Function
Page
printer
printer
<ESC> “C” n
<ESC> “C” <0> n
<ESC> “N” n
<ESC> “O”
1B 43 n
1B 43 00 n
1B 4E n
1B 4F
Set page length in lines
46
46
46
46
47
47
Set page length in inches
Set bottom margin
Cancel bottom margin
Set left margin
<ESC> “1” n
<ESC> “Q” n
1B 6C n
1B 51 n
Set right margin
Print Position Control
Receipt- Slip
Control codes
Hexadecimal codes Function
Page
printer
printer
<LF>
0A
Line feed
48
48
48
48
48
49
49
49
49
49
50
50
50
50
50
51
51
51
51
51
52
<CR>
0D
Carriage Return
<ESC> “a” n
<FF>
1B 61 n
0C
Feed paper n lines
Form feed
<HT>
09
Horizontal tab
<VT>
0B
Vertical tab
<ESC> “A” n
<ESC> “2”
1B 41 n
1B 32
Define n/72-inch line spacing
Set line spacing to n/72-inch
Set line spacing to 4 mm
Set line spacing to 1/6-inch
Set line spacing to 3 mm
Set line spacing to 1/8-inch
Set line spacing to 7/72-inch
One time n/4 mm feed
One time n/72-inch feed
One time n/4 mm backfeed
One time n/72-inch backfeed
Set line spacing to n/216-inch
Set line spacing to n/144-inch
One time n/8-mm feed
Set vertical tab stops
<ESC> “z” “1”
<ESC> “z” <1>
1B 7A 31
1B 7A 01
<ESC> “0”
<ESC> “1”
<ESC> “J” n
1B 30
1B 31
1B 4A n
<ESC> “j” n
1B 6A n
<ESC> “3” n
<ESC> “y” n
<ESC> “I” n
1B 33 n
1B 79 n
1B 49 n
<ESC> “B” n1 n2 ... <0> 1B 42 n1 n2 ... 00
<ESC> “D” n1 n2 ...
1B 44 n1 n2 ... 00
<0>
Set horizontal tab stops
52
Download from Www.Somanuals.com. All Manuals Search And Download.
33
Dot Graphics Printing
Receipt- Slip
Control codes
Hexadecimal codes Function
Page
printer
printer
<ESC> “K” n <0>
m1 m2 ...
1B 4B n 00 m1 m2
...
Print normal density graphics
Print high density graphics
53
56
<ESC> “L” n1 n2
m1 m2 ...
1B 4C n1 n2 m1 m2
...
<ESC> “k” n <0> m1 ... 1B 6B n 00 m1 ...
Print fine density graphics
Print fine density graphics
58
61
<ESC> “X” n1n2 m1 ... 1B 58 n1n2 m1...
Download Graphics Printing
Receipt- Slip
Control codes
Hexadecimal codes Function
Page
62
printer
printer
<ESC> “&” “1” “1”
n m1 m2 ... m48
1B 26 31 31 n
m1 m2 ... m48
Define download character
(12 × 24 dot font)
<ESC> “&” <1> <1>
1B 26 01 01
n m1 m2 ... m48
n m1 m2 ... m48
Define download character
(7 × 9, 5 × 9 dot font)
<ESC> “&” <0> n1 n2 1B 26 00 n1 n2
65
65
<ESC> “&” “1” “0” n
1B 26 31 30 n
Delete a download character
(12 × 24 dot font)
<ESC> “&” <1> <0> n 1B 26 01 00 n
<ESC> “%” “1”
<ESC> “%” <1>
1B 25 31
1B 25 01
Enable download character
set
65
65
<ESC> “%” “0”
<ESC> “%” <0>
1B 25 30
1B 25 00
Disable download character
set
Peripheral Device Control
Receipt- Slip
Control codes
Hexadecimal codes Function
Page
printer
printer
Define drive pulse width for
peripheral device #1
<ESC> <BEL> n1 n2
<BEL>
1B 07 n1 n2
66
66
66
07
Control peripheral device #1
Control peripheral device #1
immediately
<FS>
1C
Control peripheral device #2
immediately
<EM>
19
66
66
Control peripheral device #2
immediately
<SUB>
1A
Download from Www.Somanuals.com. All Manuals Search And Download.
34
Auto Cutter Control
Receipt- Slip
Control codes
Hexadecimal codes Function
1B 64 30 Full-cut command to the auto
Page
67
printer
printer
<ESC> “d” “0”
<ESC> “d” <0>
1B 64 00
cutter
<ESC> “d” “1”
<ESC> “d” <1>
1B 64 31
1B 64 01
Partial-cut command to the
auto cutter
67
Slip Printer Control
Receipt- Slip
Control codes
Hexadecimal codes Function
Page
printer
printer
<ESC> <SI> n
1B 0F n
Setting slip sensor
Slip function
68
68
<ESC> <FF> n
1B 0C n
Set the paper eject direction/
length
<ESC> <VT> m n
1B 0B m n
04
69
69
70
<EOT>
Slip status enquiry
<ESC> <EM> n m
<LF> <NUL>
Set the wait time until the
automatic clamp is activated
1B 19 n m 0A 00
Page Mode
Receipt- Slip
Control codes
Hexadecimal codes Function
Page
printer
printer
<ESC> “n”
1B 6E
1B 21
Select page mode
70
71
<ESC> “!”
Select line mode
Setting print area in page
mode
<ESC> “*” ...
1B 2A ...
72
Setting print direction in page
mode
<ESC> “T” n
1B 54 n
73
74
<FF>
0C
Print in page mode
Customer Display Commands (Combo mode only)
Receipt- Slip
Control codes
Hexadecimal codes Function
Page
printer
printer
<ESC> “S”
<ESC> “G”
1B 53
1B 47
Start customer display
End customer display
75
75
Download from Www.Somanuals.com. All Manuals Search And Download.
35
Other Commands
Control codes
Receipt- Slip
printer printer
Hexadecimal codes Function
Page
Cancel printer buffer &
<CAN>
18
76
Initialize printer
Deselect printer
Set select mode
Beep the buzzer
<DC3>
<DC1>
<RS>
13
11
1E
76
76
76
<ESC> “#N, n1 n2 n3 n4”
<LF> <NUL>
1B 23 N 2C n1 n2 n3 n4
0A 00
Set memory switch
77
<ESC> “@”
<ENQ>
1B 40
05
Initialize printer
Enquiry
80
80
Reset printer hardware and
produce a test print.
<ESC> “?” <LF> <NUL> 1B 3F 0A 00
83
Download from Www.Somanuals.com. All Manuals Search And Download.
36
Printer Station Selection (Combo mode only)
<ESC>
1B
“+” “A”
2B 41
n
n
CODE
HEX
Print Station Selection
FUNCTION
n = 0, “0” : Selects the receipt printer
3, “3” : Selects the slip 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.
Character Selection
<ESC>
1B
“R”
52
n
n
CODE
HEX
Select international character set
FUNCTION
Selects an international character set according to the value of n, as
shown below:
≤ ≤
n
≤ ≤
n
≤ ≤
“9”, “A” “C”
0
12, “0”
n
n = 0, “0” : U.S.A.
3, “3” : England
6, “6” : Italy
1, “1” : France
4, “4” : Denmark 1
7, “7” : Spain 1
2, “2” : Germany
5, “5” : Sweden
8, “8” : Japan
11, “B” : Spain 2
9, “9” : Norway 10, “A” : Denmark 2
12, “C” : Latin America
Although the international character set can also be selected using a
memory switch, the control code setting is given priority.
<ESC>
1B
“/”
2F
n
n
CODE
HEX
Select zero style
FUNCTION
Causes subsequent zero characters to be printed with a slash when n
is 1, and without a slash when n is 0.
The valve of n can be set to 0(00H) or “0”(30H), or 1(0H) or
“1”(31H).
The default may differ depending on the memory switch setting.
Download from Www.Somanuals.com. All Manuals Search And Download.
37
<ESC>
1B
“b”
62
n1
n1
n2
n2
n3
n3
n4
n4
d1 ... dk <RS>
d1 ... dk 1E
CODE
HEX
Select bar code printing
FUNCTION
Prints bar code according to the value of n1, as shown below:
This command is only valid with the receipt printer.
n1: Type of bar code
0
1
2
3
4
5
6
7
8
UPC-E
UPC-A
JAN/EAN-8
JAN/EAN-13
CODE 39
ITF
CODE 128
CODE 93
NW-7
The value of n1 can be set to 0(00H) or 8(08H) or “0”(30H) to
“8”(38H).
n2: Printing character below bar code or line feed
1
2
3
4
Character below bar code is not printed, Line feed is
performed after execution of command.
Character below bar code is printed, Line feed is
performed after execution of command.
Character below bar code is not printed, Line feed is
not performed after execution of command.
Character below bar code is printed, Line feed is not
performed after execution of command.
The value of n2 can be set to 1(01H) to 4(04H) or “1”(31H) to
“4”(34H).
n3: Mode of bar code
UPC-E, UPC-A, JAN/EAN-8, JAN/EAN-13, CODE 128,
CODE 93
1
2
3
Minimum module 2 dots
Minimum module 3 dots
Minimum module 4 dots
Download from Www.Somanuals.com. All Manuals Search And Download.
38
CODE 39, NW-7, ITF
CODE 39, NW-7
2:6 dots
ITF
1
2
3
4
5
6
7
8
9
Narrow : wide
Narrow : wide
Narrow : wide
Narrow : wide
Narrow : wide
Narrow : wide
Narrow : wide
Narrow : wide
Narrow : wide
2:5 dots
4:10 dots
6:15 dots
2:4 dots
4:8 dots
6:12 dots
2:6 dots
3:9 dots
4:12 dots
3:9 dots
4:12 dots
2:5 dots
3:8 dots
4:10 dots
2:4 dots
3:6 dots
4:8 dots
When the value of n3 is UPC-E, UPC-A, JAN/EAN-8, JAN/EAN-
13, 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.
*
Download from Www.Somanuals.com. All Manuals Search And Download.
39
ITF
The 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:
CODE 93:
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.
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
40
3) 2-character codes
Control codes
CODE
Special code
CODE
25H
FORMAT
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
25H
FORMAT
25H
NUL
SOH
STX
ETX
EOT
ENQ
ACK
BEL
BS
00H
01H
02H
03H
04H
05H
06H
07H
08H
09H
0AH
0BH
0CH
0DH
0EH
0FH
10H
11H
12H
13H
14H
15H
16H
17H
18H
19H
1AH
1BH
1CH
1DH
1EH
1FH
7FH
%@
%A
%B
%C
%D
%E
%F
%G
%H
%I
40H
41H
42H
43H
44H
45H
46H
47H
48H
49H
4AH
4BH
4CH
4DH
4EH
4FH
50H
51H
52H
53H
54H
55H
56H
57H
58H
59H
5AH
5BH
5CH
5DH
5EH
5FH
35H
%
%0
30H
Function codes
CODE
FNC1
FNC2
FNC3
FORMAT
25H
25H
25H
25H
%1
%2
%3
%4
31H
32H
33H
34H
✩
✩
✩
✩
FNC4
HT
LF
VT
FF
CR
SO
SI
%J
%K
%L
%M
%N
%O
%P
%Q
%R
%S
%T
%U
%V
%W
%X
%Y
%Z
%[
Start codes
CODE
START A
START B
START C
FORMAT
25H
25H
%6
%7
%8
36H
37H
38H
✩
✩
✩
25H
DLE
DC1
DC2
DC3
DC4
NAK
SYN
ETB
CAN
EM
✩ For CODE 128 only.
SUB
ESC
FC
%¥
%]
%^
%_
%5
GS
RS
US
DEL
Download from Www.Somanuals.com. All Manuals Search And Download.
41
<ESC>
1B
“M”
4D
CODE
HEX
Receipt printer: Select 12-dot pitch printing
FUNCTION
Prints in a 12 × 24 dot font with no spacing between
characters.
: Select 7 × 9 (half dot) font
Slip printer
<ESC>
1B
“p”
70
CODE
HEX
Select 14-dot pitch printing
FUNCTION
Prints in a 12 × 24 dot font with 2-dot spacing between characters.
This command is only valid with the receipt printer.
<ESC>
1B
“P”
50
CODE
HEX
Receipt printer: Select 15-dot pitch printing
FUNCTION
Prints in a 12 × 24 dot font with 3-dot spacing
between characters.
: Select 5 × 9 (2 pulses = 1 dot) font
Slip printer
<ESC>
1B
“:”
3A
CODE
HEX
Receipt printer: Select 16-dot pitch printing
FUNCTION
Prints in a 12 × 24 dot font with 4-dot spacing
between characters.
: Select 5 × 9 (3 pulses = 1 dot) font
Slip printer
<ESC> <SP>
1B 20
n
n
CODE
HEX
Set character spacing
FUNCTION
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
42
<SO>
0E
CODE
HEX
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.
FUNCTION
<DC4>
14
CODE
HEX
Resets the printing magnified in character width.
FUNCTION
Resets the printing magnified in character width set by <SO>,
<ESC><SO>, <ESC> “W” n and <ESC> “i”n1n2.
<ESC>
1B
“W”
57
n
n
CODE
HEX
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.
FUNCTION
Receipt printer: n= 0, “0”: Reset magnification (same as <DC4>)
1, “1”: Double magnification (same as <SO>)
2, “2”: Triple magnification
3, “3”: Quadruple magnification
4, “4”: Quintuple magnification
5, “5”: Sextuple magnification
Slip printer: n= 0, “0”: Reset magnification (same as <DC4>)
1, “1”: Double magnification (same as <SO>)
<ESC> <SO>
CODE
1B
0E
HEX
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.
FUNCTION
<ESC> <DC4>
CODE
1B
14
HEX
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.
FUNCTION
Download from Www.Somanuals.com. All Manuals Search And Download.
43
<ESC>
1B
“h”
68
n
n
CODE
HEX
Set the magnification rate in character height
FUNCTION
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
<ESC><DC4>)
1, “1”: Double magnification (same as
<ESC><SO>)
2, “2”: Triple magnification
3, “3”: Quadruple magnification
4, “4”: Quintuple magnification
5, “5”: Sextuple magnification
Slip printer: n= 0, “0”: Reset magnification (same as <DC4>)
1, “1”: Double magnification (same as <SO>)
<ESC>
1B
“i” n1 n2
CODE
69 n 1 n2
HEX
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.
FUNCTION
Receipt printer: n1 (n2)= 0, “0”: Normal height (or width) size
1, “1”: Double height (or width) size
2, “2”: Triple height (or width) size
3, “3”: Quadruple height (or width) size
4, “4”: Quintuple height (or width) size
5, “5”: Sextuple 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.
<ESC>
1B
“–”
2D
n
n
CODE
HEX
Underlining
FUNCTION
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).
Download from Www.Somanuals.com. All Manuals Search And Download.
44
<ESC>
1B
“_”
5F
n
n
CODE
HEX
Upperlining
FUNCTION
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>
1B
“4”
34
CODE
HEX
Select highlight printing
FUNCTION
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.
<ESC>
1B
“5”
35
CODE
HEX
Cancel highlight printing
Cancels highlight printing
FUNCTION
<SI>
0F
CODE
HEX
Inverted printing
FUNCTION
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.
<DC2>
12
CODE
HEX
Cancel inverted printing
Cancels inverted printing
FUNCTION
Enter this code at the beginning of the line.
Download from Www.Somanuals.com. All Manuals Search And Download.
45
<ESC>
1B
“E”
45
CODE
HEX
Select emphasized printing
FUNCTION
Causes subsequent characters to be emphasized.
<ESC>
1B
“F”
46
CODE
HEX
Cancel emphasized printing
Cancels emphasized printing.
FUNCTION
<ESC>
1B
“U”
55
“1”
31
or <ESC> “U” <1>
1B 55 01
CODE
HEX
Select uni-directional printing
FUNCTION
After printing the data in the line buffer, the printer enters the uni-
directional 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>
1B
“U”
55
“0”
30
or <ESC> “U” <0>
1B 55 00
CODE
HEX
Select bi-directional printing
FUNCTION
After printing the data in the line buffer, the printer enters the bi-
directional mode.
In this mode, the data is printed faster than the uni-directional mode.
This command is only valid with the slip printer.
Download from Www.Somanuals.com. All Manuals Search And Download.
46
Page Formatting (Line Mode)
<ESC>
1B
“C”
43
n
n
CODE
HEX
Set page length in lines
FUNCTION
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>
1B
“C” <0>
43 00
n
n
CODE
HEX
Set page length in inches
FUNCTION
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>
1B
“N”
4E
n
n
CODE
HEX
Set bottom margin
FUNCTION
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.
<ESC>
1B
“O”
4F
CODE
HEX
Cancel bottom margin
Cancels the bottom margin.
FUNCTION
This command is only valid with the receipt printer.
Download from Www.Somanuals.com. All Manuals Search And Download.
47
<ESC>
1B
“1”
6C
n
n
CODE
HEX
Set left margin at column n at the current character pitch.
FUNCTION
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>
1B
“Q”
51
n
n
CODE
HEX
Set right margin
FUNCTION
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
48
Print Position Control
<LF>
0A
CODE
HEX
Line feed
FUNCTION
Prints the current line and feeds the paper to the next line.
<CR>
0D
CODE
HEX
Carriage return
FUNCTION
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>
1B
“a”
61
n
n
CODE
HEX
Feed paper n lines
FUNCTION
Prints the current line and feeds the paper n lines (where n is between
1 and 127).
<FF>
0C
CODE
HEX
From feed
FUNCTION
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
CODE
HEX
Horizontal tab
FUNCTION
Moves the print position to the next horizontal tab stop. Ignored if
there is no next horizontal tab stop on the current line.
Download from Www.Somanuals.com. All Manuals Search And Download.
49
<VT>
0B
CODE
HEX
Vertical tab
FUNCTION
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>
1B
“A”
41
n
n
CODE
HEX
Define n/72-inch line spacing
FUNCTION
Defines the distance that the paper advances in subsequent line feed.
The line spacing defined here is set by <ESC> “2”.
≤ ≤
n 85
0
The default value of n is 12 (1/6-inch feed)
This command is only valid with the slip printer
<ESC>
1B
“2”
32
CODE
HEX
Set line spacing to n/72-inch
FUNCTION
Set the line spacing to n/72-inch which is defined by <ESC> “A” n.
This command is only valid with the slip printer
<ESC>
1B
“z”
7A
“0”
30
or <ESC> “z”
or 1B 7A
<0>
00
CODE
HEX
Receipt printer: Set line spacing to 3 mm
FUNCTION
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>
1B
“z”
7A
“1”
31
or <ESC> “z”
or 1B 7A
<1>
01
CODE
HEX
Receipt printer: Set line spacing to 4 mm
FUNCTION
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
50
<ESC>
1B
“0”
30
CODE
HEX
Receipt printer: Set line spacing to 3 mm
Sets the distance that the paper advances in
FUNCTION
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>
1B
“1”
31
CODE
HEX
Receipt printer: Set line spacing to 3 mm
Sets the distance that the paper advances in
FUNCTION
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>
1B
“J”
4A
n
n
CODE
HEX
Receipt printer: One time n/4-mm feed
Performs a line feed of n/4 mm only once after
FUNCTION
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
51
<ESC>
1B
“j”
6A
n
n
CODE
HEX
Receipt printer: One time n/4-mm backfeed
Feeds the paper back n/4 mm only once after
FUNCTION
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>
1B
“3”
33
n
n
CODE
HEX
Set line spacing to n/216-inch
FUNCTION
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
<ESC>
1B
“y”
79
n
n
CODE
HEX
Set line spacing to n/144-inch
FUNCTION
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>
1B
“I”
49
n
n
CODE
HEX
One time n/8 mm feed
FUNCTION
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
52
<ESC>
1B
“B”
42
n1
n1
n2
n2
...
...
<0>
00
CODE
HEX
Set vertical tab stops
FUNCTION
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>
1B
“D”
44
n1
n1
n2
n2
...
...
<0>
00
CODE
HEX
Set horizontal tab stops
FUNCTION
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
53
Dot Graphics Printing
<ESC>
1B
“K”
4B
n
n
<0>
00
m1
m1
m2
m2
...
...
CODE
HEX
Print normal density graphics
FUNCTION
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.
MSB
D8
Image data
D5
LSB
D1
D7
D6
D4
D3
D2
DOT Position
1
2
3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Download from Www.Somanuals.com. All Manuals Search And Download.
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.
Image
data
MSB
LSB
D8 D7 D6 D5 D4 D3 D2 D1
Dot Position
1
2
3
4
5
6
7
8
9
(Not Used)
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
55
We will create the design below using a bit image.
EXAMPLE
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.
Hexa-
decimal
Hexa-
Hexa-
decimal
Data Binary
Data Binary
Data Binary
decimal
m1 00000001 01
m2 00011110 1E
m3 00111110 3E
m4 01011111 5F
m5 00011111 1F
m6 01011110 5E
m7 00011110 1E
m8 00111111 3F
m9 00101111 2F
m10 00111110 3E
m11 00111110 3E
m12 00000010 02
m13 00000010 02
m14 00111110 3E
m15 00111110 3E
m16 00101111 2F
m17 00101111 2F
m18 00111110 3E
m19 00101110 2E
m20 00101110 2E
m21 00111110 3E
m22 00101110 2E
m23 00101110 2E
m24 00111110 3E
m25 00101111 2F
m26 00101111 2F
m27 00111110 3E
m28 00111110 3E
m29 00000010 02
m30 00000010 02
Printing Sample
Download from Www.Somanuals.com. All Manuals Search And Download.
56
<ESC>
1B
“L”
4C
n1
n1
n2
n2
m1
m1
m2
m2
...
...
CODE
HEX
Print high density graphics
FUNCTION
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.
MSB
D8
Image data
D5
LSB
D1
D7
D6
D4
D3
D2
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
Download from Www.Somanuals.com. All Manuals Search And Download.
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.
We will create the design below using a bit image.
EXAMPLE
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.
Hexa-
decimal
Hexa-
Hexa-
decimal
Data Binary
Data Binary
Data Binary
decimal
m1 00000001 01
m2 00011110 1E
m3 00111110 3E
m4 01011111 5F
m5 00011111 1F
m6 01011110 5E
m7 00011110 1E
m8 00111111 3F
m9 00101111 2F
m10 00111110 3E
m11 00111110 3E
m12 00000010 02
m13 00000010 02
m14 00111110 3E
m15 00111110 3E
m16 00101111 2F
m17 00101111 2F
m18 00111110 3E
m19 00101110 2E
m20 00101110 2E
m21 00111110 3E
m22 00101110 2E
m23 00101110 2E
m24 00111110 3E
m25 00101111 2F
m26 00101111 2F
m27 00111110 3E
m28 00111110 3E
m29 00000010 02
m30 00000010 02
Horizontal density is three times that of the bit image for <ESC>“k”.
(Compare the print samples.)
Printing Sample
Download from Www.Somanuals.com. All Manuals Search And Download.
58
<ESC>
1B
“k”
6B
n
n
<0>
00
m1
m1
m2
m2
...
...
CODE
HEX
Print fine density graphics
FUNCTION
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
59
Relationship between image data and print dots
Dot position
Image data
b7 b6 b5 b4 b3 b2 b1 b0
Download from Www.Somanuals.com. All Manuals Search And Download.
60
EXAMPLE
Printing Sample
Hexa-
decimal
00
1F
3F
77
F8
F8
F8
0F
1F
1F
3E
38
79
73
73
F9
Hexa-
decimal
00
Data
d1
d3
d5
d7
d9
Binary
Data
d2
d4
d6
Binary
00000000
00011111
00111111
01110111
11111000
11111000
11111000
00001111
00011111
00011111
00111110
00111000
01111001
01110011
01110011
11111001
11111000
11111110
11111111
11111111
00000000
00000000
00000000
00000000
00000000
11111000
11111100
01110111
00011111
00011111
00011111
11110000
11111000
11111000
01111100
00011100
10011110
11001110
11001110
10011111
00011111
01111111
11111111
11111111
00000000
00000000
00000000
00000000
F8
FC
EE
1F
1F
1F
F0
F8
F8
7C
1C
9E
CE
CE
9F
1F
7F
FF
FF
d8
d10
d12
d14
d16
d18
d20
d22
d24
d26
d28
d30
d32
d34
d36
d38
d40
d42
d44
d46
d48
d11
d13
d15
d17
d19
d21
d23
d25
d27
d29
d31
d33
d35
d37
d39
d41
d43
d45
d47
F8
FE
FF
FF
00
00
00
00
00
00
00
00
Download from Www.Somanuals.com. All Manuals Search And Download.
61
<ESC>
1B
“X”
5
n1
n1
n2
n2
m1
m1
m2
m2
...
...
CODE
HEX
Print fine density graphics
FUNCTION
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.
≤
≤
1
n1 + n2 × 256 576
d1•••
d2•••
d3•••
MSB
Dot
LSB MSB
LSB MSB
LSB
Position b7 b6 b5 b4 b3 b2 b1 b0
b7 b6 b5 b4 b3 b2 b1 b0 b7 b6 b5 b4 b3 b2 b1 b0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Download from Www.Somanuals.com. All Manuals Search And Download.
62
Download Graphics Printing
<ESC>
<ESC>
1B
“&” <1> <1>
n
n
n
n
m1
m1
m1
m1
m2
m2
m2
m2
...
...
...
...
m48
m48
m48
m48
CODE
“&” “1”
“1”
01
26
26
01
31
HEX
1B
31
Define download character
Defines one new character and stores it in RAM for later use.
FUNCTION
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.
EXAMPLE
Download from Www.Somanuals.com. All Manuals Search And Download.
63
Hexa-
decimal
18
38
78
18
18
18
18
19
1B
06
0C
1B
37
66
00
00
01
Hexa-
decimal
00
00
00
00
00
60
C0
80
00
00
00
C0
E0
60
60
C0
80
Data
m1
m3
m5
m7
m9
Binary
Data
m2
m4
m6
Binary
00011000
00111000
01111000
00011000
00011000
00011000
00011000
00011001
00011011
00000110
00001100
00011011
00110111
01100110
00000000
00000000
00000001
00000011
00000111
00000111
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
01100000
11000000
10000000
00000000
00000000
00000000
11000000
11100000
01100000
01100000
11000000
10000000
00000000
11100000
11100000
00000000
00000000
00000000
00000000
m8
m10
m12
m14
m16
m18
m20
m22
m24
m26
m28
m30
m32
m34
m36
m38
m40
m42
m44
m46
m48
m11
m13
m15
m17
m19
m21
m23
m25
m27
m29
m31
m33
m35
m37
m39
m41
m43
m45
m47
03
07
07
00
00
00
00
00
E0
E0
00
00
00
00
When the 7 × 9 (half dot) character size (default setting) is set:
<ESC> “&” <0> n1 n2 [m0 m1 m2 m3 m4 m5 m6 m7] n2 – n1 + 1
CODE
HEX
(1B)H (26)H (00)H n1 n2 [m0 m1 m2 m3 m4 m5 m6 m7] n2 – n1 + 1
When the 5 × 9 dot character size is set:
<ESC> “&” <0> n1 n2 [m0 m1 m2 m3 m4 m5] n2 – n1 + 1
CODE
HEX
(1B)H (26)H (00)H n1 n2 [m0 m1 m2 m3 m4 m5] n2 – n1 + 1
Download from Www.Somanuals.com. All Manuals Search And Download.
64
Define download character (7 × 9 (half dot) font or 5 × 9 dot font)
Defines download characters
FUNCTION
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
When m0=(80)H
MSB
LSB
LSB
Pin No.
D8 D7 D6 D5 D4 D3 D2 D1
D8 D7 D6 D5 D4 D3 D2 D1
Pin No.
1
2
3
4
5
6
7
8
9
(Not used)
1
2
3
4
5
6
7
8
9
(Not used)
When the 7 × 9 (half dot) character size (default setting) is set, the
horizontally adjacent dots cannot be printed.
EXAMPLE
Printing possible
Printing not possible
m2 m4 m6
m2 m4 m6
m1 m3 m5 m7
m1 m3 m5 m7
Over lapping
horizontally
D8
D7
D6
D5
D4
D3
D2
D1
D8
D7
D6
D5
D4
D3
D2
D1
Over lapping
horizontally
Download from Www.Somanuals.com. All Manuals Search And Download.
65
<ESC>
<ESC>
1B
“&” <1> <0>
n
n
n
n
CODE
“&” “1”
“0”
00
26
26
01
31
HEX
1B
30
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.
FUNCTION
<ESC>
1B
“%” “1”
25 31
or <ESC> “%” <1>
or 1B 25 01
CODE
HEX
Enable download character set
Enables the download character set.
FUNCTION
<ESC>
1B
“%” “0”
25 30
or <ESC> “%” <0>
or 1B 25 00
CODE
HEX
Disable download character set
FUNCTION
Disables the selected download character set and returns to the built-
in ROM character set.
Download from Www.Somanuals.com. All Manuals Search And Download.
66
Peripheral Device Control
<ESC> <BEL> n1
1B 07 n1
n2
n2
CODE
HEX
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.
FUNCTION
<BEL>
07
CODE
HEX
Control peripheral device #1
FUNCTION
Executes drive pulse for peripheral device #1.
<FS>
1C
CODE
HEX
Control peripheral device #1 immediately
Executes drive pulse for peripheral device #1 immediately.
FUNCTION
<EM>
19
CODE
HEX
Control peripheral device #2 immediately
Drives peripheral device #2. The drive pulse width and delay time
are fixed at 200 ms.
FUNCTION
<SUB>
1A
CODE
HEX
Control peripheral device #2 immediately
Drives peripheral device #2. The drive pulse width and delay time
are fixed at 200 ms.
FUNCTION
Download from Www.Somanuals.com. All Manuals Search And Download.
67
Auto Cutter Control
<ESC>
1B
“d”
64
“0”
30
or <ESC> “d” <0>
or 1B 64 00
CODE
HEX
Full-cut command to the auto cutter
Cuts the receipt paper fully.
FUNCTION
This command is only valid with the receipt printer.
<ESC>
1B
“d”
64
“1”
31
or <ESC> “d” <1>
or 1B 64 01
CODE
HEX
Partial-cut command to the auto cutter
Cuts the receipt paper partially.
FUNCTION
This command is only valid with the receipt printer.
Download from Www.Somanuals.com. All Manuals Search And Download.
68
Slip Printer Control
<ESC>
1B
<SI>
0F
n
n
CODE
HEX
Setting slip sensor
Sets the slip printer TOF/BOF sensor according to the value of n.
FUNCTION
TOF Sensor
BOF Sensor
n = 00, “0” :
01, “1” :
Valid
Valid
Invalid
Invalid
Valid
Invalid
Valid
02, “2” :
03, “3” :
Invalid
Default values are:
n = 0 when memory switch 5-2 = 0 (factory setting)
n = 3 when memory switch 5-2 = 1
<ESC> <FF>
1B 0C
Slip function
n
n
CODE
HEX
FUNCTION
After printing the data in the line buffer, operates the slip printer
according to the value of n.
n = 00, “0” :
01, “1” :
Operates the clamp
Releases the paper
Releases the paper and waits until it is removed
Feeds the paper backward (backfeed) until it
moves past the TOF sensor, then releases the
paper. (See NOTE below.)
02, “2” :
03, “3” :
04, “4” :
05, “5” :
Feeds the paper into the printer (operational feed)
until it moves past the BOF sensor, then releases
the paper.
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
69
<ESC> <VT>
1B 0B
m
m
n
n
CODE
HEX
Set the paper eject direction/length
FUNCTION
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
CODE
HEX
Slip status enquiry
FUNCTION
Sends slip printer status information to the host computer.
Status b7 b6 b5 b4 b3 b2 b1 b0
1
0
Constantly
set at “1”
Constantly
set at “0”
TOF sensor 1: No paper
BOF sensor 1: No paper
Slip printer mechanical error 1: Error
Slip release/clamp 1: Clamp
0: Release
Status b1 and b5 is variable.
This command is only valid with the slip printer.
Download from Www.Somanuals.com. All Manuals Search And Download.
70
<ESC> <EM>
1B 19
n
n
m
m
<LF> <NUL>
0A 00
CODE
HEX
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.
FUNCTION
This command is only valid with the slip printer, besides memory
switch 5-1 is set to 0.
Page Mode
<ESC>
1B
“n”
CODE
6E
HEX
Select page mode
FUNCTION
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
Download from Www.Somanuals.com. All Manuals Search And Download.
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.
Select 7 × 9 (half dot) font
Select 5 × 9 (3 pulses = 1 dot) font
<ESC> “M”
<ESC> “:”
Inverted printing/Cancel inverted
printing
<SI>/<DC2>
Select highlight printing/Cancel
highlight printing
<ESC> “4”/<ESC> “5”
Underlining
<ESC> “-” n
Upperlining
<ESC> “_” n
Select print direction
<ESC> “U” n
Select emphasized printing/Cancel
emphasized printing
<ESC> “E”/<ESC> “F”
Select left margin
Select right margn
<ESC> “1” n
<ESC> “Q” n
4) The following commands are ignored in page mode.
One time backfeed
Print high density graphics
Slip function
<ESC> “j” n
<ESC> “L” •••
<ESC> <FF> n
<ESC> “+” “A” n
<STX> ••• <ETX>
Select print station
STX-ETX mode
<ESC>
1B
“!”
21
CODE
HEX
Select line mode (default)
FUNCTION
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
72
<ESC> “*” XL XH YL YH dXL dXH dYL dYH
1B 2A XL XH YL YH dXL dXH dYL dYH
CODE
HEX
Setting print area in page mode
FUNCTION
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
DY
Print area
Starting point X0 = 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)
dXL = 210, dXH = 0 (DX = 210) and
dYL = 64, dYH = 2 (DY = 576).
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
73
When n = 4, “4,” special mode page mode functions as check high-speed printing mode.
<ESC>
1B
“T”
54
n
n
CODE
HEX
Setting print direction in page mode
FUNCTION
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 n
Mode
0 or “0”
1 or “1”
2 or “2”
3 or “3”
4 or “4”
0 rotation mode (uni-directional printing)
270 rotation mode (uni-directional printing)
180 rotation mode (uni-directional printing)
90 rotation mode (uni-directional printing)
270 rotation mode (bi-directional printing)
The default value of n is 0.
<Rotation direction examples>
n = 0
n = 1 or 4
n = 2
n = 3
0° rotation 270° rotation
180° rotation 90° rotation
12345•••
ABCDE•••
A B C D E • • •
1 2 3 4 5 • • •
<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.
Download from Www.Somanuals.com. All Manuals Search And Download.
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 double-
sized 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 theY direction in the printing
area (value set with <ESC> “*”...)
1As 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.)
2The 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.
<FF>
0C
CODE
HEX
Print in page mode (only valid when in page mode)
FUNCTION
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
75
Customer display commands (Combo mode only)
<ESC>
1B
“S”
53
CODE
HEX
Start customer display
FUNCTION
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>
1B
“G”
47
CODE
HEX
End customer display
FUNCTION
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.
Download from Www.Somanuals.com. All Manuals Search And Download.
76
Other Commands
<CAN>
CODE
18
HEX
Cancel printer buffer & Initialize printer
FUNCTION
Clears the line buffer, and initializes the commands set already.
Does not affect the external equipment drive conditions set by the
code <ESC> <BEL> n1 n2. (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
CODE
HEX
Deselect printer
FUNCTION
Deselects the printer. The printer disregards all subsequent
characters and commands except <DC1>, which activates the
printer.
<DC1>
11
CODE
HEX
Set select mode
FUNCTION
When the printer receives a <DC1> code, the deselect mode is
canceled and data following this code is input to the buffer.
<RS>
1E
CODE
HEX
Beep the buzzer
FUNCTION
Sounds a brief beep tone.
Download from Www.Somanuals.com. All Manuals Search And Download.
77
<ESC>
1B
“#
23
N
N
,
n1n2n3n4” <LF> <NUL>
n1n2n3n4 0A 00
CODE
2C
HEX
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.
FUNCTION
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)
Parameter
n2
Setting
“0”
“1”
Customer display commands
Valid
Invalid
(Default)
“0” to “3” “4” to “7” “8” to “A” “B” to “F”
Receipt FF command Form Feed Paper Feed, Form Feed Paper Feed,
Parameter
n4
Setting
Cut & Back
Cut & Back
FF cut mode
—
Full-cut
—
Partial-cut
2) N=1 (Star mode only)
n1 :Always “0”
n2 :Always “0”
(Default)
“0”
Parameter
Setting
Zero style
“1”
n3
n4
Normal zero Slashed zero
International character
set
See below
n4 Country
“0” USA
n4 Country
“3” UK
n4 Country
“6” Italy
n4 Country
“9” Norway
“1” France
“4” Denmark #1
“7” Spain #1
“8” Japan
“A” Denmark #2
“B” Spain #2
“2” Germany
“5” Sweden
n4 Country
“C” Latin America
Download from Www.Somanuals.com. All Manuals Search And Download.
78
3) N=2
n3 :Always “0”
(Default)
“0”
Parameter
n1
Setting
“1”
Remark
Receipt printer ESC d
command
Receipt printer
Cut
Paper feed, Star mode
& Cut
Invalid
Valid
only
n2
n4
Receipt printer cutter
Valid
Star and
ESC/POS
Receipt printer paper
near end
Invalid
Star mode
only
4) N=3 (Star mode only)
n1 :Always “0”
(Default)
“0”
Parameter
n2
Setting
“1”
“2”
“3”
Character table (Code
page)
See belows
–
n3
n4
Receipt printer printer
column
48
38
–
CR code
Invalid
4
Invalid
3
Valid
4
Valid
3
Receipt printer line feed
(mm)
n2 Code page
“0” Normal
“1” katakana
“2” 437
n2 Code page
“3” 437
n2 Code page
“6” 860
n2 Code page
“9” 865
“4” 850
“7” 861
“A” 866
“5” 852
“8” 863
5) N=4 (Star mode)
n2 :Always “0”
n3 :Always “0”
n4 :Always “0”
(Default)
Parameter
n1
Setting
“0”
“1”
“2”
“3”
every 3
Toggled sec
X on/X off Timing
When
Toggled sec
every 3 When
RTS Signal Condition
Save as Save as always
always
DTR
DTR
SPACE SPACE
Download from Www.Somanuals.com. All Manuals Search And Download.
79
N=4 (ESC/POS mode)
n1 :Always “0”
n2 :Always “0”
(Default)
“0”’
Parameter
Setting
“1”
“2”
“3”
n3
DTR signal during
setting status
See belows
transmission
n4
Data receipt error
“?”
Ignored
“?”
Ignored
printed
printed
Parameter :n3
Setting (DTR signal)
“0”, “1”
“2”, “3”
BUSY
1. From when the power is turned on or
I/F reset until communication possible
BUSY
2. Test printing
BUSY
—
BUSY
BUSY
BUSY
3. Paper feed by paper feed switch
4. Stop due to no paper
—
5. During waiting for switch input in
macro execution
—
BUSY
6. Other error
—
BUSY
BUSY
7. Receiving buffer full
BUSY
Download from Www.Somanuals.com. All Manuals Search And Download.
80
6) N=5 (Star mode)
n1 :Always “0”
n3 :Always “0”
(Default)
“0”
Parameter
n2
Setting
“1”
print
“2”
“3”
print
When slip printer <CR> Print +
Print +
code is valid
line feed (CR)
(CRLF)
line feed (CR)
(CRLF)
n4
Initial status of the TOF/ Valid
BOF sensor
Valid
Valid
Valid
Slip printer automatic
clamp
Valid
Valid
Invalid
Valid
Invalid
Invalid
Slip printer automatic
Valid
Invalid
starting print positioning
Parameter
n2
Setting
“4”
“5”
“6”
“7”
When slip printer <CR> Print +
code is valid
print
Print +
line feed (CR)
(CRLF)
print
line feed (CR)
(CRLF)
n4
Initial status of the TOF/ Invalid
BOF sensor
Invalid
Invalid
Invalid
Valid
Invalid
Slip printer automatic
clamp
Valid
Valid
Invalid
Invalid
Slip printer automatic
Valid
Invalid
starting print positioning
N=5 (ESC/POS mode)
n1 :Always “0”
n2 :Always “0”
n3 :Always “0”
(Default)
“0”
Valid
Parameter
Setting
“1”
“2”
“3”
n4
Slip printer automatic
clamp
Valid
Invalid
Invalid
Slip printer automatic
Valid
Invalid
Valid
Invalid
starting print positioning
N=A
n1 :Always “0”
n2 :Always “0”
n3 :Always “0”
(Default)
“0”
Valid
Parameter
n4
Setting
“1”
Receipt adherence-
prevention control
Invalid
Download from Www.Somanuals.com. All Manuals Search And Download.
81
N=D
n1 :Always “0”
n2 :Always “0”
n3 :Always “0”
Parameter
n2
Setting
“0”
A
“1”
B
“2”
C
“3”
C
Thermal head rank
Rank
A
Average resistance value
1215 ± 67 Ω
B
1350 ± 67 Ω
C
1485 ± 67 Ω
<ESC>
1B
“@”
40
CODE
HEX
Initialize printer
FUNCTION
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
CODE
HEX
Enquiry
FUNCTION
Causes the printer to transmit a status byte.
Download from Www.Somanuals.com. All Manuals Search And Download.
82
Status byte
Status
b7
b6
b5
b4
0
b3
b2
b1
b0
Constantly
set at
Vertical parity error
1: Error
0
Framing error
1: Error
Receipt printer head-up error
Receipt printer auto cutter error
Receipt printer thermistor error
Cover open error
Slip printer mechanical error
1: Error
Receipt paper empty
1: Empty
Buffer empty
1: Empty
Buffer overflow
1: Overflow
Compulsion switch
1: High level (Switch is set to ON.)
Status b3 is variable.
“?” <LF> <NUL>
<ESC>
1B
CODE
HEX
3F
0A
00
Reset the printer hardware.
FUNCTION
Resets the printer hardware and produces a test print
Download from Www.Somanuals.com. All Manuals Search And Download.
83
Chapter 10: ESC/POS Mode
TM-T85 mode
Code
Function
HT
Horizontal tab
LF
Print line feed
FF
Page mode print and return
Real time transmission of status
Real time request to printer
Cancel print data in page mode
Print page mode data
DLE EOT
DLE ENQ
CAN
ESC FF
ESC SP
ESC !
Set right space amount of character
Universal print mode designation
Designate absolute printing
ESC $
ESC %
ESC &
ESC *
ESC -
Designate/cancel download characters set
Define download characters
Designate bit image mode
Designate/cancel underline
Set 1/6 inch line feed amount
Set line feed amount
ESC 2
ESC 3
ESC =
ESC ?
ESC @
ESC D
ESC E
ESC G
ESC J
ESC L
ESC R
ESC S
ESC T
ESC V
ESC W
ESC \
Select peripheral equipment
Delete download characters
Initialize printer
Set horizontal tab position
Designate/cancel emphasized print
Designate/cancel double print
Print and paper feed
Select page mode
Select international characters
Select standard mode
Select character print direction in print mode
Designate/cancel 90° character rotation
Set print range in page mode
Designate relative position
Align position
ESC a
ESC c4
ESC c5
Select no effective paper detector at print stop
Enable/disable panel switch
Download from Www.Somanuals.com. All Manuals Search And Download.
84
Code
Function
ESC d
Print and paper feed “n” lines
Partial cut (one section remaining)
Designate pulse generation
Select character code table
ESC i
ESC p
ESC t
ESC u
ESC v
ESC {
GS !
Transmission of peripheral equipment status
Transmission of paper detection status
Designate/cancel inverted printing
Designate character size
GS $
GS *
GS /
Designate absolute position of vertical direction of characters in page mode
Define download bit image
Print download bit image
GS :
Start/finish macro definition
Designate/cancel reverse printing
Select print position of HRI characters
Printer ID transmission
GS B
GS H
GS I
GS L
GS P
GS V
GS W
Set left margin
Set basic calculated pitch
Paper cut
Set print range
Designate the relative position of vertical characters when printing in the page
mode
GS \
GS ^
GS a
GS b
GS f
GS h
GS k
GS r
GS w
Execute macro
Enable/disable automatic status transmission
Designate/cancel smoothing
Select HRI character font
Set bar code height
Printing of bar code
Transmission of status
Set lateral size of bar code
Download from Www.Somanuals.com. All Manuals Search And Download.
85
TM-295 mode
Code
Function
HT
Horizontal tab
LF
Print line feed
FF
Page mode print and return
Real time transmission of status
Cancel print data in page mode
Set right space amount of character
Universal print mode designation
DLE EOT
CAN
ESC SP
ESC !
ESC %
ESC &
ESC *
ESC 2
ESC 3
ESC =
ESC @
ESC C
ESC D
ESC F
ESC J
ESC K
ESC L
ESC R
ESC T
ESC W
ESC c4
ESC c5
ESC d
ESC e
ESC f
ESC p
ESC q
ESC t
ESC u
ESC v
ESC {
GS I
Designate/cancel download characters set
Define download characters
Designate bit image mode
Set 1/6 inch line feed amount
Set line feed amount
Select peripheral equipment
Initialize printer
Single sheet paper eject length setting
Set horizontal tab position
Designation/cancel single sheet paper reverse direction ejection
Print and feed
Print and reverse direction feed
Select page mode
Select international characters
Select character print direction in print mode
Set print range in page mode
Select no effective paper detector at print stop
Enable/disable panel switch
Print and paper feed “n” lines
Print and reverse direction feed “n” lines
Single sheet paper hold time setting
Designate pulse generation
Release
Select character code table
Transmission of peripheral equipment status
Transmission of paper detection status
Designate/cancel inverted printing
Printer ID transmission
GS a
Enable/disable automatic status transmission
Transmission of status
GS r
Download from Www.Somanuals.com. All Manuals Search And Download.
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.
Difference
SCP700 slip
1/144 inch units
TM-295
1/60 inch units
Difference in the paper feed motor
pitch
Difference in the vertical direction
dot pitch
0.353mm
0.30mm
0.423mm
0.315mm
Difference in the horizontal
direction dot pitch
Difference in the distance from the
top of the paper to the top of the
print head
26.5mm ~ 36.5mm
Variable with mechanical
stopper
26.5mm
(When automatically feeding)
Difference in the distance from the
TOF sensor to the top of the print 26.0mm
head
3.0mm ~ 13.0mm
Variable with mechanical
stopper
Difference in the distance from the
BOF sensor to the bottom of the
print head
38.1mm
27.3mm
<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.
Download from Www.Somanuals.com. All Manuals Search And Download.
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 TM-
295, 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.
Download from Www.Somanuals.com. All Manuals Search And Download.
88
Appendix : Character Code Tables
Star Mode
(Character table: Normal)
Note: The (7F)H code is a space when neither normal nor katakana.
Download from Www.Somanuals.com. All Manuals Search And Download.
89
Star Mode
(Character table: Normal)
Download from Www.Somanuals.com. All Manuals Search And Download.
90
Star Mode
(Character table: katakana)
Note: Other characters are the same as those for Character table: Normal.
Download from Www.Somanuals.com. All Manuals Search And Download.
91
Star Mode
(Character table: IBM (Code page 437))
Note: Other characters are the same as those for Character table: Normal.
Download from Www.Somanuals.com. All Manuals Search And Download.
92
Star Mode
Code Page #850
Multi-lingual
Code Page #852
Latin-2
Code Page #860
Portuguese
Code Page #861
Icelandic
Note: Other characters are the same as those for Character table: Normal
Download from Www.Somanuals.com. All Manuals Search And Download.
93
Code Page #863
Canadian French
Code Page #865
Nordic
Code Page #866
Russian
Note: Other characters are the same as those for Character table: Normal
Download from Www.Somanuals.com. All Manuals Search And Download.
94
Star Mode
International Character Set
Download from Www.Somanuals.com. All Manuals Search And Download.
95
ESC/POS Mode
Page 0 (PC437)
Download from Www.Somanuals.com. All Manuals Search And Download.
96
ESC/POS Mode
Page 0 (PC437)
Download from Www.Somanuals.com. All Manuals Search And Download.
97
ESC/POS Mode
Page 1 (Katakana)
Note: Other characters are the same as those for Page 0.
Download from Www.Somanuals.com. All Manuals Search And Download.
98
ESC/POS Mode
Page 2 (PC850: Multilingual)
Note: Other characters are the same as those for Page 0.
Download from Www.Somanuals.com. All Manuals Search And Download.
99
ESC/POS Mode (Receipt printer only)
Page 3 (PC860: Portuguese)
Note: Other characters are the same as those for Page 0.
Download from Www.Somanuals.com. All Manuals Search And Download.
100
ESC/POS Mode (Receipt printer only)
Page 4 (PC863: Canadian-French)
Note: Other characters are the same as those for Page 0.
Download from Www.Somanuals.com. All Manuals Search And Download.
101
ESC/POS Mode (Receipt printer only)
Page 5 (PC865: Nordic)
Note: Other characters are the same as those for Page 0.
Download from Www.Somanuals.com. All Manuals Search And Download.
102
ESC/POS Mode (Receipt printer only)
Page 255 (Space Page)
Note: Other characters are the same as those for Page 0.
Download from Www.Somanuals.com. All Manuals Search And Download.
103
ESC/POS Mode
International Character Set
Download from Www.Somanuals.com. All Manuals Search And Download.
HEAD OFFICE
OVERSEAS SUBSIDIARY COMPANIES
STAR MICRONICS AMERICA, INC.
70-D Ethel Road West, Piscataway, NJ 08854 U.S.A
Tel: 732-572-9512, Fax: 732-572-5095
STAR MICRONICS CO., LTD.
536 Nanatsushinnya, Shimizu, Shizuoka
424-0066 Japan
Tel: 0543-47-0112, Fax: 0543-48-5271
STAR MICRONICS U.K. LTD.
Please access the following URL
Star House, Peregrine Business Park, Gomm Road,
High Wycombe, Bucks, HP 13 7DL, U.K.
Tel: 01494-471111, Fax: 01494-473333
http://www.star-micronics.co.jp/service/sp_sup_e.htm
for the lastest revision of the manual.
1998. 05. 16
Printed in Japan, 80872036
Download from Www.Somanuals.com. All Manuals Search And Download.
|
Sharp Projector XG C430X User Manual
Snapper Lawn Aerator 4577 User Manual
Snapper Security Camera EMRP216518B User Manual
Sony Flat Panel Television SDM X95KB User Manual
Sony MP3 Player WM FS595 User Manual
SPX Cooling Technologies Refrigerator MarleyAV Series User Manual
Star Micronics Printer ND 10 15 User Manual
Supersonic TV Video Accessories SC 55 SVID User Manual
Sylvania CRT Television SRT199V User Manual
Tanita Scale BC 41 User Manual