17 Error detection Delete presenter error Add Exit sensor information
18 Presenter Delete
18 Partition drive Modified 19 Removal of paper jamDelete
19 Paper holder unit Add 20,35 No paper sensor Delete
20,35 Compulsory eject Delete
21,37 Presenter setting Delete 21 Horizontal tab Add NP-226
22 Horizontal tab Add NP-226 26 Set bit image mode Add NP-226 27 Set Horizontal tab Add NP-226
position 30 Sending printer statusDelete bit 5 37 Register NV bit image Add NP-226 38 Select partition drive Add NP-226
Page Item Change
(Provisional)
13 CN6 autocutter
14 CN8 Operation panel
21 Command table
Description
, interface P, U
Modified ※1
Delet S2-1~
Delete Receive data~
※S1~,※S2-5~ Added
※DeleteCommand~
Approval PIC
2004.05.14
2004.07.09
D-F0390 NP-326 Product specifications Ver.0.02
Read Carefully Before Using the Printer
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.
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 reliability.
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) Electrolyte 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, printer life will be
shorten.
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 of 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.
10. When cooling the printer with a fan, avoid the printer’s paper outlet from locating fan’s air inlet. It
may cause mal-function of printer.
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. The printer’s main structure parts use plated steel. However, rust may be caused to the cut section.
14. In order to prevent excess current, please put elemental device to external 24V power line
(Please refer to the power supply specification for the details), and also put fuse.
15. Please plug off the printer when you do not use the product for a long time. Please also insert
paper between the platen.
16. When paper jam occurred, please make sure to slowly remove the paper to paper exit direction
after head up status.
17. The product is designed to use with general electronic devices (Computer, PC, OA, others). This
is not designed and not guaranteed to use with extremely high quality, high reliability product or
product whose failure may danger human life (Atomic power control device, aerospace aircraft
devices, Transportation devices, Traffic signal devices, Ignition control devices, Medical devices,
other safety equipments: we call “Specific application” thereafter). Users take full responsibility
for using with such specific application.
18. The product uses part that includes GaAS (Gallium arsenide).Please do not break the product,
no chemical splitting ,otherwise it may harm human with such part broken pieces.
D-F0390 NP-326 Product specifications Ver.0.02
Table of Contents
1. Overview
1.1 Overview 1
1.2 Features 1
1.3 Configuration 2
2. Specifications
2.1 Basic specifications 3
2.2 Printing area and cut position 5
2.3 Power supply specifications 6
2.4 Reliability 7
2.5 Dimensions 8
3. Interface specifications
3.1 Parallel interface (Centronics compliant) 10
3.2 Serial interface (RS-232C compliant) 11
3.3 USB interface (V2.0 FULL SPEED compliant) 11
3.4 Connector connections 12
3.5 Connector signal details 12
4. Functions
4.1 Function setting 15
4.2 Processing error 17
4.3 Buffer full print 17
4.4 Partition drive 18
4.5 Select Full size and half size character 18
4.6 Paper holder mounting 19
5. Control commands
5.1 Control command table 20
5.2 Printer driver 22
5.3 Control command details 22
6. Character code table
6.1 Domestic character code table 46
6.2 Overseas character code table 47
6.3 CODE PAGE 858 48
6.4 International character code table 48
6.5 CODE PAGE1250 49
6.6 CODE PAGE1251 50
6.7 CODE PAGE1252 51
6.8 CODE PAGE1253 52
6.9 CODE PAGE1254 53
6.10 KS X 1001:1992 54
6.11 Kanji code 66
D-F0390 NP-326 Product specifications Ver.0.02
1. Overview
1.1 Overview
The printer is categorized as following.
NP – 326 * *
① ② ③
① Paper width (Factory setting)
2: 2 inch (58mm)
3: 3 inch (80mm)
② Cut type (Factory setting)
F: Full cut
P: Partial cut
③ Interface (Factory setting)
R: Serial (RS232C)
P: Parallel (Centronics)
U: USB (V2.0 FULL SPEED)
1.2
Features
This module printer is designed on the basis of our long experience as a printer manufacturer.
Individual unit such as printer mechanism, controller board and auto-cutter is assembled in compact
with our reliable design concept.
Simple integration to the system requiring only power and data supplies, that contributes to the
short development time and improvement of product reliability.
1) Important areas such as paper entrance and auto-cutter guide are designed professionally on
the basis of our long experience as a printer manufacturer.
2) Small, compact and light weight. Easy to integrate into various kinds of system.
3) Short development time.
4) Ultra high speed and quality of printing
5) Either serial, parallel or USB interface are available.
6) Various barcode symbols, 1-D and 2-D (QR code) are available.
7) Various kinds of application are available.
8) Paper cramp function available.
9) User-friendly moving type of roll paper holder with paper end sensor.
10) Windows drivers (Windows95/98/NT4.0/2000/XP) are available.
11) Easy to write/rewrite F/W by using flash memory. Also, 3 patterns of registration are
available with Fixed bit image.
D-F0390 NP-326 Product specifications Ver.0.02
1
1.3 Configuration (Under review)
The printer consists of the following components.
5. Print speed (Max.) *1 Max. 220 mm / sec
Condition Head temp. more than 35 ℃/ ASCII full print
Except for communication time
6. Print digits Font A (12×24) 36 digits (Font A) 48 digits (Font A) Font B (9×17) 48 digits (Font B) 64 digits (Font B)
Kanji (24 x 24) 18 digits 24 digits
7. Line feed pitch 0.125 mm
2 Character 1. Character size
specs. Font A (12×24) 1.50×3.00 mm
Font B (9×17) 1.13×2.13 mm
Kanji(24 x 24) 3.00x3.00mm
2. Character types Japanese JIS C 6226 (Full size)
Katakana character set (Half size)
Extended Graphic character set (Half size)
Code 858 (Half size)
International character (Half size)
Korean KSX1001:1992 (Full size) Katakana character set (Half size) *2
Extended Graphic character set (Half size) *2
Code 858 (Half size)
Chinese GB18030-2000 (Half / Full size)
Greek Code 1253 (Full size)
Polish Code 1250 (Half size)
Russian Code 1251 (Half size)
Scandinavian Code 1252 (Half size)
Turkish Code 1254 (Half size)
10 Weight Net weight approx. ** kg approx. 1 kg
11 Near empty Detection value Approx. Ø22.0 ±1 mm
Condition Paper core is inner Ø 12 and outer Ø 18
Sensor Reflection photo sensor ※1
※1: Printer cannot detect Near empty more than above value (22.0mm) due to reflection photo sensor
used.
D-F0390 NP-326 Product specifications Ver.0.02
4
2.2 Printing area and cut position
Partial cut remaining tab: aprox. 2 mm
Cut Position
Cutter to Head
Approx.13±1.0mm
1dot 2dots A dots (Note1)
Feed direction
0.125mm
0.125mm
B ±0.2mm
(Note2)
C ± 1.0mm4.0±1.0mm Approx. 3 mm feed will took place by the D mm firmware, so the margin
0
-1
will be 16±1mm.
Note2: Please take care not to take the paper very hard after the partial cut, which cause heavy load on
platen and might cause the poor print quality on the head part of next line. To avoid such problem,
please take care by feeding approx. 1 mm at the beginning of print or by take the paper to the direction
to left or right.
Note3: The cut mode (full cut or partial cut) is set by the factory. No change of cut mode is done by the
command setting.
A B C D
NP-226 432 54 2 58
NP-326 576 72 4 80
D-F0390 NP-326 Product specifications Ver.0.02
5
2.3 Power supply specifications (Under review)
1) Power supply input connector
Optional AC adapter will be used for this printer(Power to be supplied from outside)
Connector on printer side :TCS7960-532010 Hosiden or equivalent
Connector on Adapter side :TCP8927-631100 Hosiden or equivalent
2) Power voltage : DC24V±5%
3) Current consumption *1, *2
Standby Approx. **A Approx. **A Approx. **A Approx. **A
Printing average of 25% Approx. **A Approx. **A Approx. **A Approx. **A
Printing average of 100% Approx. **A Approx. **A Approx. **A Approx. **A
*1: A sufficient volume of power supply is required to maintain print quality due to high peak current that
may run according to printing.
*2: If power supply cable is excessively long, the operation may become unstable. Cable should be
made as short as possible. If not available, connect cables near the printer and place an electrolysis
condenser of 2200µ between power supply and ground. Voltage resistance should be higher than 35V.
* For preventing from static electric discharge, make sure to connect FG wire.
No Function
1 +24V
2 GND
3 N.C
Shell FG
1 partition 2 partition 1 partition 2 partition
Connector drawing
1
3
2
NP-226 NP-326
D-F0390 NP-326 Product specifications Ver.0.02
6
2.4 Reliability
1) Head life: Average resistance change rate to head less than 15%, except
defects caused by dust or others
Pulse : More than 100 million pulses (with recommended paper)
Wear distance : More than 100 km (with recommended paper)
2) Cutter life : 500,000 cut
3) Operation environment : Temperature 5 – 45℃, no condensation
Humidity 35-85%RH
4) Storage environment : Temperature -10 - 60℃
Humidity 35-90%RH
5) Safety regulation
CE marking (To be certified)
UL60950-1 (To be certified)
6) EMC
EMI : EN55022 (To be certified)
EMS : EN55024(To be certified)
VCCI : Class A (To be certified)
FCC : Class A (To be certified)
7) USB compliant test (To be certified)
D-F0390 NP-326 Product specifications Ver.0.02
7
2.5 Dimensions
1) NP-226
Power In
PARALL Model
Factory Setting
112±4
Cent 36P
58.5
Paper Width
58.0-1
125±2
58.5
Power In
34
12
Max Dia 83mm
Roll Paper
Factory Setting
USB Model
Type B
Power In
Factory Setting
RS Model
DB9P
Indicater
Push
75
1010
Open Lever
Factory Option
29
Cutting Position
Exit Width
3
(56.2)
103.0±2
Paper Pass
138.3(10)
186.4±2
LF Switch
(22.8)
(10.9)
48.1
D-F0390 NP-326 Product specifications Ver.0.02
8
2) NP-326
Power In
PARALL Model
Factory Setting
122±4
Cent 36P
Paper Width
80.0-1
125±2
Power In
34
12
58.558.5
Roll Paper
Max Dia 83mm
Factory Setting
USB Model
Type B
Power In
Factory Setting
RS Model
DB9P
Indicater
Push
75
Factory Option
Open Lever
1010
29
Cutting Position
Exit Width
3
(56.2)
103.0±2
Paper Pass
138.3(10)
LF Switch
(22.8)
(10.9)
48.1
186.4±2
D-F0390 NP-326 Product specifications Ver.0.02
9
3. Interface specifications
R
3.1 Parallel interface (Centronics compliant)
1) Data input : 8 bit parallel method(DATA 0 – DATA 7)
2) Control signals : /ACK, BUSY, /STB, /ERROR, PE, SLECT
3) Input signal to a printer
DATA 0 – 7 : 8 bit parallel signal(positive logic)
/STB : Signal to read 8 bit data(negative logic)
/LF : Signal to feed paper to print mechanism(negative logic)
4) Output signal from a printer
/ACK: Enquiry signal for 8 bit data. It’s also pulse signal which is output after
BUSY signals (negative logic)
BUSY: Indicate BUSY status of the printer. Inputs new data at LOW status
(positive logic)
/ERROR : This signal becomes LOW when a printer is in the alarm status.
In the LOW status, all control circuits in the printer stops (negative logic)
PE : Outputs when roll paper becomes empty (positive logic)
SLCT : Signal to indicate on-line status (positive logic)
5) Input/Output signal level
Code
Standard value
Min. TYP. Max.
Unit
Input low level VIL - - 0. 8 V
Input high level VIH 3.25 - 5.25 V
Output low level* VOL - - 0.7 V
Output high level VOH 3.25 - - V
3) A word consists of
Start bit : 1bit
Data bit : 7 or 8 bit (user selectable)
Parity bit : odd, even or no parity (user selectable)
Stop bit : more than 1 bit
4) Signal polarity
RS-232C
Mark = Logic “1” (-3V -- -12V)
Space = Logic “0” (+3V -- +12V)
5) Receive data (RD signal)
RS-232C
Mark = 1
Space = 0
6) Reception control (DTR signal)
RS-232C
Mark = 1
Space = 0
3.3 USB interface (V2.0 FULL SPEED compliant)
1) Version : V2.0 FULL SPEED (12Mbps)
2) Port : Upstream port (B jack)
3) Power : Self powered
D-F0390 NP-326 Product specifications Ver.0.02
11
3.4 Connector connections
1) J1 Power input
2) CN2 Connect to printer mechanism (head)
3) CN3 Connect to printer mechanism (motor)
4) CN4 Connect to printer mechanism (sensors)
5) CN5 Data signal input
6) CN6 Connect to autocutter
7) CN7 Connect to auxiliary sensor (paper near empty sensor)
1 VH Input Power DC +24V
2 GND - Power ground
3 N.C -
Shell FG - FG
* A sufficient volume of power supply is required to maintain print quality due to high peak
current that may run according to printing. If power supply cable is excessively long, the
operation may become unstable. Cable should be as short as possible. If not available,
connect cables near the printer and place an electrolysis condenser of 2200µ between
power supply and ground. Voltage resistance should be higher than 35V. Make sure to
connect FG wire to prevent from ESD problems.
2 RXD Input Serial transmit data
3 TXD Output Serial receive data
4 DTR Output Data transmit permit signal Connect to No.7
5 GND - GND for signal
7 DTR Output Data transmit permit signal Connect to No.4
8 CTS Input Transmit permit signal
1, 6, 9 N.C -
3) USB data Signal Input Connector (U type)
Printer side connector: B jack DUSB-BRA42-T11(DDK) or equivalent
Host side Connector: B plug
Pin No. Signal In/OutputFunction Remarks
1 VBUS Input Power line Non-twist power supply line
2 D- In/OuntputData line Twist pair signal line
3 D+ In/OutputData line Twist pair signal line
4 GND - Power line Non-twist power supply line
Shell Shield -
* Use USB cable which conforms to the standard (FULL SPEED) * We do not support the operation by using a cable out of the standard.
1 /STB Input Data read assign signal
2 PD0 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 processing end signal
11 BUSY Output Receive data not ready signal
12 PE Output No paper signal
13 SLECT Output Connection select signal
14 Not fixed
※1
19 GND - Common ground
32 /ERROR Output Control stop signal
36 Not fixed
※1
15-18
20-31 N.C -
33-35
※ 14 and 36 are kept as “HIGH”. Do not connect them.
5) CN6 Auto cutter sensor (control switch), motor
Printer side connector : 5483-04AX (Molex)
Mating connector : 5480-04 (Molex)
Pin No. Signals Input/output Functions
1 M+ Output Motor drive signal
2 M- Output Motor drive signal
3 CSW1 Input HP detect SW output
4 CSW2 - HP detect SW GND
6) CN7 Auxiliary sensor (paper near empty sensor)
Printer side connector: 53047-0310(Molex)
Mating connector: 51021-0300(Molex)
Pin No. Signal name In/Output Functions Remarks
1 LED+ Output Anode of LED
2 PNE Input Collector of At High
phototransistor Paper out
3 SG - Signal ground Cathode or emitter
connect
* Valid when DIP SW S2-7 is on.
* When PNE signal is “High”, PE signal of CN5 outputs. Printing operation is not affected.
For extension
For extension
D-F0390 NP-326 Product specifications Ver.0.02
13
7) CN8 Connect to operation panel
Printer side connector: 53047-0310(Molex)
Mating connector 51021-0300(Molex)
Pin No. Signal name In/Output Functions Remarks
1 /LF Input Paper feed signal input Active at L
2 ALM Output Printer error signal
Output
3 SG - Signal ground
1) Paper feed is executed according to the paper feed pitch set by ESC 2, ESC 3. However, if
there is no paper, line feed is not executed.
2) While paper feed signal is at “L”, set Power on to activate self-diagnostic printing.
3) ALM signal (for operation panel) indicates printer statuses as follows:
A protective resistance is incorporated on the board, a light diode can be located between
2 and 3. 2: anode and cathode.
Display pattern Printer status How to solve the problem
1
0
Normal status
Print (receive) ready
No paper Load the paper 1
0
0
0
0
0.2sec
2.2sec
0.2sec
0.2sec 1.0sec
0.2sec
2.2sec
Head up status Set head down
F/W write mode Set the power on again 1
Presenter in cramp status Pull out the clamped paper
Head temp high (80˚c) Printer returns normal at head temp of 60˚c 1
Wrong head connection Connect head cable properly
Auto-cutter error Remove jammed paper and turn 1
Presenter error power on again
Output in
printer error
D-F0390 NP-326 Product specifications Ver.0.02
14
4. Functions
4.1 Function setting
4.1.1 DIP switch S1
S1-1 Interface 1 Serial Parallel ON OFF OFF
S1-2 Interface 2 USB Serial
S1-3 Select fixed division 2 partitionAutomatic
S1-4 OFF OFF OFF
S1-5
Baud rate
S1-6 Parity check Yes No OFF OFF OFF
S1-7 Parity bit Odd Even OFF OFF OFF
S1-8 Data bit 7 bit 8 bit OFF OFF OFF
※S1-1 is effective when the S2-2 is OFF.
Baud rate
9,600bps19,200bps 38,400bps115,200bps
S1-4 OFF OFF ON ON
S1-5 OFF ON OFF ON
4.1.2 DIP switch S2
S2-1 Auto cutter
S2-2
S2-3
Character set
S2-4 Japanese kanji code Shift JIS JIS OFF OFF OFF
S2-5 Reserved
S2-6 Flash ROM
S2-7 Near empty
S2-8 Print density
Note:
1. When S2-1 OFF and If autocutter is connected, the autocutter activates consecutively
and paper is cut off. It may cause paper jam.
2. For writing ROM, set the DIP switches as stated below and turn the power on
after changing CN8 NO.1 pin LF to “L” position or while pressing the paper feed switch on
the operation panel. After the operation, set the power off.
3. Rewriting Flash ROM boot program: S2-6 ON and S2-2 ON.
4. Rewriting Flash ROM F/W: S2-6 ON and S2-2 OFF.
5. Use S2-6 in OFF position. If set ON to use, the program may be destroyed.
6. Please keep OFF for S2-5.
Function ON OFF
Factory setting
R P U
OFF OFF ON
/Parallel
OFF OFF OFF
partition
drive
Refer to the following
table
Function ON OFF
Yes No
Please refer to the
following table
Rewrite Normal
Yes No
Thick Standard
OFF OFF OFF
Factory setting
R P U
ON ON ON
OFF OFF OFF
OFF OFF OFF
OFF OFF OFF
OFF OFF OFF
ON ON ON
OFF OFF OFF
D-F0390 NP-326 Product specifications Ver.0.02
15
7. Character table select
Japanese Korean Chinese Greek
S2-2 OFF OFF ON ON
S2-3 OFF ON OFF ON
Japanese JIS C 6226 : Full size
Katakana character set + Extended Graphics character set + Code page 858 + International
character : Half size
Korean KSX 1001:1992 : Full size
Katakana character set + Extended Graphic character set + Code page 858 : Half size
Chinese GB18030-2000 : Half / Full size
Greek Code page 1253 : Full size (1 byte code)
Please refer to the select character code table for other language.
4.1.3 Self diagnostic print
1) By performing self-diagnostic print following items are checked.
a) Proper function of control circuitry
b) Proper function of printer mechanism
c) Print quality
d) Control F/W version
e) DIP switch setting status
f) Correct function of paper out sensor
g) Head wide (automatically detected)
2) Start and end of self diagnostic print
Set the power on while pressing the FEED switch and release the FEED switch after the printer
mechanism activates to start self-printing.
The self diagnostic print automatically ends when a preset number of characters are finished
printing. While printing, the printer is in Off-line mode.
4.1.4 No paper sensor
No paper sensor is mounted on the paper path in the printer mechanism.
It detects no paper status of the roll paper. When detecting no paper status, the printer sends
PE signal to the host and stop printing. Pay special attention to the end of roll paper. The end
should not be glued to the core of the roll. If no paper status is detected, replace the roll paper.
D-F0390 NP-326 Product specifications Ver.0.02
16
4.2 Processing error
1) Error detection details
Name Status BUSYPE
Comm.
error
Paper near
empty
Head up
232C Comm. error
Parity
Overrun
Flaming
Data “?” print
Paper remain sense
CN7 sensor
Head up
-
L H H 0bit 1-
L L L 1bit 1On
/ERR
OR
-
-
232C
status
-
PL
status
-
Removal
Align comm.
condition
Load paper
Head up lever
down
Paper end No paper L H L 2bit 1On Load paper
Head temp
high
Over 80°C
Cutter error Cutter jam
Eject sensor
information
Paper at the exit
sensor
L L L 3bit 1Flash
L H L 4bit 1Flash
L L H 6bit 1-
Return normal
with 60°C
Remove jam and
Turn on again
Remove paper
When the above errors are detected except transmission error and paper low end error, printer
stops all operations and outputs error signal.
In the case of serial interface:
Error bit in the status information is set to “ON”.
2) Return to normal status from error statuses
Remove causes of error statuses and turn the power on again 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, 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.
D-F0390 NP-326 Product specifications Ver.0.02
17
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.
NP-226 Less than 248 dots Higher than 249 dots
NP-326 Less than 352 dots Higher than 353 dots
1. Automatic partition drive select will automatically change the print speed according to
print ratio. Print noise may appear.
2. The default value selected by commands will be the fixed partition selected by. The
DIP switch. Refer to the section 5.3.
3. Automatic partition select may decrease print quality.
4.5 Select Full size and half size character
Character How to select
Japanese Command[FS &],[FS .] or Switching Shift JIS code
Korean
Command[FS &]、[FS .]
Please refer to the followings
1 byte code (Half size)2 byte code (Full size) 4 byte code (Full size)
Chinese
st
byte
1
nd
2
byte
rd
byte
3
th
byte
4
00 h ~ 80 h 81 h ~ FE h 81 h ~ FE h
40 h ~ 7E h
80 h ~ FE h
Greek No switch (Only Full size)
Polish No switch (Only half size)
Russian No switch (Only half size)
Scandinavian No switch (Only half size)
Turkish No switch (Only half size)
30 h ~ 39 h
81 h ~ FE h
30 h ~ 39 h
D-F0390 NP-326 Product specifications Ver.0.02
18
4.6 Paper holder mounting (Under review)
D-F0390 NP-326 Product specifications Ver.0.02
19
5. Control commands
5.1 Control command table
Control codes Functions Pages
1 HT Horizontal tab 22
2 CR Carriage return 22
3 LF Print and line feed 22
4 FF Page feed 22
5 ESC C n Page length set for n lines 22
6 ESC SP n Character right space set 22
7 ESC ! n Print mode overall set 23
ESC % n Down load character set/reset 23
■8
ESC & s n m a Dn Down load character definition 23
■9
10 ESC * m n1 n2 Dn Bit image mode set 26
11 ESC – n Underline set/rest 28
12 ESC 2 1/6 inches line feed set 28
13 ESC 3 n Smallest line feed pitch set 28
14 ESC @ Initialize printer 28
15 ESC D n1 n2 --- NUL Set horizontal tab position 28
16 ESC E n Bold print set/reset 29
17 ESC G n Double strike print set/reset 29
18 ESC J n Print and smallest pitch line feed 29
ESC R n Select international character 29
■19
20 ESC c 5 n Feed switch enable/disable 30
21 ESC d n Print and n line feed 30
ESC t n Select character code table 30
▲22
23 ESC v Send printer status 31
24 ESC { n Inverted character set/reset 31
25 ESC V n
26 ESC $ n1 n2 Absolute position set 32
27
ESC \ n1 n2
28 GS k n Dn NUL Barcode print 32
29 GS w n Barcode width select 32
30 GS h n Barcode height select 32
31 GS H n HRI character print position select 33
32 GS f n HRI character style select 33
33 GS * n1 n2 Dn Download bit image define 33
34 GS / m Download bit image print 34
35 ESC = n Data input control 34
36 ESC a n Position align 34
37 ESC i Cut 34
38 ESC T n Select character table 35
39 ESC q S E M QR code print 36
40 GS T n Register Fixed bit image 38
41 GS P n Print Fixed bit image 38
42 GS d Dn Download firmware 38
43 DC1 Reset software 38
44 GS % n Partition drive select 39
45 GS ~ n Print density set 39
46 FS ! n Japanese Kanji overall print mode setting 39
Character 90° clockwise rotation set/reset
31
Relative position set 32
D-F0390 NP-326 Product specifications Ver.0.02
20
Control codes Functions Pages
FS & Japanese Kanji mode setting 40
▲47
48 FS – n Japanese Kanji underline set / reset 40
FS . Japanese Kanji mode reset 40
▲49
FS C n Japanese Kanji code select 40
■50
51 FS S n1 n2 Japanese Kanji space setting 40
52 FS W n Japanese Kanji Double height and width set /
reset
53 ESC s n Sending the printer information 41
54 GS : Macro definition, start and end41
55
GS ^ n1 n2 n3
56 GS B n
57 ESC b n1 n2 n3 Dn Raster bit image 43
FS 2 a1 a2 Dn
■58
Macro define 42
Black/white reverse print set/reset
Definition of additional characters
▲ It is effective when selected Japanese or Korean character
■ It is effective when selected Japanese character
41
42
44
D-F0390 NP-326 Product specifications Ver.0.02
21
5.2 Printer driver
Please apply the driver stated below for using NP-325R under Windows environment. Refer to the
User’s Manual for a driver.
1) Windows 95/98: NII printer driver Windows 95/98, Version 1.00
2) Windows NT4.0: NII printer driver Windows NT4.0, Version 1.00
3) Windows 2000/XP: NII printer driver Windows 2000/XP, Version 1.00
4) Windows 2000/XP: NII printer driver Windows 2000/XP USB, Version 1.00
5.3 Control 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.
rd
* Maximum digit position for NP226 is 33
and for NP-326 is 41st.
* 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 >>
Code : [0C] 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.
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 + [20] 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.
D-F0390 NP-326 Product specifications Ver.0.02
22
7) Overall print mode setting: << ESC ! n >>
Code : [1B] h + [21] h + n * [00≤n≤FF] h
Sets print mode. “n” has following meanings
Bit Function
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.
* Font B is only effective when select Japanese mode AND select overseas code, domestic code
or code 858 with character code table select command.
8) Download characters set/reset : << ESC % n >>
* Effective only when select Japanese mode
Code : [1B] h + [25] h + n * [00≤n≤FF]h
Setting or resetting the characters to be downloaded.
* Only LSB (b0) is valid for “n” value. LSB (b0) has the following meanings.
9) Definition of download character :<< ESC & s n m a Dn >>
* Effective only when select Japanese mode
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, or the power is turned off.
10) Bit image mode set: << ESC * m n1 n2 Dn >>
Code: [1B] h + [2A] h + m + n1 + n2 + Dn *[m = indicated 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.
* Bit image data (Dn) interprets bit 1 as print and bit 0 as not print.
* Bit image mode is indicated below.
Vertical directionHorizontal direction
m (hex) Bit image mode
00
01
20
21,23
8 dots
single density
8 dots
double density
24 dots
single density
24 dots
double density
Dot
quantity
Dot
density
Dot
density
8 67DPI101DPI216 288
8 67DPI203DPI432 576
24 203DPI101DPI216 288
24 203DPI203DPI432 576
Maximum dot number
NP-226 NP-326
D-F0390 NP-326 Product specifications Ver.0.02
26
< Relationship between bit image data and printed dots >
8 dots bit image
MSB
D1 D2 D3
D1 D2 D3
LSB
DATA
=1dot
single double
24 dots bit image
D1 D4 D7 MSB
D1 D2 D3 D7 D8 D9
D4
D5 D6
D2
D5
D8
D3
D6 D9
LSB
DATA
=1dot
single double
D-F0390 NP-326 Product specifications Ver.0.02
27
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
rd
digit).(NP-226: till 33
digit)
th, 17th, 25th, 33rd and 41st
D-F0390 NP-326 Product specifications Ver.0.02
28
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 >>
Effective when select Japanese mode AND select overseas code, domestic code or code
858 with character code table select command.
Code : [1B] h + [52] h + n * [00≤n≤0A] h
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.
D-F0390 NP-326 Product specifications Ver.0.02
29
20) Panel switch enable/disable:<< ESC c 5 n >>
Code : [1B] h + [63] h + [35] h + n * [00≤n≤FF] h
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.
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≤06]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
02 Code Page 858
03 Code Page 1250
04 Code Page 1251
05 Code Page 1252
06 Code Page 1254
* The default value of “n” is [01]h.
D-F0390 NP-326 Product specifications Ver.0.02
30
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.
bit Functions
0 1
Value
0 paper near empty paper present near empty
1 platen open normal head open
2 paper end paper present no paper
3 head temp. abnormal normal Temp. high
4 cutter problem normal cutter problem
5 Undefined
paper remove sensor
6
information
no paper paper present
7 not defined
* Make sure that command is issued before transmission of print data.
(commands are stored in the input buffer and executed sequentially)
* Reception is available except in the buffer full status.
* The commands above are valid only for serial interface.
* 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.
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
* “n2 is only valid for the LSB(b0)
* LSB (b0) has the following meaning
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.
D-F0390 NP-326 Product specifications Ver.0.02
31
26) Absolute position set :<< ESC $ n1 n2>>
Code : [1B] h + [24] h +n1 +n2 * [00≤n1≤FF] h
* [00≤n2≤03] 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 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≤FF] 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
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.
07 CODE128
* When there is data in the buffer this command is neglected.
* 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 * [02≤n≤04] h
Description : Selects width of barcode
* Default value of “n” is [03]h.
30) Barcode height select :<< GS h n >>
Code : [1D] h + [68] h + n * [01≤n≤FF] h
Description : Selects barcode height
* “n” shows the vertical dot number
* Default value of “n” is 162([A2] h).
D-F0390 NP-326 Product specifications Ver.0.02
32
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.
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 n2 Dn >>
Code : [1D] h + [2A] h + n1 + n2 + Dn * [00≤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 .
* 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
D-F0390 NP-326 Product specifications Ver.0.02
33
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”.
* 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.
35) 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.
Bit Function
Values
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 [01] h.
36) 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.
37) Cut :<< ESC i >>
Code : [1B] h + [69] h
* Cut the paper.
* Effective at the head of a line
* Feeds paper by 3mm after paper cut to prevent from paper jam.
D-F0390 NP-326 Product specifications Ver.0.02
34
38) Select character code table :<<ESC T n>>
Code: [1B] h + [54] h + n * [00≤n≤03] h
* Select the character code table.
* n means as follows.
n(Hex) Font table
00 Japanese
01 Chinese
02 Korean
03 Greek
Default of n value is as per DIP switch setting (S2-2, S2-3).
By executing printer initialization, this setting will be returned to value set by DIP switch
(S2-2, S2-3).
D-F0390 NP-326 Product specifications Ver.0.02
35
39) QR code print :<< ESC q S E M >>
ESC + ”q” + S + E + M + DATA [+ ”,” + M + DATA +……] + NUL
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 M 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.
D-F0390 NP-326 Product specifications Ver.0.02
36
Following table shows the number of characters and input data capacity for the model 1 in version 1 to
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”.
40) Fixed 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 (15 cm for NP-226) length of bit image print
data can be registered; up to the maximum of 11cm for 3” model and up to 7cm for 4”
model can also 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
41) Fixed 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”.
42) Firmware download :<< GS d Dn >>
Code : [1D] h + [64] h + Dn
Description : Download printer firmware in hexadecimal code and rewrite firmware
according to the outcome.
* Dn is firmware’s hex code which complies with INTELLEX Hex format.
43) 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.
Above means timing is different between command receive and execution
* When the cutter is in a movement, soft reset is executed after finishing cutting.
299
225
189
127
D-F0390 NP-326 Product specifications Ver.0.02
38
44) 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.
* 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-226 Less than 248 dotsMore than 249 dots
NP-326 Less than 352 dotsMore than 353 dots
45) Print density set :<< GS ~ n >>
Code : [1D] h + [7E] h + n * [41≤n≤87] h
Description : Sets print density in the range between 65% ~ 135% of the standard value,
S2-8 Off.
* “n” ranges from [41] h (65%) to [87] h (135%). However, set it for actual use in the
range [41] h (65%) ≤ n ≤ [82] h (130%).
* At the initial status, 100% or 125% can be selected by the DIP switch, S2-8.
* This command has priority over the setting by DIP switch.
46) Japanese Kanji overall print mode setting: << FS ! n >>
Code : [1C] h + [21] h + n * [00≤n≤FF] h
Description : Set Japanese Kanji overall print mode
“n” has following meanings
* 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.
D-F0390 NP-326 Product specifications Ver.0.02
39
47) Japanese Kanji mode setting: <<FS &>>
* Selects either Japan code table or non-Japan code table.
Code : [1C] h + [26] h
Description : Set Japanese Kanji print mode
* It is not effective when selected Shift JIS of Japanese Kanji.
* Default is the reset of Japanese Kanji mode.
48) Japanese Kanji underline set/reset: << FS - n >>
Code : [1C] h + [2D] h + n * [00≤n≤02] h
Description : Set / Rest underline of Japanese Kanji
“n” has following meanings
n(hex) Function
00 Reset underline of Japanese Kanji
01 Set 1 dot underline of Japanese Kanji
02 Set 2 dots underline of Japanese Kanji
* All of the printed characters will be underlined except for the 90° rotated characters and
spaces created by horizontal tab.
* This command is effective only when select Japanese Kanji mode.
* The default value of “n” is [00]h.
49) Japanese Kanji mode reset: << FS . >>
* Selects either Japan code table or non-Japan code table.
Code : [1C] h + [2E] h Description : Reset Japanese Kanji print mode
* It is not effective when selected Shift JIS of Japanese Kanji.
* Default is the reset of Japanese Kanji mode.
50) Japanese Kanji code select: << FS C n >>
* Effective only when select Japanese mode
Code : [1C] h + [43] h + n * [00≤n≤01] h
Description : Select Japanese Kanji code
* “n” has following meanings
n(hex) Code
00 JIS code
01 Shift JIS code
* Default is the set S-2-4 in the Dip switch
51) Japanese Kanji space setting: << FS S n1 n2 >>
Code : [1C] h + [53] h + n1 + n2 * [00≤n1≤20] h
* [00≤n2≤20] h Description : Set side space of Japanese Kanji by dot unit
* n1 sets the left space. Default value is [00] h.
* n2 sets the right space. Default value is [00] h.
* Width of space will be double when selected double width.
D-F0390 NP-326 Product specifications Ver.0.02
40
52) Japanese Kanji Double height and width set / reset: << FS W n >>
Code : [1C] h + [57] h + n * [00≤n≤FF] h
Description : Set / reset double height and width of Japanese Kanji character
Last bit (b0) of “n” is effective.
Default value of “n” is [00] h.
Last bit “b0” has following meanings
b0 Function
0 Rest double height and width
1 Reset double height and width
53) Sending the printer information: << ESC s n >>
Code : [1B] h + [73] h + n * [n=02] h
Sending the printer information
n has following meanings
n(hex) Function
02 Printer model information
Format sending back from the printer:
FFh + n (※1) + ASCII string (※2l) ※1 n value defined by the command (=[02] h)
※2 Ended with Null (=[00] h)
54) 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.
D-F0390 NP-326 Product specifications Ver.0.02
41
55) Macro execution :<< GS ^ n1 n2 n3 >>
Code : [1D] h + [5E] h + n1 + n2 + n3 * [00≤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(hex) 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 = [01] h, line feed by FEED switch is disabled.
56) Black and white reverse print set and reset :<< GS B n >>
Code : [1D] h + [42] h+ n* [00≤n≤FF] h
Function : Sets and resets black and white reverse print.
* “n” is available only for the least significant bit.
* The least significant bit controls as follows:
b0 Function
0 Resets black-white reverse printing
1 Sets black-white reverse 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.
D-F0390 NP-326 Product specifications Ver.0.02
42
57) Raster bit image :<< ESC b n1 n2 n3 Dn >>
Code : [1B] h + [62] h + n1 + n2 + n3 + Dn * [00≤n1≤36] h : NP-226
* [00≤n1≤36] h : NP-326
* [00≤n2≤FF] h
* [00≤n3≤FF] h Data is printed in a raster bit image.
・Dn is a raster bit image data. ・The printer prints raster bit image of width n1 byte by height n2+(256*n3) dot lines.・The total byte of the requested raster bit image data (Dn) is n1*(n2+(256*n3)). ・Raster bit image data (Dn) exceeding the printing field will be disregarded.
・Raster bit image data (Dn) interprets bit”1” as print and bit”0” as not print.
・Relation between raster bit image data (Dn) and printed dots are as follows.
n1 byte
D1 D2 Dn1
Dn1+1 Dn1+2 Dn1*2
Dn1*2+1 Dn1*2+2 Dn1*3
n2+(256*n3)dots
Dn1*(n2+(256*n3))
MSB LSB
・Please add the command of 《ESC J 00h》( [1B] h + [4A] h + [00] h) at the end. ・If you send this command consecutively, please add 《ESC J n》(n≠ [ 00] h) at the end of
each image, and add the《ESC J 00h》at the very end of the image.
D-F0390 NP-326 Product specifications Ver.0.02
43
58) Definition of additional characters :<< FS 2 a1 a2 Dn >>
* Effecive only when the Japanese font is selected
Code : [1C] h + [32] h + a1 + a2 + Dn JIS Code * [a1=77] h
* [21≤a2≤7E] h
Shift JIS Code * [a1=EC] h
* [40≤a2≤7E , 80≦a2≦9E] h
Definition of additional Kanji characters
・Definition of up to 94 characters available. ・Dn is the data to be defined. Data will be 3 byte(vertical) x 24 dot(horizontal) =72 byte. ・The default status is “space” ・Once defined by command, it will be effective until execution of 【Soft reset】,power off.
6.1 Domestic character code table (International character set: Japan)
HEX
0 1 2 3 456789ABC D E F
HEX BIN
0
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
* [SP] indicates "space".
* [CR] is ignored.
* Printer operation cannot be guaranteed if the blank control code (codes below [1F]h) is transmitted to
printer.
*This code table indicates simplified symbol and is not print result. There may be a different result
between the code table and print result.
6.2 Overseas character code table (International character set: U.S.A)
HEX
HEX BIN
0
0000
1
0001
2
0010
3
0011
4
0100
5
0101
6
0110
7
0111
8
1000
9
1001
A
1010
B
1011
C
1100
D
1101
E
1110
F
1111
* [SP] indicates "space".
* [CR] is ignored.
* Printer operation cannot be guaranteed if the blank control code (codes below [1F]h) is transmitted to
printer.
* This code table indicates simplified symbol and is not print result. There may be a different result
between the code table and print resul
* [SP] indicates "space".
* [CR] is ignored.
* Printer operation cannot be guaranteed if the blank control code (codes below [1F]h) is transmitted to
printer.
* This code table indicates simplified symbol and is not print result. There may be a different result
between the code table and print result
6.4 International character code table
n Character set 23h 24h 40h 5Bh 5Ch 5Dh 5Eh 60h 7Bh 7Ch 7Dh 7Eh
00h U.S.A
01h France
02h Germany
03h U.K.
04h Denmark1
05h Sweden
06h Italy
07h Spain
08h Japan
09h Norway
0Ah Denmark2
*This code table indicates simplified symbol and is not print result. There may be a different result
between the code table and print result