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. Please use both hand when you hold the printer.
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.
5. Print speed (Max.) Max. 220 mm / sec
Condition Head temp. more than 35 ℃/ ASCII full print
Except for communication time
※Max. 150 mm/sec for A type
6. Print digits Font A (12×24) 36 digits 48 digits
Font B (9×17) 48 digits 64 digits
Kanji 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×24) 3.00×3.00 mm
2. Character types Japanese JIS C 6226(Full size)
Katakana character set (Half size)
Extended graphics character set(Half size)
Code 858(Half size)
International character(Half size)
Korean KS X 1001:1992(Full size)
Katakana character set(Half size)※ Extended graphics character set(Half size)※ Code 858(Half size)
Chinese GB18030-2000(Half / Full size)
Greek Code Page 1253(Half size)
Polish Code Page 1250(Half size)
Russian Code 1251 (Half size)
Scandinavian Code Page 1252(Half size)
Turkish Code Page 1254(Half size)
2.2 Printing area and cut position
Partial cut remaining tab: approx. 2 mm (P type only)
Cut Position
Cutter to Head
Approx.13±1.0mm
1dot 2dots A dots (Note)
Feed direction
0.125mm
0.125mm
B ±0.2mm
(Note)
C ±1.0mmC ±1.0mmApprox. 3 mm feed will take place by the D mm firmware, so the margin
0
-1
will be 16±1mm.
※ 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.
※ The cut mode (full cut or partial cut) must be set by the factory. No change of cut mode is done by
the command setting.
OptionalAC 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
Power supply Printing average of 25% Printing average of 100 %
NP-266S I 24V Max. approx. 1.91 A Max. approx. 7.64 A
5V Max. approx. 0.16 A Max. approx. 0.17 A
NP-266S II 24V Max. approx. 1.89 A Max. approx. 7.56 A
NP-366S I 24V Max. approx. 2.73 A Max. approx. 10.92 A
5V Max. approx. 0.16 A Max. approx. 0.17 A
NP-366S II 24V Max. approx. 2.75 A Max. approx. 11.00 A
* Paper Feed only : Average approx. 0.50 A
※1
Please use a higher capacity AC adaptor for more than such printing or for the other power supply
prepared by your side.
※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.
Pulse : More than 100 million pulses (Applied 25℃ of rated energy)
Wear distance : More than 100 km
* Normal temp. Normal humidity with recommended paper
1) Power input connecter (Type II )
Printer side connector : TCS7960-532010 (Hosiden)
Mating connector : TCP8927-53-1100, TCP8927-63-1100, TCP8935-53-1100
(Hosiden) Equivalent
Pin No. Signal name Input/Output Function
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) Serial Data signal input connector (Type II / Serial)
Printer side : 17LE23090-027(D4CK) (DDK) or equivalent
Host side : 17JE13090-02(DDK) or equivalent
Pin No. Signal Input/Output Function Remark
1 N.C -
2 TXD Output Serial transmit data
3 RXD Input Serial receving data
4 N.C -
5 GND - Singnal ground
6 N.C -
7 CTS Input Transmit permission signal
8 RTS Output Transmit request signal
9 N.C
3) Data Signal Input Connector (Type II / USB)
Printer side connector: B jack DUSB-BRA42-T11(DDK) or equivalent
Host side Connector: B plug
Pin No. Signal Input / Output Function Remark
1 VBUS Input Power line Non twist power line
2 D- Input and output Data line Twist pair signal line
3 D+ Input and output Data line Twist pait signal line
4 GND - Power line Non twist power 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. 3) Data signal input
Data signal and power input
Connecter on printer: DF11-18DP-2DS (52) Hirose
Proper connecter : DF11-18DS-2C Hirose
Pin No. Signal name Input/Output Function Remarks
1 /RESET Input RESET Input (-)
※1
2 RTS Output Printer busy
3 CTS Input Host busy
4 N.C - N.C.
5 RXD Input Receives data
6 TXD Output Transmitted data
7 GND - Common GND
8 GND - Common GND
9 GND - Common GND
10 GND - Common GND
11 GND - Common GND
12 GND - Common GND
13 +5V Input Circuit power Vcc
14 +5V Input Circuit power Vcc
15 +24V Input Power supply VM for head, cuter, motor
16 +24V Input Power supply VM for head, cuter, motor
17 +24V Input Power supply VM for head, cuter, motor
18 +24V Input Power supply VM for head, cuter, motor
※2
※2
※2
※2
※2
※2
※2
※2
※2
※2
※2
※2
※1. It is reset by “L” pulse input at 50msec (typical). The level is below 0.7V.
/RESET signal input is effective only on Serial Type I.
※2. All pin no.7 -18 to be connected. Please connect thick and short, as large current may flow.
Please take necessary measure to stabilize the power supply by connecting a electrolytic
condenser (approx. 2200μ) or so. Withstand voltage over 35V must be applied.
R type U type
MS1-1 Reserved OFF OFF
MS1-2 Interface USB Serial OFF ON
MS1-3 Partition drive 2 partition Automatic OFF OFF
MS1-4 OFF OFF
MS1-5
Baud rate Refer to the following table
OFF OFF
MS1-6 Parity check YES NO OFF OFF
MS1-7 Parity bit Odd Even OFF OFF
MS1-8 Data bit 7 bit 8 bit OFF OFF
※ MS1-1 always to be OFF.
Baud rate
9600bps 19200bps 38400bps 115200bps
MS1-4 OFF OFF O N O N
MS1-5 OFF O N OFF O N
4.1.2 Memory switch MS2
Function O N OFF
Factory setting
R type
U type
MS2-1 Auto cutter YES NO ON ON
MS2-2 OFF OFF
MS2-3
Character set
Refer to the following
table
OFF OFF
MS2-4 Japanese Kanji Shift JIS JIS OFF OFF
MS2-5 Reserved OFF OFF
MS2-6 Reserved OFF OFF
MS2-7 Near empty YES NO ON ON
MS2-8 Print density select 125% 100% OFF OFF
※ MS2-1must be ON, otherwise autocutter cut papers consecutively.
※ MS2-5 and MS2-6 must be OFF.
Character table select
Japanese Korean Chinese Greek
MS2-2 OFF OFF ON ON
MS2-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 KS X 1001:1992 : Full size
Katakana character set + Extended Graphic character set + Code page 858 : Half size
(KS X 1001:1992 font)
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.
Please do the following procedure to rewrite a program in a Flash ROM. Send the program from
the host, and turn off the powe after confirming the ALM LED turns off completely.
※This is only applicable for Serial interface.
1) Switch operation when rewriting the firmware program
Head up lever: Head up
Feed switch: ON (press) Entry swich: OFF Turn the power on, the ALM LED start flashing slowly, then release the feed switch.
2) Switch operation when rewriting boot program
Head up lever: Head up
Feed switch: ON (press) Entry swich: ON (press)
Turn the power on, the ALM LED start flashing fast, then release the feed and enrty switch.
4.1.4 Setting of Memory switch
For setting or changing Memory switch, first load a roll of paper, then follow the below
procedure for mode setting (1) and switch setting (2).
After completion of the settings, it automatically operate software reset. Please confirm the
setting result by self print.
1)Mode setting Platen: Close Feed switch: ON (press) Entry swich: ON (press) Turn the power on, initialize the print mechanism, then release the Feed and Entry switch.
It print "** MEMORY SW SETTING MODE **". This is the setting mode.
2)Memory switch setting Setting starts from Memory switch S1-1 to S1-8, and from S2-1 to S2-8. After change to the SETTING MODE, the LED start flashing.
・It print the switch number you are setting.
・Press Feed switch, the memory switch setting will be OFF.
・Press Entry switch, the memory switch setting will be ON.
Please continue such setting 16 times to complete all the settings.
※ All setting will not be effective If you turn off the power during the setting.
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) Memory switch setting status
f) Correct function of paper out sensor
2) Start and end of self diagnostic print
Turn on the power while pressing the FEED switch and release the FEED switch after
initializing print mechanism. Self diafnostic print will take place.
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.6 Paper sensor
Paper end sensor equipped in the paper course of the printer mechanism, and it detects paper
end status. It stops printing by error bit ON, when detected the paper end.
The sensor can not detect paper end of the roll with glue. Please load the paper when
detected the paper end.
4.2 Processing error
1) Error detection details
Name Status
Comm. error
Paper near
empty
Platen open Platen open 1 bit 1 On Close the platen
Paper end No paper 2 bit 1 On Load paper
Excessive
Head temp
Cutter error
232C Comm. error
Parity
Overrun
Flaming
Data “?” print
Remaining paper detect
near empty detection
Over approx.80
Cutter error
Not connected
°C
232C
Status
-
0 bit 1
3 bit 1
4 bit 1
PL
status
-
Blink Load paper
Blink Return regular operation
Blink
Adjust comm.condition
at 60
After removing the error,
(Jam etc), turn on power
again or input /RESET
signal
Removal
°C(approx.)
When the above errors are detected (except transmission error and paper empty end error), printer
stops all operation and turn on the error bit of the status. ・It turns ON error bit of the status information.
2) Return to normal status from error statuses
Remove causes of error statuses and turn the power on again or input the /RESET 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, attention should be paid
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 ANK, Kanji or bit images.
4.4 Partition drive
The fixed partition drive (No partition or 2 partitions) or automatic partition drive can be selected
by the memory switch and or the command. It should be selected according to the power supply
capacity and print duty.
1) Partition drive select
Function ON OFF
MS1-3 Partition drive select 2 partitionsAutomatic
※2 partition or automatic partition can be selected by the memory switch by default. No
partition can be selected only by command.
※2 partitions select may decrease print speed.
2) Automatic partition drive
Select automatically 1 partition or 2 partitions by total dots / line.
No partition 2 partitions
NP-266S Less than 248 dots Higher than 249 dots
NP-366S Less than 352 dots Higher than 353 dots
※ Automatic partition drive will change the print speed according to print ratio. Print noise
may occur.
※ The default status is set as selected. Partition setting can be selected by DIP switch or
command. Refer to the command description for the details.
※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
30 h ~ 39 h
81 h ~ FE h
30 h ~ 39 h
Greek No switch (Only Full size)
Polish No switch (Only half size)
1 HT Horizontal tab 20
2 CR Carriage return 20
3 LF Print and line feed 20
4 FF Page feed 20
5 ESC C n Page length set for n lines 20
6 ESC SP n Character right space set 20
7 ESC ! n Print mode overall set 21
ESC % n Download character set/reset 21
■8
ESC & s n m a Dn Download character definition 21
■9
10 ESC * m n1 n2 Dn Bit image mode set 24
11 ESC – n Underline set/rest 26
12 ESC 2 1/6 inches line feed set 26
13 ESC 3 n Smallest line feed pitch set 26
14 ESC @ Initialize printer 26
15 ESC D n1 n2 --- NUL Set horizontal tab position 26
16 ESC E n Bold print set/reset 27
17 ESC G n Double strike print set/reset 27
18 ESC J n Print and smallest pitch line feed 27
ESC R n Select international character 27
■19
20 ESC c 5 n Feed switch enable/disable 28
21 ESC d n Print and n line feed 28
ESC t n Select character code table 28
▲22
23 ESC v Send printer status 29
24 ESC { n Inverted character set/reset 29
25 ESC V n
26 ESC $ n1 n2 Absolute position set 29
27
ESC \ n1 n2
28 GS k n Dn NUL Barcode print 30
29 GS w n Barcode width select 30
30 GS h n Barcode height select 30
31 GS H n HRI character print position select 31
32 GS f n HRI character style select 31
33 GS * n1 n2 Dn Download bit image define 32
34 GS / m Download bit image print 32
35 ESC = n Data input control 33
36 ESC a n Position align 33
37 ESC i Cut 33
38 ESC T n Select character table 33
39 ESC q S E M QR code print 34
40 GS T n Register Fixed bit image 36
41 GS P n Print Fixed bit image 36
42 GS d Dn Download firmware 36
43 DC1 Reset software 36
44 GS % n Partition drive select 37
45 GS ~ n Print density set 37
46 FS ! n Japanese Kanji overall print mode setting 37
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.
th
* The default of horizontal tab position is every 8th character (9
th
digit, 25th digit and 33rd digit, 41st digit) in font A.
17
* Maximum digit position for NP266S is 33
rd
and for NP-366S is 41st.
digit,
* 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.
* Default value for “n” is [42] h.
(Next command)
"n" of line page length can be set by "ESC c n" command.
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.
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, reset signal is input, 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.
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 memory 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.
th
5. Default value is set at every 8 characters of font A (at 9
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.
* Print result may be deformed by Bold setting with Black and white reverse print.
* 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.
* Print result may be deformed by Double strike with Black and white reverse print.
* 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
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.
*
you use this command.
The setting value by this command will not remain, so please set the value every time
* 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 >>
※It is effective when selected Japanese or Korean character font.
Code : [1B] h + [74] h + n * [00≤n≤06] h
Selects character code table.
“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
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.
* Only 1 byte will be sent after confirming the receivable status (SPACE status of CTS
signal) from host.
* It will wait till receivable status when the host can not receive the staus (MARK status of CTS signal).
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.
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
* “n 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.
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.
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.
07 CODE128
* Dn indicates the 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 * [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 [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.
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
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 or reset signal is input,
* 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
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.
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 memory switch setting (MS2-2, MS2-3).
By executing printer initialization, this setting will be returned to value set by memory switch
39) QR code print :<< ESC q S E M >>
Code : [1B] h + [71] h + S + E + M + DATA [+ [2C] h + M + DATA +….] + NUL
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.
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-266S) 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 [00] h + (bit image data assigned by ESC *) x n lines + GS T [FF] h
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.
Code : [1D] h + [25] h + n * [01≤n≤03] h
Description : Selects partition drive.
* “n” indicates the following:
n(HEX) Divide
01 No partition
02 2 fixed partitions
03 automatic partition
* Default value is selected by the memory switch (MS1-3).
* If assigned beyond the specified area, the data is neglected and the select will not
change.
* Automatic partition is as follows:
No partition 2 partitions
NP-266S Less than 248 dotsMore than 249 dots
NP-3366S Less than 352 dotsMore than 353 dots
*If it prints more than 249 dots (NP-366S:353dot) with no partition, the head life will be
shorten.
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 memory switch, MS2-8.
* This command has priority over the setting by memory 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.
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 MS-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.
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, or reset signal is input.
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.
57) Raster bit image :<< ESC b n1 n2 n3 Dn >>
Code : [1B] h + [62] h + n1 + n2 + n3 + Dn * [00≤n1≤36] h : NP-266S
* [00≤n1≤48] h : NP-366S
* [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.
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
*"2120" : Not defined , "2121" : "space"
*This code table indicates simplified symbol and is not print result. There may be a different result between the code ta
ble and print result