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.
Please use both hand to holding the printer.
13.
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 in the print head, 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.
① Interface (Factory setting)
R: Serial (RS232C)
U: USB (V2.0 FULL SPEED)
D: Both Serial (RS232C) and USB (V.2.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) High quality of printing
5) Either serial or USB interface are available.
6) Various 1-D barcode symbols are available.
7) Various kinds of application are available.
8) Windows drivers (Windows95/98/NT4.0/2000/XP) are available.
9) Easy to write/rewrite F/W by using flash memory. Also, 3 patterns of registration are
1.3 Configuration (Under review)
The printer consists of the following components.
No. Description Specification Part No. Q’ty
1 Printer unit NP-211-* - 1
2 Thermal Paper TF50KS-E2DW58xØ 30(Inner Ø12) 24-X129 1
3
Jack socket ※1
※1 It is attached in R type and D type. Jack socket of the serial connector is for an inch screw.
Please use the attached M2.6 socket if necessary.
Options
17L-003A3 (M2.6 x 0.45) 06-F102 2
No. Description Specification Part No. Q’ty
1 Near empty sensor Factory option - (1)
2 AC adaptor 100V 91ADJ 18-R035 (1)
3 AC adaptor 120V 91ADU 18-R036 (1)
4 AC adaptor 230V 91ADE 18-R037 (1)
5 AC code set JPN 1.5 m 30-353A (1)
6 AC code set UL (3P) 1.5 m 30-354A (1)
7 AC code set EU (Flat 2P) 1.5 m 30-355A (1)
5. Print speed (Max.) Max.50 mm / sec
Condition Head temp. more than 35 ℃/ 64 dots
Except for communication time
6. Print digits Font A (12×24) 32 digits Font B (9×17) 42 digits
Kanji (24 x 24) 16digits
7. Space between Adjustable by command setting
characters (Default figures)
Font A 0 mm
Font B 0 mm
Kanji 0 mm
8. 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)
International character (Half size)
Printing average of 25% Max. Approx. ** A
Printing average of 100% Max. 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.
*3: For preventing from static electric discharge, make sure to connect FG wire.
2.4 Reliability
1) Head life
Pulse : More than 100 million pulses (with 25% rated energy )
Wear distance : More than 50 km
(with recommended paper, normal temp. humidity)
2) Operation environment : Temperature 5 – 45℃, no condensation
Humidity 35 - 85%RH
3) Storage environment : Temperature -10 – 60℃
Humidity 35 - 90%RH
4) Safety regulation
CE marking (To be certified)
UL60950-1 (To be certified)
5) EMC
EMI : EN55022 (To be certified)
EMS : EN55024 (To be certified)
VCCI : Class A (To be certified)
FCC : Class A (To be certified)
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)
Mark = 1
Space = 0
6) Reception control (DTR signal)
Mark = Impossible to receive the data
Space = Possible to receive the data
7) Transmission control (CTS signal)
Mark = Impossible to transmit the data
Space = Possible to transmit the data
8)Transmission control (TD signal)
<< DC1 >> [11] h code, XON :Possible to receive the data
<< DC3 >> [13] h code, XOFF:Impossible to receive the data
Printer side adaptor jack:MOJ-D14(Iizuka electronic)equivalent Printer side adaptor plug:PJ-2(Sato Parts)equivalent
Pin No. Signal In/OutputFunction Remark
+ VH Input PowerDC+8V - 13V
- GND
-
PowerGND
※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 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.
2)USB data Signal Input Connector (U type, D type) Printer side connector:Mini-B 5P TCX0101-110100(Hosiden) or equivalent Mating connector:Mini-B 5Por equivalent
Pin No. Signal In/Output Function Remark
1 VBUS Input Power line Non-twist power supply line
2 D- In/Output Data line Twist pair signal line
3 D+ In/Output Data line Twist pair signal line
4 N.C
5 GND
Shell Shield
-
-
-
GND Non-twist power supply line
FG Frame GND
※Use USB cable which conforms to the standard (FULL SPEED)
3)Serial data signal input connecter (R type, D type)
Printer side connecter: JEC-9S (JST) equivalent
Mating connecter: JEC-9P (JST) equivalent
Pin No. Signal In/Output Function Remark
2 RXD Input Serial receive data
3 TXD Output Serial transmit 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
S1-1 Interface Serial USB O N OFF OFF
S1-2 OFF OFF OFF
S1-3
Baud rate
Refer to the following
table
OFF OFF OFF
S1-4 Parity check Yes No OFF OFF OFF
S1-5 Parity bit Odd Even OFF OFF OFF
S1-6 Data bit 7 bit 8 bit OFF OFF OFF
S1-7 Flow control XON/XOFF DTR/DSROFF OFF OFF
S1-8 Reserved OFF OFF OFF
Baud rate
9600bps 19200bps 38400bps 115200bps
S1-2 OFF OFF O N O N
S1-3 OFF O N OFF O N
4.1.2 Memory switch S2
Function O N OFF
Factory setting
R-type
U-type D-type
S2-1 Character set Overseas Domestic OFF OFF OFF
S2-2 Japanese Kanji Shift JIS JIS OFF OFF OFF
S2-3 Reserved OFF OFF OFF
S2-4 Print density Thick Standard OFF OFF OFF
S2-5 HEX DUMP
HEX
DUMP
Normal OFF OFF OFF
S2-6 Not defined OFF OFF OFF
S2-7 Not defined OFF OFF OFF
S2-8 Not defied OFF OFF OFF
4.1.3 Rewriting Flash ROM
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.
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 slowly, then release the feed and enrty switch.
4.1.4Setting 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 Head up lever: Head down Feed switch: ON (press) Entry swich: ON (press) Then turn the power on, it print "** MEMORY SW SETTING MODE **". This is the
setting mode. You may release the Feed and Entry switch.
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.
・Press Feed switch when the LED is on, memory switch setting is on, and the result will
be printed.
・Press Feed switch when the LED is off, memory switch setting is off, and the result will
be printed.
Please continue such setting 16 times to complete all the settings.
If you would like to cancel the setting in the middle, please head up and press the feed
switch once, then head down.
If you change the setting when head up state, such change is not effective.
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
g) Head wide and head rank (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.3 Operation panel
Operation switch is attached at the side of the printer.
1)PO (green) [Power lamp]
It is on when power is supplied to printer.
2)ALM(red) [Alarm lamp] It will be on or flash when printer is in an error status.
I will be flash/on/ off when rewriting to the Flash ROM
3)ENTRY [Setting switch] It is the switch when change the setting of memory switch.
It is used when rewriting to the Flash ROM.
4)FEED [Feed switch]
It is a feed switch for paper feed.
It is used when the memory switch setting mode, memory switch setting,
rewriting to the Flash memory mode set, and self print.
Comm. 232C Comm. error- - Align comm.condition
error Parity
Overrun
Flaming Data “?” print
Head up Head up 1bit 1 On Head up lever down
Paper end No paper 2bit 1 On Load paper
Head temp
Over 80°C
high
3bit 1 Flash Return normal
with 60°C
Cutter cover Cutter cover open 5bit 1 Flash Cutter cover close
open
When the above errors are detected except transmission error and paper near 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”.
ALM pattern Printer status
1
0
1
0
1
0
0
1
0
0.2sec
0.2sec 1.0sec
0.1sec
2.2sec
0.1secc
2.2sec
Normal
Possible to print
Paper out
Head up
F/W rewrite mode
Head temp. high (over 80 ℃) 1
Head connection error
Cutter cover error
2) Return to normal status from error statuses
Remove causes of error statuses and turn the power on again or input the /INIT signal to
return to normal. When this process is activated, at the time of power switch turned off, the
printer will be initialized, so that settings are required again.
If data remains in the buffer, attention should be paid
4.5 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.
If you insert paper to the printer mechanism, paper will be automatically loaded. Please make sure
to insert the paper propaerly so the sensor will detect the paper.
1 HT Horizontal tab 17
2 CR Carriage return 17
3 LF Print and line feed 17
4 FF Page feed 17
5 ESC C n Page length set for n lines 17
6 ESC SP n Character right space set 17
7 ESC ! n Print mode overall set 18
8 ESC % n Down load character set/reset 18
9 ESC & s n m a Dn Down load character definition 18
10 ESC * m n1 n2 Dn Bit image mode set 21
11 ESC – n Underline set/rest 23
12 ESC 2 1/6 inches line feed set 23
13 ESC 3 n Smallest line feed pitch set 23
14 ESC @ Initialize printer 23
15 ESC D n1 n2 --- NUL Set horizontal tab position 23
16 ESC E n Bold print set/reset 24
17 ESC G n Double strike print set/reset 24
18 ESC J n Print and smallest pitch line feed 24
19 ESC R n Select international character 24
20 ESC c 5 n Feed switch enable/disable 25
21 ESC d n Print and n line feed 25
22 ESC t n Select character code table 25
23 ESC v Send printer status 25
24 ESC { n Inverted character set/reset 26
25 ESC V n
26 ESC $ n1 n2 Absolute position set 26
27
ESC \ n1 n2
28 GS k n Dn NUL Barcode print 27
29 GS w n Barcode width select 27
30 GS h n Barcode height select 27
31 GS H n HRI character print position select 27
32 GS f n HRI character style select 28
33 GS * n1 n2 Dn Download bit image define 28
34 GS / m Download bit image print 29
35 ESC = n Data input control 29
36 ESC a n Position align 29
37 GS T n Register Fixed bit image 30
38 GS P n Print Fixed bit image 30
39 GS d Dn FirmwareDownload 30
40 DC1 Software reset 30
41 GS ~ n Print density set 30
42 FS ! n Japanese Kanji overall print mode setting 31
43 FS & Japanese Kanji mode setting 31
44 FS – n Japanese Kanji underline set / reset 31
45 FS . Japanese Kanji mode reset 31
46 FS C n Japanese Kanji code select 32
47 FS S n1 n2 Japanese Kanji space setting 32
48 FS W n Japanese Kanji Double height and width set
/ reset
49 ESC s n Sending the printer information 32
50 GS : Macro definition, start and end33
51
GS ^ n1 n2 n3
52 GS B n
53 ESC b n1 n2 n3 Dn Raster bit image 34
54 FS 2 a1 a2 Dn Definition additional character 35
55 ESC B n Back feed 36
Macro execution 33
Black and white reverse print set / reset
32
33
5.2 Printer driver
Please apply the driver stated below for using NP-211 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 for USB, Version 1.00
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) in font A.
* If the next tab position is not set, this command is ignored.
2) Carriage return : << CR >>
Code : [0D] h
This command is ignored.
3) Line feed : << LF >>
Code : [0A] h
Prints data stored in the input buffer and executes line feed according to data
of feed pitch.
4) Page feed : << FF >>
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.
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”.
* Only Bold is effective in Kanji mode.
* Different sizes of character mixed such as double width and normal size can be printed.
* The default value of “n” is [00] h.
8) Download characters set/reset : << ESC % n >>
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 >>
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).
* “s” indicates a number of bytes in a vertical direction and “a” is a number of dots in
horizontal direction.
* “n” indicates the start character code, and “m” means the end character code. If only 1
character should be defined, then n = m.
* Definable characters are from <20>h to <7E>h in ASCII code (95 characters).
* “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.
* Once a download character is defined, it remains valid until the download character is
redefined, printer is initialized, or the power is turned off.
* Only area specified will be reset.
Code: [1B] h + [2A] h + m + n1 + n2 + Dn *[m = please refer to table below] h
* [00≤n1≤FF] h
* [00≤n2≤01] 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 as 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.
* 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
* “n” indicates the digits number from the left. In this case, n = tab position - 1.
* 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.
* Maximum number of tab positions is 32. If setting exceeds 32, then
the exceeded values are neglected.
* << ESC D NUL >> clears all tab positions being set. After the tab is cleared,
horizontal tab will be ignored.
* 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
* Print result may be deformed in case black and white reverse at bold print.
* Bold print and double strike results in the same on this printer.
* The default value of “n” is [00]h.
17) Double strike set/reset :<< ESC G n >>
Code : [1B] h + [47] h + n * [00≤n≤FF] h
Sets and resets the double strike function
* “n” is only valid for LSB (b0)
* Control by “n” is explained as following.
b0 Description
0 Resets double strike
1 Sets double strike
* Double strike and bold print result in the same on this printer.
* The default value of “n” is [00] h.
18) Print and smallest pitch line feed :<< ESC J n >>
Code : [1B] h + [4A] h + n * [00≤n≤FF] h
Prints the data in the print line buffer and feeds the paper by n/203rd of an inch.
* The height of character for a line is always sent by line feed. If the value of height is set
by “n” below the height of character, the same space with character height is sent by
line feed.
* Beginning of a line is a print start position.
19) International character select :<< ESC R n >>
Code : [1B] h + [52] h + n * [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) FEED 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≤01] h
* “n” value has following meaning.
n(Hex) character code table
00 Overseas character code table
01 Domestic character code table
* The default value of “n” is set with memory switch (S2-1).
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.
* 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.
bit Functions
0 1
Value
0 Reserved
1 platen open normal head open
2 paper end paper present no paper
3 head temp. abnormal normal Temp. abnormal
4 Undefined
5 Cutter cover open normal Cutter cover open
6 Undefined
7 Undefined
* 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≤01] h
Print start position is assigned by dots in 1/203rd of inch from the beginning of line.
* Divide the value of dot by 256, place quotient to n2, and remainder to n1.
* The print start position is n1 + n2 x 256 from top of the line.
* Setting which exceeds end of line is ignored.
* If the command is received in the middle of line, the 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
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
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).
31) Select of HRI character print position :<< GS H n >>
Code : [1D] h + [48] h +n * [00≤n≤03] h
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
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 * [01≤n1≤FF] h
* [01≤n2≤30] h
* [n1 x n2≤51F] h 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.
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) Position align :<< ESC a n >>
Code : [1B] h + [61] h + n * [00≤n≤02] h
Aligns all data to be printed on the assigned position in a line.
(Fixed bit image is removed.)
* “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.
37) Register Fixed bit image : << GS T n >>
Code : [1D] h + [54] h + n
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 10cm length of bit image print data can be
registered. The bit image print data exceeding the maximum length is neglected.
* The registered data is not erased when the power is set on or off or the printer is
initialized.
* “n” has a following meanings.
n (hex) Function
00 Start of pattern 0 registration
01 Start of pattern 1 registration
02 Start of pattern 2 registration
FF End of registration
* When registrations started in the middle of a line, whole line is registered.
* When registration ended in the middle of a line, whole line is not registered.
* Following is a command sequence of pattern 0 registration.
GS T [00] h + (bit image data assigned by ESC *) x n lines + GS T [FF] h
38) Print Fixed bit image : << GS P n >>
Code : [1D] h + [50] h + n * [00≤n≤02] h
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”.
39) Firmware download :<< GS d Dn >>
Code : [1D] h + [64] h + Dn
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.
40) Software reset : << DC1 >>
Code : [11] h
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
41) Print density set : << GS ~ n >>
Code : [1D] h + [7E] h + n * [41≤n≤87] h
Sets print density in the range between 65% ~ 135% of the standard value, S2-4 Off.
* “n” ranges from 41h(65%) to 87h(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, S2-4.
* This command has priority over the setting by Memory switch.
* This setting remain unchaged if execute an initialization.
* 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.
43) Japanese Kanji mode setting : << FS & >>
Code : [1C] h + [26] h
Set Japanese Kanji print mode
* It is not effective when selected Shift JIS of Japanese Kanji.
* Default is the reset of Japanese Kanji mode.
44) Japanese Kanji underline set/reset : << FS - n >>
Code : [1C] h + [2D] h + n * [00≤n≤02] h
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.
45) Japanese Kanji mode reset : << FS . >>
Code : [1C] h + [2E] h Reset Japanese Kanji print mode
* It is not effective when selected Shift JIS of Japanese Kanji.
* Default is the reset of Japanese Kanji mode.
46) Japanese Kanji code select : << FS C n >>
Code : [1C] h + [43] h + n * [00≤n≤01] h
Select Japanese Kanji code
“n” has following meanings
n(hex) Code
00 JIS code
01 Shift JIS code
* Default is the setting of S-2-2 in the Memory switch
47) Japanese Kanji space setting : << FS S n1 n2 >>
Code : [1C] h + [53] h + n1 + n2 * [00≤n1≤20] h
* [00≤n2≤20] h Set side space of Japanese Kanji by dot unit
* n1 sets the left space. Default value is 0.
* n2 sets the right space. Default value is 0.
* Width of space will be double when selected double width.
48) Japanese Kanji Double height and width set / reset : << FS W n >>
Code : [1C] h + [57] h + n * [00≤n≤FF] h
Last bit (b0) of “n” is effective.
* Default value of “n” is [00] h.
* Last bit “b0” has following meanings
b0 Function
0 Reset double height and width
1 Set double height and width
49) 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
* This command is effective for serial RS232C interface.
Format sending back from the printer:
[FF] h + n (※1) + ASCII string (※2) ※1 n value defined by the command (=[02] h)
※2 Ended with Null (=[00] h)
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.
51) 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 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 has a following meanings.
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.
52) Black and white reverse print set / reset : << GS B n >>
Code : [1D] h + [42] h+ n* [00≤n≤FF] h
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.
53) Raster bit image : << ESC b n1 n2 n3 Dn >>
Code : [1B] h + [62] h + n1+ n2 + n3+ Dn * [01≤n1≤30] h
* [01≤n2≤FF] h
* [01≤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 [00] h >> ([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 [00] h >> at the very end of the image.
54) Definition of additional characters : << FS 2 a1 a2 Dn >>
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.
55) Back feed : << ESC B n >>
Code : [1B] h + [42] h + n * [00≤n≤FF] h
Feed the paper backward.
* Paper feed amount is specified by n dot line.
* Paper is not fed backward when [00]h is set.
* If this command is used for many times, paper may be jammed. To avoid this problem,
enter only once and feed paper in the forward direction.
* Double strike print is available by using this command.
* Considering the backlash, there may be a gap of printing.
* When data remains in the print line buffer, it first prints data, then back feeds.
6.1 Domestic character code table (International character set: Japan)
HEX
0 1 2 3 4 56789ABC 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 neglected.
* 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
1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
* [SP] indicates "space".
* [CR] is neglected.
* 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
6.3 International character code table
n Character set 23h 24h 40h 5Bh 5Ch 5Dh5Eh 60h 7Bh7Ch 7Dh 7Eh
*"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