Product Specifications for NP-345

No.
Product
Specifications
for
NP-345
Revision 0.90 2002.01.24
Revision 1.00 2002.04.10
Revision 1.10 2002.08.07
Revision 1.20 2002.09.27
1st edition
2nd edition
3rd edition
4th edition
* Specifications stated here are subject to change without notice.
* Trade mark, sales mark, logos are properties of each company.
D-F0332
Record of revision
Rev.
Date
No.
0.90
Jan. 24,
2002
1
1.00
Apr. 10,
2002
Page
2
NP-245
4
5
5
5
11
Aug 7,
2002
3
Approval
25
34∼
1
1
1
2
3
4
5
6
8
10
10
12
14
15
23
27
Delete
Change to page and
line mode
Print area and Modify
blackmark
position
Page mode
Modify
Safety
Delete
regulation and
EMI
EMC
Add
Dip switch
Divide into serial and
USB
Barcode print
Add digit number
Command
Add page mode
Overview
Add option kit and
adaptor kit
PIC
Jan. 24,
2002
Abe
Apr. 10,
2002
Abe
New release
3
1.10
Description
Item
Change
Print mode
Features
8)
Windows 2000
Features
Packing status
Delete schedule for
May
Add notes
Add appended good
(paper) and option
(adaptor kit)
Basic
Add near-end sensor
specifications
Change weight to
1950g
Print area and Add
blackmark
blackmark
position
Divided chart by paper
width
Safety
Add
regulation,
EMC
Dimensional
Change
drawing
Serial interface Deleted transmission
speed 4800 and 9600
Delete 7 bit in data bit
Change parity bit to
none
Serial
Change signal name
connector
ALM signal
Add enclosure open
Error
Add enclosure open
description
Printer driver
Add Windows 2000
Horizontal tab
Delete NP-245
Printer status Delete bit 4 and 5
transmission
Add bit 7
Macro
Add note
definition
Aug 9,
2002
Kobayashi
Aug 7,
2002
Abe
31
32
32
32
33
34
39
40
40
43
44
44
44
45
46
1.20
Sep 27,
2002
4
11
19
41
NV bit image Delete NP-245
registration
Add note
Back feed
Delete note
Soft reset
Print
density
set
Page
mode
select
Page
mode
command table
Delete note
Add note
Add note
Add ESC b, ESC v, GS
d
Change line mode to
page mode
density Add note
Print
setting
Width/height
enlargement
settings
Change
enlargement
width/height
enlargement
width Change note
print
with
Double
enlarge
setting
auto reset
Quadruple
print
setting
with auto reset
NV bit image
registration
Blackmark
position margin
setting
Send
printer
status
Firmware
download
Line
mode
selection
Overseas code
table
Dip
switch
(USB)
Bit
mode
Bit
mode
width
to
Change note
Add
Add
Add
Add note
Change 80h
Change print density
from S-8 to S-1
image Add note
image Add note
Sep 30,
2002
Kobayashi
Sep 27,
2002
Abe
Read carefully Before Using NP-345
Wrong handling of the printer may cause its performance declined and the product damaged.
Please read the notes below before handling.
1. Static discharge prevention must be made for installation and removal of the printer to
protect IC and other electrical parts. Connect it to the earth ground. It is also requested to
remove the static from body of the person before handling, especially, the input terminal.
The main unit should be grounded for the measure against ESD etc.
2. Avoid excessive force to the input terminal for handling.
3. When any type of paper, other than specified in this manual, is used, it may cause
deterioration of the print quality and thermal head life.
【Examples of troubles】
1) Print quality deterioration by using low sensitivity paper.
2) Thermal head wears due to roughness of paper surface.
3) Sticking between heat receipt layer and thermal head, and vibration noise during printing.
4) Print ink disappears on low print durability paper.
5) Electrolytic corrosion on thermal head due to low quality of heat receipt layer.
4. Avoid printing with no paper loaded. It damages platen and thermal head.
5. Do not scrabble thermal head with sharp edge or something hard, or give impact. The heat
element may be damaged.
6. Set the power of printer off before connecting or removing connecters.
7. When printing in high speed under low temperature and high humidity environment, the
paper may be stained by moisture that appears from paper, or the printer may have
condensation. Avoid dew from dropping down to the thermal head that may cause electrolyte
corrosion. Turn the power off until any dew is removed.
8. The printer is not protected from water or dew formed. Do not water the printer or handle it
with a wet hand, which may cause damage to the printer due to short circuit, or heat or fire.
9. The printer is not protected from dust or dirt. If it is used at dusty place, the thermal head
may be damaged or paper feed is not operated properly.
Please take appropriate
countermeasure when printer used at dusty place.
10. When cooling the printer with a fan, please set air flow to avoid the printer’s paper exit from
being inhalation –of- air mouth.
11. Reflection type of infrared ray sensors are used at some locations in the printer. Direct sun
light may cause mal-function of printer. Avoid from such a location for installation.
12. This printer does not support any operations caused by the commands or control commands
not specified in this manual.
13. This printer does not support any operations caused by the commands or control commands
not specified in this manual.
Table of Contents
1. Overview
1.1 Overview
1.2 Features
1.3 Packing status
1
1
2
2. Specifications
2.1 Basic specifications
2.2 Print area and black mark position
2.3 Page mode
2.4 Power supply specifications
2.5 Reliability
2.6 Dimension drawing
3
4
5
5
5
6
3. Interfaces
3.1 Parallel interface (Centronics)
3.2 Serial interface (RS-232C)
3.3 USB interface (V1.1)
3.4 Connector connections
3.5 Connector signals table
7
8
8
9
9
4. Functions
4.1 Function setting
4.2 Errors
4.3 Buffer full print
4.4 Partition drive
11
12
12
13
5. Control commands
5.1 Printer driver
5.2 Line mode command table
5.3 Line mode command details
5.4 Page mode command table
5.5 Page mode command details
14
14
15
34
35
6. Character code table
6.1 Overseas code table
6.2 International character code table
46
47
1. Overview
1.1 Overview
The printer model name is explained as:
N P – 345 (1)
*
*
*
(2)
(3)
(4)
(1) Model
(2) Interface
P: Parallel (if requested)
R: Serial
U: USB
(3) Option Kit
0:Non packaged
1:trayguid 345
(4) Power Supply Set 0: Non packaged
1:PS3-U (USA version)
2:PS3-E (Europe version)
3:PS3-J (Japanese version)
+ Only model name and type of the interface are shown on the name plate.
+ Last 2 digits are not shown without the option kit and power supply.
1.2 Features
NP-345 gaming printer is designed in compact with high reliability, accumulated by the long
experience as a printer assembly manufacturer, of components used for printer mechanism
such as control board and other major items. It is a ticket printer in fast speed print, high print
quality and reliable performance.
1) The mechanical sections such as paper inlet and paper guide in need of special know-how
are designed by the long experience and technology of auto-paper supply function and
auto-sense paper length.
2) Compact, light weighted and can be mounted in various types of system
3) Fast speed print & high print quality
4) Interface selectable among parallel, serial and USB
5) Applicable to the first dimensional barcode for UPC-A, UPC-E, JAN-13, JAN-8, CODE39, ITF,
CODABAR, CODE128
6) Applicable to the second dimensional barcode for QR code
7) Supports variety types of applications
8) Supports Windows 95/98/2000/NT4.0
9) Easy to rewrite firmware with flash memory used and three patterns of NV bit images can be
stored.
10) Supply firmware by e-mail
11) Standard paper tray will hold 250 sheets of tickets and options tray supports 1000 sheets.
(Possible to produce 400 /600 sheet holder.)
1
NOTES
1. More than 152.4mm blank of the top of paper is necessary while printing.
2. The thickness of paper stock is MAX. 30mm (approximately 250 sheets)
3. Attention of mounting
(1) For 4.5mm screw hole: flat lock washers, spring lock washers can be used.
(2) For M4 tap screw hole: The screw within 3.0mm inside can be used.
4.NP-345 has Serial, USB, Parallel interface versions.
1.3 Packing status
The printer is packed as:
Item & Model Name
NP-345-P
Printer
NP-345-R
NP-345-U
Accompanying paper
Item & Model Name
Paper
FAN Fold Paper
Quantity
1
Quantity
10 sheets
Remarks
Centronics, if requested
RS232C
USB
Remarks
65 x 152.4
Optional
Item & Model Name
GS345A-400
Paper guide
GS345A-600
holder
GS345A-1000
PS3-U
Power Supply
PS3-E
PS3-J
Quantity
1
1
2
Remarks
400 sheets, if requested
600 sheets, if requested
1000 sheets
For USA
For Europe
For Japan
2. Specifications
2.1 Basic specifications
No
1
2
Print
Character
Items
1. Print method
2. Total dots/line
3. Dot density
4. Print width
5. Print speed (MAX.)*
Conditions:
6. Print digits
Font A (12 x 24)
Font B (9 x 17)
7. Paper feed pitch
1. Character size
Font A (12 x 24)
Font B ( 9 x 17)
2. Character kinds
ASCII
Block graphics
International
3. Character type
4. Line pitch (Default)
3
Print mode
4
Barcode
NP-345
Thermal line dot
576 dots (max.)
8 dots/mm
72mm (max.)
70mm/sec
ASCII full digits print.
48 digits (max)
64 digits (max)
0.125mm
1.50 x 3.00mm
1.13 x 2.13mm
224
80 x 2
32
Double width
Vertically double
Quadruple
Bold
Double strike
Inverted
90o clockwise rotation
Underline
4.25mm (1/6 inch)
Page mode
Line mode
First dimensional
Second dimensional
UPC-A
UPC-E
JAN-13 (EAN-13)
JAN-8 (EAN-8)
CODE39
ITF
CODABAR
CODE128
QR code
5
Interface
1. Parallel (if requested)
2. Serial
3. USB
Centronics
RS232C
USB V1.1
6
Paper
1. Paper width (W x L)
W 60.0mm
65.0mm
80.0mm
L 101.6mm
127.0mm
152.4mm
Approx. 250 (1000 for option)
TC98KS-T1 t=0.105mm
0.114mm, 4.5mil
2. Maximum sheets
3. Recommended
3
4. paper near-end sensor
7
Receive buffer
8
Operation SW input
9
Weight
Approx. 30 ± 10 sheets
Approx. 10K bytes
ALM LED out
Paper feed SW input
Weight excluding paper
Approx. 1950g
2.2 Print area and black mark position
A
2.2mm
Cut position
Print area start
9.1+-0.5mm
22.0±0.2mm (min)
5.3+-0.2mm(min)
F
E
E
D
.
10.3±0.2mm(min)
148mm
(MAX)
1dot 2dot
B
2.2*mm
Edot
0.125mm
C
D
*This changes depending on papers
Print area end
Cut position
Black mark will be printed on the non-printing (rear) side in black.
Avoid dark (thick ink) printing on the area in the paper feeding direction.
A
B
C
D
E
W=60
60mm
4mm
56mm
0mm
448
Paper Width
W=65
65mm
4mm
61mm
0mm
488
4
W=80
80mm
4mm
72mm
4mm
576
2.3 Page mode
Printing in the page mode starts only when receiving the print command (FF). For the detail
of the commands, please refer to the section 5.5.
2.4 Power supply specifications
1) Voltage: DC24V +/-5%
2) Consumption current
NP-345
Approx. 0.1A
Approx. 1.7A
Approx. 7.8A
Standby
At printing ASCII (About 16% print ratio)
At printing bit image (Max.100%)
Notes:
1. Thermal printer runs a large excessive current for printing. Please use a power supply
with good response for print quality and capable of running high peak current.
2. When the power supply cable is excessively long and its diameter is small, voltage drop
may occur and cause error. For this reason, a short cable with large diameter is
recommended (above AWG#18). If such a cable is not available, connect a cable near
the printer and locate a low ESR electrolyte condenser in 2200 - 6800μbetween the
power supply and ground. The voltage
2.5 Reliability
1) Head life: Average resistance change ratio; less than 15% excluding dust and foreign
objects.
Pulse
: More than 100 million pulses (for recommended paper)
Wear distance: More than 50Km (for recommended paper)
2) Operation environment: Temperature, 0 - 45°C,
* Print guaranteed: 5 - 40°, Should not be condensed
3) Storing environment : Temperature - 20 ~ 60°C
* For a long storage, place paper between head & platen
4) Safety regulation
: CE mark
UL 60950
5) EMC
EMI
: EN55022
VCCI
: Class A
FCC
: Class A
EMS
: EN55024
Note 4: Thermal printer runs high transient current for printing. For this reason, it is
recommended to use such a power supply that has high response performance to
guarantee print quality, in addition, that support high peak current to run.
Note 5: When power supply cable is excessively long and small in diameter, the voltage drops
to cause error by wrong voltage sensing. To avoid this type of error, make sure to use
proper size of cable. The size recommended is less than AWG#18. If such a cable is
not available, connect the cable near the printer and place low ESR condenser
between 2200micro~6800 micro, capable of 35V voltage loading.
5
2.6
Dimensional drawing of NP-345
PARALLEL
USB
31.75
88.9
4-M4タップ
4-φ4.5
281
114.3
200.03
(93.8)
48.4
51.4
(187)
引出し量
用紙排出口
5 20.25
67.5
113
87
NOTE:
1. Note when mounting the printer
a) 4.5 diameter hole: Available to use machine screw, flat clip plate, spring clip plate
b) M4 tap hole: screw inner length less than 3.0 mm
6
3. Interfaces
3.1 Parallel interface (Centronics)
(if requested)
1) Data input method: 8 bit parallel method (Data0 ~ data7)
2) Control signal: /ACK, BUSY, -STB, -ERROR, PE, SLCT, /INIT
3) Input signal to printer
Data 0 ~ data 7: 8 bit parallel signal (positive theory: PT)
/STB: Signal to read 8 bit data (negative theory: NT)
/INIT: Signal to reset whole printer (NT)
4) Printer output signal
/ACK: Last output pulse signal of busy signal at 8 bit data request signal (NT)
BUSY: Signal to indicate printer busy status and it inputs new data at “LOW” (PT)
/ERROR: Signal to become “LOW” at printer’s alarm status. All control circuit stops (NT)
PE: Output signal at no paper status (PT)
SLCT: Signal to indicate on-line status (PT)
5) Input/output signal conditions
Abbr.
Input LOW level voltage
Input HIGH level voltage
Output LOW level voltage
Output HIGH level voltage
Min.
0
0.7Vcc
0.7Vcc
V IL
V IH
V OL
V OH
Typ.
-
6) Input/output circuit
3.3K
VCC
100
STROB
IN PUT
470p
74LV14
3.3K
VCC
74LV574
3.3k
PD0~PD7
IN PUT
510
INIT IN
1SS319
47
74LV14
ACK, P E, SLCT, ERROR
OUT PUT
47
74LV32
IN PUT
BUSY
OUT PUT
7
Max.
0.18Vcc
Vcc
0.7
-
Unit
V
V
V
V
7) Timing chart
POWER
T2 T3
DATA
STB
BUSY
T1
T4
T5
T6
ACK
T1=3500msec(MAX) T2,T3=500nsec(MIN)
T4=500nsec(MAX) T5,T6=4microsec(TYP)
8) Reception control
Data from host can be receivable at BUSY signal LOW. Not available at HIGH.
3.2 Serial interface(RS232C)
1) Synchronization
: Not synchronized
2) Transfer speed
: 19200, 38400bps (user optional)
3) 1 word consists of :
Start bit
: 1 bit fixed
Data bit
: 8 bits (user optional)
Parity bit
: no parity (user optional)
Stop bit
: More than 1 bit
4) Signal
RS-232C
Mark
: Theory “1” (-3V~-12V)
Space : Theory “0” (+3V~+12V)
5) Reception data (RD signal)
Mark
:1
Space : 0
6) Reception control (DTR signal)
RS-232C
Mark
: Data transmission not available
Space : Data transmission available
7) Transmission data (TD signal)
<<DC1>> [11] h code, XON: Data transmission available
<<DC3>> [13] h code, XOFF: Data transmission not available
3.3 USB interface
1) Version: USB1.1
2) Port: Up stream port (B-jack)
3) Power supply: Self-power
8
3.4 Connector connections
1) J1: Connected to power supply connector
2) CN2: Connected to printer mechanism (head)
3) CN3: Connected to printer mechanism (motor)
4) CN4: Connected to printer mechanism (sensor)
5) CN5: Connected to data signal input connector
6) CN6: No connection
7) CN7: Connected to near end sensor
8) CN8: Connected to operation panel (not visible)
9) CN9: Connected to paper output sensor and drawer sensor
3.5 Connector signal table
1) Power input connector
Printer side: TCS7960-532010 (Hoshiden)
Power side: TCP8927-53-1100, TCP8927-63-1110, TCP8935-53-1100 equivalent
Pin No. Signal name Input/output
Function
1
VH
Input
Power DC+24
1
3
2
GND
Power GND
3
N.C.
2
Shell
FG
FG
* Thermal printer runs high transient current for printing. For this reason, it is recommended to
use such a power supply that has high response performance to guarantee print quality, in
addition, that support high peak current to run.
* When power supply cable is excessively long and small in diameter, the voltage drops to
cause error by wrong voltage sensing. To avoid this type of error, make sure to use proper size
of cable. The size recommended is less than AWG#18. If such a cable is not available, connect
the cable near the printer and place low ESR condenser between 2200~6800micro.
2) Data signal input connector (parallel if requested)
Printer side connector: 57-40360 (DDK) equivalent
Host side connector: 57-40360-20N (DDK) equivalent
Pin No.
Signal
Input/output
Function
Remarks
1
/STB
Input
Parallel read signal
2
PDO
Input
Parallel print data 0
3
PD1
Input
Parallel print data 1
4
PD2
Input
Parallel print data 2
5
PD3
Input
Parallel print data 3
6
PD4
Input
Parallel print data 4
7
PD5
Input
Parallel print data 5
8
PD6
Input
Parallel print data 6
9
PD7
Input
Parallel print data 7
10
/ACK
Output
Data treat end signal
11
BUSY
Output
Data receive no permit signal
12
PE
Output
No paper signal
13
SLECT
Output
Connection select signal
14
AUX1 IN
No connection
For extension
19
GND
Ground for signals
31
/INIT
Input
Initialize signal input
32
/ERROR
Output
Control stop signal
36
AUX2 IN
No connection
For extension
15-18
20-30
33-35
N.C
-
9
3) Data signal input connector (Serial)
Printer side connector: JEC-25P (JST) equivalent
Host side connector: JEC-25S (JST) equivalent
Pin No.
Signal
Input/output
Function
1
GND
Ground for signals
2
TXD
Output
Serial transmit data
3
RXD
Input
Serial receive data
4
RTS
Output
Transmit demand signal
5
CTS
Input
Transmit permit signal
6
DSR
Input
Data transmit demand signal
7
GND
Ground for signals
20
DTR
Output
Data transmit permit signal
8-19
N.C
21-25
4) Data signal input connector (USB)
Printer side connector: B-jack
Host side connector: B-plug
Pin No.
Signal
Input/output
Function
1
VBUS
Input
Power-line
2
D-
In & output
Data-line
3
D+
In & output
Data-line
4
GND
-
Power-line
Remarks
Connects to #20
Connects to #4
Remarks
Non-twisted
power cable
Twisted pair
signal cable
Twisted pair
signal cable
Non-twisted
power cable
Shell
SHIELD
* Use shield wire for USB cable.
z ALM signal (for operation panel) informs us of the printer status as stated below.
Pattern of display
Printer status
Recovering
Normal status
1
Print (reception) is possible
0
Out of paper
Paper replacement
1
Head
up
status
Head
down
0
0.2secc
1
F/W write mode
Set power on again
0
0.2sec
2.2sec
Head temp. high (over 80°C) Recovers w/head temp 60°C
1
Head connection
Connect properly
0
2.2sec
1
Enclosure open
Close (Return the printer
0
slide)
10
4. Functions
4.1 Function setting
DIP SW for Serial
Function
S-1
Baud rate
S-2
Character setting
S-3
Emulation select
S-4
Japanese character code
S-5
Fixed partition select
S-6
Flash ROM rewrite
S-7
Near end
S-8
Print density
S-9
Serial control (DTR)
S-10
* No parity check (fixed)
* Data bit: 8 bits (fixed)
On
38400
Non-Japan
Windows
Shift JIS
2 partitions
Rewrite
Enable
High
XON/XOFF
Off
19200
Japan
ESC/POS
JIS
1 partition
No
Disable
Standard
DTR/DSR
Factory setting
Off
Off
Off
Off
Off
Off
On
Off
Off
Off
On
Off
Non-Japan
Windows
Shift JIS
2 partitions
Rewrite
Enable
High
Japan
ESC/POS
JIS
1 partition
No
Disable
Standard
Factory setting
Off
Off
Off
Off
Off
Off
On
Off
Off
Off
DIP SW for USB
Function
S-1
S-2
S-3
S-4
S-5
S-6
S-7
S-8
S-9
S-10
Character setting
Emulation select
Japanese character code
Fixed partition select
Flash ROM rewrite
Near end
Print density
1. Rewrite the Flash ROM as
1) Set the DIP SW below
2) Change CN8 #1 pin LF to L, or set PWR on, holding Feed SW on operation panel. Set
PWR off to end.
2. For rewriting the flash ROM boot program; set both S-6 and S-2 on.
3. For rewriting flash ROM firmware; set S-6 on and S-2 off.
Important: Set S-6 off except for rewriting. If set it on, the program may be damaged.
4.1.3 Self-print
1) Confirmation by self print function
a. function of control circuitry
b. function of printer mechanism
c. print quality
d. version of control firmware
e. DIP switch setting status
f. operation of no paper sensor
g. check of head width and head rank (auto sensor)
2) Start and end of self print
Set the power switch on while FEED SW is being pressed, or release FEED button after
input of Reset signal to start self-print. It automatically stops with set patterns printed. While
self-print is under operation, printer status is in OFF LINE.
11
4.1.4 Paper sensor
The printer has a paper sensor located at each paper passing through section on the printer
mechanism to monitor no paper status. Once no paper status is monitored, it sends PE
signal to stop printing. Load paper once no paper status is found.
4.2 Errors
1) Error description
Name
Status
Communication
error
232C Comm. error
Parity
Overrun
Flaming
BUSY PE
-
-
/ERROR 232C PL ON
Removal
status
status
Align comm.
condition
Data “?” print
Paper near end
Paper remain sense
CN7 sensor
L
H
H
Obit 1
-
Head up
Head up
L
L
L
1bit 1
On
Paper end
No paper
L
H
L
2bit 1
On
Head temp high Over 80C
L
L
L
3bit 1
Flash
L
L
L
7bit 1
On
Enclosure open
Open the print slide
Load paper
Head up lever
down
Load paper
Return normal
at 60°C
close (Return
the printer slide)
If any error stated above is detected, except communication error and paper near-end,
all operations stop and printer outputs /ERROR signal.
For parallel, /ERROR signal is changed to “L”.
For serial, /ERROR signal is changed to “L”.
Error bit of status information is set ON.
2) Return to normal status from error status
Remove causes of error status and turn the power on again or input the INIT signal
to return to normal. When this process is activated, at the time of power switch
turned off, the printer will be initialized, so that settings are required again.
If data remains in the buffer, it will be cleared. Attention should be paid.
4.3 Buffer full print
If there remains data in the buffer after one line of data is received, printer automatically
prints preceding data. The volume of buffer full data varies depending on ASCII characters or
bit images.
12
4.4 Partition drive
The fixed drive (1 or 2 partition drives) or “automatic partition drive” can be selected by the
DIP switch and commands. It should be selected according to the power supply and print
duty.
1) Fixed partition
Function
ON
OFF
S-5
Fixed partition select
2 partitions
1 partition
z 2 fixed partition select may decrease print speed.
z 2 fixed partition select may decrease print quality.
2) Automatic partition drive
Switch between 1 partition and 2 partitions according to the total dots/line printed.
1 partition
2 partitions
NP-345 Less than 287 dots
Higher than 288 dots
z Automatic partition drive select will automatically change the print speed
according to print ratio. Print noise may appear.
z The default value selected by commands will be the fixed partition selected by
The DIP switch. Refer to the section 5.3.
z Automatic partition select may decrease print quality.
13
5. Control commands
5.1 Printer driver
The following drivers, supplied by Nippon Primex Inc., are recommended when NP-345 is used
with the Windows driver. Please refer to the driver manual for details.
1. Windows 95/98:NII printer driver Windows 95/98, V1.00
2. Windows NT4.0: NII printer driver Windows NT4.0, V1.00
3. Windows 2000: NII printer driver Windows 2000, V1.01
5.2 Line mode command table
Control codes
1
HT
2
CR
3
LF
4
FF
5
ESC C n
6
ESC SP n
7
ESC ! n
8
ESC % n
9
ESC & s n m a Dn
*10
ESC * m n1 n2 Dn
11
ESC – n
12
ESC 2
13
ESC 3 n
14
ESC @
15
ESC D n1 n2 --- NUL
16
ESC E n
17
ESC G n
18
ESC J n
19
ESC R n
20
ESC c 5 n
21
ESC d n
22
ESC t n
23
ESC v
24
ESC { n
25
ESC V n
*26
ESC $ n1 n2
27
ESC ¥ n1 n2
28
GS k n Dn NUL
29
GS w n
30
GS h n
31
GS H n
32
GS f n
33
GS * n1 n2 Dn
34
GS / m
35
GS :
36
GS ^ n1 n2 n3
37
ESC = n
38
ESC a n
39
ESC c 3 n1 n2
40
ESC q S E M
41
GS T n
42
GS P n
43
GS d Dn
Functions
Pages
Horizontal tab
15
Carriage return
15
Print and line feed
15
Page feed
15
Page length set for n lines
15
Character right space set
15
Print mode overall set
16
Down load character set/reset
16
Down load character definition
16
Bit image mode set
19
Underline set/rest
21
1/6 inches line feed set
21
Smallest line feed pitch set
21
Initialize printer
21
Set horizontal tab position
21
Bold print set/reset
22
Double strike print set/reset
22
Print and smallest pitch line feed
22
Select international character
22
Feed switch enable/disable
23
Print and n line feed
23
Select character code table
23
Send printer status
23
Inverted character set/reset
24
24
Character 90° clockwise rotation set/reset
Absolute position set
24
Relative position set
24
Barcode print
25
Barcode width select
25
Barcode height select
25
HRI character print position select
25
HRI character style select
26
Download bit image define
26
Download bit image print
27
Macro definition start/end
27
Macro define
27
Data input control
28
Position align
28
No paper signal sensor select
28
QR code print
29
Register NV bit image
31
Print NV bit image
31
Download firmware
32
14
44
GS B n
Black/white reverse print set/reset
32
45
ESC B n
Back feed
32
46
DC1
Reset software
32
47
GS % n
Partition drive select
33
48
Print density set
33
GS  ̄ n
49
ESC L
Page mode selection
33
* Functions differently between printer with standard type driver and Windows type.
5.3 Line mode command details
1) Horizontal tab
: <<HT>>
Code
: [09] h
Shift the print position to the next horizontal tab position
* Horizontal tab position is set by [horizontal tab set] command.
* The default of horizontal tab position is every 8th character (9th digit,
17th digit, 25th digit and 33rd digit) in font A.
* If the next tab position is not set, this command is ignored.
2) Carriage return: <<CR>>
Code
: [0D] h
This command is ignored.
3) Line feed
: <<LF>>
Code
: [0A] h
Prints data stored in the input buffer and executes line feed according to data
of feed pitch.
4) Page feed
: <<FF>>
This command is effective only in Windows mode.
Code
: [OC] h
* Prints data in the print line buffer and executes page feed to the head of next page
according to the page length in the setting.
* Default setting for the page length is 66 lines.
5) “n” line page length setting: <<ESC C n>>
Code
: [1B] h + [43] h +n
* [01≤n≤FF] h
Sets a page length for “n” lines with current line feed pitch.
* Position is set to the head of page
* Line pitch change after setting will not change page length.
* Default value for “n” is [42] h for 66 lines.
* If printer is initialized, the head of page is also initialized.
6) Setting right space of a character: <<ESC SP n>>
Code
: [1B] h + [21] h + n
* [00≤n≤20] h
Sets the right space of a character by unit of dot (1/203 of an inch). In the case of
double width mode, the space will be doubled. The default value of “n” is [00] h.
15
7) Overall print mode setting: <<ESC ! n>>
Code
: [1B] h + [21] h + n
Sets print mode.
* [00≤n≤FF] h
“n” has following meanings
Values
0
1
0
Character font
Font A
Font B
1
Undefined
2
Undefined
3
Bold
Reset
Set
4
Double height
Reset
Set
5
Double width
Reset
Set
6
Undefined
7
Underline
Reset
Set
* If double height and double width are set at the same time quadruple character will be
formed.
* All of the printed characters will be underlined except for the 90° rotated characters
and spaces created by horizontal tab.
* Underline width is determined by the value set in [Underline set/reset] section.
The default value is “1”.
* Different sizes of character mixed such as double width and normal size can be
printed.
* The default value of “n” is [00] h.
Bit
Function
8) Down load characters set/reset : <<ESC % n>>
Code
: [1B] h + [25] h + n
* [00≤n≤FF]h
Setting or resetting the characters to be downloaded.
* Download character set and download bit image set cannot be used at the same
time.
* Only LSB (b0) is valid for “n” value. LSB (b0) has the following meanings.
b0
Function
0 Resets download character
1 Sets download character
Default value is “n” = [00]h
9) Definition of download character:<< ESC & s n m a Dn>>
Code
: [1B ] h + [26] h + s + n + m + a + Dn
* [s = 03 ] h * [20≤n≤7E ] h * [20≤m≤7E ] h * font A [ 01≤a≤0C ] h
* font B [ 01≤a≤09] h
Definition of download character(such as alpha numeric).
1. “s” indicates a number of bytes in a vertical direction and “a” is a number of dots
in horizontal direction.
2. “n” indicates the start character code, and “m” means the end character code. If
only 1 character should be defined, then n = m.
3. Definable characters are from <20>h to <7E>h in ASCII code (95 characters).
4. “Dn” indicates the data to be defined. It indicates the “a” dots pattern from the left.
Remaining area on the right of a character is filled with spaces.
5. Once a download character is defined, it remains valid until the download
character is redefined, printer is initialized, reset signal is input, or the power is
turned off.
6. Resetting will resets only area specified.
16
< Reference >
In the case of Font A
12dots
24dots
P1
P4
P2
P5
P3
P6
P7
P34
MS
P35
P36
LSB
P1=〔00〕h,P4=〔00〕h,P7=〔00〕h,P10=〔00〕h,…
P2=〔00〕h,P5=〔00〕h,P8=〔0F〕h,P11=〔72〕h,…
P3=〔08〕h,P6=〔F8〕h,P9=〔08〕h,P12=〔00〕h,…
17
< Reference >
In the case of Font B
9dots
P1
P4
P2
P5
P3
P6
P7
MSB
P25
17dots
P26
LSB
MSB
P27
LSB
P1=〔40〕h,P4=〔7F〕h,P7=〔41〕h,P10=〔41〕h,…
P2=〔04〕h,P5=〔FC〕h,P8=〔04〕h,P11=〔04〕h,…
P3=〔00〕h,P6=〔00〕h,P9=〔00〕h,P12=〔00〕h,…
18
10) Bit image mode set: << ESC * m n1 n2 Dn >>
Code: [1B] h + [2A] h + m + n1 + n2 + Dn
* [m = bit image mode(refer to below)] h
* [00≤n1≤FF] h
* [00≤n2≤02] h
Data is printed in bit image by following the bit image mode specified by “m”.
* Print total dots divided by 256, quotient is n2 and remainder is n1.
* Total dots in bit image mode are n1 + (256 x n2).
* If the bit image input data exceeds specified position, the exceeded data will be
disregarded. NP-245: 448 dots. NP-345: 576 dots.
* Bit image data (Dn) interprets bit 1 as print and bit 0 as not print.
* Bit image mode is indicated below.
* If “m” is out of conditions set, the data after n1 is treated as normal data.
[Standard]
m
(hex)
Bit image mode
00
01
20
21
8 dot single density
8 dot double density
24 dot single density
24 dot single density
Vertical direction
Dot
Dot
quantity density
8
67DPI
8
67DPI
24
203DPI
24
203DPI
Horizontal direction
Max. dots
Dot density
NP-345
101DPI
288
203DPI
576
101DPI
288
203DPI
576
[Windows]
Horizontal direction
Max. dots
Dot density
NP-345
20
24 dot single density
67DPI
192
21
24 dot double density
101DPI
288
22
24 dot single density
135DPI
384
23
24 dot double density
203DPI
576
203DPI
576
24
24 dot double density
24
203DPI
(406DPI)
(1152)
* The data for [Windows] m = 24h is equivalent to m=23h due to the mechanical specification.
m
(hex)
Bit image mode
Vertical direction
Dot
Dot
quantity density
24
203DPI
24
203DPI
24
203DPI
24
203DPI
* When using Windows driver, set Dip switch S-3 ON.
19
< Relationship between bit image data and printed dots >
8 dots bit image
MSB
D1
D2
D1 D2 D3
D3
LSB
DATA
=1dot
single
double
24 dots bit image
D1
D4
D7
D2
D5
D8
D3
D6
D9
MSB
D1 D2 D3 D4 D5 D6 D7 D8 D9
LSB
DATA
=1dot
single
20
double
11) Underline set/reset : <<ESC - n>>
Code
: [1B] h + [2D] h + n
* [00≤ n ≤02 ]h
Sets and resets the underline
* Underline is valid for all characters except for the area skipped by horizontal tab.
* Also Underline is not valid for 90° rotated character.
* Underline is verified with n value as shown bellow.
n(hex)
Type of underlines
00
Reset underline
01
Set one dot underline
02
Set two dot underline
Default value is “n” = [00]h
12) 1/6th of an inch line feed pitch : << ESC 2>>
Code
: [1B ] h + [32] h
Sets one line feed to 1/6th of an inch.
13) Sets smallest pitch line feed : << ESC 3 n >>
Code
: [1B ] h + [33 ] h + n
* [00≤ n ≤FF] h
Sets a line feed pitch to n/203rd of an inch.
* Despite of height set by value, the same space with character height is sent by
line feed.
* The default value of n is [22] h
* If n=[00] h is set, printer will not feed by pressing FEED button.
14) Printer initialization
: << ESC @ >>
Code
: [1B ] h + [ 40 ] h
Clears the data stored in the print buffer and resets each setting to default values.
* It does not clear the data stored in the internal receive buffer.
* Rewrites the DIP switch.
* It is stored in the internal receive buffer and activated in sequential.
15) Horizontal tab position set
: << ESC D n1 n2 --- NUL >>
Code
: [1B ] h + [44] h + n1+ n2+ --- + [00 ] h
*[00≤ n ≤FF ] h
Sets the horizontal tab position
1. “n” indicates the digits number from the left. In this case, n = tab position - 1.
2. Tab position is set at the location of character width x n from the beginning of a
line. The character width in this case includes character right space. When
double width function is set, then the width becomes double of ordinary
character.
3. Maximum number of tab positions is 32. If setting exceeds 32, then
the exceeded values are neglected.
4. < ESC D NUL > clears all tab positions being set. After the tab is cleared,
horizontal tab will be ignored.
5. Default value is set at every 8 characters of font A (at 9 th, 17th, 25th and 33rd
digit).
21
16) Bold print set/reset :<< ESC E n >>
Code
: [1B] h + [45] h + n
* [00≤ n ≤FF] h
Sets and resets the bold print
* “n” is only valid for LSB(b0)
LSB (b0) is defined as following.
b0
Values
0
Resets bold print
1
Sets the bold print
Valid for all characters
Bold print and double strike results in the same on this printer.
The default value of “n” is [00] h.
17) Double strike set/reset
:<< ESC G n >>
Code
: [1B] h + [47] h + n
* [00≤n≤FF] h
Sets and resets the double strike function
* “n” is only valid for LSB(b0)
* Control by “n” is explained as following.
b0
Description
0
Resets double strike
1
Sets double strike
* Double strike and bold print result in the same on this printer.
* The default value of “n” is [00] h.
18) Print and smallest pitch line feed:
<< ESC J n >>
Code
: [1B ] h + [4A ] h + n
* [00≤n≤FF] h
Prints the data in the print line buffer and feeds the paper by n/203rd of an inch.
* The height of character for a line is always sent by line feed. If the value of height
is set by “n” below the height of character, the same space with character height
is sent by line feed.
* Beginning of a line is a print start position.
19) International character select :<< ESC R n >>
Code
: [1B ] h + [52] h + n
Selects the international characters.
* The values of “n” have following meanings
n(Hex)
Character sets
00
U.S.A.
01
France
02
Germany
03
England
04
Denmark 1
05
Sweden
06
Italy
07
Spain
08
Japan
09
Norway
0A
Denmark 2
Default value of “n” is [08] h.
22
* [00≤n≤0A] h
20) Feed switch enable/disable:<< ESC c 5 n >>
Code
: [1B ] h + [63] h + [35] h + n
Changes the FEED switch valid or invalid.
* “n” is only valid for LSB(b0)
* “n” bit has a following meanings
b0
Description
0
enable FEED switch
1
disable FEED switch
Default value of “n” is [00] h.
* [00≤n≤FF] h
21) Print and “n” line feed:<< ESC d n >>
Code
: [1B] h + [64] h + n
* [00≤n≤FF] h
Prints the data in the print buffer and feeds paper by “n” lines.
* Beginning of a line is a print start position.
* If there is print data remained, line feed is activated for the same height of
character.
22) Character code table select:<< ESC t n >>
Code
: [1B] h + [74]h + n
* [00≤n≤01]h
Selects either Japan code table or non-Japan code table.
Explanation : “n” value has following meaning.
n(Hex)
character code table
00
Non-Japan character code table
01
Japan character code table
The default value of “n” is [S2-2] for DIP SW.
23) Printer status transmission
:<< ESC v >>
Code
: [1B] h + [76] h
Sends current printer status
* Status to be transmitted consist of 1 byte and the content is explained in the chart
below.
Value
bit
Functions
0
1
0
Paper near end
Paper present
Near end
1
Head open
Normal
Head open
2
Paper end
Paper present
No paper
3
Head temp. abnormal
Normal
Temp. high
4
5
6
Paper out sensor
No paper
Paper exists
7
Enclosure open
Normal
Open
* Regarding DTR/DSR control, only one byte is transmitted after confirmation that
the host is able to receive data, that is DSR signal is in SPACE status. For
XON/OFF control, one byte is transmitted without confirmation of DSR signal
status.
* For DTR/DSR control, if host is not in a receivable status, it waits until host can
receive data.
23
24) Inverted character set and reset
:<< ESC { n >>
Code
: [1B] h + [7B] h + n
* [00≤n≤FF] h
Sets or resets the inverted character function
* Only LSB (n0) is effective for “n”.
* Control by LSB (b0) is explained below:
b0
Description
0
resets inverted character
1
sets inverted character
* The command is only valid when it is assigned at the beginning of a line.
* The default value of n is [00] h.
25) 90° clockwise rotated character set and reset
:<< ESC V n >>
Code
: [1B] h + [56] h + n
* [00≤n≤01] h
Sets and resets 90° clockwise rotated character.
* Underline cannot be assigned to the 90° clockwise rotated character.
* “n” has the following meaning.
n(hex)
description
00
reset 90° rotated character
01
set 90° rotated character
* Default value for “n” is [00] h.
26) Absolute position set
:<< ESC $ n1 n2>>
*The function of this commands differ between Standard type and Windows type.
Code
:[1B] h + [24] h +n1 +n2
* [00≤n1≤FF] h
* [00≤n2≤01] h
Print start position is assigned by dots in 1/203rd of inch from the beginning of line.
* Divide the value of dot by 256, place quotient to n2, and remainder to n1.
* The print start position is n1 + n2 x 256 from top of the line.
* Setting which exceeds end of line is ignored.
* If the command is received in the middle of line, the action will be:
Standard: the value that does not exceed the current position is ignored.
Windows: the value that does not exceed the current position is also valid.
27) Relative position set
:<< ESC ¥ n1 n2>>
Code
: [1B] h + [5C] h + n1 +n2
* [00≤n1≤FF] h
* [00≤n2≤01] h
Print start position is assigned by dots from current position in unit of 1/203rd of
inch.
* Right direction is treated as plus and left as minus.
* For assigning N dots in minus direction (left), it will be: N dots = 65536 - N
* Divide dots by 256, quotient is n2 and remainder is n1.
* Assigning beyond the end of a line is neglected
* Assigning N dots to the plus direction will be n1 + n2 x 256
24
28) Barcode print
:<< GS k n
Dn
NUL >>
Code
: < 1D >h + < 6B >h + n + Dn + < 00 >h
* < 00≤n≤07 >h
Description : Selects barcode symbology and prints barcode.
* The next print start position is on the line head
* Select following barcode symbology with “n” value.
* Dn indicates the character code to be printed.
n (Hex)
Barcode symbology
Character quantity
00
UPC-A
12
01
UPC-E
12
02
EAN-13 (JAN-13)
13
03
EAN-8 (JAN-8)
8
04
CODE 39
Length can be changed
05
ITF
14,16
06
CODABAR
Length can be changed
07
CODE128
Length can be changed
* Dn indicates a character code to be printed.
* If character code Dn is not a printable character, following data after Dn will be
treated as normal data.
* If the print character numbers are fixed in the barcode symbology the input
character numbers should match to the print character numbers.
* If horizontal data exceed one line, the exceeded data cannot be printed.
29) Barcode width size select :<< GS w n >>
Code
: < 1D >h + < 77 >h + n
Description : Selects width of barcode
* Default value of “n” is [03]h.
* < 02≤n≤04 >h
30) Barcode height select
:<< GS h n >>
Code
: < 1D >h + < 68 >h + n
* < 00≤ n ≤FF >h
Description : Selects barcode height
* “n” shows the vertical dot number
* Default value of “n” is [A2]h (162 dots).
31) Select of HRI character print position :<< GS H n >>
Code
: < 1D >h + < 48 > h +n
* < 00≤ n ≤03 >h
Description : Selects the print position of HRI characters in printing barcode.
* “n” has the following meaning.
n (Hex)
Print position
00
No printing
01
Above barcode
02
Below barcode
03
Above and below barcode
* HRI characters are the characters selected by “HRI character style select”.
* Default value of “n” is [00[h.
25
32) Select of HRI character style
:<<GS f n>>
Code
: <1D>h+<66>h+n
* < 00≤ n ≤01 >h
Description : Selects HRI character style in printing barcode
* “n” has the following meanings:
n (hex)
Style
00
Font A
01
Font B
* Default value of “n” is [00]h.
33) Download bit image definition
:<< GS * n1
Code
: < 1D >h + < 2A >h + n1 + n2 + Dn
n2 Dn >>
* < 0≤n1≤FF >h
* < 00≤n2≤30 >h
* < n1 x n2≤51F >h
Description : Defines “download bit image” of number of dots specified by n1 and n2.
* Horizontal dot numbers are obtained by n1 x 8 and vertical dot numbers by n2 x 8.
* Dn is bit image data.
* Once “download bit image” is defined, it is valid until it’s redefined, download
character is defined, external characters are specified, software is reset, power is set
off or INIT signal is input.
* “Download bit image” cannot be defined at the same time with “download
characters” or “external characters”. If this command is executed, “download
character definition” or “external characters contents” are cleared.
* The relationship between bit image data & defined dots is shown below.
n1x8dots
d1
MSB
dn2+1
dn2x2+1
d2
dn2+2
dn2x2+2
n2x8dots
LSB
dn2
dn1xn2x8
dn2x2
26
34) Download bit image print :<< GS / m >>
Code
: < 1D >h + < 2F >h + m
* < 00≤m≤03 >h
Description : Prints “download bit image” in a mode assigned by “m”.
* Modes to be assigned by m are as follows.
Dot density
m
Modes
Vertical Horizontal
00 Normal mode
203 dpi
203 dpi
01 Double width
203 dpi
101 dpi
02 Vertical double
101 dpi
203 dpi
03 Quadruple
101 dpi
101 dpi
* If there are some data left in the print buffer, this command is neglected.
* If “download bit image” is not defined yet, this command is neglected.
* “Download bit image” data exceeding 1 line cannot be printed.
* “Download bit image” cannot be defined at the same time with “download
character” or “external characters”
35) Macro definition, start and end
:<< GS : >>
Code
: < 1D >h + < 3A >h
Description : Assigns Macro definition start and end. The size of data defined by
Macro is up to 1,024 bytes. Exceeding to 1,024 byte cannot be defined.
* Defined Macros cannot be cleared by “Printer initialization”. Therefore “printer
initialization” can be included in the Macro definition.
* During the Macro definition, printing can proceed.
* Once Macro is defined, the contents become effective until software is reset,
power is set off, or INIT signal is input.
36) Macro execution
Code
:<< GS ^ n1 n2 n3 >>
: < 1D >h + < 5E >h + n1 + n2 + n3
* < 0≤n1≤FF >h
* < 00≤n2≤FF >h
* < 00≤n3≤01 >h
Description : Executes Macros being defined
* The definitions of n1, n2 and n3 are:
n1 : times of Macro execution
n2 : wait time of Macro execution
At every execution, there is a wait time of n2 x 100msec.
n3 : Macro execution mode
n3
Mode
00
Consecutive execution
01
Execution by FEED switch
* Consecutive execution: Executes “n1” times with a wait time specified at n2.
* FEED switch execute: After a time specified at n2, waits for PE LED blinks and
the FEED switch depressed. After FEED switch is pressed, it executes Macro
once. This action is repeated by n1 times.
* If the printer receives this command during Macro definition, it stops Macro
definition. If it occurs, defined Macros are cleared.
* Nothing occurs if Macro is not defined or n1 = [00]h.
* During Macro execution with n3 = 1, line feed by FEED switch is disabled.
27
37) Data input control :<< ESC = n >>
Code
: < 1B >h + < 3D >h + n
* < 00≤n≤FF >h
Description:Selects valid device where data input is possible through host computer.
* Each bit of “n” has the following meaning.
Values
Bit
Function
0
1
0
Printer
Invalid
Valid
1
Not defined
2
Not defined
3
Not defined
4
Not defined
5
Not defined
6
Not defined
7
Not defined
* If printer is not in “no selection” status, printer will discard all received data until it
is in the selection status by this command.
* Even if printer is in no selection status, the status may become BUSY by printer
operation.
* The default value of “n” is [00]h.
38) Print position alignment
:<< ESC a n >>
Code
: < 1B >h + < 61 >h + n
* < 00≤n≤02 >h
Description : Aligns all data to be printed on the assigned position in a line.
* “n” values are assigned to:
n (Hex)
Position
00
Left
01
Center
02
Right
* This command is valid only when it is input at the head of a line.
* The default value of “n” is [00]h.
39) No paper sensor select
:<<ESC c 3 n1 n2>>
Black mark sensor command
Code
:<1B>h + <63>h + <33>h + n1 + n2 * < 00≤n1≤01 >h
* < 00≤n2≤FF >h
* n1 = 0, no paper sensor
(thermal paper)
* n1 = 1, black mark sensor (label paper)
* Value “n2” is available only at label selection in “n1”.
Feeds paper by dots assigned after black mark position is confirmed.
Feeds 0.125mm x “n2” amount of paper
Default value of n1 is [00]h.
Auto loading function is not available at black mark selection.
28
40) QR code print
:<<ESC q S E M>>
ESC + ”q” + S + E + M + DATA [+ ”,” + M + DATA +……] + NUL
HEX CODE <1B>h + <71>h + S + E + M + DATA [+ <2C>h + M + DATA +….] + <00>h
About parameter
1. S: module size
* Assign 1 module size of QR code by printer’s dot numbers.
* There are 5 sizes which can be assigned, 1, 2, 3, 4, 8 dots
* If invalid size is assigned, the printer assigns it as 4 dots
2. E: Correction level
* Selects error correction level to be used for restoring QR symbol.
* Following values can be assigned.
* If invalid value is assigned, the printer determines it to be L.
E
Correction level
Restore. capability
0
L
7%
1
M
15%
2
Q
25%
3
H
30%
3. M: Input data mode
* Assign input data mode
* Following modes can be assigned
* If invalid mode is assigned, data is ignored until valid
Mode is assigned.
M
Input data mode
“N”
Numeric mode
“A”
Alpha numeric mode
“B”
8 bit byte mode
“K”
Kanji mode
* If multiple modes should be input, each mode data (M + data) needs to be
separated by “ , ”.
* If you want to input “ , ” and NULL in the data of 8 bit byte mode, input “ ! ”
<21>h+”,” and “ ! ”<21> h + NULL.
* “ ! ” itself is input as “ ! ” + ” ! ”
* Kanji data should be input by Shift JIS code.
Restrictions
Available QR codes are from version 1 to version 14 of model 1 symbols.
If input data exceeds the area to be printed, QR code is not printed.
29
Following table shows the number of characters and input data capacity for the model 1
in version 1 to 10.
Data capacity
Correction Data code
Version
Data bit
Alpha
8 bit
level
Word
Numeric
Kanji
numeric
byte
L
19
148
40
24
17
10
M
16
124
33
20
14
8
1
Q
13
100
25
15
11
6
H
9
68
16
10
7
4
L
36
284
81
49
34
20
M
30
236
66
40
28
17
2
Q
24
188
52
31
22
13
H
16
122
33
20
14
8
L
57
452
131
79
55
33
M
44
348
100
60
42
25
3
Q
36
284
81
49
34
20
H
24
188
52
31
22
13
L
80
636
186
113
78
48
M
60
476
138
84
58
35
4
Q
50
396
114
69
48
29
H
34
268
76
46
32
19
L
108
860
253
154
106
65
M
82
652
191
116
80
49
5
Q
68
540
157
95
66
40
H
46
364
105
63
44
27
L
136
1084
321
194
134
82
M
106
844
249
151
104
64
6
Q
86
684
201
122
84
51
H
58
460
133
81
56
34
L
170
1356
402
244
168
103
M
132
1052
311
188
130
80
7
Q
108
860
253
154
106
65
H
72
572
167
101
70
43
L
208
1660
493
299
206
126
M
160
1276
378
229
158
97
8
Q
128
1020
301
183
126
77
H
87
692
203
123
85
52
L
246
1964
585
354
244
150
M
186
1484
441
267
184
113
9
Q
156
1244
369
223
154
94
H
102
812
239
145
100
61
L
290
2316
690
418
287
177
M
222
1772
526
319
219
135
10
Q
183
1460
433
262
180
111
H
124
988
291
176
121
74
1. The first code word is 4 bit length, and following all code words consist of 8 bit length.
2. Data bit numbers include “mode indicator” and “character number indicators”.
30
Following table shows the number of characters and input data capacity for the model 1 in
version 11 to 14.
Data capacity
Correction Data code
Version
Data bit
Numer
Alpha
8 bit
level
Word
Kanji
ic
numeric
byte
L
336
2684
800
485
333
205
M
256
2044
608
368
253
156
11
Q
208
1660
493
299
205
126
H
145
1156
342
207
142
87
L
384
3068
915
555
381
234
M
292
2332
694
421
289
178
12
Q
244
1948
576
351
241
148
H
165
1316
390
236
162
100
L
432
3452
1030
624
429
264
M
332
2652
790
479
329
202
13
Q
276
2204
656
398
273
168
H
192
1532
454
275
189
116
L
489
3908
1167
707
486
299
M
368
2940
877
531
365
225
14
Q
310
2476
738
447
307
189
H
210
1676
498
302
207
127
1. The first code word is 4 bit length, and following all code words consist of 8 bit length.
2. Data bit numbers include “mode indicator” and “character number indicators”.
41) NV bit image registration
:<<GS T n>>
Code
: <1D>h + <54>h + n
Description : Register the predetermined bit image print data.
* It is possible to register from 0 to 2 different kinds of patterns (3 patterns).
* In each pattern, up to the maximum of 11cm (for NP-345) can be registered. The
bit image print data exceeding the maximum length is neglected.
* The registered data is not erased when the power is set on or off or the printer is
initialized.
* “n” has a following meanings.
n (hex)
Function
00
Start of pattern 0 registration
01
Start of pattern 1 registration
02
Start of pattern 2 registration
FF
End of registration
* When registrations started in the middle of a line, whole line is registered.
* When registration ended in the middle of a line, whole line is not registered.
* Following is a command sequence of pattern 0 registration.
GS T 00h + (bit image data assigned by ESC *) x n lines + GS T FFh
42) NV bit image print :<< GS P n >>
Code
: <1D>h + <50>h + n
* < 00≤n≤02 >h
Description : Prints the bit image print data registered.
* Selects one of the print pattern among three registered patterns by assigning 0 to
2 value to “n”.
31
43) Firmware download
:<<GS :>>
Code
: <1D>h + <3A>h
Description : Download printer firmware in hexadecimal code and rewrite firmware
according to the outcome.
* Dn is firmware’s hex code that complies with INTELLEX Hex format.
44) Reverse print set and reset :<< GS B n >>
Code
: < 1D > h + < 42 > h + n
* < 00≤n≤FF >h
Function
: Sets and resets reverse print.
* “n” is available only for the least significant bit.
* The least significant bit controls as follows:
n0
Function
0
Resets black-white printing
1
Sets black-white printing
* The characters incorporated and downloaded can be reverse printed.
* The right side space of character set by [Set right space of a character] is also
included for reverse print. However, it does not cover the skipped space made by
bit image, download bit image, NV bit image, barcode, HRI characters, horizontal
tab, specify absolute position, specify relative position.
* It does not include the space between the lines.
* Reverse print has a priority over “underline specified”. If a character is reversed,
the character is not underlined. However, the underline setting remains effective.
* If “highlight” or “double strike” is set on the reverse print, the print may result in
damages.
* The default value of “n” is [00]h.
45) Back feed
:<< ESC B n >>
Code
: < 1B > h + < 42 > h + n
* < 00≤n≤FF >h
Description
: Feeds the paper backward.
* Paper feed amount is specified by n dot line.
* Paper is not fed backward when [00]h is set.
* If this command is entered consecutively, paper may be jammed. To avoid this
problem, enter only once and feed paper in the forward direction.
* Double strike print is available by using this command.
* Considering the backlash, there may be a gap of printing.
* When data remains in the print line buffer, it first prints data, then back feeds.
46) Software reset
:<< DC1 >>
Code
: < 11 > h
Description
: Restart the firmware as the same procedure as power on.
* This command is stored in the receive input buffer and activated in sequence.
32
47) Partition drive select
:<< GS % n >>
Code
: < 1D > h + < 25 > h + n
* < 01≤n≤03 >h
Description
: Selects partition drive.
* “n” indicates the following:
n(HEX)
Divide
01
1 fixed partition
02
2 fixed partitions
03
automatic partition
* Default value is selected by the DIP switch (1 or 2 partitions).
* If assigned beyond the specified area, the data is neglected and the select will not
change.
* Automatic partition is as follows:
1 partition
2 partitions
NP-345 Less than 287 dots More than 288 dots
48) Print density set
Code
Description
:<< GS ˉ n >>
: < 1D > h + < 7E > h + n
* [ 41≤n≤87 ]h
: Sets print density in the range between 65% ~ 135% of the standard
value, S2-8 Off.
* “n” ranges from 41h(65%) to 87h(135%). However, make sure to set it for actual
use in the range 41h (65%) ≤ n ≤ 82h (130%).
* At the initial status, 100% or 125% can be selected by the DIP switch, S2-8.
* It is set by the unit of dot line.
* This command has priority over the setting by DIP switch.
49) Page mode select << ESC L >>
Code
: [1B]h + [4C]h
Description
: Switches between the line mode and page mode.
* The data in the line buffer is cleared.
* Clear the each setting and definition of the line mode.
* The default value is in the page mode.
33
5.4
Page mode command table
1
2
3
4
5
6
7
8
9
10
11
12
Control command
ESC L n
ESC M nx1 nx2 nx3 ny1 ny2 ny3
FF
LF
ESC c
ESC I
GS ~
ESC P n
ESC A n1 n2
ESC W n
ESC w n
ESC g n1 n2
13
SO w
14
SO W
15
16
17
18
ESC $ n1 n2
ESC * m n1 n2 Dn
GS T n
ESC F n
GS b n1 nx1 nx2 nx3
ny1 ny2 ny3 n4 Dn LF
GS w n
GS h n1 n2
GS H n
GS X n1 n2 n3 n4
ESC b n1 n2 n3
ESC v
GS d Dn
ESC S
19
20
21
22
23
24
25
26
27
Function
Print & edit selection
Print edit position setting
Print page feed
Line feed
Printer initialization
Print/edit clear
Print density setting
Print/edit page selection
Line space setting
Character width enlarge setting
Vertical enlarge print setting
Vertical/horizontal character enlarge set
Double width enlarge print setting with
auto reset
Quadruple enlarge print setting with auto
reset
Absolute position setting
Bit image mode set
NV bit image pattern registration
NV bit image double strike setting
Page
35
37
39
39
39
39
39
39
40
40
40
40
40
40
41
41
43
43
Barcode print edit
43
Barcode width setting
Barcode height setting
HRI character print/edit setting
Barcode modification total settings
Black mark position margin setting
Send printer status
Firmware download
Line mode selection
44
44
44
44
44
44
44
45
* The characters covered in the section “ “ at the line mode command parameter are ASCII.
For example:
'1' = 〔31〕h
'02' = 〔30〕h+〔32〕h
* The first line start position means the start position of the first line for print/edit direction
selected at that time.
* Items 20-23 are omitted due to command for Japanese Kanji settings.
34
5.5 Page mode command details
1) Print/edit direction select << ESC L n>>
Code:〔1B〕h+〔4C〕h+n
※〔'0'≦n≦'5'〕
Description: Selects the print/edit direction selected in the print/edit page.
* Print/edit direction set by “n” value and axis are:
Description
n
'0'
Sets 0 for print/edit
'1'
Sets 1 for print/edit direction
'2'
Sets 2 for print/edit direction
'3'
Sets 3 for print/edit direction
'4'
Sets 4 for print/edit direction
'5'
Sets 5 for print/edit direction
* For print/edit direction layout, refer to the drawings below and the next page.
* The default value of “n” is “0”.
* Once print/edit direction is changed, the next print/edit position will be at the start of line.
* The other settings stay unchanged. The command setting will not change after printer
initialization.
Print/Edit Layout
< Print/Edit direction 0, 3 >
X Direction
(0,0)
Y
Print/edit direction 0/1st line
Print/edit direction 0/2nd line
Print/edit direction 0/3rd line
Print
Edit
Directions
3/1st line
3/2nd line
3/3rd line
Paper feed direction
35
< Print/Edit direction 1, 4 >
Print/edit direction 4/ 1st line
Print/edit direction 4/ 2nd line
Print/edit direction 4/ 3rd line
X
Print
Edit
Direction
1/1st line
1/2nd line
1/3rd line
(0,0)
Y direction
Paper feed
y
< Print/edit direction 2, 5 >
(0,0)
36
x
Print/edit direction 2/1st line
Print/edit direction 2/2nd line
Print/edit direction 2/3rd line
Print
Edit
Direction
5 5 5
/ /
/
3 2 1
Lines
Paper feed direction
2) Print/edit position setting << ESC M nx1 nx2 nx3 ny1 ny2 ny3 >>
Code: [1B]h + [4D]h + nx1+nx2+nx3+ny1+ny2+ny3
For < print/edit direction 0,3 > * ['000'≦nx1nx2nx3≦’148’]
* ['000'≦ny1ny2ny3≦’072’]
For < print/edit direction 1, 2, 4, 5 >
* ['000'≦nx1nx2nx3≦’072']
*['000'≦ny1ny2ny3≦’148']
The next print/edit position is specified by “x” and “y” axis (mm).
* The upper left corner is (x, y) = (0, 0)
* The upper left end of the next print/edit character is positioned at the axis specified.
* “x” axis value is specified by nx1, nx2 and nx3
Example: If 8mm is specified, nx1='0'、nx2='0'、nx3='8'
* “y” axis value is specified by ny1, ny2 and ny3
Example: If 135mm is specified, ny1='1'、ny2='3'、ny3='5'
Print/edit position when (x, y) axis are specified.
< Print/edit direction 0, 3 >
148mm
xmm
72m
ymm
(0,0)
(x,y)
Print/edit character position
A
Paper feed direction
37
< Print/edit direction 1, 4 >
72m
A
148mm
xmm
(x,y)Print/edit character position
(0,0)
ymm
Paper feed direction
< Print/edit direction 2, 5 >
148mm
ymm
(0,0)
72m
xmm
Print/edit character position
A
Paper feed direction
38
(x,y)
3) Print page feed < FF >
Code: [0C] h
Prints the data in the page buffer selected in the print/edit page.
* The data in the page buffer is not cleared after printing.
* The next print/edit position will be at the start position of the line.
4) Line feed < LF >
Code: [0A] h
Moves the print/edit position to the start position of the next line.
The line feed amount at this time will be:
< print/edit direction 0, 1, 2 > : height of character + line space
< print/edit direction 3, 4, 5 > : width of character + line space
Printing is not executed until “print page feed” is input.
5) Printer initialization < ESC c >
Code: [1B]h + [63]h
Clears the print data stored in the all page buffer and resets each setting to the default
values.
* The following settings are not cleared: print/edit direction select, NV bit image pattern
registration, NV bit image double strike setting.
* The data in the reception input buffer is not cleared.
* The next print/edit position will be at the start position of line of the page 0.
6) Print/edit page clear < ESC I >
Code: [1B]h + [49]h
Clears the print data stored in the page buffer selected in the print/edit page.
* Each setting is not cleared.
* The next print/edit position will be at the start position of line.
7) Print density setting < GS ˉ n >
Code: [1D]h + [7E]h + n
* [41≦n≦87]h
Makes a setting for the print density between 65% and 135% from the standard print
density of (S2-8 OFF).
* Make a setting between [41]h (65%) and [82]h (130%) although the range of “n” is set
between [41]h (65%) and [87]h (135%)
* It is set by page unit.
* By the DIP SW setting of (S-8), you can set the default status for 100% or 125%.
* This command takes priority over the DIP SW settings.
8) Print/edit page selection < ESC P n >
Code: [1B]h + [50]h + n
* ['0'≦n≦'2']
Selects with n the pages for print/edit (3 pages from 0 ~ 2 are available)
* Each setting does not change.
* The next print/edit position will be at the start position of line of the selected page.
* The default value of n is 0.
39
9) Line space setting <ESC A n1 n2 >
Code: [1B]h + [41]h + n1 + n2
* ['00'≦n1n2≦'16'>
Make a setting for line space for characters.
* The line space that can be set is n1n2 (mm).
* The default value of n1n2 is '00'.
10) Width enlarge print setting <ESC W n >
Code: [1B]h + [57]h + n
* ['1'≦n≦'4']
Sets the width enlargement number for the following print/edit characters.
The enlargement by n value is:
n
Enlargement
'1'
X1
'2'
X2
'3'
X3
'4'
X4
11) Vertical enlargement setting < ESC s n >
* ['1'≦n≦'4']
Code: [1B]h + [77]h + n
Sets the height enlargement number for the following print/edit characters.
The enlargement by n value is:
n
Enlargement
'1'
X1
'2'
X2
'3'
X3
'4'
X4
12) Width/height enlargement settings
< ESC g n1 n2 >
Code: [1B]h + [67]h + n1 + n2
* ['1'≦n1≦'4']
Sets the width/height enlargement for the next print/edit characters. * ['1'≦n2≦'4']
* Sets the width enlargement value by n1 value. (same manner with section 10 above)
* Sets the height enlargement value by n2 value. (same manner with section 11 above)
13) Double width enlarge print setting with auto reset < SO w >
Code: [0E]h + [77]h
Double width setting of the print/edit characters.
* The only next one character after the command will be effective and the second one and
after will be effective in the single width enlarge print settings.
14) Quadruple print setting with auto reset < SO W >
Code: [0E]h + [57]h
The next print/edit characters are enlarged (width is doubled and height is doubled)
* The only next one character after the command will be effective and the second one and
after will be effective in the single width/height enlargement settings.
* Enlargement will be made from the lower left position of each character to the upper right
direction.
40
15) Absolute position setting <ESC $ n1 n2 >
Code: [1B] h + [2A] h + n1 + n2
* [00≤n1≤FF] h
* [00≤n2≤04] h
The next print/edit position is specified by the dot numbers from the line start.
* Print total dots divided by 256, quotient is n2 and remainder is n1.
* The print/edit position will be at n1 + (256 x n2) from the start position.
* The specified position, exceeding the end of line is disregarded.
16)Bit image mode setting
< ESC * m n1 n2 Dn >
Code:〔1B〕h+〔2A〕h+m+n1+n2+Dn
*〔m=00,01,21,23〕h
* [00≦n1≦FF〕h
*〔00≦n2≦04〕h
The data is print/edited in the bit image by following the bit image mode specified by m.
* Divide the print/edit dot width by 256, quotient is n2 and remainder is n1.
* If the bit image data (Dn) is input beyond the dot width and line, the exceeded data is
ignored.
* The bit image data (Dn) to be printed is bit 1 and the data not printed is 0.
* The bit image mode (m) is indicated below:
Vertical direction Horizontal direction
m(hex)
Mode
Dots Density Density Max. dots
00
8 dot single density
8
67DPI
101DPI
592
01
8 dot double density
8
67DPI
203DPI
1184
21
24 dot single density
24
203DPI 101DPI
592
23
24 dot double density
24
203DPI 203DPI
1184
* This command is effective for < print/edit direction “0” >
* When using Windows driver, set the Dip switch S-3 ON.
41
The relationship between the bit image data and dots to be printed
8 dot bit image
D1 D2 D3
MSB
D1
D2
D3
LSB
Printed data
=1dot
Single density
Double density
・24 dot bit image
D1
D4
D7
D2
D5
D8
D3
D6
D9
D1 D2 D3 D4 D5 D6 D7 D8 D9
MSB
LSB
Printed data
=1dot
Single density
42
Double density
17) NV bit image pattern registration
< GS T n >
Code:〔1D〕h+〔54〕h+n
*〔'0'≦n≦'2'〕
Registers the data specified by n for pages (0 – 2) as NV bit image pattern.
* It is necessary to write the data to be registered in the page 0 – 2. Printing is not needed.
* It is only one pattern to be registered.
* The registered data is effective until it is re-registered, the firmware is downloaded or NV
bit image is registered.
* Once registered, the NV bit image pattern is registered until registered again.
* Once registered, power on/off or printer initialization does not clear the data.
18) NV bit image pattern lay over
< ESC F n >
Code: [1Bh + [46]h + n
* ['0'≦n≦'1']
Specifies if the previously registered NV bit image pattern should be laid over to print (OR
print), at printing the data by Print page feed <FF>.
* n means as follows:
Function
n
'0'
Clears lay over
'1'
Sets lay over
* This command specification is effective until it is reset or the power is set off.
* The default value of n is 0.
19) Barcode print/edit < GS b n1 nx1 nx2 nx3 ny1 ny2 ny3 n4 Dn LF >
Code: [1D]h+[62]h+n1+nx1+nx2+nx3+ny1+ny2+ny3+n4+Dn+[0A]h
Selects barcode structure and print/edit
* ['0'≦n1≦'6']
* Selects the following barcode structure by n1 value:
*['0'≦n4≦'2']
n1 Barcode structure
Characters
*['000'≦nx1nx2nx3≦'148']
'0' UPC-A
12
*['000'≦ny1ny2ny3≦'148']
'1' UPC-E
12
'2' JAN-13(EAN-13)
13
'3' JAN-8(EAN-8)
8
'4' CODE39
Changeable
'5' ITF
14, 16
'6' CODABAR
Changeable
* Specifies x axis (mm) for print/edit position by nx1, nx2 and nx3 and y axis (mm) by ny1,
ny2 and ny3. It specifies in the same manner as Print/edit position setting.
* The following rotation is specified by n4 value.
n4
Rotates
'0'
0 degree
'1'
90 degree
'2' 270 degree
* Dn indicates the character code to be printed.
* If the character code (Dn) cannot be printed, the data after the code is treated as the
non-specified data.
* If a barcode is selected with character volume fixed, it needs to match to the character
volume.
* If the barcode exceeds the size of page, it is not printed.
* The print/edit position for the general characters does not move after barcode print/edit.
43
20) Barcode width size setting
< GS w n >
Code: [1D]h+[77]h+n
Specifies the width of barcode.
* The default value is '3'.
21) Barcode height setting
< GS h n1 n2 >
Code:[1D]h+[68]h+n1+n2
Specifies the height of barcode (mm).
* n1n2 indicates the height of barcode in mm.
* The default value of n1n2 is '20'.
22) HRI characters print/edit setting < GS H n >
Code: [1D]h + [48]h + n
* The edit by n value is specified as follows:
Print/edit
n
'0' No print/edit
'1' Print/edit below barcode
* The default value of n is '0'.
*['2'≦n≦'4']
* ['01'≦n1n2≦'70']
* ['0'≦n≦'1']
23) Barcode modification total setting < GS X n1 n2 n3 n4 >
* ['0'≦n1≦'1']
Code: [1D]h [58]h + n1 +n2 + n3 + n4
* ['2'≦n2≦'4']
Totally sets the modification of barcode for print/edit
* ['01'≦n3n4≦'70']
* n1 is the same with the parameter of “HRI character print/edit setting”, n2 is the same
with parameter of “Barcode width size setting” and n3n4 the same with parameter of
“Barcode height setting”.
24) Black mark position margin setting < ESC b n1 n2 n3 >
Code: [1B]h + [62]h + n1+ n2+ n3
*[`000`≦n1n2n3≦`999’]
Set the margin from paper perforation to blackmark position by unit of dot (0.125mm/dot).
* The margin quantity that can be set is n1n2n3×0.123(mm)
*Setting function is effective until it is reset or software are downloaded.
(Setting function is not cleared even when it is switched off/on or printer is initialized.)
*The default value of n1n2n3 is '255'.
25) Send printer status < ESC v>
Code : [1B]h + [76]h + n
For the detail, please refer to [Send printer status] of lime mode.
26) Firmware download < GS d Dn>
Code : [1D]h + [64]h + Dn
For the detail, please refer to [Firmware download] of line mode.
44
27) Line mode selection < ESC S>
Code [1B]h + [53]h + n
Switched between the line mode and page mode.
*Clear the data in the page buffer.
*Clear the each setting and defined line mode.
(Except NV bit image pattern, Black mark position margin setting)
*The default value is ‘page mode’
45
6. Character code table
6.1 Overseas code table
(International character set: U.S.A)
*[SP] indicates "space".
*Printer operation cannot be guaranteed if the blank control code (codes below [1F]h) is
transmitted to printer.
*This code table is for simplified symbols and does not present actual print result. There may be
a different case between code table and print result.
46
6.2 International character code table
*This code table is for simplified symbols and does not present actual print result. There may be
a different case between code table and print result.
47