Seiko Instruments Printer DPU 30 User Guide

DPU-30  
THERMAL PRINTER  
TECHNICAL REFERENCE  
U00084936302  
Seiko Instruments Inc.  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Introduction  
DPU-30-0B-E is a compact printer unit which is connected to a computer or a host system via a  
parallel port (Centronics interface) or serial port (RS-232C) and prints the data input through such  
interface in the direct thermal printing.  
Features of this printer  
Provides the High-speed and noiseless print according to thermal printing system.  
Because of the direct thermal printing, this printer is very quiet while printing.  
Prints both 16×16 and 24×24 dot size characters clearly.  
Prints the Kanji characters (JIS level 1 non-kanji, level 1 and 2).  
Prints barcodes using the barcode print function. (UPC-E, JAN13, JAN8, CODE39, ITF,  
CODABAR, and CODE128).  
Test patterns can be printed.  
Prints the test pattern and dump mode characters.  
Print the various size characters such as enlargement character.  
Standard size character  
Kanji size character  
Enlargement characters (64 times characters size max)  
Defines the line spacing and character spacing arbitrarily.  
Prints the various size characters such as enlargement character.  
Prints the graphic using the Bitimage.  
Registers and prints any font using the downloaded character function and user-defined  
character function.  
Feeds paper forward or backward using the paper feed functions.  
Characters to be printed can be inverted from black-on-white to white-on black, or vice versa.  
Characters to be printed can be flipped from top to bottom.  
Provides various functions including the reverse printing, flip or ruler line.  
Changes the print density using print density command.  
ESC/POS compliant command system is adopted.  
Structure of this printer  
This printer is compact and thin so that it takes less space than the others.  
Its design is simple so that it can be used with any type of devices.  
Functions  
The out-of-paper detection sensor is mounted on this printer.  
The easy-to-use operation function allows to easily replenish paper.  
Power supply  
The power is fed via a connector for interface.  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Download from Www.Somanuals.com. All Manuals Search And Download.  
TABLE OF CONTENTS  
Section  
Page  
CHAPTER 1 OPERATIONAL PRECAUTION  
1.1  
1.2  
1.3  
1.4  
SAFETY PRECAUTION...............................................................................................  
NOTES ON USE ..........................................................................................................  
NOTES ON TREATMENT OF THERMAL PAPERS....................................................  
NOTES ON INSTALLATION........................................................................................  
1-1  
1-2  
1-3  
1-3  
CHAPTER 2 TERMS USED IN THIS MANUAL  
CHAPTER 3 PREPARATIONS AND OPERATION  
3.1  
3.2  
3.3  
3.4  
PARTS NAME ..............................................................................................................  
DIMENSIONS...............................................................................................................  
INSTALLATION............................................................................................................  
SETTINGS OF THE FUNCTIONS ...............................................................................  
3-1  
3-2  
3-4  
3-6  
3-7  
3-7  
3-7  
3-7  
3-8  
3-8  
3.4.1  
3.4.2  
3.4.3  
3.4.4  
3.4.5  
3.4.6  
Test Print.....................................................................................................  
Hex Dump Print...........................................................................................  
Paper Empty (Paper Out) Detection Function.............................................  
Adjustment of Print Density.........................................................................  
Resetting the Printer While Printing ............................................................  
Memory .......................................................................................................  
CHAPTER 4 INTERFACE  
4.1  
4.2  
4.3  
CONNECTOR TERMINAL LAYOUT............................................................................  
PARALLEL INTERFACE..............................................................................................  
SERIAL INTERFACE ...................................................................................................  
4-1  
4-3  
4-3  
CHAPTER 5 COMMAND FUNCTION  
5.1  
FUNCTION OUTLINE ..................................................................................................  
5-1  
5-1  
5-2  
5.1.1  
5.1.2  
Mode 1/Mode 2 ...........................................................................................  
Mode 3 ........................................................................................................  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Section  
Page  
5.2  
5.3  
FUNCTION CODES.....................................................................................................  
CHARACTER CODES.................................................................................................  
5-5  
5-5  
5-5  
5-5  
5-6  
5-6  
5-7  
5.3.1  
5.3.2  
1-Byte Character Codes .............................................................................  
2-Byte Character Codes .............................................................................  
5.4  
FUNCTION CODE DESCRIPTION..............................................................................  
5.4.1  
5.4.2  
5.4.3  
Function Code Description Format.............................................................  
Mode 1/Mode 2...........................................................................................  
Mode 3........................................................................................................ 5-12  
APPENDICES  
APPENDIX A. SPECIFICAIONS ............................................................................................  
APPENDIX B. DATA CODE TABLE.......................................................................................  
A-1  
B-1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
FIGURES  
Figure  
2-1  
Page  
2-1  
System Configuration....................................................................................................  
3-1  
3-2  
3-3  
3-4  
3-5  
3-6  
Front Name of the Printer .............................................................................................  
Back Name of the Printer..............................................................................................  
Printer Dimensions .......................................................................................................  
Fixing Bracket Dimensions ...........................................................................................  
Installing the Fixing Bracket..........................................................................................  
Setting Paper ................................................................................................................  
3-1  
3-1  
3-2  
3-3  
3-4  
3-5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
TABLES  
Table  
Page  
3-1 DIP Switch Setting........................................................................................................  
3-2 Communication Method ...............................................................................................  
3-3 Command Mode...........................................................................................................  
3-6  
3-6  
3-6  
4-1 Connector Terminal Assignment..................................................................................  
4-2 DC Socket Terminal Assignment .................................................................................  
4-3 I/O Signal Specifications...............................................................................................  
4-1  
4-2  
4-5  
5-1 Status Response Value Table...................................................................................... 5-35  
Download from Www.Somanuals.com. All Manuals Search And Download.  
CHAPTER 1  
OPERATIONAL PRECAUTION  
1.1 SAFETY PRECAUTION  
Meanings of symbols  
The following symbols are used in this Instruction Manual in order to make use of the printer  
properly and prevent the printer from being damaged.  
Follow the instructions marked with the symbol.  
Failure to follow the guidelines marked with this symbol could  
WARNING  
result in severe personal injury or death.  
Failure to follow the guidelines marked with this symbol could  
result in minor personal injury or product and/or peripheral  
damage.  
CAUTION  
Symbol Examples  
The symbol  
indicates caution(including danger and warning).  
The example on the left indicates warning or caution.  
The symbol indicates prohibition.  
The example on the left means prohibition of disassembling.  
WARNING  
Do not use a power supply outside of its specified range.  
Doing so may cause fire leading to serious accidents.  
Do not forcefully bend, or put a heavy matter on, the power cable. Failure to  
follow this instruction may damage the power cable, which may result in a fire  
or electric shock. Do not use the power cable if it is damaged.  
Never disassemble the printer. Failure to follow this instruction may cause  
overheating or burning of the printer which may lead to fires or accidents.  
1-1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
CAUTION  
Do not drop any metallic objects or liquids such as water or coffee into the  
printer.  
Never use the printer in a place of extreme humidity or any place where it  
can possibly be splashed by any liquids. If any liquids get into the printer, it  
could lead to fire, electric shock, or other serious accidents.  
Never touch the thermal head immediately after printing because it  
becomes very hot. Make sure that the thermal head is cool before setting  
papers or cleaning the thermal head.  
Be sure to hold the connector part of the power cable when disconnecting  
the cable. Pulling on the cable portion may cause it to fray and break.  
Power OFF the printer in any of the following cases:  
The printer does not recover from an error.  
Smoke, strange noise or smells erupt from the printer.  
A piece of metal or any liquid touches the internal parts or slot of the  
printer.  
Using the printer in any manner other than for which it was designed may  
cause accidents or fire.  
1.2 NOTES ON USE  
Do not disassemble or repair the printer by yourself.  
Do not drop the printer down on the floor or hit it against the walls.  
Avoid exposure to the water.  
Use the specified type of thermal paper.  
When a trouble such as a paper jam occurs, turn off the power first to fix it.  
The printer does not receive the data in some cases such as a paper out. Monitor the printer  
to check if an error occurs and not to stop the system.  
Fix an error if something happens to the printer in order to prevent the whole system from  
hanging up. Thus, you need to take an action to prevent the error from affecting the whole  
system.  
Immediately turn off the power if the printer fails (for example, you smell something strange,  
hear a noise, or smoke rises from the printer). After checking that such failure does not  
continue, contact your dealer or us.  
1-2  
Download from Www.Somanuals.com. All Manuals Search And Download.  
1.3 NOTES ON TREATMENT OF THERMAL PAPERS  
The surface of thermal paper is specially processed using the chemical agent. And the color rises  
through the thermo chemical reaction process. Be aware of the following points.  
1) Store the papers in a dry, cool and dark place.  
2) Do not rub the papers with hard substance.  
3) Keep the papers away from organic solvent.  
4) Do not let the papers touched with vinyl chloride film, eraser or adhesive tapes for hours.  
5) Do not put the papers on diazo print or wet copy that is just copied  
6) Use the water-based glue (for example, starch glue and synthetic glue) when you glue  
thermal paper.  
7) Adhesive tape may discolor the surface of thermal paper. Put two-sided tape on the back  
side of thermal paper if you need to tape it.  
8) If you touch thermal paper with sweaty hand, your fingerprint may be left on the surface of  
thermal paper and the characters may printed unclearly.  
9) If you use this printer to print receipts given to your customers, print the notice which states  
that the paper used is thermal paper and the instructions on how to keep it.  
10) Use dedicated thermal papers only.  
1.4 NOTES ON INSTALLATION  
Avoid such places with:  
1) Dusty places  
2) Unstable places and places that significantly shakes  
3) Watery and oily places  
4) Places which receive direct sunlight  
5) Places where the temperature is 50°C or higher  
6) Places where the temperature is 0°C or lower  
7) Places where the electromagnetic interference or corrosive gas is generated  
8) Places where the relative humidity is over 80%  
9) Places where the significant temperature change may result in the formation of any  
condensation  
1-3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
1-4  
Download from Www.Somanuals.com. All Manuals Search And Download.  
CHAPTER 2  
TERMS USED IN THIS MANUAL  
This chapter describes the terms used in this manual.  
Dot  
A character or graphic image is composed of picture elements called dots.  
A dot corresponds to one of the thermal head heat elements.  
Dot line  
A line of dots arranged perpendicular to the paper feed direction. A dot  
line corresponds to a line of thermal head heat elements.  
One dot line consists of 384 dots in DPU-30.  
Character spacing  
Line spacing  
The space separating contiguous characters on one character line.  
The space separating character lines.  
Input buffer  
The memory for temporarily storing the data (characters and commands)  
received from the host device. Data is executed when fetched from the  
input buffer. The capacity of the input buffer is 4,096 bytes.  
Line buffer  
The memory for storing one line of character data fetched from the input  
buffer. When the line buffer is filled with character data (i.e. printing of an  
entire line) or the printing conditions are made valid through a command,  
the data in the input buffer is printed.  
The system configuration is shown in Figure 2-1.  
DPU-30  
Input buffer  
Host device  
Printer  
Line buffer  
Figure 2-1 System Configuration  
2-1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
One line full print  
The printing executed when the data in the line buffer exceeds one line.  
Character data for one line is stored in the line buffer. When inflowing  
data exceeds the number of characters that can be stored in the line buffer,  
the data in the line buffer are printed. The overflowing data is stored at  
the beginning of the next line.  
Kanji size characters Kanji and user-defined characters.  
Standard size  
characters  
Extended graphics characters, katakana, and downloaded characters.  
Font  
The form of a character. A character is composed of a group of dots.  
The user can define a font using downloaded fonts, etc.  
Font size  
The size of a character. There are two font sizes, 16-dot font size and  
24-dot font size.  
The sizes for standard size and Kanji size characters are shown below.  
Each size is represented as vertical dots by horizontal dots.  
16-dot (height × width) 24-dot (height × width)  
Standard size characters  
16 × 8  
24 × 12  
Kanji size characters  
16 × 16  
24 × 24  
1-byte characters/  
2-byte characters  
Classification by character codes.  
Characters can be specified by 2 types of character codes: 1-byte  
character codes and 2-byte character codes.  
2-byte character is effective when the situation of kanji mode is specified.  
Characters that can be specified by 1-byte character codes include:  
Alphabets, Numbers, and Katakana  
Extended graphics characters  
Downloaded characters  
Characters that can be specified by 2-byte character codes include:  
Kanji  
User-defined characters  
2-2  
Download from Www.Somanuals.com. All Manuals Search And Download.  
CHAPTER 3  
PREPARATIONS AND OPERATION  
This section describes the information necessary to use the printer connecting to a host device such  
as the part names and dimensions of the printer, and how to set the functions.  
3.1 PARTS NAME  
Paper cover open button  
Paper cutter  
Papercover  
Figure 3-1 Front Name of the Printer  
Interface Connector  
ON  
Dip switches  
Insert nut for fitting  
D
C
s
oc  
ket  
Figure 3-2 Back Name of the Printer  
3-1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
3.2 DIMENSIONS  
1. Dimensions of the printer  
7.5  
111.2+0/-0.5  
Approx. 90º  
110  
116  
54.5  
Unit: mm  
Figure 3-3 Printer Dimensions  
3-2  
Download from Www.Somanuals.com. All Manuals Search And Download.  
2. Dimensions of the fixing bracket  
24  
2- φ3.6  
44.5 - Panel thickness + 0.5 ± 0.3  
44.5 - Panel thickness + 0.5 ± 0.2  
Panel thickness  
Unit: mm  
44.5  
Figure 3-4 Fixing Bracket Dimensions  
3-3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
3.3 INSTALLATION  
1. How to Install the Fixing Bracket  
Use the spacers as much as you need  
Figure 3-5 Installing the Fixing Bracket  
Use the spacers depending on the fitting panel thickness referring to the next table. If not,  
the body may be deformed, and therefore it may be hard to open the paper cover or printing  
quality may be deteriorated. (If the fitting panel thickness exceeds 2.2 mm, it may be hard to  
tighten the screws.)  
Spacer  
thickness  
Panel thickness  
Panel thickness  
Spacer thickness  
1.0 mm  
None  
1.7 to 1.8 mm  
2.0 mm  
0.5 mm and 0.2 mm  
1.0 mm  
1.2 mm  
0.2 mm  
0.5 mm  
1.5 to 1.6 mm  
2.2 mm  
1.0 mm and 0.2 mm  
The screw torque is 49 cN m (5 kgf cm).  
[Note] Do not touch the end of the DC plug.  
2. Setting Paper  
(1) Press the paper cover open button, and open the paper cover.  
Handle the paper cutter carefully not to cut your hand.  
(2) Set a paper roll as shown in the figure.  
(3) Close the paper cover by pressing both ends of the cover so the tip end of the paper will  
be emerged from the printer.  
3-4  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Figure 3-6 Setting Paper  
3-5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
3.4 SETTINGS OF THE FUNCTIONS  
Printer functions can be set with the dip switches.  
The  
indicates the factory default setting.  
Table 3-1 DIP Switch Setting  
No  
Function  
OFF  
ON  
1 to 4  
Communication  
method  
See Table 3-2.  
5
Bit length  
Flow  
8BIT  
7BIT  
6
7 to 8  
9
RTS/CTS  
See Table 3-3.  
Upright  
Xon/Xoff  
Command mode  
Direction  
Test pin  
Invert  
0
Normal mode  
Prohibited  
Table 3-2 Communication Method  
Method  
Baud  
Parity  
DP1  
DP2  
DP3  
DP4  
Serial  
38400  
19200  
9600  
None  
OFF  
ON  
OFF  
OFF  
ON  
OFF  
OFF  
OFF  
OFF  
ON  
OFF  
OFF  
OFF  
OFF  
OFF  
OFF  
OFF  
OFF  
ON  
OFF  
ON  
4800  
ON  
2400  
OFF  
ON  
OFF  
OFF  
ON  
38400  
19200  
9600  
4800  
Odd  
ON  
OFF  
ON  
ON  
ON  
ON  
OFF  
ON  
OFF  
OFF  
ON  
OFF  
OFF  
OFF  
OFF  
ON  
2400  
38400  
19200  
9600  
ON  
Even  
OFF  
ON  
ON  
ON  
ON  
OFF  
ON  
OFF  
OFF  
ON  
ON  
4800  
2400  
ON  
ON  
OFF  
ON  
ON  
Parallel  
ON  
ON  
ON  
ON  
Table 3-3 Command Mode  
DP7  
Mode  
DP8  
Mode 1 (20 digit DPU-20-20CF compatible)  
Mode 2 (24 digit DPU-20-24CF compatible)  
Mode 3 (32 digit ESC/POS compliant)  
HEX dump mode  
ON  
OFF  
OFF  
ON  
ON  
ON  
OFF  
OFF  
3-6  
Download from Www.Somanuals.com. All Manuals Search And Download.  
3.4.1 Test Print  
The detail of the setting by dip switches is confirmed by test printing.  
In the test print mode, characters (ANK, Kanji) and barcode are printed.  
Turning power ON with the !FEED_IN signal kept low starts the test print.  
3.4.2 Hex Dump Print  
In the hex dump mode, the printer prints data input from the computer with hexadecimal numbers  
and characters.  
Set the dip switch No.7 ON, No.8 OFF, and turn the power on to enter the HEX dump mode.  
If the input data exceeds a line long, such data will be printed as follows. If the input data  
does not exceeds a line log, set the !FEED_IN signal to Low. The rest of the data will be  
printed.  
Turn off the power to finish the HEX dump mode.  
[ HEX DUMP MODE ]  
00 01 02 03 04 05 06 07 ........  
08 09 0A 0B 0C 0D 0E 0F ........  
10 11 12 13 14 15 16 17 ........  
18 19 1A 1B 1C 1D 1E 1F ........  
20 21 22 23 24 25 26 27 !#$%&′  
28 29 2A 2B 2C 2D 2E 2F ()+,-./  
0D 0A 20 20 0D 0A  
.. ..  
3.4.3 Paper Empty (Paper Out) Detection Function  
Detects the existence of paper using the photo interrupter.  
Use the specified type of paper.  
3.4.4 Adjustment of Print Density  
The print density is automatically adjusted by the head resistance, the number of dots, the head  
temperature, and the head voltage.  
The commands are also able to correct the print density.  
It can be adjusted in the range from 0% to 255% of the rated energy.  
3-7  
Download from Www.Somanuals.com. All Manuals Search And Download.  
3.4.5 Resetting the Printer While Printing  
When the data with a lot of dots is printed, the print data may be missing and then, the printing may  
often continue in the state that each setting by the commands is reset.  
This is because too many print dots decrease the voltage, which results in the activation of the reset  
circuit of the printer.  
The commands which tend to increase the number of print dots are:  
• Underline  
• Reverse  
• Ruled line (in case that the number of dots is many)  
• Bitimage  
Case that a horizontal line is printed when printing a full line of “H” characters without spaces  
between the characters.  
The print density set command (case that the print density is set at over 100%) expands the length  
of strobe, which very often resets the settings, although this command does not increase the  
number of print dots. Be aware of these points when using the printer.  
3.4.6 Memory  
1. Input buffer memory  
An input buffer memory (RAM) with the capacity of 4,096 bytes is built in the printer.  
2. User memory  
A user memory (RAM) with the capacity of 16,384 can be used when setting the printer in Mode 3.  
The data registered in this memory are cleared when turning off the power.  
This memory is used when using the downloaded characters, the user-defined characters, and  
the downloaded Bitimages.  
The memory used by the downloaded characters and user-defined character is restricted as  
follows. The remaining is used for the downloaded Bitimages. However, it can release the  
memory of the downloaded character and use-defined character so that ensuring the capacity  
for Downloaded Bitimage.  
The memory capacity immediately after the initialization  
Application  
Capacity (in byte)  
Downloaded character  
User-defined character  
Downloaded Bitimage  
Total  
4,560  
1,080  
10,744  
16,384  
The capacity for the downloaded characters and the user-defined characters is readily ensured  
at the initialization.  
This area can be released by a command to use the area for the downloaded Bitimages.  
When registering the downloaded Bitimages, calculate the remaining capacity of the memory  
before registering them.  
Be sure that the data with the larger capacity than the remaining capacity is ignored even if you  
trying to register such data.  
3-8  
Download from Www.Somanuals.com. All Manuals Search And Download.  
CHAPTER 4  
INTERFACE  
This chapter describes information that is required when using the printer connected to a host, such  
as the serial and parallel interface specifications.  
4.1 CONNECTOR TERMINAL LAYOUT  
1. Interface and power connector terminal layout  
Connector (plug) : XG4A-4032(Omron)  
Connector signal layout  
39  
40  
(!signal name indicates Active Low.)  
Table 4-1 Connector Terminal Assignment  
No.  
Signal name  
Direction  
Description  
1
2 to 9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
!STROBE  
DATA0 to 7  
!ACK  
BUSY  
PE  
SEL OUT  
!ERROR  
!RESET  
TxD  
In  
In  
Parallel data input  
High:1, Low:0  
Acknowledge  
Busy to read  
Paper empty  
Online High  
Error  
Reset (Valid in Low 20ms)  
Serial data ouput  
Serial data input  
RS-232C Request to send  
RS-232C Clear to send  
Paper near end A (+)  
Paper near end C (+)  
Paper near end K ()  
Paper near end E ()  
Paper near end signal  
Feed signal  
Out  
Out  
Out  
Out  
Out  
In  
Out  
In  
Out  
In  
Out  
In  
Out  
In  
RxD  
RTS  
CTS  
NEAR_A  
NEAR_C  
NEAR_K  
NEAR_E  
NEAR_OUT  
!FEED_IN  
GND  
25  
26  
Ground  
27  
28  
29 to 34  
35 to 40  
SEL_LED+  
SEL_LED-  
V+  
Out  
Out  
SEL LED on (+)  
SEL LED on ()  
Power (+)  
V−  
Power ()  
Connect to all the No.29 to 34 and No.35 to 40 terminal when supplying the power  
4-1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
into V+ and V-pins. (To avoid voltage drops.)  
When supplying the power through the DC socket, be sure to leave V+  
and V- unconnected. Never supply the power into V+ and V- terminals,  
and never short V+ and V- terminals.  
Use terminal numbers 22, 23 or 26 as the signal ground for RS-232C.  
Short terminal numbers 25 and 26 to feed the paper.  
SEL LED lights up at the time on-line by connecting it to terminal numbers 27 and 28.  
Paper near end sensor:  
This printer does not have the paper near end function. However, this function can be  
built in by mounting a device such as a photo sensor.  
NEAR_A: Pull up it with +4.75 to +5.1 V through the current limit resistance.  
NEAR_OUT: The logic of NEAR_C is inversed and output.  
Example:  
The following diagram describes how a device such as a photo sensor is mounted to  
use.  
Photo sensor, etc  
5V  
CN2  
20  
CN2  
NEAR_C  
NEAR_E  
NEAR_A  
NEAR_K  
21  
220Ω  
22  
24  
2. DC socket terminal layout  
Connector (Socket) : HEC0470-01-630 (Hosiden)  
Polarity:  
(Center plus)  
Table 4-2 DC Socket Terminal Assignment  
No.  
Signal name  
Direction  
Function  
1
2
DC+8.7V  
GND  
Power input  
Ground  
Supply of the power through the interface connector terminals is available, instead of the DC  
socket terminal.  
When supplying the power through the interface and power connector  
terminals, do not connect the DC socket.  
4-2  
Download from Www.Somanuals.com. All Manuals Search And Download.  
4.2 PARALLEL INTERFACE  
1. Data input timing  
DATA0 to 7  
T3  
T1  
T2  
STROBE  
T4  
T5  
BUSY  
ACK  
T6  
T7  
Min. Max. Unit  
T1  
0.1  
0.5  
0.5  
0.5  
µs  
µs  
µs  
µs  
µs  
µs  
µs  
T2  
T3  
T4  
T5  
T6  
T7  
0
0.5  
1.0  
4.3 SERIAL INTERFACE  
1. Hardware control  
The RTS signal (Low or High) controls the transmission of the data from a host computer.  
When the data stored in the input buffer of the printer exceeds 4,046 bytes, the RTS signal turns  
Low.  
Once the RTS signal turns Low, the host computer stops to transmit the data.  
If the data stored in the input buffer of the printer falls below 3,995 bytes, the RTS signal turns  
High.  
Once the RTS signal turns High, the host computer resumes transmitting the rest of the data.  
When the printer fails (for example, paper-out), the RTS signal also turns Low.  
And then, after the printer gets back to normal, the RTS signal turns High.  
4-3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Data timing for hardware control  
RTS  
RxD  
Print  
Paper out  
Buffer  
4,046 bytes  
or more  
Buffer  
3,995 bytes or less  
Power ON  
ON-LINE  
O
FF-LINE  
2. Xon/Xoff control  
The data transmission from a host computer is controlled through the exchange of Xon(1116)  
command and Xoff(1316) command between the printer and the host computer.  
When the data stored in the input buffer of the printer exceeds 4,046 bytes, the printer sends the  
Xoff command to the host computer.  
Upon the reception of the Xoff command, the host computer stops to send the data.  
If the data stored in the input buffer of the printer falls below 3,995 bytes, the printer sends the  
Xon command to the host computer.  
Upon the reception of the Xon command, the host computer resumes sending the rest of the  
data.  
When the printer fails (for example, paper-out), the printer sends the Xoff command to the  
host computer.  
And then, after the printer gets back to normal, the printer sends the Xon command to the  
host computer.  
Data timing for Xon/Xoff control  
RTS  
Xoff  
Xoff Xon  
Xon  
Xon  
RxD  
RxD  
Print  
Paper out  
Buffer  
Buffer  
3,995 bytes or less  
4,046 bytes  
or more  
Power ON  
ON-LINE  
OFF-LINE  
4-4  
Download from Www.Somanuals.com. All Manuals Search And Download.  
3. Input / Output signal specifications  
Table 4-3 I/O Signal Specifications  
Rate Value  
Typ.  
Item  
Condition  
Unit  
Min  
Max  
High input voltage  
Low input voltage  
!RESET  
!RESET  
1.76  
0
5.5  
V
V
1.44  
DATA0 to 7, !STROBE,  
!FEED_IN, NEAR_C  
DATA0 to 7, !STROBE,  
!FEED_IN, NEAR_C  
RXD, CTS  
High input voltage  
Low input voltage  
3.15  
0
5.5  
V
V
1.35  
High input voltage  
Low input voltage  
+2.8  
15  
+15  
2.8  
V
V
RXD, CTS  
BUSY, !ACK, !ERROR,  
SEL OUT, PE, NEAR_OUT  
High output voltage  
Low output voltage  
High output voltage  
4.75  
0
5.1  
0.5  
V
V
V
BUSY, !ACK, !ERROR,  
SEL OUT, PE, NEAR_OUT  
TXD, RTS  
+5  
+9  
+15  
( RL = 3 K)  
TXD, RTS  
Low output voltage  
15  
9  
5  
V
( RL = 3 K)  
4-5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
4-6  
Download from Www.Somanuals.com. All Manuals Search And Download.  
CHAPTER 5  
COMMAND FUNCTION  
This chapter describes the functions of the commands processed by the printer.  
5.1 FUNCTION OUTLINE  
DPU-30 has two sets of commands: Mode 1/Mode 2 and Mode 3. The commands are as listed  
below:  
5.1.1 Mode 1/Mode 2  
1. Basic commands (DPU-20-20CF/24CF compatible commands)  
Command  
Function  
See page  
CR  
Line Feed  
5-7  
5-7  
5-7  
5-8  
5-8  
5-8  
5-9  
5-9  
LF  
Carriage Return  
SO  
Double–Width Printing Mode Specify  
Double–Width Printing Mode Clear  
Cancel  
SI  
CAN  
ESC S  
ESC c  
ESC R  
Bitimage Graphic  
Special Character Specify  
International Character Specify  
2. Extension commands  
Command  
Function  
See page  
ESC @  
DC2 >  
DC2 %  
DC2 ~  
Initialization  
5-10  
5-10  
5-11  
5-11  
Print Drive Mode Select  
Print Drive User Define  
Print Density Set  
5-1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
5.1.2 Mode 3  
1. Paper feed commands  
Command  
Function  
See page  
CR  
Carriage Return  
Line Feed  
5-12  
5-12  
5-12  
5-13  
5-13  
5-13  
5-14  
LF  
FF  
Page Length Print  
ESC J  
ESC j  
ESC d  
ESC C  
Print and Feed Forward  
Print and Feed Backward  
Print and Continuous Line Feed  
Page Length Set  
2. Tab commands  
Command  
Function  
See page  
HT  
Horizontal Tab  
5-15  
5-15  
ESC D  
Horizontal Tab Set  
3. Form commands  
Command  
Function  
See page  
ESC 2  
ESC 3  
ESC SP  
Default Amount of Line Spacing Specify  
Amount of Line Spacing Set  
5-16  
5-16  
Standard Size Character Right Spacing  
Set  
5-16  
GS L  
Left Margin Set  
5-17  
5-17  
5-18  
5-18  
GS W  
ESC $  
ESC a  
Width of Printing Area Set  
Absolute Position of Printing Area Specify  
Position Align  
4. Character decoration commands  
Command  
Function  
See page  
ESC !  
ESC G  
ESC E  
ESC {  
ESC -  
GS !  
Decorated Characters Collectively Specify  
Bold Characters Specify and Clear  
5-19  
5-20  
Inversion (Flip) Specify and Clear  
Underline Specify and Clear  
Character Size Set  
5-20  
5-21  
5-21  
5-22  
GS B  
Reverse Character Specify and Clear  
5-2  
Download from Www.Somanuals.com. All Manuals Search And Download.  
5. Character selection commands  
Command  
Function  
See page  
ESC M  
ESC R  
ESC &  
ESC ?  
ESC %  
Font Select  
5-23  
5-24  
5-25  
5-25  
5-26  
International Character Select  
Downloaded Character Register  
Downloaded Character Delete  
Downloaded Character Specify and Clear  
6. Barcode commands  
Command  
Function  
See page  
GS H  
GS w  
GS h  
GS k  
HRI Character Printing Set  
Width of Barcode Set  
Height of Barcode Set  
Barcode Print  
5-27  
5-27  
5-28  
5-29  
7. Ruled line control commands  
Command  
Function  
See page  
DC3 A  
DC3 B  
DC3 C  
DC3 D  
Ruled Line Buffer A Select  
Ruled Line Buffer B Select  
Ruled Line Buffer Clear  
5-30  
5-30  
5-30  
Write in Position Specified by Dot in Ruled  
Line Buffer  
5-31  
5-31  
DC3 L  
Write in Position Specified by Line in  
Ruled Line Buffer  
DC3 +  
DC3 −  
DC3 P  
Print Mode of Ruled Line Approve  
Print Mode of Ruled Line Prohibit  
1 Dot Line of Ruled Line Print  
5-32  
5-32  
5-32  
8. Response commands (only for serial mode)  
Command  
Function  
See page  
GS a  
Validity / Invalidity of Automatic Status  
Transmission and Real Time Command  
Select  
5-33  
GS r  
Status Transmit  
5-34  
5-35  
5-36  
DLE EOT  
DLE ENQ  
Status Transmit in Real Time  
Major Buffers Clear in Real Time  
5-3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
9. Bitimage commands  
Command  
Function  
See page  
ESC ∗  
GS ∗  
GS /  
Bitimage Select  
5-37  
5-38  
5-39  
Downloaded Bitimage Register  
Downloaded Bitimage Print  
10. Kanji commands  
Command  
Function  
See page  
FS &  
FS .  
Kanji Mode Specify  
5-40  
5-40  
5-40  
5-41  
5-42  
5-43  
Kanji Mode Clear  
FS C  
FS S  
FS !  
Kanji Code System Select  
Character Spacing for Kanji Set  
Print Mode for Kanji Collectively Specify  
Underline of Kanji Specify and Clear  
FS −  
FS W  
Double-Width and Double-Height Kanji  
Set and Clear  
5-43  
5-44  
FS 2  
User-Defined Character Register  
11. Function and setting commands  
Command  
Function  
See page  
ESC @  
CAN  
Initialization  
5-46  
5-46  
Print Buffer Clear  
DC2 D  
Registration Area of Downloaded  
Character Ensure and Release  
5-47  
5-47  
DC2 G  
Registration Area of User-Defined  
Character Ensure and Release  
DC2 >  
DC2 %  
DC2 ~  
Print Drive Mode Select  
Print Drive User-Define  
Print Density Set  
5-48  
5-49  
5-49  
5-4  
Download from Www.Somanuals.com. All Manuals Search And Download.  
5.2 FUNCTION CODES  
All commands start with one of the following control codes (called function codes hereinafter):  
LF (0A16), CR (0D16), SO (0E16), SI (0F16), DC2 (1216), DC3 (1316), CAN (1816), ESC (1B16),  
FS (1C16), DEL (7F16)  
Some function codes form a command by itself and others are followed by parameters and/or image  
data.  
The number of bytes configuring a command differs from command to command. The shortest  
commands consist of 1-byte and the longest, some hundred bytes.  
5.3 CHARACTER CODES  
This section describes the character codes in detail.  
The character codes are classified into two groups: 1-byte character codes and 2-byte character  
codes. The 1-byte character codes are used to print standard-size characters, whereas the 2-byte  
character codes print Kanji, user-defined characters.  
In Mode 1 and Mode 2, the printer uses only the 1-byte character codes.  
The following subsections describe the 1-byte and 2-byte character codes individually.  
5.3.1 1-Byte Character Codes  
Used for standard size character printing.  
The hexadecimal codes valid as the 1-byte character codes are as shown below:  
2016 to FF16 (Some character tables make codes 7F16 and FF16 invalid.)  
5.3.2 2-Byte Character Codes  
The 2-byte character codes are invalid in mode 1 and 2. The 2-byte character codes are used to  
print Kanji, and user-defined characters when in the Kanji mode.  
The first byte  
0016 through 2016: Function codes are processed as function codes (See 5.2 FUNCTION  
CONDES). All the other codes are ignored.  
If the second-byte code is received along with a Kanji mode clear  
command, the next received data is processed as a 1-byte character  
code.  
2116 through 7E16: First byte of a JIS Kanji code.  
7F16 through FF16: Ignored.  
5-5  
Download from Www.Somanuals.com. All Manuals Search And Download.  
The second byte  
0016 through 1F16: The first byte already entered is ignored. Function codes are processed  
as function codes. All the other codes are ignored along with the first  
byte. If the following code accompanies a Kanji mode clear command,  
the next received data is processed as a 1-byte character code.  
2016:  
Ignored along with the first byte.  
2116 through 7E16: Print Kanji or user-defined characters if the first byte is one of 2116  
through 7E16.  
7F16:  
8016 through FE16: Ignored along with the first byte unless the first byte is 0016.  
FF16: Ignored along with the first byte.  
Ignored along with the first byte.  
For the correspondence between the 2-byte codes and the printed characters, refer to “Kanji Code  
Table” (as per JIS C 6226-1983).  
5.4 FUNCTION CODE DESCRIPTION  
This chapter describes the commands in each function by the mode.  
5.4.1 Function Code Description Format  
Each function code is described in the format below.  
The same format is used for both Mode 1/Mode 2 and Mode 3.  
X X  
Indicates the command.  
Code Indicates command part and parameter past.  
16 indicates hexadecimal code.  
X X X X  
Indicates the command name.  
X
Function Indicates the functions of the commands.  
Details  
Explains detailed printer operation when inputting commands.  
5-6  
Download from Www.Somanuals.com. All Manuals Search And Download.  
5.4.2 Mode 1/Mode 2  
1. Basic command  
CR  
Carriage Return  
Code  
0D16  
Function Prints the data stored in the print buffer, and then starts a new line according to the  
defined amount of paper feed for one line.  
Details  
After executing this command, a head of a line is set as a starting position of  
printing.  
LF command received immediately following CR is ignored.  
The amount of paper feed for one line is fixed at 24-dot pitch.  
LF  
Line Feed  
Code  
0A16  
Function Prints the data stored in the print buffer, and then starts a new line according to the  
defined amount of paper feed for one line.  
Details  
After executing this command, a head of a line is set as a starting position of  
printing.  
LF command received immediately following CR is ignored.  
The amount of paper feed for one line is fixed at 24-dot pitch.  
SO  
Double–Width Printing Mode Specify  
Code  
0E16  
Function Specifies the doublewidth printing. Hereafter, the width of characters to be printed  
is doubled.  
Details  
This command is not cancelled until either ESC @ or SI command is entered.  
5-7  
Download from Www.Somanuals.com. All Manuals Search And Download.  
SI  
Double–Width Printing Mode Clear  
Code  
0F16  
Function Clears the doublewidth printing.  
CAN  
Code  
Function Clears the print buffer.  
Cancel  
1816  
Details  
After executing this command, a head of a line is set as a starting position of  
printing.  
ESC S n1 n2 n3 n4  
Bitimage Graphic  
Code  
1B16 + 5316 + n1 + n2 + n3 + n4 + [DATA]  
Domain of 3016 n1, n2, n3, n4 3916  
function  
“0001” “n1 n2 n3 n4” “1023”  
0 d 255 (graphic data)  
Function The number of data specified in ASCII code n1, n2, n3 and n4 are specified as a  
Bitimage.  
Example: Case that 192 Bitimages are specified  
1B16 + 5316 + “0192” + . . . . . . . . .  
[192 DATA]  
Details  
The code outside the domain of function processes the data as the 1-byte data  
thereafter.  
If the dots are specified outside the printing area, the data is ignored.  
The data deployment position is set in accordance with the predefined starting  
position of the data deployment.  
This command is affected by the inverse printing.  
If the next Bitimage Specify command is received at the occurrence of the line  
overflow, the data of the previous line stored in the print buffer is printed. The line  
overflow is determined according to the number of dots described below.  
Mode 1: Determined as the line overflow if the number of dots exceeds 276.  
Mode 2: Determined as the line overflow if the number of dots exceeds 332.  
Refer to the figure shown below for how the data is deployed.  
5-8  
Download from Www.Somanuals.com. All Manuals Search And Download.  
(Input image)  
(Deployment image)  
d1 d2 d3  
MSB  
LSB  
d1  
d2  
d3  
ESC c  
Code  
Special Character Specify  
1B16 + 6316  
Function Replaces the character code table from F916 to FD16 as follows.  
Category  
F916  
FA16  
FB16  
FC16  
FD16  
1 (default value)  
2
Σ
μ
Ω
π
δ
Details  
The operation is executed as a toggle operation.  
The table is changed when this command is executed.  
ESC R n  
International Character Specify  
Code  
1B16 + 5216 + n  
Domain of  
function  
0 n 6  
Selects a set of characters of each country described below.  
Function  
The characters are replaced with only the characters of a country of specified  
corresponding code according to the katakana – compliant character code table  
(refer to “APPENDIX B. DATA CODE TABLE.”).  
The data beyond the defined domain of function is ignored.  
In default, n = 0.  
Details  
5-9  
Download from Www.Somanuals.com. All Manuals Search And Download.  
2. Extension commands  
ESC @  
Initialization  
Code  
1B16 + 4016  
Function Initializes the printer.  
Details  
The allocation of the user memory is initialized.  
The receive buffer is retained.  
The print buffer is cleared.  
The settings of each command are initialized.  
ROM SW is reread.  
DC2 > n  
Code  
Print Drive Mode Select  
1216 + 3E16 + n  
Domain of 0 n 2  
function  
Function Sets the print drive mode.  
n
Print drive mode  
Feature  
0
High speed mode  
The printer is driven at high speed and high  
electric power.  
1
2
Medium speed mode 1 The printer is driven at medium speed and low  
electric power.  
Medium speed mode 2 The printer is driven at our recommended electric  
power. The speed of printing in this mode is slower  
than that in the medium speed mode 1.  
Details  
Even if our recommended electric power is adopted in the high speed mode, the  
print speed may slow depending on the print ratio.  
In default, n = 2.  
5-10  
Download from Www.Somanuals.com. All Manuals Search And Download.  
DC2 % n  
Print Drive User Define  
Code  
1216 + 2516 + n  
1 n 16  
Domain of  
function  
Function Executes the printing according to the print drive defined by a user.  
×
n = 1: The amount of 1 8 dots  
×
n = 16: The amount of 16 8 dots  
×
Details  
When one line is printed, the number of division is calculated every n 8 dots.  
Example: Suppose that the number of dots printed = 128 dots, and n = 1  
×
128 ÷ (1 8) = 16 (one line printed is divided into 16 parts)  
The smaller the value of n, the lower the required electric power. And the bigger  
the value of n, the faster the speed of printing.  
DC2 ~ n  
Code  
Print Density Set  
1216 + 7E16 + n  
Domain of 0 n 255  
function  
Function Sets the print density.  
Details  
n means n%.  
When adjusting the print density double for low heat sensitive paper, set n=200.  
The print density cannot be set for each character. The print density can be set  
for each line.  
In default, n = 100.  
5-11  
Download from Www.Somanuals.com. All Manuals Search And Download.  
5.4.3 Mode 3  
1. Paper feed commands  
CR  
Carriage Return  
Code  
0D16  
Function Prints the data stored in the print buffer, and then starts a new line according to the  
defined amount of paper feed for one line.  
Details  
After executing this command, a head of a line is set as a starting position of  
printing.  
LF command received immediately following CR is ignored.  
LF  
Line Feed  
Code  
0A16  
Function Provides the same function as CR.  
Details  
After executing this command, a head of a line is set as a next starting position of  
printing.  
LF command received immediately following CR is ignored.  
FF  
Page Length Print  
Code  
0C16  
Function Feeds paper based on the setting of page length.  
Details  
After executing this command, a head of a line is set as a next starting position of  
printing.  
5-12  
Download from Www.Somanuals.com. All Manuals Search And Download.  
ESC J n  
Code  
Print and Feed Forward  
1B16 + 4A16 + n  
0 n 255  
Domain of  
function  
×
Function Prints the data stored in the print buffer, and then feeds paper n dot pitch forward.  
Details  
After executing this command, a head of a line is set as a next starting position of  
printing.  
This function is not affected by the setting of the amount of line spacing.  
ESC j n  
Print and Feed Backward  
Code  
1B16 + 6A16 + n  
0 n 255  
Domain of  
function  
×
Function Prints the data stored in the print buffer, and then feeds paper n dot pitch  
backward.  
Details  
After executing this command, a head of a line is set as a next starting position of  
printing.  
This function is not affected by the setting of the amount of line spacing.  
ESC d n  
Print and Continuous Line Feed  
Code  
1B16 + 6416 + n  
0 n 255  
Domain of  
function  
Function Prints the data stored in the print buffer, and then feeds paper n lines forward.  
Details  
After executing this command, a head of a line is set as a next starting position of  
printing.  
5-13  
Download from Www.Somanuals.com. All Manuals Search And Download.  
ESC C n  
Page Length Set  
Code  
1B16 + 4316 + n  
1 n 255  
Domain of  
function  
Function Sets the amount of page feed.  
Details  
The page feed is executed using the FF command.  
5-14  
Download from Www.Somanuals.com. All Manuals Search And Download.  
2. Tab commands  
HT  
Horizontal Tab  
Code  
0916  
Function Moves the printing position to the position of the next horizontal tab.  
Details  
If the position of the horizontal tab is not set, this command is ignored.  
If the position of the horizontal tab is out of the printing area, it is set at the head  
of the next line.  
The position of the horizontal tab is set using the ESC D command.  
The default value of the horizontal tab is 8 character pitches.  
ESC D n1...nk NUL  
Horizontal Tab Set  
Code  
1B16 + 4416 + n1...nk + 0016  
1 n 255  
0 k 32  
Domain of  
function  
Function Sets the position of the horizontal tab.  
n describes the number of characters from the head of a line to the position at  
which the horizontal tab is set.  
k describes the number of data to be set.  
×
Details  
The position of the horizontal tab to be set is [character width n].  
The character width includes the right space and the horizontal scaling factor.  
All the values previously set are cleared.  
The maximum number of horizontal tab positions settable is 32. If the number  
exceeds the limit, the rest of the data is processed as normal data.  
The positions are set in ascending order. And the final value is NUL code.  
If the smaller value is set than previously set value, such value is recognized as  
NUL code.  
Even if changing the width of character after setting, the position of tab set is not  
changed.  
5-15  
Download from Www.Somanuals.com. All Manuals Search And Download.  
3. Form commands  
ESC 2  
Default Amount of Line Spacing Specify  
Code  
1B16 + 3216  
Function Restores the amount of paper feed for one line to its default value.  
ESC 3 n  
Amount of Line Spacing Set  
Code  
1B16 + 3316 + n  
0 n 255  
Domain of  
function  
×
Function Sets the amount of paper feed for one line at [n dot pitch].  
Details  
The default amount of paper feed for one line, n = 28.  
ESC SP n  
Standard Size Character Right Spacing Set  
Code  
1B16 + 2016 + n  
0 n 127  
Domain of  
function  
×
Function Sets the character spacing for standard size character at [n dot pitch].  
Details  
The right character spacing increases depending on the horizontal scaling factor.  
This command does not affect kanji.  
In default, n = 0.  
5-16  
Download from Www.Somanuals.com. All Manuals Search And Download.  
GS L nl nh  
Left Margin Set  
Code  
1D16 + 4C16 + nl + nh  
0 nl 255  
0 nh 255  
Domain of  
function  
×
×
Function Sets the left margin at [(nh 256 + nl) dot pitch].  
Details  
This setting is only valid at a head of a line.  
The maximum settable left margin corresponds to the horizontally printable area.  
When a setting value exceeds maximum value, the setting value is replaced  
within printable maximum area.  
In default, nh and nl = 0.  
GS W nl nh  
Width of Printing Area Set  
Code  
1D16 + 5716 + nl + nh  
0 nl 255  
0 nh 255  
Domain of  
function  
×
×
Function Sets the width of the printing area at [(nh 256 + nl) dot pitch]  
Details  
This setting is only valid at a head of a line.  
The settable printing area corresponds to the horizontally printable area except  
for the left margin. If printable range is exceeded, it replaces to the horizontally  
printable maximum area except the left margin.  
×
In default, nh 256 + nl = 384.  
5-17  
Download from Www.Somanuals.com. All Manuals Search And Download.  
ESC $ nl nh  
Absolute Position of Printing Area Specify  
Code  
1B16 + 2416 + nl + nh  
Domain of 0nl 255  
function  
Function  
Details  
0 nh 255  
×
0 nh 256 + nl 127  
Sets the printing area at the absolute position based on the left margin. The setting  
range is [(nh 256 + nl) dot pitch].  
×
×
This setting is only valid at a head of a line.  
The value of setting exceeding the maximum value of nh or nl invalidates this  
command.  
ESC a n  
Position Align  
Code  
1B16 + 6116 + n  
0 n 2  
Domain of  
function  
Aligns one line of data to be printed in the specified position.  
n = 0: left – aligned  
Function  
n = 1: center – aligned  
n = 2: right – aligned  
Details  
This function makes an alignment within the predefined printing area.  
In default, n = 0.  
5-18  
Download from Www.Somanuals.com. All Manuals Search And Download.  
4. Character decoration commands  
ESC ! n  
Decorated Characters Collectively Specify  
Code  
1B16 + 2116 + n  
0 n 255  
Domain of  
function  
Function Collectively specifies the printing modes.  
Function  
Bit  
Description  
0
1
0
1
2
3
4
5
6
7
Font  
Undefined  
Undefined  
Bold character  
Double–height character  
Double–width character  
Undefined  
24 dot type  
16 dot type  
clear  
clear  
clear  
specify  
specify  
specify  
Underline  
clear  
specify  
When specifing both Bit 4 and Bit 5 described in the table above, the  
Details  
double-height and double-width size characters are printed.  
The dot pitch of underline is 2 dot pitch. However, if the several underlines with  
the different thicknesses exist in one line, the thickness of those underlines will be  
brought into line with the thickest underline.  
Each setting is not related to the previous settings.  
The settings of the characters except for the bold characters and the font are  
valid only for the standard size characters.  
In default, n = 0.  
5-19  
Download from Www.Somanuals.com. All Manuals Search And Download.  
ESC G n  
ESC E n  
Bold Characters Specify and Clear  
Code  
1B16 + 4716 + n  
1B16 + 4516 + n  
0 n 255  
Domain of  
function  
Function Specifies and clears the bold characters.  
n = <xxxxxxx0>B: The bold characters are cleared.  
n = <xxxxxxx1>B: The bold characters are specified.  
Details  
n is valid only for the least significant bit.  
In default, n = 0.  
ESC { n  
Inversion (Flip) Specify and Clear  
Code  
1B16 + 7B16 + n  
0 n 255  
Domain of  
function  
Function Specifies and clears the inversion.  
n = <xxxxxxx0>B: The inversion is cleared.  
n = <xxxxxxx1>B: The inversion is specified.  
Details  
n is valid only for the least significant bit.  
This setting is valid only at a head of a line.  
In default, n = 0.  
5-20  
Download from Www.Somanuals.com. All Manuals Search And Download.  
ESC – n  
Code  
Underline Specify and Clear  
1B16 + 2D16 + n  
Domain of 0 n 255  
function  
Function Specifies and clears the underline.  
n = <xxxxx000>B: underline 0 dot pitch  
n = <xxxxx111>B: underline 7 dot pitch  
Details  
n is valid only for the low 3 bits.  
This setting is valid only for the standard size characters.  
The underline is added to the width of character and the character spacing.  
This function is not affected by the setting of the amount of line specing.  
If the several underlines with the different thicknesses exist in one line, the  
thickness of those underlines will be brought into line with the thickest underline.  
In default, n = 0.  
GS ! n  
Character Size Set  
Code  
1D16 + 2116 + n  
0 n 255  
Domain of  
function  
Function  
Specifies the character size.  
×
n = <xxxx0000>B: scaling factor in the vertical direction : 1 <minimum>  
×
n = <xxxx0111>B: scaling factor in the vertical direction : 8 <maximum>  
×
n = <0000xxxx>B: scaling factor in the horizontal direction : 1 <minimum>  
×
n = <0111xxxx>B: scaling factor in the horizontal direction : 8 <maximum>  
Details  
This setting is valid for any type of characters other than HRI characters.  
n is valid only for 0 to 2 bits and 4 to 6 bits.  
In default, n = 0.  
5-21  
Download from Www.Somanuals.com. All Manuals Search And Download.  
GS B n  
Code  
Reverse Character Specify and Clear  
1D16 + 4216 + n  
0 n 255  
Domain of  
function  
Function Specifies and clears the reverse characters.  
n = <xxxxxxx0>B: The reverse characters are cleared.  
n = <xxxxxxx1>B: The reverse characters are specified.  
Details  
n is valid only for the least significant bit.  
In default, n = 0.  
5-22  
Download from Www.Somanuals.com. All Manuals Search And Download.  
5. Character selection commands  
ESC M n  
Font Select  
Code  
1B16 + 4D16 + n  
0 n 255  
Domain of  
function  
Function Selects the character font.  
n = <xxxxxxx0>B: character font (12 24 and 24 24)  
×
×
×
×
n = <xxxxxxx1>B: character font (8 16 and 16 16)  
Details  
n is valid only for the least significant bit.  
This setting is also valid for Kanji.  
The character font can be set by ESC ! command but the setting by the command  
which has been processed at last becomes valid.  
In default, n = 0.  
5-23  
Download from Www.Somanuals.com. All Manuals Search And Download.  
ESC R n  
International Character Select  
Code  
1B16 + 5216 + n  
0 n 7  
Domain of  
function  
Function Selects a set of characters of each country described below.  
When selecting JAPAN, the set of characters corresponds to the katakana –  
compliant character code table (refer to APPENDIX B. DATA CODE TABLE.).  
When selecting a set of characters other than JAPAN, the characters are replaced  
with only the characters of a country of specified corresponding code according to  
PC 437 code table (refer to APPENDIX B. DATA CODE TABLE.).  
Details  
The data beyond the defined domain of function is ignored.  
In default, n = 0.  
5-24  
Download from Www.Somanuals.com. All Manuals Search And Download.  
ESC & y c1 c2 [x1 d1...d(y×x1)]...[xk d1...d(y×xk)]  
Downloaded Character Register  
×
×
Code  
1B16 + 2616 + y + c1 + c2 [x1 d1...d (y x1)]...[xk d1...d (y xk)]  
Domain of y = 3  
function  
2016 c1 c2 7E16  
x
×
0 ≤ ≤ 12 (When font (12 24) is selected)  
x
×
0 ≤ ≤ 9 (When font (8 16) is selected)  
×
0 d1…d (y xk) 255  
Function Defines the downloaded pattern for the specified character code.  
y : The number of bytes in the vertical direction  
x : The number of bits in the horizontal direction  
c1 : Start code of character definition  
c2 : End code of character definition  
Details  
When defining only one character, c1 is equal to c2.  
d means the graphic data of the downloaded characters,  
The residual right space generated by specifying x is processed as blank.  
The code previously registered is overwritten.  
When making the registered font valid, set ESC %.  
×
The maximum output for 16 bit type fonts is 8 dots (width) 16 dots (height).  
ESC ? n  
Downloaded Character Delete  
Code  
1B16 + 3F16 + n  
2016 n 7E16  
Domain of  
function  
Function Deletes the downloaded characters of the specified code.  
Details  
n means the defined character code. After deleting the downloaded characters,  
the internal characters are printed.  
If the specified character code is undefined, this command is ignored.  
5-25  
Download from Www.Somanuals.com. All Manuals Search And Download.  
ESC % n  
Downloaded Character Specify and Clear  
Code  
1B16 + 2516 + n  
0 n 255  
Domain of  
function  
Function Specifies and clears the downloaded character set.  
n = <xxxxxxx0>B: The downloaded character set is cleared.  
n = <xxxxxxx1>B: The downloaded character set is specified.  
Details  
n is valid only for the least significant bit.  
When clearing the downloaded character set, specify the internal character set.  
When specifying the downloaded character set, specify the downloaded  
characters for the defined code and the internal characters for the undefined  
code.  
In default, n = 0.  
5-26  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Image of registration  
Font 8 × 16  
Font 12 × 24  
d1 d4  
MSB  
LSB  
⋅ ⋅ ⋅  
d34  
d1 d4  
d2 d5  
d3 d6  
d25  
d26  
d27  
⋅ ⋅ ⋅  
⋅ ⋅ ⋅  
d2 d5  
d3 d6  
d35  
d36  
⋅ ⋅ ⋅  
⋅ ⋅ ⋅  
⋅ ⋅ ⋅  
Character output range  
Font 8 × 16  
Font 12 × 24  
d1 d4  
⋅ ⋅ ⋅  
⋅ ⋅ ⋅  
⋅ ⋅ ⋅  
d34  
d35  
d36  
d1 d4  
d2 d5  
d22  
d23  
⋅ ⋅ ⋅  
⋅ ⋅ ⋅  
d2 d5  
d3 d6  
⋅ ⋅ ⋅  
5-27  
Download from Www.Somanuals.com. All Manuals Search And Download.  
6. Barcode commands  
GS H n  
HRI Character Printing Set  
Code  
1D16 + 4816 + n  
0 n 255  
Domain of  
function  
Function Specifies the printing position of the HRI characters when printing a Barcode.  
n = <xxxxxx00>B: HRI characters are not printed.  
n = <xxxxxx01>B: HRI characters are printed on top of the Barcode.  
n = <xxxxxx10>B: HRI characters are printed below the Barcode.  
n = <xxxxxx11>B: HRI characters are printed on top of and below the Barcode.  
Details  
n is valid only for the low 2 bits.  
In default, n = 0.  
GS w n  
Code  
Width of Barcode Set  
1D16 + 7716 + n  
Domain of 1 n 4  
function  
Function  
Sets the width of Barcode.  
Module width of  
JAN/UPCE  
Module width of ITF, CODE39, and CODABAR  
n
Narrow bar  
Wide bar  
1
2
3
4
2 dot pitch  
3 dot pitch  
4 dot pitch  
5 dot pitch  
1 dot pitch  
2 dot pitch  
3 dot pitch  
4 dot pitch  
3 dot pitch  
5 dot pitch  
8 dot pitch  
10 dot pitch  
Details  
For CODE128, the width of a Barcode cannot be set (the module width is fixed at  
2 dot pitch).  
In default, n = 2.  
5-28  
Download from Www.Somanuals.com. All Manuals Search And Download.  
GS h n  
Code  
Height of Barcode Set  
1D16 + 6816 + n  
1 n 255  
Domain of  
function  
Function Sets the height of Barcode.  
Details  
In default, n = 162.  
5-29  
Download from Www.Somanuals.com. All Manuals Search And Download.  
GS k m d1...dk NUL  
Barcode Print  
1D16 + 6B16 + m + d1...dk + NUL  
1 m 7  
Code  
Domain of  
function  
The values of d1 to dk depend on a type of Barcode.  
Function Selects a type of Barcode and prints the Barcode.  
m
Type of Barcode  
UPC-E  
1
2
3
4
5
6
7
JAN13  
JAN8  
CODE39  
ITF  
CODABAR  
CODE128  
Details  
This command is finished by a NUL code.  
UPCE is the 7-byte Barcode data and internally adds a check digit.  
JAN13 is the 12-byte Barcode data and internally adds a check digit.  
JAN8 is the 7-byte Barcode data and internally adds a check digit.  
CODE39 automatically adds the start and stop modules.  
ITF is the even number-byte Barcode data and automatically adds the start and  
stop modules.  
CODE128 transmits the start module and the Barcode data. And the check digit  
and the stop module are automatically added.  
If the special characters are included in the data, specify them at 2 bytes as  
follows.  
SHIFT  
CODE A  
CODE B  
7B16, 5316 ({S)  
7B16, 4116 ({A)  
7B16, 4216 ({B)  
CODE C 7B16, 4316 ({C)  
FNC 1  
FNC 2  
FNC 3  
FNC 4  
{’  
7B16, 3116 ({1)  
7B16, 3216 ({2)  
7B16, 3316 ({3)  
7B16, 3416 ({4)  
7B16, 7B16 ({{)  
Example) When printing Start Code C, Fnc 1, and 0012, (where n = 7),  
send 1D16, 6B16, 0716, 6916, 7B16, 3116, 3016, 3016, 3116, 3216, 0016  
in this order.  
5-30  
Download from Www.Somanuals.com. All Manuals Search And Download.  
7. Ruled line control commands  
DC3 A  
Ruled Line Buffer A Select  
Code  
Function Selects the ruled line buffer A.  
Details  
This function selects the ruled line buffer A.  
1316 + 4116  
There are 2 independent buffers (A and B) as the ruled line buffer.  
The ruled line buffer A is selected as the default.  
DC3 B  
Code  
Ruled Line Buffer B Select  
1316 + 4216  
Function Selects the ruled line buffer B.  
Details  
This function selects the ruled line buffer B.  
The ruled line buffer A is selected as the default.  
DC3 C  
Code  
Ruled Line Buffer Clear  
1316 + 4316  
Function Clears the contents of the selected ruled line buffer.  
Details  
The whole data is cleared to 0.  
5-31  
Download from Www.Somanuals.com. All Manuals Search And Download.  
DC3 D nl nh  
Write in Position Specified by Dot in Ruled Line Buffer  
Code  
1316 + 4416 + nl + nh  
0 nl 255  
0 nh 3  
Domain of  
function  
Function Writes 1 in the specified position in the ruled line buffer.  
×
×
The position is set at [(nh 256 + nl) dot pitch].  
Details  
Regardless of the printable area, this function writes 1 in the selected ruled line  
buffer.  
nh is valid only for the low 2 bits.  
DC3 L nl nh ml mh  
Write in Position Specified by Line in Ruled Line Buffer  
Code  
1316 + 4C16 + nl + nh + ml + mh  
Domain of 0 nl 255  
function  
0 nh 3  
0 ml 255  
0 mh 3  
Function Writes 1 in the range from nhnl to mhml in the ruled line buffer.  
0 nhnl mhml 1023  
×
×
nhnl = (nh 256 + nl) dot pitch  
×
×
mhml = (mh 256 + ml) dot pitch  
Details  
Regardless of the printable area, this function writes 1 in the selected ruled line  
buffer.  
nh and mh are valid only for the low 2 bits.  
5-32  
Download from Www.Somanuals.com. All Manuals Search And Download.  
DC3 +  
Code  
Function Approves the print mode of the data stored in the ruled line buffer.  
Print Mode of Ruled Line Approve  
1316 + 2B16  
Details  
When a printing command (CR, LF, etc.) is executed after the approval, the data  
stored in the selected ruled line buffer is always included in the data to be printed.  
This command is not affected by the printing area commands such as GS L, and  
GS W.  
In default, the print mode of the data stored in the ruled line buffer is prohibited.  
DC3 –  
Code  
Print Mode of Ruled Line Prohibit  
1316 + 2D16  
Function Prohibits the print mode of the data stored in the ruled line buffer.  
Details  
After the print mode of the ruled line is cancelled, the data stored in the ruled line  
buffer is not printed.  
DC3 P  
Code  
1 Dot Line of Ruled Line Print  
1316 + 5016  
Function Prints the data stored in the print buffer and 1 dot line of the data in the selected  
ruled line buffer.  
Details  
Even if no data exists in the print buffer, 1 dot line of the data in the selected ruled  
line buffer is printed.  
If the print mode of the data stored in the ruled line buffer is prohibited, none of  
the data is printed.  
5-33  
Download from Www.Somanuals.com. All Manuals Search And Download.  
8. Response commands (only for serial mode)  
GS a n Validity / Invalidity of Automatic Status Transmission and Real Time Command Select  
Code  
1D16 + 6116 + n  
0 n 3  
Domain of  
function  
Function Specifies the validity or invalidity of the automatic status response which is one of  
the printer statuses.  
Specifies the validity or invalidity of the real time command.  
n = 0: The automatic status response becomes invalid.  
n = 1: The automatic status response becomes valid. And the current status is  
returned.  
n = 2: The real time command becomes invalid.  
n = 3: The real time command becomes valid  
Details  
The automatic status response automatically returns a response depending on  
the change in status.  
The real time command is executed at the reception.  
For the status values, refer to Table 5-1 Status Response Value Table.  
This command is executed at the deployment of the receive buffer so that the  
execution of the command may be delayed depending on the conditions of the  
receive buffer.  
When a value is returned, the conditions of the host computer are not checked.  
In default, both the automatic status response and the real time command are  
invalid.  
5-34  
Download from Www.Somanuals.com. All Manuals Search And Download.  
GS r n  
Code  
Status Transmit  
1D16 + 7216 + n  
0 n 255  
Domain of  
function  
Function Returns the current printer status.  
n = <xxxxxxx1>B : The status is returned  
Details  
n is valid only for the least significant bit.  
Regardless of the validity of the automatic status response, this function returns  
the current status.  
For the status values, refer to Table 5-1 Status Response Value Table.  
This command is executed at the deployment of the receive buffer so that the  
execution of the command may be delayed depending on the conditions of the  
receive buffer.  
When a value is returned, the conditions of the host machine are not checked.  
5-35  
Download from Www.Somanuals.com. All Manuals Search And Download.  
DLE EOT n  
Status Transmit in Real Time  
Code  
1016 + 0416 + n  
n = 1  
Domain of  
function  
Returns the current printer status in real time.  
Function  
Details  
Regardless of the validity of the automatic status response, this function returns  
the current status.  
For the status values, refer to Table 5-1 Status Response Value Table.  
This command is executed at the reception.  
When the real time command is invalid, this command is ignored.  
Users should be aware that even if this command is valid and consistent with  
DLE ENQ 1 in the image data, this command will be executed.  
Table 5-1 Status Response Value Table  
Response value  
(1 byte)  
Printer status  
Description  
0
1
Bit 0  
Bit 1  
Bit 2  
Bit 3  
Bit 4  
Bit 5  
Bit 6  
Bit 7  
Out-of-paper error  
Cover open error  
Voltage error  
Temperature error  
Printer operation  
Fixed to 1  
no error  
no error  
no error  
no error  
standby  
error  
error  
error  
error  
operating  
fixed  
fixed  
Fixed to 1  
fixed  
Fixed to 0  
* :This bit is valid only for DLE EOT. The value is fixed at 0 for the other commands.  
5-36  
Download from Www.Somanuals.com. All Manuals Search And Download.  
DLE ENQ n  
Major Buffers Clear in Real Time  
Code  
1016 + 0516 + n  
n = 1  
Domain of  
function  
Function Clears the major buffers in real time while off line.  
n = 1: The major buffers are cleared.  
Details  
This command is valid while off line.  
This command is executed at the reception.  
When the real time command is invalid, this command is ignored.  
Users should be aware that even if this command is valid and consistent with  
DLE ENQ 1 in the image data, this command will be executed. (however, this  
note is not necesary while on line)  
The buffers cleared are:  
• Receive buffer  
• Print buffer  
• Command edit mode  
5-37  
Download from Www.Somanuals.com. All Manuals Search And Download.  
9. Bitimage commands  
ESC m nl nh [d1...dk]  
Bitimage Select  
Code  
1B16 + 2A16 + m + nl + nh + [d1...dk]  
Domain of m = 0,1,32,33  
function  
0 nl 255  
0 nh 3  
0 d 255  
Function Specifies the Bitimages with the number of dots specified as nl and nh in Mode m.  
The number of  
dots in the  
The number  
of dots in  
the vertical  
direction  
The number of  
data (k)  
horizontal  
direction  
m
Mode  
(1 line)  
×
0
1
8 dot single density  
8 dot double density  
24 dot single density  
24 dot double density  
8
8
192  
384  
192  
384  
nh 256 + nl  
×
nh 256 + nl  
×
×
×
32  
33  
24  
24  
(nh 256 + nl)  
3
3
×
(nh 256 + nl)  
Details  
If m is out of the domain of function, the data after nl is processed as the normal  
data.  
nl and nh mean the number of dots in the horizontal direction of the Bitimage to  
be printed.  
If the dot is specified beyond the printable area, the data is deleted.  
The data deployment position corresponds to the deployment start position.  
This command is affected by the inverse print but the others such as dual print,  
bold print and reverse print.  
Refer to the diagram for how to deploy the data.  
5-38  
Download from Www.Somanuals.com. All Manuals Search And Download.  
8-dot bitimage  
d1 d2 d3  
d1 d2 d3  
MSB  
LSB  
24-dot bitimage  
d1 d4 d7  
d1 - - - - - - - - - - d9  
MSB  
LSB  
d2 d5 d8  
d3 d6 d9  
Double  
density  
Single  
density  
GS x y [d1...d(x × y × 8)]  
Downloaded Bitimage Register  
×
×
Code  
1D16 + 2A16 + x + y + [d1...d (x  
y
8)]  
Domain of 1 x 255  
function  
1 y 48  
0 d 255  
×
×
(x  
y
8) Empty space of user memory  
Function Defines the downloaded Bitimage with the number of dots specified as x and y.  
×
x: The number of dots in the horizontal direction (x 8) is specified.  
×
y: The number of dots in the vertical direction (y 8) is specified.  
Details  
If the number of dots is specified beyond the defined domain of function, this  
command is ignored.  
Check the user memory for the empty space.  
Refer to the diagram for how to deploy the data.  
5-39  
Download from Www.Somanuals.com. All Manuals Search And Download.  
GS / m  
Code  
Downloaded Bitimage Print  
1D16 + 2F16 + m  
0 m 3  
Domain of  
function  
Function Prints the downloaded Bitimage in the specified Mode m.  
m
Print mode  
Normal mode  
Description  
0
1
2
3
Prints the normal size characters  
Prints the double-width characters  
Prints the double-height characters  
Double width mode  
Double height mode  
Double height and width  
mode  
Prints the double-height and doublewidth  
characters  
Details  
If the downloaded Bitimage is not defined, this command is ignored.  
If the data is stored in the print buffer, both such data and the downloaded  
Bitimage are printed.  
No print mode but inversion affects this command.  
As for unprintable area, the fractional images are printed per rightward bytes to  
the unprintable area.  
Structure of downloaded Bitimage  
X × 8 dots  
d1  
dy + 1  
・・・・・・  
MSB  
dy + 2  
d2  
・・・・・・  
Y × 8 dots  
L
S
B
dy × x × 8  
d
dy × 2 ・・・・・  
dy  
5-40  
Download from Www.Somanuals.com. All Manuals Search And Download.  
10. Kanji commands  
FS &  
Kanji Mode Specify  
Code  
1C16 + 2616  
Function Specifies the kanji mode.  
Details  
The Kanji Mode Specify is valid only when the JIS code is selected.  
If the kanji mode is selected, each and every character code is processed as 2  
byte kanji code.  
In default, the kanji mode is cleared.  
FS .  
Kanji Mode Clear  
Code  
1C16 + 2E16  
Clears the kanji mode.  
Function  
Details  
The Kanji Mode Clear is valid only when the JIS code is selected.  
If the kanji mode is cleared, each and every character code is processed as  
ASCII code.  
In default, the kanji mode is cleared.  
FS C  
Code  
Kanji Code System Select  
1C16 + 4316 + n  
Domain of 0 n 255  
function  
Function Selects the kanji code system.  
n = <xxxxxxx0>B: JIS code  
n = <xxxxxxx1>B: Shift JIS code  
Details  
In default, n = 0.  
5-41  
Download from Www.Somanuals.com. All Manuals Search And Download.  
FS S nl nr  
Character Spacing for Kanji Set  
Code  
1C16 + 5316 + nl + nr  
0 nl 127  
0 nr 127  
Domain of  
function  
Function Sets the amount of the left (nl) and right (nr) spacing for kanji.  
Details  
The amount of character spacing for normal size kanji is set. And the amount of  
character spacing proportionally increases according to [character scaling factor  
×
the amount of character spacing].  
When the value exceeds the maximum, such value is set at the maximum value.  
This command is valid only for kanji.  
In default, nl and nr = 0.  
5-42  
Download from Www.Somanuals.com. All Manuals Search And Download.  
FS ! n  
Code  
Print Mode for Kanji Collectively Specify  
1C16 + 2116 + n  
0 n 255  
Domain of  
function  
Function Collectively specifies the print mode for kanji.  
Function  
Bit  
Description  
0
1
0
1
2
3
4
5
6
7
Undefined  
Undefined  
clear  
clear  
clear  
specify  
specify  
Double width character  
Double height character  
Undefined  
Undefined  
Undefined  
Underline  
specify  
Details  
When specifiying both Bit 2 and Bit 3 desicribed in the table above, the  
double-height and double-width size characters are printed.  
The underline is specified as 2 dot pitch line.  
If multiple thinckness underlines are set on the same line, the underline is unified  
to the thickest line.  
The kanji mode can be set with other command, however, the last command is  
effective.  
In default, n = 0.  
5-43  
Download from Www.Somanuals.com. All Manuals Search And Download.  
FS – n  
Code  
Underline of Kanji Specify and Clear  
1C16 + 2D16 + n  
0 n 255  
Domain of  
function  
Function Sets the underline of kanji.  
n = <xxxxx000>B: Underline dot pitch: 0  
n = <xxxxx111>B: Underline dot pitch: 7  
Details  
n is valid only for the low 3 bits.  
This command is valid only for kanji.  
The underline is added to the width of characters and the character spacing.  
If the several underlines with the different thicknesses exist in one line, the  
thickness of those underlines will be brought into line with the thickest underline.  
In default, n = 0.  
FS W n  
Code  
Double–Width and Double–Height Kanji Set and Clear  
1C16 + 5816 + n  
Domain of 0 n 255  
function  
Function Specifies and clears the double-width and double-height kanji.  
n = <xxxxxxx0>B: The double-width and double-height kanji is cleared.  
n = <xxxxxxx1>B: The double-width and double-height kanji is specified.  
Details  
n is valid only for the least significant bit.  
This command is valid only for kanji.  
In default, n = 0.  
5-44  
Download from Www.Somanuals.com. All Manuals Search And Download.  
FS 2 c1 c2 d1...dk  
User–Defined Character Register  
Code  
1C16 + 3216 + c1 + c2 + d1...dk  
Domain of 0 d 255  
function  
k = 72  
c1 and c2 depend on the kanji code system.  
Kanji code system  
JIS code  
Shift JIS code  
c1  
c2  
7716  
2116 c2 2F16  
4016 c2 4E16  
EC16  
Function Registers the codes specified (c1 and c2) as the user-defined characters.  
Details  
c1 = first byte and c2 = second byte.  
d means the image data, the bit = 1 printed, and the bit = 0 not printed,  
respectively.  
×
The maximum output for 16 dot type font is 16 dots (width) 16 dots (height).  
5-45  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Image of registration  
Font 16 × 16  
Font 24 × 24  
⋅ ⋅ ⋅  
⋅ ⋅ ⋅  
⋅ ⋅ ⋅  
d1 d4  
d1 d4  
d2 d5  
d3 d6  
d70  
d71  
d72  
⋅ ⋅ ⋅  
⋅ ⋅ ⋅  
⋅ ⋅ ⋅  
d70  
d71  
d72  
MSB  
LSB  
d2 d5  
d3 d6  
Character output range  
Font 16 × 16  
Font 24 × 24  
⋅ ⋅ ⋅  
⋅ ⋅ ⋅  
⋅ ⋅ ⋅  
d1 d4  
d1 d4  
d2 d5  
⋅ ⋅ ⋅  
⋅ ⋅ ⋅  
⋅ ⋅ ⋅  
d70  
d71  
d72  
D46  
D47  
d2 d5  
d3 d6  
5-46  
Download from Www.Somanuals.com. All Manuals Search And Download.  
11. Function and setting commands  
ESC @  
Initialization  
Code  
1B16 + 4016  
Function Initializes the printer.  
Details  
The allocation of the user memory is initialized.  
The receive buffer is retained.  
The print buffer is cleared.  
The settings of each command are initialized.  
ROM SW is reread.  
CAN  
Code  
Function Clears the print buffer.  
Print Buffer Clear  
1816  
Details  
After executing this command, a head of a line is set as a starting position of  
printing.  
5-47  
Download from Www.Somanuals.com. All Manuals Search And Download.  
DC2 D n  
Code  
Registration Area of Downloaded Character Ensure and Release  
1216 + 4416 + n  
0 n 255  
Domain of  
function  
Function Ensures and releases the registration area of the downloaded characters.  
n = <xxxxxxx0>B: The registration area of the downloaded characters is released.  
n = <xxxxxxx1>B: The registration area of the downloaded characters is ensured.  
Details  
If the registration area is released, the area is added to the empty space of the  
user memory.  
After the registration area is released, the downloaded characters cannot be  
registered.  
If the registration area is ensured, the 4,560 bytes of capacity are extracted from  
the empty space of the user memory.  
After the registration area is ensured, the downloaded characters can be  
registered.  
In default, n = 1 (ensure).  
DC2 G n  
Registration Area of User–Defined Character Ensure and Release  
Code  
1216 + 4716 + n  
0 n 255  
Domain of  
function  
Function Ensures and releases the registration area of the user-defined characters.  
n = <xxxxxxx0>B: The registration area of the user-defined characters is released.  
n = <xxxxxxx1>B: The registration area of the user-defined characters is ensured.  
Details  
If the registration area is released, the area is added to the empty space of the  
user memory.  
After the registration area is released, the user-defined characters cannot be  
registered.  
If the registration area is ensured, the 1,080 bytes of capacity are extracted from  
the empty space of the user memory.  
After the registration area is ensured, the user-defined characters can be  
registered.  
In default, n = 1 (ensure).  
5-48  
Download from Www.Somanuals.com. All Manuals Search And Download.  
DC2 > n  
Code  
Print Drive Mode Select  
1216 + 3E16 + n  
0 n 2  
Domain of  
function  
Function Sets the print drive mode.  
n
Print drive mode  
Feature  
0
High speed mode  
The printer is driven at high speed and high  
electric power.  
1
2
Medium speed mode 1 The printer is driven at medium speed and low  
electric power.  
Medium speed mode 2 The printer is driven at our recommended electric  
power.  
Details  
Even if our recommended electric power is adopted in the high speed mode, the  
print speed may be slow depending on the print ratio.  
The general comparisons among the modes in terms of power consumption and  
printing speed is described below.  
(1) Power consumption:  
high speed mode > medium speed mode 1 > medium speed mode 2  
(2) Printing speed:  
high speed mode > medium speed mode 1 > medium speed mode 2  
In default, n = 2.  
5-49  
Download from Www.Somanuals.com. All Manuals Search And Download.  
DC2 % n  
Print Drive User-Define  
Code  
1216 + 2516 + n  
1 n 16  
Domain of  
function  
Function Executes the printing according to the print drive defined by a user.  
×
n = 1 : The amount of 1 8 dots  
×
n = 16 : The amount of 16 8 dots  
Details  
When one line is printed, how many times the line is divided is determined  
depending on the amount of n 8 dots.  
×
Example) Suppose that the number of dots printed = 128 dots, and n = 1  
×
128 ÷ (1 8) = 16 (one line printed is divided into 16 parts)  
The smaller the value of n, the lower the required electric power. And the bigger  
the value of n, the faster the speed of printing.  
DC2 ~ n  
Print Density Set  
Code  
1216 + 7E16 + n  
0 n 255  
Domain of  
function  
Function Sets the print density  
Details  
n means n %.  
When adjusting the print density double for low heat sensitive paper, set n = 200.  
The print density cannot be set for each character.  
In default, n = 100.  
5-50  
Download from Www.Somanuals.com. All Manuals Search And Download.  
APPENDIX A. SPECIFICAIONS  
General specifications  
Printing method  
Thermal line dot  
Data input  
Parallel type  
Serial type  
8-bit parallel (Handshake by STROBE and BUSY)  
RS-232C (2400 to 38400 bps, BUSY control, Xon/Xoff control)  
Dot density  
8 dots/mm  
Maximum printing speed  
20 mm/s max. (Power supply 5 V)  
50 mm/s max. (Power supply 8.7 V)  
Command mode  
Mode 1: DPU-20-20CF compatible  
Mode 2:  
Mode 3:  
DPU-20-24CF compatible  
ESC/POS compliant  
Total number of dots, Print width  
Mode 1:  
Mode 2:  
Mode 3:  
278 dot, 34.75 mm  
334 dot, 41.75 mm  
384 dot, 48.00 mm  
The print width is aligned at the center.  
Character mode  
Mode 1  
(1) Character type  
(2) Character configuration Standard size character: 24 × 12 dots (H × W)  
ANK: 250 types  
(3) Font size  
3.0 × 1.5 mm (H × W)  
(4) Printable character  
20 characters with standard characters  
(with character spacing of 2 dots)  
Mode 2  
(1) Character type  
ANK: 250 types  
(2) Character configuration Standard size character: 24 × 12 dots (H × W)  
(3) Font size  
3.0 × 1.5mm (H × W)  
(4) Printable character  
24 characters with standard characters  
(with character spacing of 2 dots)  
Mode 3  
(1) Character type  
ANK: 379 types, and JIS Kanji level I and II  
(2) Character configuration Standard size character: 24 × 12 dots, 16 × 8 dots (H × W)  
Kanji size character: 24 × 24 dots, 16 × 16 dots (H × W)  
(3) Font size  
Standard size character: 3.0 × 1.5 mm, 2.0 × 1.0 mm (H × W)  
Kanji size character: 3.0 × 3.0 mm, 2.0 × 2.0 mm (H × W)  
A-1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
(4) Printable character  
32 characters with standard characters  
(24 dot standard characters with character spacing of 0 dot)  
Horizontal dot pitch  
0.125 mm  
Paper feed pitch  
0.125 mm  
Useful service life (at 25 °C and the rated energy)  
Pulse resistance  
100 million pulses or more (percentage of print: 12.5%)  
Abrasion resistance  
50 km or more  
Power supply  
(1) Connector for interface  
DC 5 V to 8.7 V  
(2) DC socket  
3 A (4 A during a peak period)  
3 A  
input: DC 8.7 V  
Current consumption  
Standby  
Printing  
100 mA or less  
Average: 1.7 A (4 A during a peak period)  
The number of dots simultaneously energized is 64 in both cases.  
External dimensions 101 × 116 × 61 (W × H × D, excluding projection)  
Weight  
Approx. 230g (excluding paper roll)  
Operating environment  
Temperature:  
0°C to +50°C  
Humidity:  
30% to 80% RH (no condensation)  
Storage environment  
Temperature:  
20°C to +60°C  
Humidity:  
20% to 85% RH (no condensation)  
EMI standard  
Connector  
VCCI CLASS B, FCC CLASS B, CE  
XG4A-4032 (Omron)  
4,096 bytes  
Receive buffer  
Summary of mechanism  
Panel built-in type  
Manually usable cutter built-in on top and bottom  
Diameter of thermal paper roll: 50 mm  
Easy-to-use operation mechanism  
A-2  
Download from Www.Somanuals.com. All Manuals Search And Download.  
Thermal papers used  
Product No.: TP-211C-1(10 rolls per box)  
Paper width: 58 mm  
Outer diameter of roll paper: φ50 mm or less  
Core: included  
Use the specified thermal paper. If you use another type of thermal paper, the quality of print  
and the useful service life of the thermal head may not be guaranteed.  
A-3  
Download from Www.Somanuals.com. All Manuals Search And Download.  
A-4  
Download from Www.Somanuals.com. All Manuals Search And Download.  
APPENDIX B. DATA CODE TABLE  
Katakana compliant characters (gothic)  
*
*
High order  
bit  
Low order  
bit  
*
*
High order  
bit  
Low order  
bit  
SP means space.  
The codes for blank cells are ignored.  
The codes in the heavy line frames are function codes.  
* The characters of a line are not printed in Shift-JIS code.  
B-1  
Download from Www.Somanuals.com. All Manuals Search And Download.  
PC 437 type  
High order  
bit  
Low order  
bit  
High order  
bit  
Low order  
bit  
SP means space.  
The codes for blank cells are ignored.  
The codes in the heavy line frames are function codes.  
NOTE) Above DATA CODE TABLE shows the form of a character to the  
last, and does not show the actual printing pattern itself.  
B-2  
Download from Www.Somanuals.com. All Manuals Search And Download.  

Rikaline GPS Receiver GPS 6017 User Guide
Roadmaster Speaker System RS3000T User Guide
Roland Drums TD 4K User Guide
Roland Musical Instrument V Synth User Guide
Rotel Stereo System RCD 1520 User Guide
Samsung Computer Monitor 192V153S User Guide
Samsung Printer ML 5200A User Guide
Samsung Range FTQ386LWUX User Guide
Samsung Security Camera SCC C4233P User Guide
Sanyo Battery Charger UPF383450 User Guide