Dot Matrix Printer
SP300 Series
Programmer’s Manual
Download from Www.Somanuals.com. All Manuals Search And Download.
Download from Www.Somanuals.com. All Manuals Search And Download.
7. CONTROL CODES ............................................................................ 29
7-1. Control Codes Used for Character Setting ................................. 32
7-2. Control Codes Used for Line Spacing ....................................... 36
7-3. Control Codes Used for Page Layout......................................... 37
7-4. Control Codes Used for Graphics Printing ................................41
7-5. Control Codes Used for Download Characters ..........................46
7-6. Control Codes Used for Peripheral Units................................... 49
7-7. Other Control Codes .................................................................. 50
8. CHARACTOR CODE TABLES ......................................................55
8.1 U.S.A. & Europe (DIP SW2-1: ON, SW2-2: ON)..................... 55
8.2 IBM Character Set #1 (DIP SW2-1: OFF, SW2-2: ON) ..........57
8.3 IBM Character Set #2 (DIP SW2-1: ON, SW2-2: OFF) ........... 59
8.4 JAPAN (DIP SW2-1:, OFF, SW2-2: OFF) ................................61
8.5 International Character Sets ....................................................... 63
• For DIP switch settings, refer to Installation Manual.
• Models with validation function: SP312F, SP317F
Download from Www.Somanuals.com. All Manuals Search And Download.
1. CONTROL PANEL
1-1. Basic Operation
1 “ON LINE” switch
Switches the printer between “ON
LINE” and “OFF LINE”. When-
ever the printer switches between
“ON LINE” and “OFF LINE”, the
buzzer gives one short beep (“ON
LINE” and “OFF LINE”, switching
is possible only when the paper is
loaded in the printer.)
POWER
ALARM
3
4
5
ON LINE
FEED
1
2
2 “FEED” switch
• When this switch is pressed and
then released within 0.5 sec.,the
paper feeds one line.
• When this switch is depressed for
more than 0.5 sec.,the paper feeds
continuously.
Fig. 1-1 Control panel
(The above paper feed operation
is possible for both “ON LINE”
and “OFF LINE” modes.)
3 “POWER” lamp (green LED)
• Lights when the power for the printer is on.
4 “ALARM” lamp (red LED)
• Lights when the paper is out.
If the paper is out, load a new roll then press the “ON LINE” switch.
• Flashes when the front cover is open or a mechanical error (motor lock etc.)
occurs. The buzzer will give one short beep followed by a long beep.
Mount the front cover properly and press the “ON LINE” switch. If the
buzzer still sounds and the “ALARM” lamp flashes, this signifies that a
mechanical error has occurred. Locate the cause of the error and turn the
power for the printer off and back on again to reset the printer.
(In case of a mechanical error, the data will not be cleared even if the power
is turned off.)
5 “ON LINE” lamp (green LED)
LED lit: Printer is ON LINE
LED off: Printer is OFF LINE
LED flashes: Validation printing mode is set.
When all lamps 3 to 5 light simultaneously and the buzzer sounds continu-
ously,aCPUerrorhasoccurred.IncaseofaCPUerror,turnoffthepowerthen
turn it on again. When turning off the power, the data will be cleared.
– 1 –
Download from Www.Somanuals.com. All Manuals Search And Download.
1-2. Switch Operation (Combined Switch Operation)
1 <SELF PRINT TEST>
FEED + POWER ON (Turn the power on while holding the FEED switch
depressed.)
Self-printing will be performed according to the VER. NO., DIP switch
settings and character order. When the FEED switch is held continuously
during self printing, only the characters will print out repeatedly.
In models with cutter, cutting will be done after self-printing is performed
according to the VER. NO., DIP switch setting and character order. When the
FEED switch is pressed after completed self-printing, character printing and
cutting will be repeatedly performed.
Fig. 1-2 Self printing sample (when using serial interface printer)
– 2 –
Download from Www.Somanuals.com. All Manuals Search And Download.
2 <Hexadecimal dump mode>
ON LINE + POWER ON (Turn the power on while holding the ON LINE
switch depressed.)
Each of the signals sent from the computer to the printer will be printed out
in hexadecimal code.
This function allows you to check if a control code sent to the printer by the
program being used is correct or not. The buzzer will sound once to indicate
the printer is in hexadecimal dump mode.
After the program has been run, the last line buffer should be flushed by
pressing the ON LINE switch. To turn off the mode, it is necessary to turn off
the printer completely.
Fig. 1-3 Hexadecimal printing sample
3 <CLEAR PRINT BUFFER> (Single Head Only)
FEED + ON LINE + POWER ON (Turn the power on while holding both
the FEED and ON LINE switches depressed.)
This operation clears the printer buffer. (The buzzer gives two short beeps.)
WhenDIPswitch1-7ofthisprinterissettoON(whichisthefactorypresetting),
the RAM back-up function operates to maintain the data in the data buffer, even
if the power for the printer is shut off due to power failure, etc.
However, when the printer power is shut off for more than 10 hours, the data
contentwillbecomeunstableanditscontentcoulddegenerateandbecomeun-
usable in the worst instances. For this reason, when the printer power is turned
off for more than 10 hours, perform the above operation to clear the data in the
data buffer.
Note that the data in the buffer can also be cleared by control code <CAN>.
4 <MICRO FEED>
ON LINE + FEED Press the FEED switch while holding the ON LINE
switchdepressedwhentheprinterisOFFLINEandthepaperwillfeedinvery
small increments.
– 3 –
Download from Www.Somanuals.com. All Manuals Search And Download.
5 <PAGE TOP> (Sprocket-type Only)
ON LINE + FEED (Press the FEED button while holding the ON LINE
button depressed when the printer is ON LINE) The buzzer gives three short
beeps and the printer sets the page top.
6 <Dot alignment adjust mode> (Twin Head Only)
FEED + ON LINE + POWER ON
This mode enables adjustment of the forward and backward printed line align-
ment by 1/2-dot increments. The adjustment procedure is explained on the
following pages.
– 4 –
Download from Www.Somanuals.com. All Manuals Search And Download.
1. Enter the Dot Alignment Adjust Mode by turning on the power while
pressing the ONLINE and FEED switches.
2. When Dot Alignment Adjust Mode starts, the buzzer will sound twice and
“Dot Alignment Adjust Mode” is printed.
3. Seven dot alignment patterns are printed as shown below. The patterns are
arranged with the backward printed lines more toward the left as the patterns
are printed down the page; the fourth pattern is the standard. The asterisk (*)
indicates the pattern printed with the current setting.
– 5 –
Download from Www.Somanuals.com. All Manuals Search And Download.
4. To choose a pattern with a closer alignment of the forward and backward
printed lines, count from the top down to the desired pattern and press the
FEED switch the counted number of times. (The buzzer sounds each time the
FEED switch is pressed, up to a maximum of seven times. However, if the
FEED switch is pressed more than seven times, a warning sounds.)
5. Press the ONLINE switch after the setting is made. (If the power is turned off
before the ONLINE switch is pressed, the new setting becomes invalid.)
When the setting is entered, the buzzer sounds once and the chosen starting
position of the backward printed line is stored in the memory.
This setting does not change if the machine’s power is turned off.
A pattern using the selected setting and followed by “Adjust Completed!” is
printed.
If the ONLINE switch is pressed to end step 5 without changing the setting,
“Adjust Completed!” is printed and the mode is exited.
* To set the starting position of the backward printed line to 0, simultaneously
press the ONLINE and FEED switches in step 4. The mode automatically
continues on to step 5, then a pattern using the selected setting and followed
by “Adjust Completed!” is printed.
– 6 –
Download from Www.Somanuals.com. All Manuals Search And Download.
2. SERIAL INTERFACE
2-1. Interface Specifications
1 Data transmission method:
2 Baud rate:
Asynchronous serial interface
Selectable from 150, 300, 600, 1200,
2400, 4800, 9600, 19200 (Twin Head
only) bps (Refer to Installation
Manual.)
3 Word length
Start bit: 1 bit
Data bit: 7 or 8 bits (selectable. Refer
to Installation Manual.)
Parity bit: Odd, even or none
(selectable. Refer to Installation
Manual.)
Stop bit: 1 or 2 bit length
RS-232C (Standard feature)
MARK : Logic “1”(–3V to –25V)
SPACE : Logic “0” (+3V to +25V)
Current loop (optional)
4 Signal polarity
MARK : Logic “1”(current ON)
SPACE : Logic “0” (current OFF)
RS-422A (Optional)
MARK : Logic “1”
A is –0.2V or less than B
SPACE : Logic “0”
A is 0.2V or more than B
Mark [1]
b0
b1
b2
b3
b4
b5
b6
(b7)
Space [0]
A
B
C
D
A: Start bit
B: Data bits
C: Vertical parity bit
D: Stop bit
– 7 –
Download from Www.Somanuals.com. All Manuals Search And Download.
2-2. Interface Circuit
2-2-1.RS-232C Serial Interface
Input (RXD, CTS)
Printer
Host computer
75189 or equivalent
Output (DTR, FAULT, TXD, RCH, RTS)
Printer
Host computer
75188 or equivalent
Fig . 2-1 RS-232C interface circuit
2-2-2.Current Loop (option)
Input (TTY-RXD, TTY-RXDR)
Host computer
+V
R
Printer
Output (TTY-TXD, TTY-TXDR)
Host computer
+V
R
Printer
Note: Adjust “R” so that the loop current is set within 10 to 20 mA.
Fig. 2-2 Current loop interface circuit
– 8 –
Download from Www.Somanuals.com. All Manuals Search And Download.
2-2-3. RS-422A Serial Interface (option)
Input (RD, RS)
Printer
Host computer
A
B
Output (SD, CS)
Printer
Host computer
A
B
Fig. 2-3 RS-422A interface circuit
– 9 –
Download from Www.Somanuals.com. All Manuals Search And Download.
2-3. Connectors and Signals
RS-232C
I/O
direction
Pin no.
Signal name
Function
1
2
3
4
F-GND
TXD
RXD
RTS
—
OUT
IN
Frame ground
Transmitted data
Received data
Data transmission request signal. This is al-
ways“SPACE”whentheprinteristurnedon.
This signal changes to “SPACE” when
host computer is ready to transmit data. (In
thisinstance, theprinterdoesnotcheckthis
signal.)
OUT
5
CTS
IN
6
7
8
N/C
S-GND
N/C
Not connected
Signal ground
Not connected
—
9-10
N/C
This pin is used when using the optional
interface board.
11
RCH
OUT
This signal changes to “SPACE” when the
printer is ready to receive data. (The signal
line is same as pin 20.)
12
13
14
N/C
S-GND
FAULT
Not connected.
Signal ground
When printer error occurs (such as paper
out, mechanical error, etc.), this signal is
set to “MARK”.
—
OUT
15
16
17 to 19
Multi-printer TXD
Multi-printer DTR
N/C
OUT
OUT
Diode coupled TXD
Diode coupled DTR
This pin is used when using the optional
interface board.
20
DTR
OUT
Dataterminalreadysignal.Whentheprinter
is ready to receive data, this signal changes
to “SPACE”.
21-22
23 to 25
N/C
N/C
Not connected
This pin is used when using the optional
interface board.
14
1
25
13
Fig. 2-4 Serial interface connector
– 10 –
Download from Www.Somanuals.com. All Manuals Search And Download.
20 mA current loop (option)
I/O
direction
—
Pin no.
9
Signal name
TTY TXDR
Function
Indicates the ground side of the data signal
of 20 mA loop current.
10
17
TTY TXD
TTY TXDR
OUT
—
Transmitted data of 20 mA current loop.
Indicates the ground side of the data signal
of 20 mA loop current.
18
TTY RXDR
—
Indicates the ground side of the data signal
of 20 mA loop current.
19
23
TTY RXD
TTY RXDR
IN
—
Received data of 20 mA current loop.
Indicates the ground side of the data signal
at 20 mA loop current.
24
25
TTY TXD
TTY RXD
OUT
IN
Transmission data of 20 mA current loop.
Reception data of 20 mA current loop.
RS-422A (option)
I/O
direction
OUT
OUT
IN
Pin no.
Signal name
Function
9
SD (+)
SD (–)
RD (+)
RD (–)
CS (+)
Transmitted data
Transmitted data
10
17
18
19
Received data
Received data
IN
IN
When the host computer is set to standby
fordatatransmission,thissignalchangesto
“SPACE”.
(In this instance, the printer does not check
the signal.)
23
CS (–)
IN
When the host computer is set to standby
fordatatransmission,thissignalchangesto
“SPACE”.
(In this instance, the printer does not check
the signal.)
24
25
RS (+)
RS (–)
OUT
OUT
Datatransmissionrequestsignal.Whenthe
printer is ready to receive data, this signal
changes to “SPACE”.
Datatransmissionrequestsignal.Whenthe
printer is ready to receive data, this signal
changes to “SPACE”.
– 11 –
Download from Www.Somanuals.com. All Manuals Search And Download.
2-4. Interface Connections
The following is a basic example of interface connections. (For interface
connections, refer to the specifications for the respective interface.) IBM PC type
serial port is shown as example.
IBM PC side
25Pin
Board side
Shield
F-GND
TXD
1
2
3
4
5
1
2
3
4
5
F-GND
TXD
RXD
RTS
RXD
RTS
CTS
CTS
DSR
S-GND
DCD
DTR
6
7
S-GND
FAULT
DTR
7
14
20
8
20
IBM PC side
9 Pin
Board side
F-GND
TXD
1
2
3
4
5
1
2
3
4
5
DCD
RXD
TXD
DTR
S-GND
DSR
RTS
CTS
RI
RXD
RTS
CTS
6
7
8
9
S-GND
FAULT
DTR
7
14
20
Fig. 2-5 Example of interface connections for IBM PC
– 12 –
Download from Www.Somanuals.com. All Manuals Search And Download.
2-5. Installing the Optional Interface Board
When using the optional 20 mA current loop interface or the RS-422A interface,
the optional interface board must be mounted to the printer’s main logic board.
The following is the method of mounting the interface board to the printer’s main
logic board.
1 Remove the 6 screws on the bottom cover of the printer, then remove the
bottom cover.
2 Connect the optional interface board connector to connector CN9 on the
printer’s main logic board.
3 At the same time, insert the plastic board support of the main logic board into
the hole on the interface board.
4 Switch SW5 and SW6 on the main logic board from A-C to B-C.
5 Mount the bottom cover to the printer and fasten the 6 screws to fix it in place
on the printer.
Bottom cover
Screw
Optional interface board
Main logic board
SW5
SW6
Board support
CN9
Fig. 2-6 Installing the optional interface board
A C B
SW5
SW6
A C B
Fig. 2-7 Switch SW5 and SW6
– 13 –
Download from Www.Somanuals.com. All Manuals Search And Download.
2-6. Data Structure
2-6-1.DTR mode
This mode is accessed when the DIP switch 3-5 is ON.
Signals are controlled using the DTR line as BUSY flag.
Data
Buffer full
Data
Data
RXD
Buffer empty
DTR
Printing
Power ON
When paper is out
RXD
OFF LINE
ON LINE
DTR
Printing
Press the ON LINE switch after
loading paper.
Paper out
PAPER OUT signal
Power ON
If a printer errors do not occur after the power is turned on, the DTR signal line
changes to “SPACE”.
When the host computer confirms that the DTR signal line is set to “SPACE”, the
host computer sends the data text via the RXD signal line to the printer. Also, the
printer will set the DTR signal line to “MARK” when the empty space in the data
bufferisbelow256bytes.AfterthehostcomputerdetectsthattheDTRsignalline
is at “MARK”, transmission of the data text is sopped. In this instance, data can
still be received up until the data buffer becomes completely full.
Whentheemptyspaceinthedatabufferisincreasedfollowingprinting(whenthe
data in the data buffer is reduced to 256 bytes or less), the printer sets the DTR
signal line to “SPACE”.
– 14 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Data buffer
Full
Near Full
Near Empty
256 bytes
Empty
Remainder
256 bytes
DTR “MARK”
DTR “SPACE”
[Paper out]
When the “paper out’ detector senses the end of the paper, the printer stops
printing after printing a maximum of two more lines or on feeding the paper.
Immediately after a “paper out” condition is detected, the printer sets to OFF
LINEandtheDTRchangesto“MARK”.(Toresetprinteraftera“paperout’,load
paper into the printer and press the ON LINE switch to set the printer to ON
LINE.)
[Mechanical error]
Mechanical errors are detected when the front cover is opened during printing, or
when the motor locks and the unit will not print. Immediately after a mechanical
erroroccurs, theprintersetstheDTRto“MARK”andthensetstheprintertoOFF
LINE. To cancel a mechanical error, close the front cover properly and press the
ON LINE switch. If the buzzer sounds and the ALARM lamp flashes at this time,
then locate the cause of the error and turn the power for the printer off and back
on again to reset the printer.
[Status]
b7
b6
b5
b4
b3
b2
b1
b0
Constantly
set at “0”
Vertical parity error
1: error
Framing error
1: error
Mechanical error
1: error
Paper empty
1: empty
Buffer empty
1: empty
Buffer overflow
1: overflow
Compulsion switch
High level
(Switch is set to ON)
– 15 –
Download from Www.Somanuals.com. All Manuals Search And Download.
[Framing error]
A framing error occurs when SPACE is detected at the stop bit. When a framing
error or a vertical parity error occurs for the data which is received, the printer
prints out a “?” mark to indicate that the error occurred.
[Compulsion switch]
When pin 6 of the peripheral unit drive circuit connector is set “HIGH”, status bit
7 becomes “1”.
2-6-2.X-ON/X-OFF mode
This mode accessed when the DIP switch 3-5 is OFF.
X–OFF
X–OFF X–OFF X–ON
X–OFF
X–OFF X–OFF
X–ON
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 printer errors do not occur after the power is turned on, the printer outputs an
X-ON(DC1bycontrolcode;11Hbyhexadecimaldata)signalontheTXDsignal
line which sends it to the host computer. When the host computer receives the X-
ON signal, the host computer transmits the data to the RXD signal line for the
printer. If data text is not sent from the host computer (even after transmitting the
X-ONsignaltothehostcomputer),theprinteroutputsanX-ONsignalat3second
intervals until the printer receives data.
The printer starts outputting an X-OFF (DC3, 13H) signal when the empty space
in the buffer reduces below 256 bytes. When the host computer receives the X-
OFF signal, it halts output of data. (however, the printer can continue receiving
data until the buffer becomes completely full.)
Output of the X-ON signal is resumed when the data in the buffer is printed out
and drops to below 256 bytes.
– 16 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Data buffer
Full
Near Full
Near Empty
256 bytes
Empty
Remainder
256 bytes
X-OFF
X-ON
[Paper out]
When the “paper out” detector senses the end of the paper, the printer stops
printing after printing a maximum of two more lines or on feeding the paper. The
printerwillsettheDTRto“MARK”andsettheprintertoOFFLINEfiveseconds
after a “paper out” condition is detected. To reset the printer after a “paper out”,
load a new roll of paper into the printer and press the OFF LINE switch to set the
printer ON LINE.
[Mechanical error]
Mechanical errors occur when the front cover is opened during printing and
printing stops or when the motor locks and printing stops. After the error occurs,
the printer outputs an X-OFF signal and stops printing. The printer sets the DTR
signal to “MARK” and sets to OFF LINE five seconds after a mechanical error
occurs. To reset the printer after a mechanical error occurs, close the front cover
properlyandpresstheONLINEswitch.IfabuzzersoundsandtheALARMlamp
flashes at this point, locate the cause of the error and turn the power off and then
back on to reset the printer.
– 17 –
Download from Www.Somanuals.com. All Manuals Search And Download.
[Status]
b7
b6
b5
b4
b3
b2
b1
b0
0
Constantly
set at “0”
Vertical parity error
1: error
Framing error
1: error
Mechanical error
1: error
Paper empty
1: empty
Buffer empty
1: empty
Buffer overflow
1: overflow
Compulsion switch
High level
(Switch is set to ON)
[Framing error]
A framing error occurs when SPACE is detected at the stop bit. When a framing
error or a vertical parity error occurs for the data which is received, the printer
prints out a “?” mark to indicate that the error occurred.
[Compulsion switch]
When pin 6 of the peripheral unit drive circuit connector is set at “HIGH”, status
bit 7 becomes “1”.
– 18 –
Download from Www.Somanuals.com. All Manuals Search And Download.
2-6-3. STX-ETX mode
This mode is accessed from whichever DTR mode or X-ON/X-OFF mode.
To set this mode, the data buffer must be empty.
ThehostcomputersendsanENQcodetotheprinterandacknowledgestheprinter
status.Then,thehostcomputerchecksiftheprinterbufferisempty.Afterthehost
computer detects that the buffer is empty, a STX code and data are transmitted.
After 1 block of data is transmitted, the host computer sends an ENQ code to the
printer and then receives the printer status and check byte (horizontal parity for
the printer.)
At this points, the host computer performs a status and horizontal parity check.
When the host computer determines that there was no error, it transmits an ETX
code which serves as text end code. After the printer receives the ETX code, data
in the data buffer is printed out. If an error occurs, a CAN code is transmitted by
the host computer. (In this instance, the data which was previously sent to the
buffer is cleared, thus, the host computer must retransmit the same data to the
printer.)
A flowchart of this operation is illustrated on the following page.
[Status]
b7
b6
b5
b4
b3
b2
b1
b0
0
Constantly
set at “0”
Vertical parity error
1: error
Framing error
1: error
Mechanical error
1: error
Paper empty
1: empty
Buffer empty
1: empty
Buffer overflow
1: overflow
Compulsion switch
High level
(Switch is set to ON)
[Framing error]
A framing error occurs when SPACE is detected at the stop bit. When a framing
error or a vertical parity error occurs for the data which is received, the printer
prints out a “?” mark to indicate that the error occurred.
– 19 –
Download from Www.Somanuals.com. All Manuals Search And Download.
[Compulsion switch]
When pin 6 of the peripheral unit drive circuit connector is set at “HIGH”, status
bit 7 becomes “1”.
– 20 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Starts the
STX-ETX mode.
Sends an <ENQ>
Receives status signal.
Receives a check byte.
Sends <ENQ>
Receives status byte.
NO
Is the data buffer
empty?
YES
Is the status an
error?
YES
NO
Horizontal
Sends <STX>
parity check
NO
NO
Check byte =
test byte?
Is an odd parity
check?
YES
YES
(FF) H is set for the text
byte.
Sends <ETX>
(Printing)
The test byte is set at (0)H.
Sends <CAN>
Acquires the exclusive OR of the content
of the text byte and the data to sent, then
it is used as the content of the test byte.
Ends the
STX-ETX mode.
Transmits the data to
the printer.
NO
Is there a data block in
the STX-ETX mode?
NO
Is this the last data in
a block?
YES
YES
RET
Check byte:
Horizotal parity of the printer.
Test byte:
Horrizontal parity of the host
computer.
STX-ETX mode flow diagram for host computer
– 21 –
Download from Www.Somanuals.com. All Manuals Search And Download.
3. PARALLEL INTERFACE
3-1. Interface Specifications
This printer has a parallel interface to communicate with the computer. The
operating specifications of the parallel interface are as follows.
(1) Data transfer rate
(2) Synchronization
(3) Handshaking
(4) Logic level
: 1000 to 6000 characters per second
: Via externally supplied STROBE pulses
: ACK and BUSY signals
: Compatible with TTL level
3-2. Interface Timing
A C K
About 9ms
Data
STROBE
T
T
T
BUSY
T:more than 0.5 microsec.
Fig. 3-1 Interface timing diagram
– 22 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Signal Name
Circuit Example
4.7KW
74 HC Compatible
DATA 1 – DATA 8
(To Printer)
4.7KW
4.7KW
74 HC Compatible
STROBE
(To Printer)
100W
470pF
4.7KW
74 HC Compatible
BUSY, ACK
(From Printer)
Fig. 3-2 Typical interface circuit
– 23 –
Download from Www.Somanuals.com. All Manuals Search And Download.
3-3. Connectors and Signals
Pin no
Signal name
Direction
Function
1
STROBE
IN
Signals when data is ready to be read. Signal
goes from HIGH to LOW (for at least 0.5
microsec.) when data is available.
These signals provide the information of the
firsttoeighthbitsofparalleldata.Eachsignal
is at HIGH level for a logical 1 and at a LOW
level for a logical 0.
2-9
DATA 1-8
IN
10
11
ACK
OUT
OUT
A 9 microsecond LOW pulse acknowledges
receipt of data.
When this signal goes LOW, the printer is
ready to accept data. When the printer is in
one of the conditions below. “HIGH” is set.
1. Data being entered.
BUSY
2. Off line.
3. Error condition.
12
PAPER OUT OUT
This signal is normally LOW. It will go
HIGH if the printer runs out of paper.
ThissignalisHIGHwhentheprinterisonline.
Unused
Signal ground.
Chassis ground, isolated from logic ground.
+5VDC (Max 50mA)
13
14-15
16
17
18
SELECTED
N/C
OUT
SIGNAL GND
CHASSIS GND
+5VDC
19-30
31
GND
RESET
Twisted pair return signal ground level.
When this signal goes LOW, the printer is
reset to its power-on condition.
This signal is normally HIGH. This signal
goes LOW to signal that the printer cannot
print due to an error condition.
Refer to Item 8-4 Emergency Suspension.
External ground.
IN
32
ERROR
OUT
33
EXT GND
34
COMPULSION OUT
Compulsion signal
35-36
N/C
Unused.
(19)
(36)
This connector mates with an
Amphenol 57-30360 connector
(1)
(18)
Fig. 3-3 Parallel interface connector (printer side)
– 24 –
Download from Www.Somanuals.com. All Manuals Search And Download.
4. EMERGENCY SUSPENSION
If any of the following errors is detected while the printer is operating, the printer
halts and ERROR signal turns to “LOW” level.
1 Mechanical errors
• Motor lock
• Defective of timing detector (signal not issued)
• Abnormal home position check.
• Defective cutter movement (paper jam, etc.)
• Timing error of Reset sig of the auto cutter during the auto cutter operation
(Auto-cutting models only)
• Abnormality of thermistor
To reset the emergency suspension, rectify the cause of trouble & adopt one of
the following 2 methods.
• Turn the printer power off and on again.
• Push ON LINE switch.
Even while in the status of no backed up RAM with DIP SW1-7, the RAM is
not cleared when power is turned OFF. Printing resumes from the line being
printed when the mechanism stopped. (Single Head Only)
2 If the front cover is opened while printing
If the front cover is opened while printing, the same operation as given in
above item “1 Mechanical errors” takes place. To restart printing, close the
front cover and push ON LINE switch.
3 CPU error
If CPU goes erratic due to external noise, etc., the printer halts, treating it as
CPUerror. NormaloperationcanberesumedbyturningONthepowersupply
again, but the data contained in RAM gets cleared.
4 RAM Check Function
Beforeself-printingandwhenclearingthebuffer, aRAMcheckisperformed.
5 Procedures at Time of Power Interruption (Single Head Only)
When using the backed up RAM function in valid status, the data in the buffer
will be preserved even when there is a power interruption. When the power is
turned ON again, the power interruption message “
” will be printed,
and printing will be resumed from the line where it was stopped.
– 25 –
Download from Www.Somanuals.com. All Manuals Search And Download.
5. VALIDATION PRINTING (Models with validation function only)
This printer can print one line of validation printing.
5-1. Operating Method
1 Open the front cover, pull the adjust
lever one notch from standard posi-
tion A toward the operation panel
side position B.
B
A
When you cannot find standard po-
sition A, push the lever as far as
possible toward the rear cover, and
pullit2notchesafterhavingpressed
itdown.Theleverisnowinstandard
position A.
2 Mount the front cover.
3 Set the printer for the validation
print mode. In this instance, the
buzzer gives tow short beeps.
Adjust lever
A: Standard position (one sheet)
B: Validation printing or copying
Fig. 5-1 Position of the adjust lever
4 Make sure that the ON LINE lamp
is flashing.
Rear cover
5 Align the right edge of paper with
the right end of the tear bar then
insert the paper from the top.
Front cover
6 The printer starts printing approx. 1
POWER
ALARM
second after the paper is loaded.
ON LINE
FEED
7 When printing is completed, pull
the paper upward and remove it
from the printer.
Right end
of the tear bar
Note: When printing a roll paper, also
settheadjustleveratpositionB.
Fig. 5-2 Loading the paper
– 26 –
Download from Www.Somanuals.com. All Manuals Search And Download.
5-2. Printing Format
Prints one line in 7 × 9 font normal printing.
32 columns (from the 5th to 36th columns)
Even if the setting for the paper width is changed by the DIP switch, the 32-
column format will not change.
5-3. Data format
<GS> <data> <LF>
5-4. Other
• TheFEEDandONLINEswitcheswillnotoperatenormallyduringvalidation
printing.
• When the printer receives an immediate execution command for peripheral
units during validation printing, it executes the command when the validation
print mode is canceled.
• Modes in effect before the validation printing (such as emphasized printing,
inverted printing, expanded printing, and underlining) are invalid during
validation printing. But these become valid again after validation printing.
• Data received before a <GS> code is printed out when the printer receives the
<GS> code.
Print area
Paper sensor
position
Approx.
17
52.8
100
Min. 120
: m m
Fig. 5-3 Print area
– 27 –
Download from Www.Somanuals.com. All Manuals Search And Download.
6. AUTO CUTTER (Auto-cutting models only)
6-1. Cutting Method
Cuts recording paper into continuous forms connected at only one point remain-
ing uncut between adjacent forms.
Only one sheet of paper can be cut each time.
6-2. Cutting position
The paper is cut approximately 21.7 mm above the printing head.
Center of printer
Cutting position
Partial cutting
Approx. 21.7mm
with one uncut
point left
Printing head
position
Fig. 6-1 Cutting method
Fig. 6-2 Cutting position
6-3. Auto cutting control codes
<ESC> “d” “0” or <ESC> “d” <0>
<ESC> “d” “1” or <ESC> “d” <1>
Refer to the control codes of chapter 10.
6-4. Other position to be observed
1 When continuously cutting for more than 12 minutes, make a maximum of 10
cuttings per minute.
2 When using for a long time, paper dust will gather around the cutter.
Therefore, make sure to clean periodically. If paper dust is not removed,
normal paper feeding may become impossible.
– 28 –
Download from Www.Somanuals.com. All Manuals Search And Download.
7. CONTROL CODES
Control Codes Used for Character Setting
Hexadecimal
codes
Control codes
Function
Page
<ESC> “R” n
<ESC> “6”
1B 52 n
1B 36
Select international character set
Select IBM character set #2
32
32
32
33
33
33
33
34
<ESC> “7”
1B 37
Select IBM character set #1
<ESC> “M”
<ESC> “P”
1B 4D
1B 50
Select 7 × 9 (half dot) font
Select 5 × 9 (2 pulses + 1 dot) font
Select 5 × 9 (3 pulses + 1 dot) font
Select expanded character mode
Cancel expanded character mode
<ESC> “:”
1B 3A
0E
<SO>
<DC4>
14
<ESC> “W” “1”
<ESC> “W” <1>
<ESC> “W” “0”
<ESC> “W” <0>
<ESC> “E”
1B 57 31
1B 57 31
1B 57 30
1B 57 30
1B 45
Select expanded character mode
Cancel expanded character mode
34
34
Select emphasized print mode
Cancel emphasized print mode
34
34
<ESC> “F”
1B 46
<ESC> “-” “1”
<ESC> “-” <1>
<ESC> “-” “0”
<ESC> “-” <0>
<ESC> “_” “1”
<ESC> “_” <1>
<ESC> “_” “0”
<ESC> “_” <0>
<ESC> “4”
1B 2D 31
1B 2D 01
1B 2D 30
1B 2D 00
1B 5F 31
1B 5F 01
1B 5F 30
1B 5F 00
1B 34
Select underline mode
Cancel underline mode
Select upperline mode
Cancel upperline mode
35
35
35
35
Select highlighted print mode
Cancel highlighted print mode
Select inverted print mode
Cancel inverted print mode
35
36
36
36
<ESC> “5”
1B 35
<SI>
0F
<DC2>
12
Control Codes Used for Line Spacing
Hexadecimal
codes
Control codes
Function
Page
<LF>
0A
Line feed
36
36
<CR>
0D
Line feed (same as LF)
<ESC> “z” “1”
<ESC> “z” <1>
<ESC> “0”
<ESC> “a” n
1B 7A 31
1B 7A 01
1B 30
1B 61 n
Set 1/6-inch line feed
36
Set 1/8-inch line feed
37
37
Feed paper n lines
– 29 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Control Codes Used for Page Layout
Hexadecimal
codes
Control codes
Function
Page
<FF>
0C
Page feed (form feed)
Set page length at n lines
Set page length at n inches
Set vertical tab positions
Execute vertical tab
37
37
37
38
38
38
39
39
39
40
40
<ESC> “C” n
<ESC> “C” <0> n
<ESC> “B” n1 n2
<VT>
1B 43 n
1B 43 00 n
1B 42 n1 n2
0B
<ESC> “N” n
<ESC> “O”
<ESC> “1” n
<ESC> “Q” n
<ESC> “D” n1 n2
<HT>
1B 4E n
1B 4F
Set bottom margin
Cancel bottom margin
Set left margin
1B 6C n
1B 51 n
1B 44 n1 n2
09
Set right margin
Set horizontal tab position
Execute the horizontal tab
Control Code Used for Graphics Printing
Hexadecimal
codes
Control codes
Function
Page
<ESC> “1”
1B 31
Set 7/72-inch line feed
41
41
41
41
<ESC> “A” n
<ESC> “2”
1B 41 n
1B 32
Define n/72-inch line feed
Set n/72-inch line feed
<ESC> “J” n
<ESC> “z” “0”
<ESC> “z” <0>
<ESC> “3” n
<ESC> “y” n
1B 4A n
1B 7A 30
1B 7A 00
1B 33 n
1B 79 n
One time line feed of n/72-inch
Set 1/12-inch line feed
41
42
Set n/216-inch line feed simulation
Set n/144-inch line feed (Models with 1/44”
-pitch paper feed mechanism only)
8 dot single density bit image
42
<ESC> “K” n1 <0>
<ESC> “L” n1 n2
<ESC> “h” “1”
<ESC> “h” <1>
<ESC> “h” “0”
<ESC> “h” <0>
1B 4B n1 00
1B 4C n1 n2
1B 68 31
42
44
8 dot double density bit image
Select vertical expanded character mode
Cancel vertical expanded character mode
45
45
1B 68 01
1B 68 30
1B 68 00
Control Codes Used for Download Characters
Hexadecimal
codes
Control codes
Function
Page
46
<ESC> “&” <0> n1 n2 1B 26 00 n1 n2
Definition of down load characters
<ESC> “%” “1”
<ESC> “%” <1>
<ESC> “%” “0”
<ESC> “%” <0>
1B 25 31
1B 25 01
1B 25 30
1B 25 00
Enable download character set
Disable download character set
47
47
– 30 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Control Codes Used for Peripheral Units
Hexadecimal
codes
Control codes
Function
Page
<ESC> <BEL> n1 n2
<BEL>
1B 07 n1 n2
Adjust drive pulse width for peripheral unit 1 49
Deferred drive command for peripheral unit 1 49
Immediate drive command for peripheral unit 1 49
Immediate drive command for peripheral unit 2 50
Immediate drive command for peripheral unit 1 50
07
<FS>
1C
1A
19
<SUB>
<EM>
Other Control Codes
Hexadecimal
codes
Control codes
Function
Page
50
<RS>
1E
Sound buzzer
<CAN>
18
Cancel print data in buffer & Initialize printer 50
<DC3>
13
Set deselect mode
Set select mode
51
51
<DC1>
11
<ESC> “U” “1”
<ESC> “U” <1>
<ESC> “U” “0”
<ESC> “U” <0>
<ESC> “@”
<ENQ>
1B 55 31
1B 55 01
1B 55 30
1B 55 00
1B 40
05
Select uni-directional print mode
Select bi-directional print mode
52
52
Initialize printer
52
53
53
53
Enquiry
<STX>
02
Enter STX-ETX mode
Terminate STX-ETX mode
<ETX>
03
<ESC> “d” “0”
<ESC> “d” <0>
<ESC> “d” “1”
<ESC> “d” <1>
<GS>...<LF>
1B 64 30
1B 64 00
1B 64 31
1B 64 01
1D...0A
Trigger auto-cutter drive
54
54
(Auto-cutting models only)
Selection of validation characters
(Models with validation function only)
– 31 –
Download from Www.Somanuals.com. All Manuals Search And Download.
7-1. Control Codes Used for Character Setting
Select international character set
<ESC> “R” n
FUNCTION
CODE
(1B)H (52)H n
DEFINITION RANGE
OUTLINE
(00)H
n
(08)H
Select the international character set corresponding to the
value set for n.
n =(00)H: U.S.A.
(01)H: France
(02)H: Germany
(03)H: England
(04)H: Denmark
(05)H: Sweden
(06)H: Italy
(07)H: Spain
(08)H: Japan
The default international characters can also be set with DIP
switches,however,settingbycontrolcodetakespriorityover
setting by DIP switches.
Refer to chapter 11-5 “Code Table”
Select IBM character set #2
FUNCTION
CODE
<ESC> “6”
(1B)H (36)H
Selects IBM character set #2.
OUTLINE
NOTE
This code is only valid when the character code table set by
DIP switches 2-1 and 2-2 is IBM character set #1 or #2.
Select IBM character set #1
FUNCTION
CODE
<ESC> “7”
(1B)H (37)H
Selects IBM character set #1.
OUTLINE
NOTE
This code is only valid when the character code table set by
DIP switches 2-1 and 2-2 is IBM character set #1 or #2.
– 32 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Select 7 × 9 (half dot) font
<ESC> “M”
(1B)H (4D)H
FUNCTION
CODE
Selects 7 × 9 (half dot) font.
OUTLINE
Refer to User’s manual for the maximum number of print
columns.
When the power of the printer is turned on, 7 × 9 (half dot)
printing is automatically selected.
This code valid only when received at the beginning of a line.
Select 5 × 9 (2 pulses = 1 dot) font
<ESC> “P”
(1B)H (50)H
FUNCTION
CODE
Selects 5 × 9 (2 pulses = 1 dot) font.
OUTLINE
This code is valid only when received at the beginning of a
line.
Select 5 × 9 (3 pulses = 1 dot) font
<ESC> “:”
FUNCTION
CODE
(1B)H (3A)H
Selects 5 × 9 (3 pulses = 1 dot) font.
This code is invalid when using SP311F SP341F SP321S.
This code is valid only when received at the beginning of a
line.
OUTLINE
Select expanded character mode
FUNCTION
CODE
<SO>
(0E)H
Data following this code is printed in double-width charac-
ters.
OUTLINE
Same as <ESC> “W” “1” or <ESC> “W” <1>.
– 33 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Cancel expanded character mode
FUNCTION
CODE
<DC4>
(14)H
Cancels expanded character mode set by <SO> or <ESC>
“W” “1” or <ESC> “W” <1> code. Data following this code
is printed out in normal size characters.
OUTLINE
Same as <ESC> “W” “0” or <ESC> “W” <0>.
Select expanded character mode
FUNCTION
CODE
<ESC> “W” “1” or <ESC> “W” <1>
(1B)H (57)H (31)H or (1B)H (57)H (01)H
Data following this code is printed in double-width charac-
OUTLINE
ters.
Same as <SO>.
Cancel expanded character mode
FUNCTION
CODE
<ESC> “W” “0” or <ESC> “W” <0>
(1B)H (57)H (30)H or (1B)H (57)H (00)H
Cancels expanded character mode set by <ESC> “W” “1” or
<ESC> “W” <1> or <SO> code. Data following this code is
printed out in normal size characters.
OUTLINE
Same as <DC4>.
Select emphasized print mode
<ESC> “E”
FUNCTION
CODE
(1B)H (45)H
Data following this code is printed in the emphasized print
mode. In this mode, only uni-directional printing is per-
formed.
OUTLINE
Cancel emphasized print mode
FUNCTION
CODE
<ESC> “F”
(1B)H (46)H
Cancels emphasized print mode.
OUTLINE
– 34 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Select underline mode
FUNCTION
CODE
<ESC> “-” “1” or <ESC> “-” <1>
(1B)H (2D)H (31)H or (1B)H (2D)H (01)H
Datafollowingthiscodeisprintedoutunderlined.(However,
the spaces generated by horizontal tab are not underlined.)
OUTLINE
Cancel underline mode
FUNCTION
CODE
<ESC> “-” “0” or <ESC> “-” <0>
(1B)H (2D)H (30)H or (1B)H (2D)H (00)H
Cancels underlined mode.
OUTLINE
Select upperline mode
FUNCTION
CODE
<ESC> “_” “1” or <ESC> “_” <1>
(1B)H (5F)H (31)H or (1B)H (5F)H (01)H
Data following this code is printed out with an upperline.
(However the spaces generated by horizontal tab are not
upperlined.)
OUTLINE
Cancel upperline mode
FUNCTION
CODE
<ESC> “_” “0” or <ESC> “_” <0>
(1B)H (5F)H (30)H or (1B)H (5F)H (00)H
Cancels upperline mode.
OUTLINE
Select highlighted print mode
FUNCTION
CODE
<ESC> “4”
(1B)H (34)H
Prints with highlighted characters.
OUTLINE
If an underline, upperline or inverted print command is input
while the highlighted print mode is in effect, the highlighted
mode will be canceled and the newly input command will be
executed. If a highlighted print command is received while
theunderline,upperlineorinvertedprintmodeisineffect,the
previously set mode is canceled and the highlighted print
mode will be set.
– 35 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Cancel highlighted print mode
FUNCTION
CODE
<ESC> “5”
(1B)H (35)H
Cancels highlighted print mode.
OUTLINE
Select inverted print mode
FUNCTION
CODE
<SI>
(0F)H
Data following this code is printed out in inverted characters.
This code is valid only when input at the beginning of a line,
thus, normal and inverted characters cannot be mixed in on
the same line.
OUTLINE
Cancel inverted print mode
FUNCTION
CODE
<DC2>
(12)H
Cancels the inverted character mode. This code is valid only
when input at the beginning of a line.
OUTLINE
7-2. Control Codes Used for Line Spacing
Line feed
FUNCTION
CODE
<LF>
(0A)H
Data in the line buffer is printed out and one line is fed. If data
does not exist before this code is received, the printer only
feeds one line.
OUTLINE
Line feed (Same as LF)
FUNCTION
CODE
<CR>
(0D)H
Functions the same as an LF code.
OUTLINE
When DIP SW 1-3 is set to ON, this code becomes invalid.
Set 1/6-inch line feed
FUNCTION
CODE
<ESC> “z” “1” or <ESC> “z” <1>
(1B)H (7A)H (31)H or (1B)H (7A)H (01)H
Line feed is set at 1/6-inch after this code is received.
OUTLINE
– 36 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Set 1/8-inch line feed
FUNCTION
CODE
<ESC> “0”
(1B)H (30)H
Line feed is set at 1/8-inch after this code is received.
OUTLINE
Feed paper n lines
FUNCTION
CODE
<ESC> “a” n
(1B)H (52)H n
1
n
127
DEFINITION RANGE
OUTLINE
After data in the line buffer is printed out, feeds the paper
n lines.
7-3. Control Codes Used for Page Layout
Page feed (form feed)
FUNCTION
CODE
<FF>
(0C)H
After data in the line buffer is printed out, feeds the paper to
the top of the next page.
OUTLINE
Set page length at n lines
FUNCTION
CODE
<ESC> “C” n
(1B)H (43)H n
1
n
255 (default value friction: n =33
DEFINITION RANGE
OUTLINE
Sprocket: n =42)
Sets page length at n lines.
Set page length at n inches
FUNCTION
CODE
<ESC> “C” <0> n
(1B)H (43)H (00)H n
1
n
127
DEFINITION RANGE
OUTLINE
Sets page length at n inches.
– 37 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Set vertical tab positions
FUNCTION
CODE
<ESC> “B” n1 n2...nk <0>
(1B)H (42)H n1 n2...nk (00)H
1
n1 < n2 < n3 <....< nk
255, 1
k
16
DEFINITION RANGE
OUTLINE
Cancelsallcurrentverticaltabpositionsandsetsnewvertical
tab positions at lines n1, n2, etc., where n1, n2, etc. are
numbers between 1 and 255. A maximum of 16 vertical tab
positions can be set. Tab positions must be specified in
ascending order; any violation of ascending order terminates
the tab position list. Standard termination is by the <0>
control code. Vertical tab positions are set in terms of the
current line spacing and do not move if the line spacing is
changed later.
If a tab set position <nk> is equivalent or smaller than
<nk–1> just preceding the tab set position, setting of vertical
tab is assumed as complete.
NOTE
Execute vertical tab
FUNCTION
CODE
<VT>
(0B)H
Feeds the paper to the next vertical tab set position.
Whenaverticaltabisnotset, linefeedisnotperformed. Ifthe
current line is at or below the last vertical tab set position, the
paper feeds to the top of the next page.
OUTLINE
Set bottom margin
FUNCTION
CODE
<ESC> “N” n
(1B)H (4E)H n
0
n
255 (Default n = 0)
DEFINITION RANGE
OUTLINE
Sets bottom margin to n lines.
Feeds the paper
automatically.
Page length
Bottom margin of n lines.
– 38 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Cancel bottom margin
FUNCTION
CODE
<ESC> “O”
(1B)H (4F)H
Cancels bottom margin.
OUTLINE
Set left margin
FUNCTION
CODE
<ESC> “1” n
(1B)H (6C)H n
0
n
(right margin –2)
DEFINITION RANGE
OUTLINE
Sets the left margin at column n in the current character pitch.
The left margin does not move if the character pitch is
changed later. The left margin must be at least two columns
to the left of the right margin and within the limits above.
Set right margin
FUNCTION
CODE
<ESC> “Q” n
(1B)H (51)H n
2
n
(maximum no. of print columns)
DEFINITION RANGE
OUTLINE
Sets the right margin at column n in the current character
pitch. Column n becomes the last character position the line.
The right margin does not move if the character pitch is
changed later. The right margin must be within the limits
above.
Left end
Printing area
Left margin n
Right margin n columns
– 39 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Set horizontal tab position
FUNCTION
CODE
<ESC> “D” n1 n2...nk <0>
(1B)H (44)H n1 n2...nk (00)H
1
1
n1 < n2 < n3...< nk (Maximum print columns –1),
16
DEFINITION RANGE
OUTLINE
k
Cancels all current horizontal tab positions and sets new tab
positionsatcolumnsn1, n2,etc.inthecurrentcharacterpitch,
where n1, n2, etc. are numbers between 1 and (Maximum
print columns–1). The maximum number of horizontal tab
positions allowed is 16. The tab positions must be specified
in ascending order; any violation of ascending order termi-
nates the tab position list. Standard termination is by the <0>
control code. To clear all tab positions, specify <ESC> “D”
<0>.
When the horizontal tab set position <nk> is equivalent or
smaller than <nk-1> which is the column just preceding the set
tab position, horizontal tab setting is assumed as complete.
NOTE
Execute horizontal tab
FUNCTION
CODE
<HT>
(09)H
The print position skips to the next horizontal tab position in
line. If the current position is after the final horizontal tab
positionthatcanbeexecuted, thiscodeisignored. (Underlin-
ing and overlining do not take place in the spaces between
characters set with the horizontal tab function.)
OUTLINE
– 40 –
Download from Www.Somanuals.com. All Manuals Search And Download.
7-4. Control Codes Used for Graphics Printing
Set 7/72-inch line feed
FUNCTION
CODE
<ESC> “1”
(1B)H (31)H
Line feed is set at 7/72-inch after this code is received.
OUTLINE
Define n/72-inch line feed
FUNCTION
CODE
<ESC> “A” n
(1B)H (41)H n
0
n
85 (Default n = 12)
DEFINITION RANGE
OUTLINE
Line feed is defined at n/72-inch after this code is received.
Thiscodesetsthefeedatn/72-inchwiththe<ESC>“2”code.
Set n/72-inch line feed
FUNCTION
CODE
<ESC> “2”
(1B)H (32)H
This code sets the line feed at a defined value with the <ESC>
“A” previously described.
OUTLINE
One time line feed of n/72-inch
FUNCTION
CODE
<ESC> “J” n
(1B)H (4A)H n
1
n
255
DEFINITION RANGE
OUTLINE
This code activates the n/72-inch paper feed once.
Set 1/12-inch line feed
FUNCTION
CODE
<ESC> “z” “0” or <ESC> “z” <0>
(1B)H (7A)H (30)H or (1B)H (7A)H (00)H
Line feed is set at 1/12-inch after this code is received.
OUTLINE
– 41 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Set n/216-inch line feed simulation
EXAMPLE
CODE
<ESC> “3” n
(1B)H (33)H n
1
n
255
DEFINITION RANGE
OUTLINE
Line feed is set at n/216-inch after this code is received.
According to the minimum paper feed pitch of the connected
mechanism, the amount of line feed is set as follows:
For 1/72”-pitch mechanisms: INT {(n/3)}/72-inch.
For 1/144”-pitch mechanisms: INT {(2n/3)+0.5}/144-inch.
Set n/144-inch line feed
FUNCTION
CODE
<ESC> “y” n
(1B)H (79)H n
1
n
255
DEFINITION RANGE
OUTLINE
Line feed is set at n/144-inch after this code is received.
* 1/72-inch type mechanism only
8 dot single density bit image
FUNCTION
CODE
<ESC> “K” n1 <0> m1 m2 ...
(1B)H (4B)H n1 (00)H m1 m2 ...
1
n1 200
DEFINITION RANGE
OUTLINE
Excutes 8 dot bit image print determined by “n1”. The total
number of bit image data bytes in one line is equal to n1.
The printer ignores any data bytes over the specified amount
allowed in one line. When the bit image print is finished the
printer automatically returns to the character mode.
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)
– 42 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Actually, let us consider printing as a means of bit image. We
will create the design below using bit image.
EXAMPLE
m1 m2 m3 m4 m5 m6 m7 m8 m9 m10 m11 m12 m13 m14 m15 m16 m17 m18 m19 m20 m21 m22 m23 m24 m25 m26 m27 m28 m29 m30
D8
D7
D6
D5
D4
D3
D2
D1
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-
decimal
Hexa-
decimal
Data Binary
Data Binary
Data Binary
m1 00000001 01 m11 00111110 3E m21 00111110 3E
m2 00011110 1E m12 00000010 02 m22 00101110 2E
m3 00111110 3E m13 00000010 02 m23 00101110 2E
m4 01011111 5F m14 00111110 3E m24 00111110 3E
m5 00011111 1F m15 00111110 3E m25 00101111 2F
m6 01011110 5E m16 00101111 2F m26 00101111 2F
m7 00011110 1E m17 00101111 2F m27 00111110 3E
m8 00111111 3F m18 00111110 3E m28 00111110 3E
m9 00101111 2F m19 00101110 2E m29 00000010 02
m10 00111110 3E m20 00101110 2E m30 00000010 02
Printing Samples
– 43 –
Download from Www.Somanuals.com. All Manuals Search And Download.
8 dot double density bit image
FUNCTION
CODE
<ESC> “L” n1 n2 m1 m2...
(1B)H (4C)H n1 n2 m1 m2...
1
n1 + 256 × n2
400
DEFINITION RANGE
OUTLINE
Executes double density bit image printing (half-dot print-
ing) determined by “n1” and “n2”. The total number of bit
image data bytes in one line is equal to n1 + n2 × 256. Refer
to<ESC>Kastotherelationbetweenthedotpositionandthe
bit number. The printer ignores any data bytes over the
specified amount allowed in one line.
The printer does not print adjacent dots. When the bit image
printing is finished, the printer automatically returns to the
character mode.
For double density bit image printing, dots cannot be printed
overlapping each other in the horizontal direction.
The following is an example of this.
NOTE
Printing Possible
m2 m4 m6 m8 m10
Printing not Possible
m2 m4 m6 m8 m10
m1 m3 m5 m7 m9 m11
m1 m3 m5 m7 m9 m11
Over lapping
horizontally
D
D
D
D
D
D
D
D
8
D
D
D
D
D
D
D
D
8
7
6
5
4
3
2
1
7
6
5
4
3
2
1
Over lapping
horizontally
When printing one graphic image of a minimum of two lines
with <ESC> K or <ESC>L, feed the paper a minimum of one
line before printing so that the line spacing becomes identical
between the lines.
– 44 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Select vertical expaned character mode
FUNCTION
CODE
<ESC> “h” “1” or <ESC> “h” <1>
(1B)H (68)H (31)H or (1B)H (68)H (01)H
Prints characters two times the normal vertical size after the
code is received.
OUTLINE
However, the bit image mode <ESC> “K” and <ESC> “L”
are excluded.
(1) When combined with the <SO> code, this code enables
printing of the characters in two times the normal vertical
and horizontal size.
NOTE
(2) This code is not combined with the inverted print mode
<SI> code.
(3) For the 6 × 12 dots IBM block graphic (the characters
codetable(B0)H-(DF)H and(F4)H-(F5)H ofIBMcharac-
ter set #1 and #2) of the font construction, vertical
enlargement is not available.
(4) The relationship of the vertically enlarged character and
the normal character is matched at the lower level.
(5) Feed the paper a minimum of one line before printing
with this code.
Cancel vertical expanded character mode
FUNCTION
CODE
<ESC> “h” “0” or <ESC> “h” <0>
(1B)H (68)H (30)H or (1B)H (68)H (00)H
Cancels vertical expanded character mode
OUTLINE
– 45 –
Download from Www.Somanuals.com. All Manuals Search And Download.
7-5. Control Codes Used for Download Characters
Definition of download characters
FUNCTION
CODE
When the 7 × 9 (half dot) font is set (default setting):
<ESC> “&” <0> n1 n2 [m0 m1 m2 m3 m4 m5 m6 m7]
n2 – n1 + 1
(1B)H (26)H (00)H n1 n2 [m0 m1 m2 m3 m4 m5 m6 m7]
n2 – n1 + 1
When the 5 × 9 font is set:
<ESC> “&” <0> n1 n2 [m0 m1 m2 m3 m4 m5] n2 – n1 + 1
(1B)H (26)H (00)H n1 n2 [m0 m1 m2 m3 m4 m5] n2 – n1 + 1
(21)H
n1
n2
(7F)H, m0 = (00)H or m0 = (80)H
DEFINITION RANGE
OUTLINE
Defines download characters
Up to 10 download characters can be defined and the defined
character patterns can be stored in the printer’s RAM.
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
When m0=(00)H
MSB
When m0=(80)H
MSB
LSB
LSB
D8 D7 D6 D5 D4 D3 D2 D1
D8 D7 D6 D5 D4 D3 D2 D1
Pin No.
Pin No.
(Not Used)
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
(Not Used)
When the 7 × 9 (half dot) font is set (the default setting),
printing of adjacent horizontal dots is not allowed.
NOTE
Printing possible
m2 m4 m6
Printing not possible
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
– 46 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Enable download character set
FUNCTION
CODE
<ESC> “%” “1” or <ESC> “%” <1>
(1B)H (25)H (31)H or (1B)H (25)H (01)H
Enables the download character set
OUTLINE
Download characters defined by the ESC & 0 code cannot be
printed until enabled by this command.
Disable download character set
FUNCTION
CODE
<ESC> “%” “0” or <ESC> “%” <0>
(1B)H (25)H (30)H or (1B)H (25)H (00)H
Disables the selected download character set and selects the
built-in character set. When the power of the printer is
initially turned on, the built-in character set is selected.
To print a download character when the 7 × 9 (half dot) font
character size is set.
OUTLINE
EXAMPLE
(1) Design the download character to be used at code posi-
tions (21)H, (22)H, and (23)H.
m2 m4 m6
m2 m4 m6
m2 m4 m6
m1 m3 m5 m7
m1 m3 m5 m7
m1 m3 m5 m7
D8
D7
D6
D5
D4
D3
D2
D1
D8
D7
D6
D5
D4
D3
D2
D1
D8
D7
D6
D5
D4
D3
D2
D1
Char. Code=(21)H
Char. Code=(22)H
Char. Code=(23)H
(2) Define the download characters.
When character codes where the download character is
written are specified as (21)H, (22)H, (23)H, n1 = (21)H, n2
=(23)H are obtained.
If the relationship between the character pattern data and
printing head is specified to “not use pin 9”, m0 = (80)H is
obtained. When data m1 to m7 are converted into hexadeci-
mal data, they are indicated as follows.
– 47 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Hexa-
decimal
Hexa-
decimal
Hexa-
decimal
Data Binary
Data Binary
Data Binary
m1 10100000 A0
m2 00000000 00
m3 10100000 A0
m4 00011111 1F
m5 10100000 A0
m6 00000000 00
m7 10100000 A0
m1 10011000 98
m2 01100100 64
m3 10000010 82
m4 00000001 01
m5 10000010 82
m6 01100100 64
m7 10011000 98
m1 00111000 3C
m2 01000010 42
m3 10100101 A5
m4 00000000 00
m5 10100101 A5
m6 01000010 42
m7 00111000 3C
Example of transmitting data
(1) Definition of down- (1B)H (26)H (00)H (21)H (23)H (80)H
load characters
(A0)H (00)H (A0)H (1F)H (A0)H (00)H
(A0)H (80)H (98)H (64)H (82)H (01)H
(82)H (64)H (98)H (80)H (3C)H (42)H
(A5)H (00)H (A5)H (42)H (3C)H
(2) Selecting the down- (1B)H (25)H (31)H
load character set
(3) Character codes
(21)H (22)H (23)H (0A)H
(4) Cancelingthedown- (1B)H (25)H (30)H
load character set
(5) Character codes
(21)H (22)H (23)H (0A)H
Printing Samples
– 48 –
Download from Www.Somanuals.com. All Manuals Search And Download.
7-6. Control Codes Used for Peripheral Units
Adjust drive pulse width for peripheral unit 1
FUNCTION
CODE
<ESC> <BEL> n1 n2
(1B)H (07)H n1 n2
1
n1 127, 1 n2 127 (default setting n1 = n2 = 20)
DEFINITION RANGE
OUTLINE
Adjusts drive pulse width for peripheral devices requiring
other than standard 200 ms pulse time and delay time
Energizing time = 10 × n1 (ms)
Delay time = 10 × n2 (ms)
Executed by <BEL>, <FS> codes.
ON
OFF
10 × n1 (ms)
10 × n2 (ms)
Printing and paper feed
are prohibited.
Adjustment is not necessary for standard cash drawers in the
U.S.A. market.
NOTE
Deferred drive command for peripheral unit 1
FUNCTION
CODE
<BEL>
(07)H
Executes drive pulse for peripheral unit 1 (deferred).
OUTLINE
Immediate drive command for peripheral unit 1
FUNCTION
CODE
<FS>
(1C)H
Executes drive pulse for peripheral unit 1 (immediate).
This code differs from the <BEL> code as follows:
When the printer receives an <FS> code, the command is
executed immediately. The <BEL> code is stored in the data
buffer in the same manner as other codes, and executed in the
order in which they are received.
OUTLINE
– 49 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Immediate drive command for peripheral unit 2
FUNCTION
CODE
<SUB>
(1A)H
Drives peripheral unit 2. Pulse width is fixed at 200ms with
a fixed delay time of 200 ms.
OUTLINE
When the printer receives a <SUB> code, the command is
executed immediately. Same as <EM>
Peripheral units 1 and 2 cannot be driven simultaneously.
NOTE
Immediate drive command for peripheral unit 2
FUNCTION
CODE
<EM>
(19)H
Dives peripheral unit 2. Pulse width is fixed at 200 ms with
a fixed delay time of 200 ms.
OUTLINE
When the printer receives a <EM> code, the command is
executed immediately. Same as <SUB>.
Peripheral units 1 and 2 cannot be driven simultaneously.
NOTE
7-7. Other Control Codes
Sound buzzer
FUNCTION
CODE
<RS>
(1E)H
A short alarm is generated by the printer.
OUTLINE
Cancel print data in buffer & Initialize printer
FUNCTION
CODE
<CAN>
(18)H
Clears the data buffer and line buffer and initializes (<ESC>
“@”) all commands already set. However, the following
parameters are not initialized: external device drive pulse
widthsetting,operationswitchvalid/invalidselection,online
switch valid/invalid selection.
OUTLINE
For a serial interface printer, the select/deselect state for
addressable mode and DC1/DC3 mode is not affected.
In STX-ETX mode, this CAN code clears the data between
STX and ETX and the line buffer, but does not initialize the
commands.
– 50 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Set deselect mode
FUNCTION
CODE
<DC3>
(13)H
(1) When using serial interface printer:
OUTLINE
This function differs depending on the setting of DIP
switch 4.
a) When the DC1, DC3 invalid mode is set (DIP switches
4-1 to 4-4 are all set to ON), the printer ignores this code.
b) In the DC1, DC3 valid mode (with DIP switches 4-1
to 4-4 set to OFF), data following this code is ignored
when the printer receives a <DC3> code.
The deselect mode is canceled by <DC1> code.
c) If the printer receives a <DC3> code during an
addressable mode (with DIP switches 4-1 to 4-4 set to
settings other than a) and b) above,), the data follow-
ing this code is ignored.
Deselect mode can be canceled by a <DC1> n code.
NotethataddressablemodeisvalidonlywhentheRS-
422A interface option is installed.
(2) When using parallel interface printer;
Data following this code is ignored when the printer
receives a <DC3> code.
The deselect mode is canceled by <DC1> code.
Set select mode
FUNCTION
CODE
When using serial interface printer;
<DC1> or <DC1>n
(11)H or (11)H n
When using parallel interface printer
<DC1>
(11)H
(1) When using serial interface printer;
OUTLINE
This function differs depending on the setting of DIP
switch 4.
a) When the DC1, DC3 invalid mode is set (DIP switches
4-1 to 4-4 are all set to ON), the printer ignores this code.
b) In the DC1, DC3 valid mode (with DIP switches 4-1
to 4-4 set to OFF), when the printer receives a <DC1>
code, the deselect mode is canceled and data follow-
ing this code is input to the buffer.
– 51 –
Download from Www.Somanuals.com. All Manuals Search And Download.
c) If the printer receives a <DC1> n code (n is the DIP
switch controlled address) during the addressable
mode (with DIP switches 4-1 to 4-4 set other than
settingsa)andb)above,),thedeselectmodeiscanceled
and data following this code is input to the buffer.
Note that addressable mode is valid only when op-
tional RS-422A interface is installed.
(2) When using parallel interface printer;
When the printer receives a <DC1> code, the deselect
mode is canceled and data following this code is input to
the buffer.
Select uni-directional print mode
FUNCTION
CODE
<ESC> “U” “1” or <ESC> “U” <1>
(1B)H (55)H (31)H or (1B)H (55)H (01)H
Prints only when the print head moves from left to right.
OUTLINE
Select bi-directional print mode
FUNCTION
CODE
<ESC> “U” “0” or <ESC> “U” <0>
(1B)H (55)H (30)H or (1B)H (55)H (00)H
Returnstothestandardbi-directionalprintmode. (Thismode
is set automatically when the printer power is turned on.)
OUTLINE
Initialize printer
FUNCTION
CODE
<ESC> “@”
(1B)H (40)H
Initializesallthecommandsalreadyset.Howeverthefollow-
ing parameters are not initialized: eternal device drive pulse
widthsetting,operationswitchvalid/invalidselection,online
switch valid/invalid selection. Also, the line and data buffers
are not cleared and the DIP switches are not read in again.
For a serial interface printer, the select/deselect state for
addressable mode and DC1/DC3 mode is not affected.
OUTLINE
– 52 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Enquiry
FUNCTION
CODE
<ENQ>
(05)H
This code is valid when using serial interface printer.
Online in STX-ETX mode: The printer sends the status data
and the check byte to the host computer.
OUTLINE
Online in any other mode: The printer sends only the status
data to the host computer.
Offline in any mode: The printer only sends the status data to
the host computer if there is a mechanical error in the status
bit, or if the paper out or power down bit is set.
When IBM character set #2 is selected by character code,
codes <ENQ> does not exist. (In this instance, select another
code.)
NOTE
U.S.A. & Europe
<ENQ>
IBM #1
<ENQ>
IBM #2
Japan
(05)H
♣
<ENQ>
Enter STX-ETX mode
FUNCTION
CODE
<STX>
(02)H
This code is valid when using serial interface printer.
STX-ETX mode is set.
OUTLINE
Terminate STX-ETX mode
FUNCTION
CODE
<ETX>
(03)H
This code is valid when using serial interface printer.
Terminates the STX-ETX mode and prints out the text data.
OUTLINE
NOTE
When IBM character set #2 is selected by character code,
codes <ETX> does not exist. (In this instance, select another
code).
U.S.A. & Europe
<ETX>
IBM #1
<ETX>
IBM #2
Japan
(03)H
♥
<ETX>
– 53 –
Download from Www.Somanuals.com. All Manuals Search And Download.
Trigger auto-cutter drive (Auto-cutting models only)
FUNCTION
CODE
<ESC> “d” “0” or <ESC> “d” <0>
(1B)H (64)H (30)H or (1B)H (64)H (00)H
<ESC> “d” “1” or <ESC> “d” <1>
(1B)H (64)H (31)H or (1B)H (64)H (01)H
This code causes the printer to trigger auto-cutter.
OUTLINE
Select validation printing (Models with validation function
only)
FUNCTION
<GS> data <LF>
(1D)H data (0A)
CODE
Prints up to 32 columns of the 7 × 9 (half dot) font size
OUTLINE
NOTE
characters on one line.
(1) Character data and immediate execution command
<CAN> <SUB> <LF> are valid for data.
(2) Printing modes (such as emphasized, inverted, expanded
character modes, etc.) which were set before validation
printing are invalid during validation printing. (These
modes become valid again after validation printing is
completed.)
(Refer to “5. VALIDATION PRINTING”)
– 54 –
Download from Www.Somanuals.com. All Manuals Search And Download.
8. CHARACTER CODE TABLES
8.1 U.S.A. & Europe (DIP SW2-1: ON, SW2-2: ON)
– 55 –
Download from Www.Somanuals.com. All Manuals Search And Download.
– 56 –
Download from Www.Somanuals.com. All Manuals Search And Download.
8.2 IBM Character Set #1 (DIP SW2-1: OFF, SW2-2: ON)
– 57 –
Download from Www.Somanuals.com. All Manuals Search And Download.
– 58 –
Download from Www.Somanuals.com. All Manuals Search And Download.
8.3 IBM Character Set #2 (DIP SW2-1: ON, SW2-2: OFF)
– 59 –
Download from Www.Somanuals.com. All Manuals Search And Download.
– 60 –
Download from Www.Somanuals.com. All Manuals Search And Download.
8.4 JAPAN (DIP SW2-1:, OFF, SW2-2: OFF)
– 61 –
Download from Www.Somanuals.com. All Manuals Search And Download.
– 62 –
Download from Www.Somanuals.com. All Manuals Search And Download.
8.5 International Character Sets
– 63 –
Download from Www.Somanuals.com. All Manuals Search And Download.
MEMO
Download from Www.Somanuals.com. All Manuals Search And Download.
Download from Www.Somanuals.com. All Manuals Search And Download.
OVERSEAS SUBSIDIARY COMPANIES
STAR MICRONICS AMERICA, INC.
70-D Ethel Road West, Piscataway, NJ 08854 U.S.A
Tel: (908) 572-9512, Telefax: (908) 572-5095,
Telex: 299766 STAR UR
STAR MICRONICS DEUTSCHLAND GMBH
Westerbachstraße 59, D-60489 Frankfurt/Main 90, Germany
Tel: 0697-89990, Telefax: 0697-81006, Telex: 417 5825 STAR D
HEAD OFFICE
STAR MICRONICS U.K. LTD.
STAR MICRONICS CO., LTD.
20-10 Nakayoshida, Shizuoka, 422 Japan
Tel: (054) 263-1115, Telefax: (054) 263-8714
Star House, Peregrine Business Park, Gomm Road,
High Wycombe, Bucks, HP13 7DL, UK
Tel: 01494-471111, Telefax: 0494-473333
Printed in Japan, 80872005
Download from Www.Somanuals.com. All Manuals Search And Download.
|