Safety Precautions
USER’S MANUAL
SRP-370/372
THERMAL RECEIPT PRINTER
In using the present appliance, please keep the following safety
regulations in order to prevent any hazard or material damage.
WARNING
Violating following instructions can cause serious injury or death.
Do not plug several products in one
multi-outlet.
You must use only the supplied adapter.
It is dangerous to use other adapters.
This can provoke over-heating and a fire.
If the plug is wet or dirty, dry or wipe it
before usage.
If the plug does not fit perfectly with the
outlet, do not plug in.
Be sure to use only standardized
multi-outlets.
ONLY SUPPLIED ADAPTER
PROHIBITED
Do not pull the cable to unplug.
Keep the plastic bag out of children’s reach.
If not, a child may put the bag on his head.
This can damage the cable, which is the
origin of a fire or a breakdown of the printer.
PROHIBITED
PROHIBITED
Do not plug in or unplug with your hands
wet.
If you observe a strange smoke, odor or
noise from the printer, unplug it before
taking following measures.
You can be electrocuted.
Switch off the printer and unplug the set
from the mains.
After the disappearance of the smoke, call
your dealer to repair it.
PROHIBITED
Do not bend the cable by force or leave it
under any heavy object.
A damaged cable can cause a fire.
PROHIBITED
TO UNPLUG
All specifications are subjected to change without notice
http://www.samsungminiprinters.com
1
PRINTER
Warning - U.S.
WARNING
Violating following instructions can cause slight wound or damage the appliance.
Keep the desiccant out of children’s
reach.
Install the printer on the stable surface.
If the printer falls down, it can be broken
and you can hurt yourself.
If not, they may eat it.
This equipment has been tested and found to comply with the limits for a Class A digital
device pursuant to Part 15 of the FCC Rules. These limits are designed to provide
reasonable protection against harmful interference when the equipment is operated in a
commercial environment. This equipment generates uses, and can radiate radio frequency
energy and, if not installed and used in accordance with the instruction manual, may cause
harmful interference to radio communications. Operation of this equipment in a residential
area is likely to cause harmful interference in which case the user will be required to
correct the interference at his own expense.
Notice - Canada
This Apparatus complies with class “A” limits for radio interference as specified in the
Canadian department of communications radio interference regulations.
PRINTER
PROHIBITED
PROHIBITED
Use only approved accessories and do
not try to disassemble, repair or remodel
it for yourself.
Get appareil est conforme aux normes class “A” d’interference radio tel que specifier par
ministre canadien des communications dans les reglements d’interference radio.
Do not touch the HEAD of printer with
your hand.
This can burn your hand or deteriorate
printing quality.
Call your dealer when you need these
services.
Some semiconductor devices are easily damaged by static electricity. You should turn the
printer “OFF”, before you connect or remove the cables on the rear side, in order to guard
the printer against the static electricity. If the printer is damaged by the static electricity,
you should turn the printer “OFF”.
INTRODUCTION
HEAD
DISASSEMBLING
PROHIBITED
Caution
The SRP-370/372 Roll Printer are designed for use with electronic instruments such as
system ECR, POS, banking equipment, computer peripheral equipment, etc.
PRINER
The main features of the printer are as follows:
PROHIBITED
Do not let water or other foreign objects
in the printer.
Do not use the printer when it is out of
order. This can cause a fire or an
electrocution.
If this happened, switch off and unplug the
printer before calling your dealer.
Switch off and unplug the printer before
calling your dealer.
1.
2.
3.
4.
5.
6.
7.
8.
High speed printing : 47(1/6” Feed) lines per second.
Low noise thermal printing.
RS-232, Parallel, USB
The data buffer allows the unit to receive print data even during printing.
Peripheral units drive circuit enables control of external devices such as
cash drawer.
Characters can be scaled up to 64 times compared to it’s original size.
Bar code printing is possible by using a bar code command.
Different print densities can be selected by DIP switches.
Please be sure to read the instruction in this manual carefully before using your new
SRP-370/372.
PROHIBITED
PRINTER
NOTE : The socket-outlet shall be near the equipment and it
shall be easy accessible.
TO UNPLUG
PRINTER
DEALER
2
3
Table of Contents
Chapter 1. Setting Up the Printer
CHAPTER 1. SETTING UP THE PRINTER ..................................... 5
1-1. Unpacking
1-1. UNPACKING .............................................................................. 5
1-2. CONNECTING THE CABLES ............................................................. 6
1-3. CONNECTING THE COMPUTER ......................................................... 7
1-4. CONNECTING THE DRAWER ........................................................... 7
1-5. CONNECTING THE POWER SUPPLY ................................................... 8
1-6. INSTALLING OR REPLACING THE PAPER ROLL ...................................... 9
1-7. ADJUSTMENTS AND SETTINGS ...................................................... 11
1-8. USING THE PRINTER .................................................................. 12
1-9. SETTING THE DIP SWITCHES ........................................................ 13
1-10. SETTING THE MEMORY SWITCHES................................................ 15
Your printer box should include these items. If any items are damaged or missing,
please contact your dealer for assistance.
CHAPTER 2. HEXADECIMAL DUMPING ..................................... 17
CHAPTER 3. THE SELF TEST ...................................................... 18
CHAPTER 4. CODE TABLE .......................................................... 19
SRP-370/372
Cover Cable
CHAPTER 5. CONTROL COMMANDS LIST.................................. 36
APPENDIX ................................................................................. 84
A. CONNECTORS ............................................................................. 84
RS-232C Cable Connector ......................................................... 85
Interface Connector.................................................................. 85
Drawer Connector .................................................................... 87
B. NOTES ..................................................................................... 87
C. SPECIFICATION ........................................................................... 88
4
Roll Paper
Operator’s manual
AC Adapter
5
Power Code
1-2. Connecting the Cables
1-3. Connecting the computer
You can connect up the three cables to the printer. They all connect to the connector
panel on the back of the printer, which is shown below:
POWER
You need an appropriate interface cable.
1. Plug the cable connector securely into the printer’s interface connector.
2. Tighten the screws on both sides of the cable connector.
DK
PARALLEL
Power
Supply
Connector
Drawer
Kick-out
Connector
Interface Connector
3. Attach the other end of the cable to the computer.
1-4. Connecting the Drawer
Notes : Before connecting any of the cables, make sure that both the printer and the
host are turned off.
WARNING:
Use a drawer that matches the printer specification. Using an improper drawer may
damage the drawer as well as the printer.
CAUTION:
Do not connect a telephone line to the drawer kick-out connector; otherwise the
printer and the telephone line may be damaged.
Plug the drawer cable into the drawer kick-out connector on the back of the printer
next to the power supply connector.
6
7
1-5. Connecting the Power Supply
CAUTIONS:
When connecting or disconnecting the power supply from the printer, make sure that
the power supply is not plugged into an electrical outlet. Otherwise you may damage
the power supply or the printer.
If the power supply’s rated voltage and your outlet’s voltage do not match, contact
your dealer for assistance. Do not plug in the power cord. Otherwise, you may damage
the power supply or the printer.
1-6. Installing or Replacing the Paper Roll
Notes : Be sure to use paper rolls that meet the specifications. Do not use paper rolls
that have the paper glued to the core because the printer cannot detect the
paper end correctly.
1. Make sure that the printer is not receiving data; otherwise, data may be lost.
2. Open the paper roll cover by pressing the cover-open button.
1. Make sure that the printer’s power switch is turned off, and the power supply’s
power
cord is unplugged from the electrical outlet.
2. Check the label on the power supply to make sure that the voltage required by the
power supply matches that of your electrical outlet.
3. Plug in the power supply’s cable as shown below. Notice that the flat side of the
plug faces down.
Notes : Do not open the print cover while the printer is operating.
This may damage the printer.
3. Remove the used paper roll core if there is one.
4. Insert the paper roll as shown.
Notes : To remove the DC cable connector, make sure that the power supply’s power
cord is unplugged; then grasp the connector at the arrow and pull it straight out.
8
9
5. Be sure to note the correct direction that the paper comes off the roll.
1-7. Adjustments and Settings
6. Pull out a small amount of paper, as shown. Then close the cover.
1)It has 2 features ; Paper end and Black mark. For detecting Paper End,
Powe
Erro
pape
r
r
r
it must be positioned at
“a” Position in drawing and it is a factory default setting.
Feed
For detecting Black mark printed on the paper, it must be moved to “b” position.
2) Optical density (O.D) must be higher than 0.6 in density to secure a standard working
condition.
Make sure if the density of paper black mark is lesser it might be a cause of normality.
3) Table of O.D value (Reference)
Notes : When closing the cover, press the center of printer cover firmly to prevent
paper miss-loading
7. Tear off the paper as shown.
1.4
0.9
0.6
Pow
er
Err
or
pap
er
Fee
d
10
11
0.3
0.2
1-8. Using the Printer
1-9. Setting the DIP Switches
Control Panel
Serial Interface(RS-232C, RS-485) Specification
DIP Switch Set 1 Functions
Switch No.
Function
SW1-1
SW1-2
Baud Rate Selection
SW1-3
Handshaking
SW1-4
SW1-5
SW1-6
SW1-7
SW1-8
Reserved
Cutter Function
Paper
Reserved
Reserved
ON
OFF
Refer to below Table
Hardware
(DTR/DSR)
Software
(Xon/Xoff)
--
Disable
2 Color
Enable
Mono
---
Default
OFF
OFF
OFF
OFF
OFF
OFF
OFF
ON
Baud rate selection
SW1-1
SW1-2
OFF
OFF
9600 Baud
ON
OFF
19200 Baud
The button can be disabled by the ESC c 5 command.
OFF
ON
38400 Baud
Press the FEED button once to advance paper one line. You can also hold down the
FEED button to feed paper continuously.
ON
ON
115200 Baud
Button
Trans- Speed
Remark
Default
Dip Switch Set 2 Functions
Panel lights
POWER
The POWER light is on whenever the printer is on.
Switch No.
Function
ON
OFF
SW2-1
OFF
Select Print Density
ERROR
This indicates an error.
SW2-2
PAPER OUT
This light indicates the near end of the paper roll. Install a new paper roll and the
printer Will continue printing.
SW2-4
Historical Control
SW2-5
Reserved
Refer to below Table
SW2-3
When the light blinks, it indicates the self-test printing standby state or macro
execution Standby state when the macro execution command is used.
12
SW2-6
Default
OFF
OFF
Enable
Disable
--
Interface Condition
by Memory
by DIP
Selection
Switch
Switch
SW2-7
Reserved
SW2-8
Printing width
-2” Printing
13
OFF
OFF
OFF
OFF
3” Printing
OFF
SW
2-1
SW
2-2
SW
2-3
Print Density
ON
ON
ON
130%
OFF
ON
ON
120%
ON
OFF
ON
110%
OFF
OFF
ON
105%
OFF
OFF
OFF
100%
ON
OFF
OFF
95%
OFF
ON
OFF
90%
ON
ON
OFF
1-10. Setting the Memory Switches
Remark
This printer has “Memory Switch” set which is software switches. Memory Switch set has
“MSW1”, “MSW2”, “MSW8”, “MSW9” “Customize value”, “Serial communication condition”.
“Memory Switch setting utility” can change the Memory Switch set to ON or OFF as shown
in the table below (default : all OFF) :
Default
Notes : The Memory Switch is available to be changed by three methods :
- Memory Switch setting utility.
- Control from ESC/POS command.
80%
Settings of the Memory Switch are stored in the NV memory : therefore, even if the printer
is turned off, the settings are maintained.
Print Density
Parallel/USB Interface Specification
Switch No.
Function
ON
OFF
SW2-1
Default
OFF
Select Print Density
SW2-2
Refer to below Table
SW2-3
OFF
OFF
SW2-4
Historical Control
SW2-5
Enable
Reserved
SW2-6
Disable
--
OFF
Interface Condition
by Memory
by DIP
Selection
Switch
Switch
SW2-7
Reserved
SW2-8
Printing width
SW
2-1
SW
2-2
SW
2-3
Print Density
ON
ON
ON
130%
OFF
ON
ON
120%
ON
OFF
ON
110%
OFF
OFF
ON
105%
ON
OFF
OFF
100%
OFF
OFF
OFF
95%
OFF
ON
OFF
90%
ON
ON
OFF
80%
-2” Printing
OFF
Function
Reserved
Auto Line Feed
Reserved
MSW2
Switch
1~2
3
4~8
Function
Reserved
Auto Cutter Function
Code Page Selection
ON
-Enable
--
OFF
Remark
ON
OFF
-Fixed to OFF
Full Cutting
Partial Cutting
Refer to following Table
Default
Print Density
SW 5
Application
Dip Switch Set 1
ON
Auto Cutter Disabled
Ignores Auto Cutter error for continuous printing.
※ Auto Cutter Enable / Disable selection
14
OFF
Fixed to OFF
Disable
Fixed to OFF
OFF
OFF
3” Printing
MSW1
Switch
1~4
5
6~8
15
MSW2-8
OFF
OFF
OFF
OFF
OFF
OFF
OFF
OFF
OFF
OFF
OFF
OFF
OFF
OFF
OFF
OFF
ON
ON
ON
ON
ON
ON
ON
ON
ON
ON
ON
MSW2-7
OFF
OFF
OFF
OFF
OFF
OFF
OFF
OFF
ON
ON
ON
ON
ON
ON
ON
ON
OFF
OFF
OFF
OFF
OFF
OFF
OFF
OFF
ON
ON
ON
MSW2-6
OFF
OFF
OFF
OFF
ON
ON
ON
ON
OFF
OFF
OFF
OFF
ON
ON
ON
ON
OFF
OFF
OFF
OFF
ON
ON
ON
ON
OFF
OFF
OFF
MSW2-5
OFF
OFF
ON
ON
OFF
OFF
ON
ON
OFF
OFF
ON
ON
OFF
OFF
ON
ON
OFF
OFF
ON
ON
OFF
OFF
ON
ON
OFF
OFF
ON
MSW8
Switch
1~8
Function
Reserved
MSW9
Switch
1
2
3
4
5
6~8
Function
Reserved
Data Length
Parity Selection
Parity Check
Flow Control
Baud Rate Selection
MSW9-8
OFF
OFF
OFF
OFF
ON
MSW2-4
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
OFF
ON
--
Character Table
Page 0 437
Page 1 Katakana
Page 2 850
Page 3 860
Page 4 863
Page 5 865
Page 16 1252
Page 17 866
Page 18 852
Page 19 858
Reserved
Page 22 864
Page 23 Thai42
Page 24 1253
Reserved
Chapter 2. Hexadecimal Dumping
This feature allows experienced users to see exactly what data is coming to the printer.
This can be useful in finding software problems. When you turn on the hexadecimal dump
function, the printer prints all commands and data in hexadecimal format along with a
guide section to help you find specific commands.
To use the hexadecimal dump function, follow these steps:
1.
After you make sure that the printer is off, open the cover.
2.
Turn on the printer, while holding down the FEED button.
3.
Close the cover, then the printer enters the hexadecimal dump mode.
4.
Run any software program that sends data to the printer. The printer will print all the
codes it receives in a two-column format. The first column contains the hexadecimal
Page 28 1251
Page 29 737
Reserved
Page 31 Thai16
Reserved
Page 33 1255
codes and the second column gives the ASCII characters that corresponds to the
codes.
Reserved
0000: 1B 21 00 1B - 26 02 40 40 ¦
0008: 40 40 02 0D - 1B 44 0A 14 ¦
0010: 1E 28 28 28 - 00 01 0A 41 ¦
Page 36 855
Page 37 857
OFF
Fixed to OFF
. ! . . & . @ @
@ @ . . . D . .
. ( ( ( . . . A
z
A period (.) is printed for each code that has no ASCII equivalent.
z
During the hex dump, all commands except DLE EOT and DLE ENQ are
disabled.
ON
OFF
-Fixed to OFF
7 Bits
8 Bits
Even
Odd
Enable
Disable
DTR/DSR
XON/XOFF
Refer to following Table
MSW9-7
OFF
OFF
ON
ON
OFF
MSW9-6
OFF
ON
OFF
ON
OFF
16
5.
When the printing finishes, turn off the printer.
6.
Turn on the printer and then the hexadecimal mode is off.
Baud Rate
9600
19200
38400
57600
115200
17
Chapter 3. The self test
Chapter 4. Code Table
The self-test checks whether the printer has any problems. If the printer does not function
properly, contact your dealer. The self-test checks the following;
The following pages show the character code tables. To find the character corresponding
to a hexadecimal number, count across the top of the table for the left digit and count
down the left column of the table for the right digit. For example, 4A = J.
1.
Make sure paper roll has been installed properly.
2.
Turn on the power while holding down the FEED button. The self-test begins.
3.
The self-test prints the current printer status, which provides the control ROM version
and the DIP switch setting.
4.
After printing the current printer status, self-test printing will print the following, and
pause (The PAPER LED light blinks).
Self-test printing.
Please press the FEED button
5.
Press the FEED button to continue printing. The printer prints a pattern using the
built-in character set.
6.
The self-test automatically ends and cuts the paper after printing the following.
*** COMPLETED ***
The printer is ready to receive data as soon as it completes the self-test.
Page 0 ( PC437 : USA, Standard Europe)
( International Character Set : USA )
18
19
Page 1 ( Katakana )
Page 2 ( PC850 : Multilingual )
20
21
Page 3 ( PC860 : Portuguese )
Page 4 ( PC 863 : Canadian - French )
22
23
Page 5 ( PC 865 : Nordic )
Page 16 ( WPC1252 : Latin 1 )
24
25
Page 17 ( PC866 : Cyrillic #2 )
26
Page 18 ( PC852 : Latin2 )
27
Page 19 ( PC858 : Euro )
Page 22 ( PC864 : Arabic )
28
29
Page 23 ( Thai character code 42 )
Page 24 ( WPC1253 : Greek )
30
31
Page 28 ( WPC1251 : Cyrillic )
Page 29 ( PC737 : Greek )
32
33
Page 255 ( Space Page )
International Character Set
34
35
Chapter 5. Control Commands List
Command
Name
HT
LF
FF
CR
CAN
DLE EOT
DLE ENQ
Horizontal tab
Print and line feed
Print and return to standard mode (in page mode)
Print and carriage return
Cancel print data in page mode
Real-time status transmission
Real-time request to printer
Generate pulse in real-time
Execute power-off sequence
Clear buffer(s)
Print data in page mode
Set right-side character spacing
Select print mode(s)
Set absolute print position
Select/cancel user-defined character set
Define user-defined characters
Select bit-image mode
Turn underline mode on/off
Select default line spacing
Set line spacing
Select peripheral device
Cancel user-defined characters
Initialize printer
Set horizontal tab positions
Turn emphasized mode on/off
Turn double-strike mode on/off
Print and feed paper
Select page mode
Select character font
Select an international character set
Select standard mode
Select print direction in page mode
Turn 90° clockwise rotation mode on/off
Set printing area in page mode
Set relative print position
Select justification
Select paper sensor(s) to output paper-end signals
Select paper sensor(s) to stop printing
Enable/disable panel buttons
DLE DC4
ESC FF
ESC SP
ESC !
ESC $
ESC %
ESC &
ESC *
ESC ESC 2
ESC 3
ESC =
ESC ?
ESC @
ESC D
ESC E
ESC G
ESC J
ESC L
ESC M
ESC R
ESC S
ESC T
ESC V
ESC W
ESC \
ESC a
ESC c 3
ESC c 4
ESC c 5
36
Command
Name
ESC d
ESC p
ESC t
ESC {
FS p
FS q
GS !
GS $
GS ( A
GS ( D
GS ( E
GS 8 L
GS ( L
GS ( M
GS ( N
GS *
GS /
GS :
GS B
GS H
GS I
GS L
GS P
GS T
GS V
GS W
GS \
GS ^
GS a
GS b
GS f
GS h
GS k
GS r
GS v 0
GS w
Print and feed n lines
General pulse
Select character code table
Turn upside-down printing mode on/off
print NV bit image
Define NV bit image
Select character size
Set absolute vertical print position in page mode
Execute test print
Enable/disable real-time command
User setup commands
Set graphics data
Customize printer control value(s)
Select character style(s)
Define downloaded bit image
Print downloaded bit image
Start/end macro definition
Turn white/black reverse printing mode on/off
Select printing position of HRI characters
Transmit printer IE
Set left margin
Set horizontal and vertical motion units
Set print position to the beginning of print line
Select cut mode and cut paper
Set printing area width
Set relative vertical print position in page mode
Execute macro
Enable/disable Automatic Status Back (ASB)
Turn smoothing mode on/off
Select font for HIR characters
Set bar code height
Print bar code
Transmit status
Print raster bit image
Set bar code width
37
Command Notation
[Name]
[Format]
[Range]
[Description]
The name of the command.
The code sequence. ASCII Indicates the ASCII equivalents.
Hex indicates the hexadecimal equivalents.
Decimal indicates the decimal equivalents.
[ ] k indicates the contents of the [ ] should be repeated k times.
Gives the allowable ranges for the arguments.
Describes the function of the command.
Explanation of Terms
LSB
HT
[Name]
[Format]
[Description]
LF
[Name]
[Format]
[Description]
FF
[Name]
[Format]
[Description]
[Description]
[Notes]
CAN
[Name]
[Format]
Least Significant Bit
Horizontal tab.
ASCII
Hex
Decimal
▪ Moves the print
CR
[Name]
[Format]
[Description]
HT
09
9
position to the next horizontal tab position.
Print and line feed.
ASCII
LF
Hex
0A
Decimal
10
▪ In standard mode, prints the data in the print buffer and feeds one line
based on the current line spacing.
▪ In page mode, modes the print position in memory to feed one line based
on the current line spacing.
Print and return to standard mode in page mode.
ASCII
FF
Hex
0C
Decimal
12
▪ In page mode, prints the data in the print buffer collectively and returns
to standard mode.
38
DLE EOT n
[Name]
[Format]
[Range]
[Description]
Print and carriage return.
ASCII
CR
Hex
0D
Decimal
13
▪ When automatic line feed is enabled, this command functions the same as
LF.
▪ When automatic line feed is disabled, this command is ignored CR.
▪ The automatic line feed is ignored with a serial interface model.
▪ With a parallel interface model, the automatic line feed is set with
memory switch 1-5 when the printer power is turned on or reset.
Cancel print data in page mode.
ASCII
CAN
Hex
18
Decimal
24
▪ In page mode, deletes all the print data in the current printable area.
Transmission real-time status.
ASCII
DLE
EOT
n
Hex
10
04
n
Decimal
16
4
n
1≤n≤4
▪ Transmits the status specified by n in real-time as follows:
n
Function
1
Transmit printer status.
2
Transmit off-line status.
3
Transmit error status.
4
Transmit paper roll sensor status.
▪ This printer transmits the following status in real time.
39
n=1 : Printer status
Bit
0
1
2
3
4
5
6
7
Off/On
Off
On
Off
On
Off
On
On
Off
On
Off
On
Off
Hex
00
02
00
04
00
08
10
00
20
00
40
00
Decimal
0
2
0
4
0
8
16
0
32
0
64
0
Off/On
Off
On
Off
On
Off
On
On
Off
On
Off
On
Off
Hex
00
02
00
04
00
08
10
00
20
00
40
00
Decimal
0
2
0
4
0
8
16
0
32
0
64
0
Off/On
Off
On
Off
On
Off
On
On
Off
On
Off
On
Off
Hex
00
02
00
04
00
08
10
00
20
00
40
00
Decimal
0
2
0
4
0
8
16
0
32
0
64
0
Function
Fixed.
Fixed.
Drawer kick-out connector pin 3 is LOW.
Drawer kick-out connector pin 3 is HIGH.
On-Line.
Off-Line.
Fixed.
Not in on-line waiting status.
During on lines waiting status.
Paper FEED button is turned Off.
Paper FEED button is turned On.
Fixed.
n=2 : Off-line status
Bit
0
1
2
3
4
5
6
7
Bit
0
1
2
3
4
5
6
7
Off/On
Off
On
Off
On
Off
On
On
Off
On
Off
On
Off
[Notes]
DLE ENQ n
[Name]
[Format]
[Range]
[Description]
n=3 : Error status
Bit
0
1
2
3
4
5
6
7
Function
Fixed.
Fixed.
No mechanical error.
Mechanical error has occurred.
No auto-cutter error.
Auto-cutter error occurred.
Fixed.
No unrecoverable error.
Unrecoverable error has occurred.
No automatically recoverable error.
Automatically recoverable error has occurred.
Fixed.
40
Decimal
0
2
0
4
0
8
16
0
32
0
64
0
n=4 : Continuous paper sensor status
Function
Fixed.
Fixed.
Paper roll
Paper roll
Paper roll
Paper roll
Fixed.
Paper roll
Paper roll
Paper roll
Paper roll
Fixed.
near-end
near-end
near-end
near-end
sensor
sensor
sensor
sensor
:
:
:
:
paper
paper
paper
paper
adequate.
near end.
adequate.
near end.
near-end
near-end
near-end
near-end
sensor
sensor
sensor
sensor
:
:
:
:
paper
paper
paper
paper
present.
not present.
present.
not present.
▪ If print data includes a character string with this command, the printer
performs this command. User must consider this.
- For example : Bit image data accidentally might include a data string with this command.
▪ Do not embed this command within another command.
- For example : Bit image data might include this command.
▪ This command is ignored block data is transmitted.
Function
Fixed.
Fixed.
Cover is closed.
Cover is open.
Paper is not being fed by using the paper FEED button.
Paper is being fed by the paper FEED button.
Fixed.
No paper-end stop.
Printing is being stopped.
No error.
Error has occurred.
Fixed.
Hex
00
02
00
04
00
08
10
00
20
00
40
00
Real-time request to printer.
ASCII
DLE
ENQ
n
Hex
10
05
n
Decimal
16
5
n
0≤n≤2
▪ Responds to a request from the host computer.
- n specifies the requests as follows :
n
Request
0
1
Works the same as when the paper FEED button is pressed once during waiting
status during the operation of the GS ^ command.
Recovers from an error and restarts printing from the line where the error occurred.
2
Recovers from an error after clearing the receive and print buffers.
[Notes]
▪ Specify n=1 or 2 after removing the cause of the error.
▪ If print data includes a character string with this command, the printer
performs the command. User must consider this.
- For example : Bit image data accidentally might include a data string with this command.
▪ Do not embed this command within another command.
- For example : Bit image data might include this command.
▪ This command is ignored block data is transmitted.
▪ This command is ignored block data is transmitted.
41
DLE DC4 fn m t (fn=1)
Generate pulse in real-time.
[Name]
ASCII
DLE
[Format]
Hex
10
Decimal
16
fn=1
[Range]
0≤m≤8
1≤t≤8
[Description] ▪ Outputs the pulse specified
by m as follows :
n
Connector pin
0
Drawer kick-out connector pin 2.
1
Drawer kick-out connector pin 5.
[Notes]
DC4
14
20
fn
1
1
m
m
m
- Executes the printer power off.
▪ If this command is encountered, the printer will not continue to process
anything. To recover the printer to print again, it is necessary to turn the
power on again or execute a hardware reset.
▪ If print data includes a character string with this command, the printer
performs the command. User must consider this.
- For example : Bit image data accidentally might include a data string
with this command.
▪ Do not embed this command within another command.
- For example : Bit image data might include this command.
▪ This command is ignored block data is transmitted.
t
t
t
by t in real-time to the connector pin specified
- The pulse ON time or OFF time is set to [t x 100 ms].
▪ Specify n=1 or 2 after removing the cause of the error.
▪ If print data includes a character string with this command, the printer
performs the command. User must consider this.
- For example : Bit image data accidentally might include a data string
with this command.
▪ Do not embed this command within another command.
- For example : Bit image data might include this command.
▪ This command is ignored in the following states :
- During transmission of block data.
- During driving of drawer kick-out.
- When an error has occurred.
DLE DC4 fn a b (fn=2)
Execute power-off sequence.
[Name]
ASCII
DLE
DC4
fn
[Format]
Hex
10
14
fn
Decimal
16
20
fn
fn=2
[Range]
a=1
b=8
[Description] ▪ Executes the printer power-off sequence.
- Stores the values of the maintenance counter.
- Transmits the following power-off status (Header +
Decimal
Hex
Decimal
Header
37 H
55
1 byte
Flag
25 H
37
1 byte
NUL
00 H
0
1 byte
[Notes]
a
a
a
b
b
b
Status + NUL).
Power off status
Hex
Header
3B H
59
1 byte
Status
30 H
48
1 byte
NUL
00 H
0
1 byte
42
DLE DC4 fn d1...d7 (fn=8)
[Name]
Clear buffer(s).
[Format]
ASCII
DLE
DC4
fn
d1...d7
Hex
10
14
8
d1...d7
Decimal
16
20
8
d1...d7
[Range]
fn=8
d1=1, d2=3, d3=20, d4=1, d5=6, d6=2, d7=8
[Description] ▪ Clear all data stored in the receive buffer and the print buffer.
▪ Transmits the following three bytes data.
Amount of data
ESC FF
[Name]
[Format]
[Description]
Amount of data
▪ Enters standard mode.
▪ The command must be inhibited for use in a system using this printer and
the EPSON OPOS.
▪ If print data includes a character string with this command, the printer
performs the command. User must consider this.
- For example : Bit image data accidentally might include a data string
with this command.
▪ Do not embed this command within another command.
- For example : Bit image data might include this command.
▪ This command is ignored block data is transmitted.
Print data in page mode.
ASCII
ESC
FF
Hex
1B
0C
Decimal
27
12
▪ In page mode, prints all buffered data in the printing area collectively.
43
ESC SP n
[Name]
[Format]
[Range]
[Default]
[Description]
ESC ! n
[Name]
[Format]
[Range]
[Default]
[Description]
Bit
0
1,2
3
4
5
6
7
Off/On
Off
On
Off
Off
On
Off
On
Off
On
Off
Off
On
Set right-side character spacing.
ASCII
ESC
SP
n
Hex
1B
20
n
Decimal
27
32
n
0 ≤ n ≤ 255
n=0
▪ Sets the character spacing for the right side of the character to
[n ×horizontal or vertical motion units].
▪ The maximum right-side character spacing is :
- For ANK/Multilingual model, 35.955mm {255/180”}.
- For Japanese Kanji model, 31.875mm {255/203”}.
Select print mode(s).
ASCII
ESC
!
n
Hex
1B
21
n
Decimal
27
33
n
0 ≤ n ≤ 255
n=0
▪ Selects print mode(s) using n as follows.
Hex
00
01
00
00
08
00
10
00
20
00
00
80
Decimal
0
1
0
0
8
0
16
0
32
0
0
128
Function
Character font A (12 × 24) selected.
Character font B (9 x 24) selected.
Reserved.
Emphasized mode not selected.
Emphasized mode selected.
Double-height mode not selected.
Double-height mode selected.
Double-width mode not selected.
Double-width mode selected.
Reserved.
Underline mode not selected.
Underline mode selected.
44
ESC $ nL nH
[Name]
Set absolute print position.
ASCII
ESC
$
nL
nH
[Format]
Hex
1B
24
nL
nH
Decimal
27
36
nL
nH
[Range]
0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nH ≤ 255, 0 ≤ nL ≤ 255)
[Description] ▪ Sets the next print starting position, and the absolute print position, in
reference to the left margin. The distance from the beginning of the line to the
left margin is [(nL + nH x 256) x (vertical or horizontal motion units)].
ESC % n
[Name]
[Format]
[Range]
[Default]
[Description]
Select/cancel user-defined character set.
ASCII
ESC
%
n
Hex
1B
25
n
Decimal
27
37
n
0 ≤ n ≤ 255
n=0
▪ Select or cancels the user-defined character set.
- When the LSB of n is 0, the user-defined character set is canceled.
- When the LSB of n is 1, the user-defined character set is selected.
ESC & y c1 c2 [x1 d1...d(y x 1)]...[xk d1...d(y x xk)]
Define user-defined characters.
[Name]
ASCII
ESC
&
y c1 c2 [x1 d1...d(y x 1)]...[xk d1...d(y x xk)]
[Format]
Hex
1B
26 y c1 c2 [x1 d1...d(y x 1)]...[xk d1...d(y x xk)]
Decimal
27
38 y c1 c2 [x1 d1...d(y x 1)]...[xk d1...d(y x xk)]
For SRP-370
[Range]
y=3
[Default]
32 ≤ c1 ≤ c2 ≤ 126
0 ≤ x ≤ 12 (when font A (12 x 24) is selected)
0 ≤ x ≤ 9 (when font B (9 x 24) is selected)
0 ≤ d ≤ 255
k=c2-c1+1
For SRP-372
y=3 (when font A (12 x 24) is selected.
y=3 (when font C (8 x 16) selected)
32 ≤ c1 ≤ c2 ≤ 126
0 ≤ x ≤ 12 (when font A (12 x 24) is selected)
0 ≤ x ≤ 9 (when font B (9 x 24) is selected)
0 ≤ d ≤ 255
k=c2-c1+1
[Description] ▪ Assigns the user-defined character pattern for the specified character codes.
- y specifies the number of bytes in the vertical direction.
- c1 specifies the beginning character code for the definition, and c2 specifies the final code.
- x specifies the number of dots in the horizontal direction.
- d specifies the definition data.
45
ESC * m nL nH d1...dk
Select bit image mode.
[Name]
ASCII
ESC
*
m
nL
nH
d1...dk
[Format]
Hex
1B
2A
m
nL
nH
d1...dk
Decimal
27
42
m
nL
nH
d1...dk
m=0, 1, 32, 33
[Range]
1 ≤ (nL + nH x 256) ≤ 1023 (0 ≤ nL ≤ 255, 0 ≤ nH ≤ 3)
0 ≤ d ≤ 255
[Description] ▪ Specifies the bit image in m mode for the number of dots specified by nL and nH.
* dpi : dots per 25.4mm {1”}
- For SRP-370
Number of dots in
Vertical dot
Horizontal
Number of bytes (k)
m
Mode
vertical direction
density
dot density
8-dot
0
8
60 dpi
90 dpi
nL + nH x 256
single-density
8-dot
1
8
60 dpi
180 dpi
nL + nH x 256
double-density
24-dot
32
24
180 dpi
90 dpi
(nL + nH x 256) x 3
single-density
24-dot
33
24
180 dpi
180 dpi
(nL + nH x 256) x 3
double-density
* dpi : dots per 25.4mm {1”}
- For SRP-372
Number of dots in
Vertical dot
Horizontal
Number of bytes (k)
m
Mode
vertical direction
density
dot density
8-dot
0
8
203/3 dpi
203/2 dpi
nL + nH x 256
single-density
8-dot
1
8
203/3 dpi
203 dpi
nL + nH x 256
double-density
24-dot
32
24
203 dpi
203/2 dpi
(nL + nH x 256) x 3
single-density
24-dot
33
24
203 dpi
203 dpi
(nL + nH x 256) x 3
double-density
ESC - n
[Name]
[Format]
[Range]
[Default]
[Description]
n
0,48
1,49
2,50
Turn underline mode on/off.
ASCII
ESC
Hex
1B
2D
Decimal
27
45
0 ≤ n ≤ 2, 48 ≤ n ≤ 50
n=0
▪ Turn underline mode on or off, based on
ESC 2
[Name]
[Format]
[Description]
ESC 3 n
[Name]
[Format]
[Range]
[Default]
[Description]
[Notes]
ESC = n
[Name]
[Format]
[Range]
[Default]
Select default line spacing.
ASCII
ESC
2
Hex
1B
32
Decimal
27
50
▪ For SRP-370
- Sets the current line spacing to approximately 4.23mm {1/6”}.
▪ For SRP-372
- Sets the current line spacing to approximately 3.75mm {30/203”}.
Set line spacing
ASCII
ESC
3
n
Hex
1B
33
n
Decimal
27
51
n
0 ≤ n ≤ 255
▪ For SRP-370
- Equivalent to approximately 4.23mm {1/6”}.
▪ For SRP-372
- Equivalent to approximately 3.75mm {30/203”}.
▪ Sets the current line spacing to [n x vertical motion units] inches.
▪ For SRP-370
- The maximum settable line spacing is 1016mm {40”}.
▪ For SRP-372
- The maximum settable line spacing is 900mm {35.5”}.
Select peripheral device.
ASCII
ESC
=
Hex
1B
3D
Decimal
27
61
0≤n≤3
▪ Serial interface specification :
- When turning on the printer : n=1
- When executing ESC @ :
n
1
2
3
After ESC @ processing
1
2
1
▪ Selects device to which host computer sends data, using n as follows :
n
Function
1
Specifies printer only.
2
Specifies customer display only.
3
Specifies printer and customer display.
Setting before executing ESC @
n
n
n
the following values of n :
[Description]
Function
Turns off underline mode.
Turns on underline mode, set at 1-dot width.
Turns on underline mode, set at 2-dot width.
46
n
n
n
47
ESC ? n
[Name]
[Format]
[Range]
[Description]
ESC @
[Name]
[Format]
[Range]
[Description]
Cancel user-defined characters.
ASCII
ESC
?
n
Hex
1B
3F
n
Decimal
27
63
n
32 ≤ n ≤ 126
▪ Cancels user-defined characters, specified with character codes on a
selected sheet.
Initialize printer.
ASCII
ESC
@
Hex
1B
40
Decimal
27
64
32 ≤ n ≤ 126
▪ Clears the data in the print buffer and resets the printer mode to the
mode that were in effect when the power was turned on.
ESC D n1… nk NUL
Set horizontal tab positions.
[Name]
ASCII
ESC
D
n1...nk
NUL
[Format]
Hex
1B
44
n1...nk
00
Decimal
27
68
n1...nk
0
1 ≤ n ≤ 255
[Range]
0 ≤ k ≤ 32
n=8, 16, 24, 32, 40,....., 232, 240, 248
[Default]
(for font A in a standard character size width)
[Description] ▪ Sets horizontal tab positions.
- n specifies the number of digits from the setting position to the left
margin or the beginning of the line.
- k specifies the number of bytes set for the horizontal tab position.
ESC E n
[Name]
[Format]
[Range]
[Default]
[Description]
Turn emphasized mode on / off.
ASCII
ESC
E
n
Hex
1B
45
n
Decimal
27
69
n
0 ≤ n ≤ 255
n=0
▪ Turns emphasized mode on or off.
- When the LSB of n is 0, emphasized mode is turned off.
- When the LSB of n is 1, emphasized mode is turned on.
48
ESC G n
[Name]
[Format]
[Range]
[Default]
[Description]
ESC J n
[Name]
[Format]
[Range]
[Description]
ESC L
[Name]
[Format]
[Description]
ESC M n
[Name]
[Format]
[Range]
[Default]
[Description]
Turn double-strike mode on/off.
ASCII
ESC
G
n
Hex
1B
47
n
Decimal
27
71
n
0 ≤ n ≤ 255
n=0
▪ Turns double-strike mode on or off.
- When the LSB of n is 0, double-strike mode is turned off.
- When the LSB of n is 1, double-strike mode is turned on.
Print and feed paper.
ASCII
ESC
J
n
Hex
1B
4A
n
Decimal
27
74
n
0 ≤ n ≤ 255
▪ Prints the data in the print buffer and feeds the paper [n X vertical motion unit].
▪ For SRP-370
- The maximum paper feed amount is approximately 1016mm{40"} if [n
X vertical motion unit] exceeds 1016mm{40"}.
▪ For SRP-372
- The maximum paper feed amount is approximately 900mm {35.5”} if
[n X vertical motion unit] exceeds 900mm {35.5”}.
Select page mode.
ASCII
ESC
L
Hex
1B
4C
Decimal
27
76
▪ Switches from standard mode to page mode.
Select character font.
ASCII
ESC
M
Hex
1B
4D
Decimal
27
77
For SRP-370 : n = 0, 1, 48, 49
For SRP-372 : 0 ≤ n 2, 48 ≤ n ≤ 50
n=0
▪ Selects only-byte character fonts.
49
n
n
n
- For
n
0, 48
1, 49
SRP-370 model :
Function
Character font A (12 × 24) selected.
Character font B (9 × 24) selected.
- For
n
0, 48
1, 49
SRP-372 model :
Function
Character font A (12 × 24) selected.
Character font B (9 × 24) selected.
ESC R n
[Name]
[Format]
[Range]
[Default]
[Description]
ESC S
[Name]
[Format]
[Description]
ESC T n
[Name]
[Format]
[Range]
[Default]
[Description]
Select an international character set.
ASCII
ESC
R
Hex
1B
52
Decimal
27
82
0 ≤ n ≤ 13
n=0
▪ Selects international character set in
n
Character set
0
U.S.A
1
France
2
Germany
3
U.K
4
Denmark I
5
Sweden
6
Italy
n
0,48
1,49
1,50
3,51
ESC V n
[Name]
[Format]
n
n
n
from the following table :
n
Character set
7
Spain I
9
Norway
10
Denmark II
11
Spain II
12
Latin America
13
Korea
Select standard mode.
ASCII
ESC
S
Hex
1B
53
Decimal
27
83
▪ Switches from page mode to standard mode. Any data stored in the
printer for printing in page mode is cleared.
Select print direction in page mode.
ASCII
ESC
T
n
Hex
1B
54
n
Decimal
27
84
n
0 ≤ n ≤ 3, 48 ≤ n ≤ 51
n=o
▪ Selects the print direction and starting position in page mode.
50
[Range]
[Default]
[Description]
Print Direction
Left right
Bottom to top
Right left
Top bottom
Starting Position
Upper left
Lower left
Lower right
Upper right
Turn 90°clockwise rotation mode on/off.
ASCII
ESC
V
n
Hex
1B
56
n
Decimal
27
86
n
0 ≤ n ≤ 2, 48 ≤ n ≤ 50
n=o
▪ Turn 90° clockwise rotation mode on/off in standard mode.
- When the paper roll is selected :
n
Function
0, 48
Turn off 90°clockwise rotation mode.
1, 49
Turn on 90°clockwise rotation mode.
2, 50
ESC W xL xH yL yH dxL dxH dyL dyH
Set relative print position.
[Name]
ASCII
ESC
W
xL xH yL yH dxL dxH dyL
[Format]
Hex
1B
57 xL xH yL yH dxL dxH dyL
Decimal
27
87 xL xH yL yH dxL dxH dyL
0 ≤ (xL + xH x 256) ≤ 65535 (0 ≤ xL ≤ 255, 0 ≤ xH ≤ 255)
[Range]
0 ≤ (yL + yH x 256) ≤ 65535 (0 ≤ yL ≤ 255, 0 ≤ yH ≤ 255)
1 ≤ (dxL + dxH x 256) ≤ 65535 (0 ≤ dxL ≤ 255, 0 ≤ dxH ≤ 255)
1 ≤ (dyL + dyH x 256) ≤ 65535 (0 ≤ dyL ≤ 255, 0 ≤ dyH ≤ 255)
▪ For SRP-370 :
[Default]
- When a paper width of 80mm{3.15"} is selected :
(xL + xH x 256) = 0 (xL=0, xH=0)
(yL + yH x 256) = 0 (yL=0, yH=0)
(dxL + dxH x 256) = 512 (dxL=0, dxH=2)
(dyL + dyH x 256) = 1662 (dyL=126, dyH=6)
- When a paper width of 60mm{2.36"} is selected :
(xL + xH x 256) = 0 (xL=0, xH=0)
(yL + yH x 256) = 0 (yL=0, yH=0)
(dxL + dxH x 256) = 360 (dxL=104, dxH=1)
(dyL + dyH x 256) = 1662 (dyL=126, dyH=6)
51
dyH
dyH
dyH
[Description]
▪ For SRP-372 :
- When a paper width of 80mm{3.15"} is selected :
(xL + xH x 256) = 0 (xL=0, xH=0)
(yL + yH x 256) = 0 (yL=0, yH=0)
(dxL + dxH x 256) = 576 (dxL=64, dxH=2)
(dyL + dyH x 256) = 1476 (dyL=196, dyH=5)
- When a paper width of 60mm{2.36"} is selected :
(xL + xH x 256) = 0 (xL=0, xH=0)
(yL + yH x 256) = 0 (yL=0, yH=0)
(dxL + dxH x 256) = 380 (dxL=128, dxH=1)
(dyL + dyH x 256) = 1476 (dyL=196, dyH=5)
▪ Set the position and the size of the printing area.
- Horizontal starting position = [(xL + xH x 256) x (horizontal motion unites)].
- Vertical starting position = [(yL + yH x 256) x (vertical motion unites)].
- Horizontal printing area width = [(dxL + dxH x 256) x (horizontal motion unites)].
- Vertical printing area width = [(dyL + dyH x 256) x (vertical motion unites)].
▪ The maximum printable area is 117.263mm {1662/360"} maximum.
ESC \ nL nH
[Name]
Set relative print position.
[Format]
ASCII
ESC
nL
nH
\
Hex
1B
5C
nL
nH
Decimal
27
92
nL
nH
[Range]
0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nL 255, 0 ≤ nH ≤ 255)
[Description] ▪ Set the print starting position based on the current position to [(nL + nH
× 256) × horizontal or vertical motion unit]
- When (nL + nH × 256) is positive number, the print starting position is
specified to the right based on the current position.
- When (nL + nH × 256) is negative number, the print starting position is
specified to the left based on the current position.
ESC a n
[Name]
[Format]
[Range]
[Default]
[Description]
Select justification.
ASCII
ESC
a
n
Hex
1B
61
n
Decimal
27
97
n
0 ≤ n ≤2, 48 ≤ n ≤50
n=0
▪ In standard mode, aligns all the data in one line to the position specified by n as follows :
n
Justification
0, 48
Left justification
1, 49
Centering
2, 50
Right justification
52
ESC c 3 n
[Name]
[Format]
[Range]
[Default]
[Description]
Bit
0
1
2
3
4~7
Off/On
Off
On
Off
On
Off
On
Off
On
-
[Note]
[Range]
[Default]
[Description]
1
2~7
Hex
00
01
00
02
00
04
00
08
-
Decimal
0
1
0
2
0
4
0
8
-
Function
Paper roll near-end sensor disable.
Paper roll near-end sensor enable.
Paper roll near-end sensor disable.
Paper roll near-end sensor enable.
Paper roll end sensor disable.
Paper roll end sensor enable.
Paper roll end sensor disable.
Paper roll end sensor enable.
Reserved.
▪ This command is available only with a parallel interface and is ignored
with a serial interface.
ESC c 4 n
[Name]
[Format]
Bit
0
Select paper sensor(s) to output paper end signals.
ASCII
ESC
c
3
n
Hex
1B
63
33
n
Decimal
27
99
51
n
0 ≤ n ≤ 255
n=0
▪ Selects the paper sensor(s) to output paper end signals when a paper end
is detected.
Select paper sensor(s) to stop printing.
ASCII
ESC
c
4
n
Hex
1B
63
34
n
Decimal
27
99
52
n
0 ≤ n ≤ 255
n=0
▪ Selects the paper sensor(s) to use to stop printing when a paper end is
detected.
Off/On
Off
On
Off
On
-
Hex
00
01
00
02
-
Decimal
0
1
0
2
-
53
Function
Paper roll end
Paper roll end
Paper roll end
Paper roll end
Reserved.
sensor
sensor
sensor
sensor
disable.
enable.
disable.
enable.
ESC c 5 n
[Name]
[Format]
[Range]
[Default]
[Description]
[Notes]
ESC d n
[Name]
[Format]
[Range]
[Description]
Enable / Disable
ASCII
Hex
Decimal
panel button.
ESC
c
1B
63
27
99
5
35
53
n
n
n
0 ≤ n ≤ 255
n=0
▪ Enables or disables the panel buttons.
- When the LSB of n is 0, the panel buttons are enabled.
- When the LSB of n is 1, the panel buttons are disabled.
▪ When the printer cover is open, the panel buttons are always ignored
regardless of the setting with this command.
Print and feed n lines.
ASCII
ESC
Hex
1B
Decimal
27
d
64
100
ESC t n
[Name]
[Format]
[Range]
[Default]
[Description]
n
n
n
0 ≤ n ≤ 255
▪ Prints the data in the print buffer and feeds n lines.
ESC p m t1 t2
[Name]
Generate pulse.
[Format]
ASCII
ESC
p
m
t1
t2
Hex
1B
70
m
t1
t2
Decimal
27
112
m
t1
t2
[Range]
m = 0, 1, 48, 49
0 ≤ t1 ≤ 255, 0 ≤ t2 ≤ 255
[Description] ▪ Outputs the pulse specified by t1 and t2 to connector pin m as follows :
m
Connector pin
0, 48
Drawer kick-out connector pin 2
1, 49
Drawer kick-out connector pin 5
▪ t1 specifies the pulse ON time as [t1 x 2ms], and t2 specifies the pulse
OFF time as [t2 x 2ms].
▪ If t2 is smaller than t1, OFF time is set as [t1 x 2ms].
ESC { n
[Name]
[Format]
[Range]
[Default]
[Description]
54
Select character code table.
ASCII
ESC
t
n
Hex
1B
74
n
Decimal
27
116
n
0 ≤ n ≤ 5, 16 ≤ n ≤ 24, 27 ≤ n ≤ 30, n=255
For model without Thai character support : n=0
For model with Thai character support : n = 20
▪ Selects a page n from the character code table.
n
Page
0
PC437 (USA, standard Europe)
1
Katakana
2
PC850 (Multilingual)
3
PC860 (Portuguese)
4
PC863 (Canadian-French)
5
PC865 (Nordic)
7
855 (Cyrillic)
8
857 (Turkish)
16
WPC1252
17
PC866 (Cyrillic #2)
18
PC852 (Latin 2)
19
PC858 (Euro)
22
864 (Arabic)
23
Thai character code 42
24
1253 (Greek)
28
1251 (Cyrillic)
29
737 (Greek)
31
Thai character code 16
33
1255 (Hebrew)
255
User-defined page
Turns upside-down printing mode on/off.
ASCII
ESC
{
n
Hex
1B
7B
n
Decimal
27
123
n
0 ≤ n ≤ 255
n=0
▪ Turns upside-down printing mode on or off.
- When the LSB of n is 0, upside-down printing mode is turned off.
- When the LSB of n is 1, upside-down printing mode is turned on.
55
FS p n m
[Name]
[Format]
[Range]
[Description]
Print NV bit image.
ASCII
FS
p
Hex
1C
70
Decimal
28
112
1 ≤ n ≤ 255
0 ≤ m ≤ 3, 48 ≤ m ≤ 51
▪ Prints an NV bit image n in m mode.
- For SRP-370 :
m
Mode
0, 48
Normal
1, 49
Double-width
2, 50
Double-height
3, 51
Quadruple
- For SRP-372 :
m
Mode
0, 48
Normal
1, 49
Double-width
2, 50
Double-height
3, 51
Quadruple
n
n
n
m
m
m
dpi : dots per 25.4mm {1"}
Vertical Dot Density (DPI)
180 dpi
180 dpi
90 dpi
90 dpi
Horizontal Dot Density (DPI)
180 dpi
90 dpi
180 dpi
90 dpi
Vertical Dot Density (DPI)
203 dpi
203 dpi
203/2 dpi
203/2 dpi
Horizontal Dot Density (DPI)
203 dpi
203/2 dpi
203 dpi
203/2 dpi
FS q n [xL xH yL yH d1…dk]1…[xL xH yL yH d1…dk]n
Defined NV bit image.
[Name]
ASCII
FS
q
n
[Format]
[xL xH yL d1...dk]1... [xL xH yL d1...dk]n
Hex
1C
71
n
[xL xH yL d1...dk]1... [xL xH yL d1...dk]n
Decimal 28 113 n
[xL xH yL d1...dk]1... [xL xH yL d1...dk]n
[Range]
1 ≤ n ≤ 255
1 ≤ (xL + xH ×256) ≤ 1023 (0 ≤ xL ≤ 255, 0 ≤ xH ≤ 3)
1 ≤ (yL + yH ×256) ≤ 288 (0 ≤ yL ≤ 255, yH=0,1)
0 ≤ d ≤ 255
k = (xL + xH × 256) × (yL + yH × 256) × 8
Either one of the total capacity data [0, 64k, 128k, 192k, 256k, 320k, 384k]
bytes can be selected by GS ( E. The default value is 384 KB.
[Description] ▪ Defines the specified NV bit image.
- n specifies the number of the NV bit image you are defining.
- xL, xH specify the number of dots in the horizontal direction for the NV
bit image with [(xL + xH × 256) x 8].
- yL, yH specify the number of dots in the vertical direction for the NV bit
image with [(yL + yH × 256) x 8].
▪ If this command is processed when the NV graphics is defined with GS ( L or GS 8 L,
delete all NV graphics data, then define the bit image data with this command.
[Notes]
▪ Frequent write command executions by this command may damage to the NV memory.
Therefore, it is recommended to write to the NV memory 10 times or less a day.
▪ During processing of this command, the printer is BUSY while writing the
data to the NV bit image memory and stops receiving data. Therefore, it is
prohibited to transmit data, including real-time commands, during the
execution of this command.
56
GS ! n
[Name]
[Format]
[Range]
[Default]
[Description]
GS $ nL nH
[Name]
[Format]
[Range]
[Description]
Select character size.
ASCII
GS
!
n
Hex
1D
21
n
Decimal
29
33
n
0 ≤ n ≤ 255
(where 1 ≤ Enlargement in vertical direction ≤ 8, 1 ≤ Enlargement in
horizontal direction ≤ 8)
n=0
▪ Selects character size (enlargement in vertical and horizontal directions).
Bit
Function
Setting
0
Specifies the number of times
1
Refer to Table 2
enlarged in the vertical
[Enlarged in vertical direction]
2
direction
3
4
Specifies the number of times
Refer to Table 1
5
enlarged in the horizontal
[Enlarged in horizontal
6
direction
direction]
7
- Table 1 [Enlarged in horizontal direction]
Hex
Decimal
Enlargement
00
0
1 time (standard)
10
16
2 times
20
32
3 times
30
48
4 times
40
64
5 times
50
80
6 times
60
96
7 times
70
112
8 times
- Table 1 [Enlarged in vertical direction]
Hex
Decimal
Enlargement
00
0
1 time (standard)
01
1
2 times
02
2
3 times
03
3
4 times
04
4
5 times
05
5
6 times
06
6
7 times
07
7
8 times
Set absolute vertical print position in page mode.
ASCII
GS
$
nL
nH
Hex
1D
24
nL
nH
Decimal
29
36
nL
nH
0 ≤ (nL + nH x 256) ≤ 65535 (0 ≤ nL ≤ 255, 0 ≤ nH ≤ 255)
▪ Sets the absolute vertical print starting position to [(nL + nH × 256) ×
(vertical or horizontal motion units)].
57
GS ( A pL pH n m
Execute test print.
[Name]
ASCII
GS
(
A
pL
pH
n
m
[Format]
Hex
1D
28
41
pL
pH
n
m
Decimal
29
40
65
pL
pH
n
m
(pL + pH x 256) = 2 (pL=2, pH=0)
[Range]
0 ≤ n ≤ 2, 48 ≤ n ≤ 50
1 ≤ m ≤ 3, 49 ≤ m ≤ 51
[Description] ▪ Executes a test print with a specified test pattern on a specified paper
type (roll paper).
- n specifies the paper type as listed below to be tested :
m
Paper type
0, 48
1, 49 Paper roll
2, 50
- m specifies a test pattern as listed below :
m
Test pattern
1, 49 Hexadecimal dump
2, 50 Self Test Printing
▪ The printer executes a hardware reset after the procedure to place the image into the non-volatile
[Notes]
memory. The printer clear the receive and print butters, and resets all settings (user-defined
characters, macros, and the character styles) to the mode that was in effect at power on.
GS ( D pL pH m [a1 b1]...[ak bk]
Enable/disable real-time command.
[Name]
ASCII
GS
(
D
pL pH m
[a1 b1]...[ak bk]
[Format]
Hex
1D
28 44 pL pH m
[a1 b1]...[ak bk]
Decimal
29
40 68 pL pH m
[a1 b1]...[ak bk]
3 ≤ (pL + pH x 256) ≤ 65535
[Range]
m=20
a=1, 2
b=0, 1, 48, 49
[Default]
a
Type(s) of real-time commands
Default
1
DLE DC4 fn m t (fn=1) : Generate pulse in real-time
Enable (b=1)
2
DLE DC4 fn a b (fn=2) : Execute power-off sequence disable (b=0)
[Description] ▪ Enable or disables the following real-time commands.
a
b
Function
0, 48
DLE DC4 fn m t (fn=1) : Not processed (disabled)
1
1, 49
DLE DC4 fn m t (fn=1) : Processed (enabled)
0, 48
DLE DC4 fn a b (fn=2) : Not processed (disabled)
2
1, 49
DLE DC4 fn a b (fn=2) : Processed (enabled)
- pL, pH specifies (pL + pH x 256) as the number of bytes after pH (m
and [a1 b1]...[ak bk]).
- a specifies the type of real-time command.
- b specifies enable or disable.
▪ If bit image data accidentally includes a character string with this command, it is
[Notes]
recommended to use this command in advance to disable the real-time command.
58
GS ( E pL pH fn [parameter]
[Name]
Customize NV memory area.
[Description] ▪ Customize the NV user memory area. The table below explains the
functions available in this command. Executes commands related to the
user setting mode by specifying the function code fn.
fn
1
2
Format
GS ( E pL pH fn d1 d2
GS ( E pL pH fn d1 d2 d3
3
4
GS ( E pL pH fn [a1 b18...b11]...
[ak bk8...bk1]
GS ( E pL pH fn a
4
11
GS ( E pL pH fn a d1...dk
11
12
GS ( E pL pH fn a
12
[Notes]
No.
1
2
3
Function
Changes into the user setting mode.
Ends the user setting mode session.
(Performs a soft reset.)
Sets value(s) for the memory switch.
Transmits the settings of the memory
switch to the host.
Sets the communication conditions for
the serial interface.
Transmits the communication
conditions for the serial interface.
▪ pL, pH specifies (pL + pH x 256) as the number of bytes after pH (fn and
[parameter]).
▪ The user setting mode is a special mode to change the values in the NV
user memory with this command.
▪ In Function 2, the printer performs software reset. Therefore, the printer
clears the receive and print buffers, and resets all settings (user-defined
characters, macros, and the character style) to the mode in effect at power
on.
▪ Frequent write commands by this command, may damage the NV memory.
Therefore, it is recommended to write to NV memory no more than 10 times
a day.
▪ While processing this command, the printer is BUSY while writing data to
the user NV memory and stops receiving data. Therefore it is prohibited to
transmit data including the real-time commands during the execution of this
command.
59
<Function 1> GS ( E pL pH fn d1 d2 (fn=1)
ASCII
GS
(
E
pL
pH
fn
d1
d2
[Format]
Hex
1D
28
45
pL
pH
fn
d1
d2
Decimal
29
40
69
pL
pH
fn
d1
d2
(pL + pH x 256) = 3 (pL=3, pH=0)
[Range]
fn=1
d1=73, d2=78
[Description] ▪ Enter the user setting mode and notifies that the mode has changed.
Hexadecimal
Decimal
Number of Data
Header
37H
55
1 byte
Flag
20H
32
1 byte
NUL
00H
0
1 byte
▪ The following commands are enabled in the user setting mode.
<Function 2> through <Function 12> of GS ( E, GS I.
<Function 2> GS ( E pL pH fn d1 d2 d3 (fn=2)
[Format]
ASCII
GS
(
E
pL
pH
fn
d1
d2
d3
Hex
1D
28
45
pL
pH
fn
d1
d2
d3
Decimal
29
40
69
pL
pH
fn
d1
d2
d3
[Range]
(pL + pH x 256) = 4 (pL=4, pH=0)
fn=2
d1=79, d2=85, d3=84
[Description] ▪ Ends the user setting mode and performs a software reset. Therefore, the
printer clears the receive and print buffers, and resets all settings
(user-defined character, downloaded bit images, macros, and the print
mode) to the mode that was in effect at power on.
▪ This function code (fn=2) is enabled only in the user setting mode.
<Function 3> GS ( E pL pH fn [a1 b18...b11]...[ak bk8...bk1] (fn=3)
ASCII
GS
(
E
pL pH fn
[Format]
[a1 b18...b11]... [ak bk8...bk1]
Hex
1D
28 45 pL pH fn
[a1 b18...b11]... [ak bk8...bk1]
Decimal
29
40 69 pL pH fn
[a1 b18...b11]... [ak bk8...bk1]
[Range]
(pL + pH x 256) = 10, 37
fn=3
a=1, 2, 8, 9
b=48, 49, 50
[Default]
▪ Msw2-1, Msw2-2, and Msw-8-8 are set to On (b=49), and all other
switches are set to Off (b=48).
60
[Description]
▪ Change the memory switch specified by a to the values specified by b.
- When b=48, the applicable bit is turned to Off.
- When b=49, the applicable bit is turned to On.
- When b=50, the applicable bit is not changed.
▪ When a=1, the memory switch 1 is set as follows :
Bit
Setting
Function
value
1~4
Reserved
5
48
Automatic line feed : Disabled
49
Automatic line feed : Enabled
6~8
Reserved
▪ When a=2, the memory switch 2 is set as follows :
Bit
Setting value
Function
1~2
Reserved.
3
48
Autocutter : Partial Cutting.
49
Autocutter : Full Cutting.
4~8 Code Page selection.
MSW2-8
48
48
48
48
48
48
48
48
48
48
48
48
48
48
48
48
49
49
49
49
49
49
49
49
49
49
49
MSW2-7
48
48
48
48
48
48
48
48
49
49
49
49
49
49
49
49
48
48
48
48
48
48
48
48
49
49
49
MSW2-6
48
48
48
48
49
49
49
49
48
48
48
48
49
49
49
49
48
48
48
48
49
49
49
49
48
48
48
61
MSW2-5
48
48
49
49
48
48
49
49
48
48
49
49
48
48
49
49
48
48
49
49
48
48
49
49
48
48
49
MSW2-4
48
49
48
49
48
49
48
49
48
49
48
49
48
49
48
49
48
49
48
49
48
49
48
49
48
49
48
Character Table
Page 0 437
Page 1 Katakana
Page 2 850
Page 3 860
Page 4 863
Page 5 865
Page 16 1252
Page 17 866
Page 18 852
Page 19 858
Reserved
Page 22 864
Page 23 Thai42
Page 24 1253
Reserved
Page 28 1251
Page 29 737
Reserved
Page 31 Thai16
Reserved
Page 33 1255
Reserved
Page 36 855
Page 37 857
▪ When a=8, the memory switch 8 is set as follows :
Bit
Setting value
Function
1~8
Reserved.
▪ When a=9, the memory switch 9 is set as follows :
Bit
Setting value
Function
2
48
Data Length : 8 Bits
49
Data Length : 7 Bits
3
48
Parity : odd
49
Parity : even
4
48
Parity Check : Disable
49
Parity Check : Enable
5
48
Flow Control : DTR/DSR
49
Flow Control : XON/XOFF
6~8 Baud Rate Selection.
MSW9-8
48
48
48
48
49
MSW9-7
48
48
49
49
48
MSW9-6
48
49
48
49
48
Baud Rate
9600
19200
38400
57600
115200
<Function 4> GS ( E pL pH fn a (fn=4)
[Format]
ASCII
GS
(
E
pL
pH
fn
a
Hex
1D
28
45
pL
pH
fn
a
Decimal
29
40
69
pL
pH
fn
a
[Range]
(pL + pH x 256) = 2 (pL=2, pH=0)
fn=4
a=1, 2, 8
[Description] ▪ Transmits the setting value(s) of the memory switch specified by a.
Hexadecimal
Decimal
Amount of Data
Header
37H
55
1 byte
Flag
21H
33
1 byte
Data
30H or 31H
48 or 49
8 bytes
NUL
00H
0
1 byte
▪ Data for the setting is transmitted as 8 bytes or a data string in the order
from bit 8 to bit 1, as follows :
- Off : Hexadecimal = 30H / Decimal = 48
- On : Hexadecimal = 31H / Decimal = 49
62
<Function 11> GS ( E pL pH fn a d1...dk (fn=11)
ASCII
GS
(
E
pL
pH
fn
a
d1...dk
[Format]
Hex
1D
28
45
pL
pH
fn
a
d1...dk
Decimal
29
40
69
pL
pH
fn
a
d1...dk
3 ≤ (pL + pH x 256) ≤ 65535 (0 ≤ pL ≤ 255, 0 ≤ pH 255)
[Range]
fn=11
1≤a≤4
48 ≤ d ≤ 57
1≤k≤6
▪ When a=1 : (d1...dk)="19200"
[Default]
▪ When a=2 : d=48
▪ When a=3 : d=48
▪ When a=4 : d=56
[Description] ▪ Sets the communication conditions of the serial interface specified by a
according to value d.
a
Communication Condition
d
1
Baud rate
k bytes of (d1...dk)
2
Parity
1 byte of (d1)
3
Flow control
1 byte of (d1)
4
Data length
1 byte of (d1)
- Baud rate setting (d1...dk)
Baud rate
d1
d2
d3
d4
d5
d6
(bps)
2400
50
52
48
48
--4800
52
56
48
48
--9600
57
54
48
48
--19200
49
57
50
48
48
-38400
51
56
52
48
48
-57600
53
55
54
48
48
-115200
49
49
53
50
48
48
- Parity setting (d1)
d1
Parity
48
No parity
49
Odd parity
50
Even parity
- Flow control setting (d1)
d1
Flow control
48
DTR / DSR
49
XON / XOFF
- Data length setting (d1)
d1
Data length
55
7 bits
56
8 bits
▪ If the value specified with a, d1 is out of range, this command is ignored.
[Notes]
(The setting is not changed)
▪ This function code fn=11 is enabled only in the user setting mode.
63
<Function 12> GS ( E pL pH fn a (fn=12)
ASCII
GS
(
E
pL
pH
fn
a
[Format]
Hex
1D
28
45
pL
pH
fn
a
Decimal
29
40
69
pL
pH
fn
a
(pL + pH x 256) = 2 (pL=2, pH=0)
[Range]
fn=12
1≤a≤4
[Description] ▪ Transmits the communication conditions of the serial interface specified by a.
a
Communication Condition
1
Baud rate
2
Parity
3
Flow control
4
Data length
Hexadecimal
Decimal
Amount of Data
Header
37H
55
1 byte
Flag
33H
39
1 byte
Type of the communication condition
31H - 34H
49 - 52
1 byte
Separator
1FH
31
1 byte
Setting value
30H - 39H
48 - 57
1 - 6 bytes
NUL
00H
0
1 byte
▪ Configuration of the setting value
- When the baud rate (a=1) is specified :
Baud rate (bps)
d1
d2
d3
d4
d5
d6
9600
57
54
48
48
--19200
49
57
50
48
48
-38400
51
56
52
48
48
-57600
53
55
54
48
48
-115200
49
49
53
50
48
48
- When the parity setting (a=2) is specified :
d1
Parity
48
No parity
49
Odd parity
50
Even parity
- When the flow control setting (a=3) is specified :
d1
Flow control
48
DTR / DSR
49
XON / XOFF
- When the data length setting (a=4) is specified :
d1
Data length
55
7 bits
56
8 bits
▪ If a is out of range, this command ignores the value which is specified with a.
64
GS ( L pL pH m fn [parameter]
GS 8 L p1 p2 p3 p4 m fn [parameter]
Select graphics data.
[Name]
ASCII
GS
(
L
[Format]
Hex
1D
28
4C
Decimal
29
40
76
[Description]
fn
0, 48
2, 50
3, 51
64
65
66
67
69
112
pL
pL
pL
pH
pH
pH
m
m
m
fn
fn
fn
[parameter]
[parameter]
[parameter]
ASCII
GS
(
L
p1 p2 p3 p4 m fn [parameter]
Hex
1D 28 4C p1 p2 p3 p4 m fn [parameter]
Decimal
29
40 76 p1 p2 p3 p4 m fn [parameter]
* In the description below GS ( L is used for the explanation.
- Note that GS ( L and GS 8 L have the same Function.
- If the [parameter] of each format exceeds 65533 bytes use GS 8 L.
▪ Processes graphics data according to the function code fn.
Format
GS ( L pL pH m fn
GS ( L pL pH m fn
GS ( L pL pH m fn
GS ( L pL pH m fn d1 d2
GS ( L pL pH m fn d1 d2 d3
GS ( L pL pH m fn kc1 kc2
GS ( L pL pH m fn a kc1 kc2 b xL
xH yL yH [c d1...dk]1...[c d1 dk]b
GS ( L pL pH m fn kc1 kc2 x y
GS ( L pL pH m fn a bx by c
xL xH yL yH d1...dk
Function No.
Function
Function 48
Transmits the NV graphics memory
capacity.
Prints the graphics data in the print
buffer.
Transmits the remaining capacity of the
NV graphics memory.
Transmits the defined NV graphics key
code list.
Deletes all NV graphics data.
Deletes the specified NV graphics data.
Defines the raster graphics data in the
non-volatile memory.
Prints the specified NV graphics data.
Stores the raster graphics data in the
print buffer memory.
Function 50
Function 51
Function 64
Function 65
Function 66
Function 67
Function 69
Function 112
▪ pL, pH specifies (pL + pH x 256) as the number of bytes after pH(m, fn,
and [parameter]).
▪ Frequent write command executions by this command may damage the
NV memory. Therefore, it is recommended to write to the NV memory no
more than 10times a day.
▪ While processing this command, the printer is BUSY while writing data to
the NV graphics memory and stops receiving data. Therefore it is prohibited
to transmit data including the real-time commands during the execution of
this command.
65
<Function 48> GS ( L pL pH m fn (fn=0, 48)
ASCII
GS
(
L
pL
pH
fn
m
[Format]
Hex
1D
28
4C
pL
pH
fn
m
Decimal
29
40
76
pL
pH
fn
m
(pL + pH x 256) = 2 (pL=2, pH=0)
[Range]
m=48
fn=0, 48
[Description] ▪ Transmits the total capacity of the NV bit-image memory (number of
bytes in the memory area).
Hexadecimal
Decimal
Amount of Data
Header
37H
55
1 byte
Flag
30H
48
1 byte
Data
30H - 39H
48 - 57
1 - 8 bytes
NUL
00H
0
1 byte
▪ The total capacity data is converted to character codes corresponding to
decimal data, then transmitted from the MSB.
▪ The data length is variable.
▪ The total capacity of the UV user memory is selectable as any one of [0, 64K,
128K, 192K, 256K, 320K, 384K] bytes with GS ( E. The default value is 384 KB.
<Function 50> GS ( L pL pH m fn (fn=2, 50)
[Format]
ASCII
GS
(
L
pL
pH
m
fn
Hex
1D
28
4C
pL
pH
m
fn
Decimal
29
40
76
pL
pH
m
fn
[Range]
(pL + pH x 256) = 2 (pL=2, pH=0)
m=48
fn=2, 50
[Description] ▪ Prints the buffered graphics which is stored by the process of Function 112.
▪ Feeds paper by the amount corresponding to the number of dots in the y
direction of the buffered graphics.
<Function 51> GS ( L pL pH m fn (fn=3, 51)
[Format]
ASCII
GS
(
L
pL
pH
m
fn
Hex
1D
28
4C
pL
pH
m
fn
Decimal
29
40
76
pL
pH
m
fn
(pL + pH x 256) = 2 (pL=2, pH=0)
[Range]
m=48
fn=3, 51
[Description] ▪ Transmits the number of bytes of remaining memory (unused area) in the
NV user memory.
Hexadecimal
Decimal
Amount of Data
Header
37H
55
1 byte
Flag
31H
49
1 byte
Data
30H - 39H
48 - 57
1 - 8 bytes
NUL
00H
0
1 byte
▪ The number of bytes of remaining memory is converted to character
codes corresponding to decimal data, then transmitted from the MSB.
▪ The data length is variable.
66
<Function 64> GS ( L pL pH m fn d1 d2 (fn=64)
ASCII
GS
(
L
pL
pH
m
fn
d1
d2
[Format]
Hex
1D
28
4C
pL
pH
m
fn
d1
d2
Decimal
29
40
76
pL
pH
m
fn
d1
d2
(pL + pH x 256) = 4 (pL=4, pH=0)
[Range]
m=48
fn=64
d1=75, d2=67
[Description] ▪ Transmits the defined NV graphics key code list.
- When the key code is present :
Hexadecimal
Decimal
Amount of Data
Header
37H
55
1 byte
Flag
72H
114
1 byte
Status
40H or 41H
64 or 65
1 byte
Data
30H - 39H
48 - 57
2 - 80 bytes
NUL
00H
0
1 byte
- When the key code is not present :
Hexadecimal
Decimal
Amount of Data
Header
37H
55
1 byte
Flag
72H
114
1 byte
Status
40H
64
1 byte
NUL
00H
0
1 byte
▪ If the number of the key code exceed 40, the key code is transmitted dividing up to 40.
- The status if the continuous transmission data block is present is 41H.
- The status if the continuous transmission data block is not present is 40H.
▪ After the [Header-NULL] is transmitted, the printer receives a response from the host;
then it performs the process defined by the response. (See the tables below.)
- When the status (existence of the next data block) is Hexadecimal =
41H / Decimal = 65
Response
Process performed
ASCII
Decimal
ACK
6
Transmits the next data.
NAK
21
Transmits the previous data again.
CAN
24
Ends the process.
- When the status (for the last data block) is Hexadecimal = 40H /
Decimal = 64
Response
Process performed
ASCII
Decimal
ACK
6
Ends the process.
NAK
21
Transmits the previous data again.
CAN
24
Cancels the process.
67
<Function 65> GS ( L pL pH m fn d1 d2 d3 (fn=65)
ASCII
GS
(
L
pL
pH
[Format]
Hex
1D
28
4C
pL
pH
Decimal
29
40
76
pL
pH
(pL + pH x 256) = 5 (pL=5, pH=0)
[Range]
m=48
fn=65
d1=67, d2=76, d3=82
[Description] ▪ Deletes all defined NV graphics data.
<Function 66> GS ( L pL pH m fn kc1 kc2 (fn=66)
ASCII
GS
(
L
pL
pH
[Format]
Hex
1D
28
4C
pL
pH
Decimal
29
40
76
pL
pH
[Range]
(pL + pH x 256) = 4 (pL=4, pH=0)
m=48
fn=66
32 ≤ kc1 ≤ 126
32 ≤ kc2 ≤ 126
[Description] ▪ Deletes the NV graphics data defined by the
[Description]
m
m
m
fn
fn
fn
d1
d1
d1
d2
d2
d2
m
m
m
fn
fn
fn
kc1
kc1
kc1
kc2
kc2
kc2
d3
d3
d3
[Notes]
key codes kc1 and kc2.
<Function 67> GS ( L pL pH m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1...dk]b (fn=67)
[Format]
ASCII
GS
(
L
pL pH m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1...dk]b
Hex
1D 28 4C
pL pH m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1...dk]b
Decimal
29 40 76
pL pH m fn a kc1 kc2 b xL xH yL yH [c d1...dk]1...[c d1...dk]b
[Range]
▪ GS ( L parameter
3 ≤ (pL + pH x 256) ≤ 65535 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 255)
▪ GS 8 L parameter
3 ≤ (p1 + p2 x 256 + p3 x 65535 + p4 x 16777216) ≤ 4294967295
( 0 ≤ p1 ≤ 255, 0 ≤ p2 ≤ 255, 0 ≤ p3 ≤ 255, 0 ≤ p4 ≤ 255 )
▪ Common parameter for GS 8 L / GS ( L
m=48
fn=67
a=48
32 ≤ kc1 ≤ 126
32 ≤ kc2 ≤ 126
b=1, 2
1 ≤ (xL + xH x 256) ≤ 8192
1 ≤ (yL + yH x 256) ≤ 2304
c=49 (when the monochrome paper is selected)
c=50 (when the two-color paper is selected)
0 ≤ d ≤ 255
k = ( int ( ( xL + xH x 256 ) + 7 ) / 8 ) x ( yL + yH x 256 )
68
▪ The total capacity of the UV user memory is selectable as any one of [0,
64K, 128K, 192K, 256K, 320K, 384K] bytes with GS ( E. The default value
is 384KB.
▪ Defines the raster graphics data in the NV graphics area.
- b specifies the number of the color of the defined data.
- xL, xH specifies the defined data in the horizontal direction to (xL + xH
x 256) dots.
- xL, xH specifies the defined data in the vertical direction to (yL + yH x
256) dots.
- c specifies the color of the defined data.
c
Defined data color
49
Color 1
50
Color 2
- Color 1 means black (high level of energy) in the specified tow-color
thermal paper.
- Color 2 means red (low level of energy) in the specified tow-color
thermal paper.
▪ If the color is specified with b and a single color also is specified with c,
the printer stops processing the command, and regards the defined data as
effective up to the time when the printer stops processing, then disregards
the remaining data after it.
▪ When this command is processed while NV bit image data is defined with
FS q, the printer deletes all NV bit image data, then defines data with this
command.
<Function 69> GS ( L pL pH m fn kc1 kc2 b x y (fn=69)
ASCII
GS
(
L
pL
pH
m
fn
kc1
kc2
[Format]
Hex
1D
28
4C
pL
pH
m
fn
kc1
kc2
Decimal
29
40
76
pL
pH
m
fn
kc1
kc2
(pL + pH x 256) = 6 (pL=6, pH=0)
[Range]
m=48, fn=69
32 ≤ kc1 ≤ 126
32 ≤ kc2 ≤ 126
x=1, 2
y=1, 2
[Description] ▪ Prints the NV graphics data defined by the key codes kc1 and kc2.
graphics data is enlarged by x and y in the horizontal and vertical
directions.
69
x
x
x
The
y
y
y
<Function 112> GS ( L pL pH m fn a bx by c xL xH yL yH d1...dk (fn=112)
ASCII
GS
(
L
pL pH m fn a bx by c xL xH yL yH d1...dk
[Format]
Hex
1D 28 4C
pL pH m fn a bx by c xL xH yL yH d1...dk
Decimal 29 40 76
pL pH m fn a bx by c xL xH yL yH d1...dk
▪ GS ( L parameter
[Range]
11 ≤ (pL + pH x 256) ≤ 65535 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 255)
▪ GS 8 L parameter
11 ≤ (p1 + p2 x 256 + p3 x 65535 + p4 x 16777216) ≤ 4294967295
( 0 ≤ p1 ≤ 255, 0 ≤ p2 ≤ 255, 0 ≤ p3 ≤ 255, 0 ≤ p4 ≤ 255 )
▪ Common parameter for GS 8 L / GS ( L
m=48, fn=112, a=48
bx=1, 2
by=1, 2
c=49 (when the monochrome paper is selected)
c=50 (when the two-color paper is selected)
- When single-color paper is specified :
1 ≤ (yL + yH x 256) ≤ 1662 (when by = 1)
1 ≤ (yL + yH x 256) ≤ 831 (when by = 2)
- When two-color paper is specified :
1 ≤ (yL + yH x 256) ≤ 831 (when by = 1)
1 ≤ (yL + yH x 256) ≤ 415 (when by = 2)
0 ≤ d ≤ 255
k = ( int ( ( xL + xH x 256 ) + 7 ) / 8 ) x ( yL + yH x 256 )
[Description] ▪ Stores the raster graphics data, enlarged by bx and by in the horizontal
and vertical directions to the print buffer.
- xL, xH specifies the raster graphics data in the horizontal direction
as (xL + xH x 256) dots.
- xL, xH specifies the raster graphics data in the vertical direction to
(yL + yH x 256) dots.
- c specifies the color of the defined data.
c
Printing color
49
Color 1
50
Color 2
- Color 1 means black (high level of energy) in the specified tow-color
thermal paper.
- Color 2 means red (low level of energy) in the specified tow-color
thermal paper.
[Notes]
▪ In standard mode, each color can be defined only once.
70
GS ( M pL pH fn m
[Name]
Customize printer.
[Description] ▪ Protects or recovers values or data set or defined in the active area by commands.
fn
Function No.
Descriptions
1, 49
Copies the settings stored in the active area
Function 1
to the storage area (save settings).
2, 50
Copies the settings stored in the storage area
Function 2
to the storage area (load settings).
3, 51
Enables or disables automatic loading of the
Function 3
settings upon initialization.
- Active area : Volatile memory (RAM)
- Storage area : Hon-volatile memory (Flash ROM)
▪ List of commands
Setting value
Command
Status
ESC c 3, GS a
Defined data
GS :
Character
ESC M, ESC R, ESC t
Kind of character
style
ESC !, ESC -, ESC E, ESC G, ESC V, ESC {, GS !,
GS B, GS b, GS ( N
etc
ESC SP, ESC 2, ESC 3
Bar code
GS H, GS f, GS h, GS w
2-dimension
<Function 065> through <Function 070> of GS ( k
code
Print position
ESC D, ESC T, ESC a, GS L, GS W
etc
ESC c 4, ESC c 5, GS ( D, GS P
<Function 1> GS ( M pL pH fn m (fn=1, 49)
ASCII
GS
(
M
pL
pH
fn
m
[Format]
Hex
1D
28
4D
pL
pH
fn
m
Decimal
29
40
77
pL
pH
fn
m
[Range]
(pL + pH x 256) = 2 (pL=2, pH=0)
fn=1, 49
m=1, 49
[Description] ▪ Copies the setting stored in the active area to the mth storage area.
[Notes]
▪ Frequent write command executions by this command may damage the
NV memory. Therefore, it is recommended to write to the NV memory no
more than 10 times a day.
▪ While processing this command, the printer is BUSY while writing data to
the NV user memory and stops receiving data. Therefore it is prohibited to
transmit data including the real-time commands during the execution of
this command.
71
<Function 2> GS ( M pL pH fn m (fn=2, 50)
ASCII
GS
(
M
pL
pH
fn
m
[Format]
Hex
1D
28
4D
pL
pH
fn
m
Decimal
29
40
77
pL
pH
fn
m
(pL + pH x 256) = 2 (pL=2, pH=0)
[Range]
fn=2, 50
m=0, 1, 48, 49
[Description] ▪ When (m=0,48), initializes all settings in the active area, as described in
these specifications.
▪ When (m=1,49), copies the setting stored in the mth storage area to the
active area. If no data in the storage area is protected, all settings in the
active area are initialized as described in these specifications.
<Function 3> GS ( M pL pH fn m (fn=3, 51)
[Format]
ASCII
GS
(
M
pL
pH
fn
m
Hex
1D
28
4D
pL
pH
fn
m
Decimal
29
40
77
pL
pH
fn
m
[Range]
(pL + pH x 256) = 2 (pL=2, pH=0)
fn=3, 51
m=0, 1, 48, 49
[Description] ▪ When m=0,48, does not load data in the storage area to the active area
upon initialization.
▪ When m=1,49, loads data in the storage area to the active area upon
initialization.
GS * x y [d1...d(x x y x 8)]
Define downloaded bit image.
[Name]
ASCII
GS
*
x
y
[d1...d(x x y x 8)]
[Format]
Hex
1D
2A
x
y
[d1...d(x x y x 8)]
Decimal
29
42
x
y
[d1...d(x x y x 8)]
1 ≤ x ≤ 255
[Range]
1 ≤ y ≤ 48 (where x x y ≤ 1536)
0 ≤ d ≤ 255
[Description] ▪ Defines the downloaded bit image using the number of dots specified by x
and y.
- x specifies the number of dots in the horizontal direction.
- y specifies the number of dots in the vertical direction.
▪ When the memory switch 8-7 is On, the user-defined character and the
downloaded bit image cannot be defined simultaneously. The downloaded
bit image data is cleared with this command.
GS / m
[Name]
[Format]
[Range]
[Description]
GS ( N pL pH fn [parameter]
[Name]
Select character style.
[Description] ▪ Executes commands for the character style as specified by the function
code fn.
fn
Format
Function No.
Description
48
GS ( N pL pH fn m
Function 48
Selects character color.
<Function 48> GS ( N pL pH fn m (fn=48)
ASCII
GS
(
N
pL
pH
fn
m
[Format]
Hex
1D
28
4E
pL
pH
fn
m
Decimal
29
40
78
pL
pH
fn
m
(pL + pH x 256) = 2 (pL=2, pH=0)
[Range]
fn=48
m=49 (when the monochrome paper is selected)
m=49,50 (when the two-color paper is selected)
m=49
[Default]
[Description] ▪ Prints characters in the color specified by m.
m
Color
49
Color 1
50
Color 2
- Color 1 means black (high level of energy) in the specified two-color
thermal paper.
- Color 2 means red (low level of energy) in the specified two-color
thermal paper.
72
GS :
[Name]
[Format]
[Description]
Print downloaded bit image.
ASCII
GS
/
m
Hex
1D
2F
m
Decimal
29
47
m
0 ≤ m ≤ 3, 48 ≤ m ≤ 51
▪ Prints the defined downloaded bit image in m mode.
- For SRP-370
m
Mode
Vertical dot density
Horizontal dot density
0, 48
Normal
180 dpi
180 dpi
1, 49
Double-width
180 dpi
90 dpi
2, 50 Double-height
90 dpi
180 dpi
3, 51
Quadruple
90 dpi
90 dpi
- For SRP-372
m
Mode
Vertical dot density
Horizontal dot density
0, 48
Normal
203 dpi
203 dpi
1, 49
Double-width
203 dpi
203/2 dpi
2, 50 Double-height
203/2 dpi
203 dpi
3, 51
Quadruple
203/2 dpi
203/2 dpi
dpi : dots per 25.4mm {1"}
Start/end macro definition.
ASCII
GS
:
Hex
1D
3A
Decimal
29
58
▪ Starts or ends macro definition.
- The contents of the macro can be defined up to 2048 bytes.
73
GS B n
[Name]
[Format]
[Range]
[Default]
[Description]
GS H n
[Name]
[Format]
[Range]
[Default]
[Description]
GS I n
[Name]
[Format]
[Range]
[Description]
Turns white/black reverse printing mode on / off.
ASCII
GS
B
Hex
1D
42
Decimal
29
66
0 ≤ n ≤ 255
n=0
▪ Turns white/black reverse printing mode on or off.
- When the LSB of n is 0, white/black reverse mode
- When the LSB of n is 1, white/black reverse mode
n
n
n
is turned off.
is turned on.
GS L nL nH
[Name]
[Format]
[Range]
[Default]
[Description]
Set left margin.
ASCII
GS
L
nL
nH
Hex
1D
4C
nL
nH
Decimal
29
76
nL
nH
0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
(nL + nH x 256)=0 (nL=0, nH=0)
▪ Sets the left margin specified by nL and nH.
- The left margin is [(nL + nH x 256) x (horizontal motion units)].
Printable area
Selects the printing position of HRI characters.
ASCII
GS
H
n
Hex
1D
48
n
Decimal
29
72
n
0 ≤ n ≤ 3, 48 ≤ n ≤ 51
n=0
▪ Selects the printing position of HRI characters when printing a bar code.
- n selects the execution of printing and the printing position as follows :
n
Printing position
0, 48 Not printed.
1, 49 Above the bar code.
2, 50 Below the bar code.
3, 51 Both above and below the bar code.
Left margin
GS P x y
[Name]
[Format]
[Range]
[Default]
Transmits printer ID.
ASCII
GS
I
n
Hex
1D
49
n
Decimal
29
73
n
1 ≤ n ≤ 3, 49 ≤ n ≤ 51, 65 ≤ n ≤ 69, n=112
1 ≤ n ≤ 3, 49 ≤ n ≤ 51, 65 ≤ n ≤ 69, (when TM-T88II compatible mode is
selected.)
▪ Transmits the printer ID specified.
- n specifies the types of the printer ID.
n
Printer ID type
ID
1, 49 Printer model ID
Hexadecimal : 2EH Decimal : 46
2, 50 Type ID
See table below.
3, 51 Firmware version ID
Depends on firmware version.
- n specifies the printer information.
n
Printer ID type
ID
65
Firmware version
Depends on firmware version
66
Manufacturer
BIXOLON
67
Printer name
SRP-370/372
74
[Description]
Printing area width
Set horizontal and vertical motion units.
ASCII
GS
P
x
y
Hex
1D
50
x
y
Decimal
29
80
x
y
0 ≤ x ≤ 255
0 ≤ y ≤ 255
For ANK/Multilingual model : x=180, y=360
For Japanese Kanji model : x=203, y=406
▪ Turns white/black reverse printing mode on or off.
- For SRP-370
When x=0, the default setting of the horizontal motion unit is used.
When 1 ≤ x ≤ 255, the horizontal motion unit is set to 25.4/x mm {(1/x)"}.
When y=0, the default setting of the vertical motion unit is used.
When 1 ≤ y ≤ 255, the vertical motion unit is set to 25.4/y mm {(1/y)"}.
- For SRP-372
When x=0, the default setting of the horizontal motion unit is used.
When 1 ≤ x ≤ 255, the horizontal motion unit is set to 25.4/x mm {(1/x)"}.
When y=0, the default setting of the vertical motion unit is used.
When 1 ≤ y ≤ 255, the vertical motion unit is set to 25.4/y mm {(1/y)"}.
75
GS T n
[Name]
[Format]
[Range]
[Description]
① GS V m
② GS V m n
[Name]
[Format]
Set print position to the beginning of print line.
ASCII
GS
T
n
Hex
1D
54
n
Decimal
29
84
n
n=0, 1, 48, 49
▪ Sets the print position to the beginning of the print line.
- n specifies how data in the print buffer is processed when this
command is executed.
n
Function
Sets the print position after the data in the print buffer is
0, 48
deleted.
Sets the print position after the data in the print buffer is
1, 49
printed.
- When printing is specified (n=1,49), the printer prints the data in the
print buffer and executes a line feed, based on the line feed amount to be
set.
- When deleting is specified (n=0,48), the printer executes the cancel
process for the print data in the print buffer, and keeps other data or
setting values except for the print data.
Select cut mode and cut paper.
①
ASCII
GS
V
Hex
1D
56
Decimal
29
86
[Range]
[Description]
[Range]
[Default]
[Description]
Printable area
n
n
n
Printing area width
GS \ nL nH
[Name]
Set relative vertical print position in page mode.
[Format]
ASCII
GS
nL
nH
\
Hex
1D
5C
nL
nH
Decimal
29
92
nL
nH
[Range]
0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
[Description] ▪ Sets the relative vertical print starting position from the current position in
page mode. The distance from the current position to the starting position is
[(nL + nH x 256) x (vertical or horizontal motion units)].
GS ^ r t m
[Name]
[Format]
[Range]
[Description]
76
Set printing area width.
ASCII
GS
W
nL
nH
Hex
1D
57
nL
nH
Decimal
29
87
nL
nH
0 ≤ nL ≤ 255
0 ≤ nH ≤ 255
▪ For SRP-370
(nL + nH x 256)=512 (nL=0, nH=2)
(for 80mm of the paper width)
(nL + nH x 256)=384 (nL=128, nH=1)
(for 60mm of the paper width)
(nL + nH x 256)=360 (nL=104, nH=1)
(for 58mm of the paper width)
▪ For SRP-372
(nL + nH x 256)=576 (nL=64, nH=2)
(for 80mm of the paper width)
(nL + nH x 256)=436 (nL=180, nH=1)
(for 60mm of the paper width)
(nL + nH x 256)=420 (nL=164, nH=1)
(for 58mm of the paper width)
▪ Sets the printing area width specified with nL and nH.
- The printing area width is [(nL + nH x 256) x (horizontal motion units)].
Left margin
m
m
m
ASCII
GS
V
m
Hex
1D
56
m
Decimal
29
86
m
① m=0, 1, 48, 49
② m=65, 66, 0 ≤ n ≤ 255
▪ Cuts paper in the specified mode.
m
Function
0, 48
Cuts paper (one point left uncut, full cut).
1, 49
65, 66 Feeds and cuts paper (one point left uncut, full cut).
- n specifies how data in the print buffer is processed when this
command is executed.
▪ Full cut or one point left uncut cannot be changed by software.
②
GS W nL nH
[Name]
[Format]
Execute macro.
ASCII
GS
^
r
t
Hex
1D
5E
r
t
Decimal
29
94
r
t
0 ≤ r ≤ 255
0 ≤ t ≤ 255
m=0, 1
▪ Executes a macro.
- r specifies the number of times to execute the macro.
- t specifies the waiting time for executing the macro.
- m specifies macro executing mode from the table below.
77
m
m
m
m
0
1
Function
Executes the macro r times at the interval specified by t.
After waiting for the time specified by t, the PAPER OUT LED flashes to indicate
that the FEED button must be pressed. After the button is pressed, the macro is
executed once. This operation is then repeated r times.
GS a n
[Name]
[Format]
[Range]
[Default]
[Description]
Enable/Disable Automatic Status Back (ASB).
ASCII
GS
a
n
Hex
1D
61
n
Decimal
29
97
n
0 ≤ n ≤ 255
n=0 when memory switch 1-3 is Off.
n=2 when memory switch 1-3 is On.
▪ Specifies the status items for ASB (Automatic Status Back).
Bit Off/On Hex Decimal Function
Off
00
0
Drawer kick-out connector pin 3 disable.
0
On
01
1
Drawer kick-out connector pin 3 enable.
Off
00
0
Online/Offline status disabled.
1
On
02
2
Online/Offline status enabled.
Off
00
0
Error status disabled.
2
On
04
4
Error status enabled.
Off
00
0
Paper roll sensor status disabled.
3
On
08
8
Paper roll sensor status enabled.
4
Off
00
0
Reserved.
5
Off
00
0
Reserved.
Off
00
0
Panel button status disabled.
6
On
40
64
Panel button status enabled.
7
Off
00
0
Reserved.
▪ The status to be transmitted is the four bytes that follows.
- First byte (printer information)
Bit Off/On Hex Decimal Function
0
Off
00
0
Fixed.
1
Off
00
0
Fixed.
Off
00
0
Drawer kick-out connector pin 3 is LOW.
2
On
04
4
Drawer kick-out connector pin 3 is HIGH.
Off
00
0
Online.
3
On
08
8
Offline.
4
Off
10
16
Fixed.
Off
00
0
Cover is closed.
5
On
20
32
Cover is opened.
Paper is not being fed by using the paper FEED
Off
00
0
6
button.
Paper is being fed by using the paper FEED button.
On
40
64
7
Off
00
0
Fixed.
78
[Notes]
[Reference]
▪ When the cover is open while the printing is stopped, the printer becomes offline.
- Second byte (printer information)
Bit Off/On Hex Decimal Function
Off
00
0
Not on online waiting status.
0
On
01
1
During online waiting status.
Off
00
0
Panel button OFF.
1
On
02
2
Panel button ON.
Off
00
0
No mechanical error.
2
On
04
4
Mechanical error has occurred.
Off
00
0
No Auto Cutter error.
3
On
08
8
Auto Cutter error occurred.
4
Off
00
0
Fixed.
Off
00
0
No unrecoverable error.
5
On
20
32
Unrecoverable error has occurred.
Off
00
0
No automatically recoverable error.
6
Automatically recoverable error has occurred.
On
40
64
7
Off
00
0
Fixed.
- Third byte (paper sensor information)
Bit Off/On Hex Decimal Function
Off
00
0
Paper roll near-end sensor : paper adequate.
0
Paper roll near-end sensor : paper near end.
On
01
1
Off
00
0
Paper roll near-end sensor : paper present.
1
Paper roll near-end sensor : paper not present.
On
02
2
Off
00
0
Paper roll end sensor : paper present.
2
On
04
4
Paper roll end sensor : paper near end.
Off
00
0
Paper roll end sensor : paper present.
3
Paper roll end sensor : paper not present.
On
08
8
4
Off
00
0
Fixed.
5
Off
00
0
Reserved.
6
Off
00
0
Reserved.
7
Off
00
0
Fixed.
▪ The paper roll end sensor is unstable when the cover is open.
- Fourth byte (paper sensor information)
Bit Off/On Hex
Decimal Function
0
On
01
1
Reserved.
1
On
02
2
Reserved.
2
On
04
4
Reserved.
3
On
08
8
Reserved.
4
Off
00
0
Fixed.
5
Off
00
0
Reserved.
6
Off
00
0
Reserved.
7
Off
00
0
Fixed.
▪ When the memory switch Msw 8-7 is On, the printer transmits the ASB
data to the host whether the host can receive or not.
▪ When the memory switch Msw 8-7 is On, the printer transmits the ASB
data with the panel button status always being ignored.
APPENDIX J
79
GS b n
[Name]
[Format]
[Range]
[Default]
[Description]
GS f n
[Name]
[Format]
[Range]
[Default]
[Description]
GS h n
[Name]
[Format]
[Range]
[Default]
[Description]
Turns smoothing mode on/off.
ASCII
GS
b
n
Hex
1D
62
n
Decimal
29
98
n
0 ≤ nL ≤ 255
n=0
▪ Turns smoothing mode on or off.
- When the LSB of n is 0, smoothing mode is turned off.
- When the LSB of n is 1, smoothing mode is turned on.
Select font for HRI characters.
ASCII
GS
f
n
Hex
1D
66
n
Decimal
29
102
n
For ANK/Multilingual model : n=0, 1, 48, 49
For Japanese Kanji model : 0 ≤ n ≤ 2, 48 ≤ n ≤ 50
n=0
▪ Selects a font for the HRI characters used when printing a bar code.
- n specifies the font of the HRI characters as follows :
n
Font
0, 48 Font A (12 x 24)
1, 49 Font B (9 x 17)
① GS k m d1...dk NUL
② GS k m n d1...dn
Print bar code.
[Name]
①
ASCII
[Format]
Hex
Decimal
k
6B
107
m
m
m
d1...dk
d1...dk
d1...dk
NUL
NUL
NUL
ASCII
GS
k
m
n
d1...dn
Hex
1D
6B
m
n
d1...dn
Decimal
29
107
m
n
d1...dn
① 0 ≤ m ≤ 6 (k and d depend on the bar code system used)
② 65 ≤ m ≤ 73 (n and d depend on the bar code system used)
▪ Selects a bar code system and prints the bar code.
For ①
m Bar Code System
Range of k
Range of d
0
UPC-A
11 ≤ k ≤ 12
48 ≤ d ≤ 57
1
UPC-E
11 ≤ k ≤ 12
48 ≤ d ≤ 57
2
JAN13(EAN)
12 ≤ k ≤ 13
48 ≤ d ≤ 57
3
JAN8(EAN)
7≤k≤8
48 ≤ d ≤ 57
48 ≤ d ≤ 57, 65 ≤ d ≤ 90,
4
CODE39
1≤k
d=32,36,37,43,45,46,47
1 ≤ k (even
5
ITF
48 ≤ d ≤ 57
number)
48 ≤ d ≤ 57, 65 ≤ d ≤ 68,
6
CODABAR
1≤k
d=36,43,45,46,47,58
For ②
②
[Range]
[Description]
Selects bar code height.
ASCII
GS
h
n
Hex
1D
68
n
Decimal
29
104
n
1 ≤ nL ≤ 255
n=162
▪ Selects the height of the bar code as n dots.
[Notes]
80
GS
1D
29
m
Bar Code System
Range of k
Range of d
65
66
UPC-A
11 ≤ n ≤ 12
48 ≤ d ≤ 57
UPC-E
11 ≤ n ≤ 12
48 ≤ d ≤ 57
67
JAN13(EAN)
12 ≤ n ≤ 13
48 ≤ d ≤ 57
68
JAN8(EAN)
7≤n≤8
48 ≤ d ≤ 57
69
CODE39
1 ≤ n ≤ 255
48 ≤ d ≤ 57, 65 ≤ d ≤ 90,
d=32,36,37,43,45,46,47
70
ITF
1 ≤ n ≤ 255
(even
number)
48 ≤ d ≤ 57
71
CODABAR
1 ≤ n ≤ 255
48 ≤ d ≤ 57, 65 ≤ d ≤ 68,
d=36,43,45,46,47,58
72
CODE93
1 ≤ n ≤ 255
0 ≤ d ≤ 127
73
CODE128
2 ≤ n ≤ 255
0 ≤ d ≤ 127
▪ User most consider the quiet zone of the bar code (left and right spaces
of the bar code).
81
GS r n
[Name]
[Format]
[Range]
[Description]
[Description]
Transmit status.
ASCII
GS
r
n
Hex
1D
72
n
Decimal
29
114
n
n=1, 2, 49, 50
▪ Transmits the normal status specified by n as follows :
n
Function
1, 49 Transmits paper sensor status.
2, 50 Transmits drawer kick-out connector status.
▪ Paper sensor status (n=1, 49) :
Bit Off/On Hex Decimal Function
Off
00
0
Paper roll near-end sensor : paper adequate.
0, 1
Paper roll near-end sensor : paper near end.
On
03
3
Off
00
0
Paper roll end sensor : paper present.
2, 3
Paper roll end sensor : paper not present.
On
0C
12
4
Off
00
0
Fixed.
5
Off
00
0
Reserved.
6
Off
00
0
Reserved.
7
Off
00
0
Fixed.
- Bits 2 and 3 : This command cannot be executed since the printer
becomes offline when the paper roll end sensor detects the paper not
present. Therefore, the status of bit 2 (1) and bit 3 (1) is not transmitted.
▪ Drawer kick-out connector status (n=2, 50) :
AAWBit Off/On Hex Decimal Function
Off
00
0
Drawer kick-out connector pin 3 is LOW.
0
Drawer kick-out connector pin 3 is HIGH.
On
01
1
1
Off
00
0
Reserved.
2
Off
00
0
Reserved.
3
Off
00
0
Reserved.
4
Off
00
0
Fixed.
5
Off
00
0
Reserved.
6
Off
00
0
Reserved.
7
Off
00
0
Fixed.
GS v 0 m xL xH yL yH d1...dk
[Name]
Print raster bit image.
[Format]
ASCII
GS
v
0
m
xL xH
Hex
1D
76
30
m
xL xH
Decimal
29
118
48
m
xL xH
[Range]
0 ≤ m ≤ 3, 48 ≤ m ≤ 51
1 ≤ (xL + xH x 256) ≤ 128 (0 ≤ xL ≤ 128, xh=0)
1 ≤ (yL + yH x 256) ≤ 4095 (0 ≤ yL ≤ 255, 0 ≤ yH
0 ≤ d ≤ 255
k = (xL + xH x 256) x (yL + yH x 256)
82
Horizontal dot density
180 dpi
90 dpi
180 dpi
90 dpi
Horizontal dot density
203 dpi
203/2 dpi
203 dpi
203/2 dpi
dpi : dots per 25.4mm {1"}
- xL, xH specifies (xL + xH x 256) byte(s) in the horizontal direction for the bit image.
- yL, yH specifies (yL + yH x 256) dot(s) in the vertical direction for the bit image.
- d specifies the definition data of the bit image data.
GS w n
[Name]
[Format]
[Range]
[Description]
yL yH d1...dk
yL yH d1...dk
yL yH d1...dk
≤ 15)
▪ Prints a raster bit image in m mode.
- m specifies the bit image mode.
<For SRP-370>
m
Mode
Vertical dot density
0, 48
Normal
180 dpi
1, 49
Double-width
180 dpi
2, 50 Double-height
90 dpi
3, 51
Quadruple
90 dpi
<For SRP-372>
m
Mode
Vertical dot density
0, 48
Normal
203 dpi
1, 49
Double-width
203 dpi
2, 50 Double-height
203/2 dpi
3, 51
Quadruple
203/2 dpi
[Notes]
Set bar code width.
ASCII
GS
w
n
Hex
1D
77
n
Decimal
29
119
n
2≤n≤6
n=3
▪ Set the horizontal size of the bar code, using n as follows :
<For SRP-370>
Multi-level Bar Code
Binary-level Bar Code
n
Module Width (mm)
Thin element width (mm)
Thick element width (mm)
2
0.282
0.282
0.706
3
0.423
0.423
1.129
4
0.564
0.564
1.411
5
0.706
0.706
1.834
6
0.847
0.847
2.258
<For SRP-372>
Multi-level Bar Code
Binary-level Bar Code
n
Module Width (mm)
Thin element width (mm)
Thick element width (mm)
2
0.250
0.250
0.626
3
0.375
0.375
1.001
4
0.500
0.500
1.251
5
0.626
0.626
1.627
6
0.751
0.751
2.002
▪ Multi-level bar codes are as follows :
- UPC-A, UPC-E, JAN13, HAN8, CODE93, CODE128
▪ Binary-level bar codes are as follows :
- CODE39, ITF, CODABAR
83
RS-232C Cable Connection
APPENDIX
A. Connectors
POWER
DK
RS-232
Power
Supply
Connector
Drawer
Kick-out
Connector
ON
Interface Connector
※ When the Dip Switch is “ON” on the Serial Interface Board,
DTR and RTS are connected each other.
SRP-370/372 Connector
( Serial Interface )
Interface Connector
POWER
DK
PARALLEL
Power
Supply
Connector
Drawer
Kick-out
Connector
Interface Connector
SRP-370P/372P Connector
( Parallel Interface )
POWER
DK
USB
Power
Supply
Connector
Drawer
Kick-out
Connector
USB Connector
Serial Interface (RS-232)
Pin No. Signal name Direction
Function
1
FG
-
Frame Ground
2
TxD
Output
Transmit Data
3
RxD
Input
Receive Data
4
RTS
Output
Ready To Send
5
CTS
Input
Clear To Send
6
DSR
Input
Data Set Ready
7
SG
-
Signal Ground
20
DTR
Output
Data Terminal Ready
SRP-370U/372U Connector
( USB Interface )
84
85
Parallel Interface (IEEE-1284)
Pin
No.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19~30
31
32
33
34
35
36
Source
Host
Host / Printer
Host / Printer
Host / Printer
Host / Printer
Host / Printer
Host / Printer
Host / Printer
Host / Printer
Printer
Printer
Printer
Printer
Host
Printer
Host
Printer
Printer
Printer
Host
Compatibility
Mode
nStrobe
Data 0 (LSB)
Data 1
Data 2
Data 3
Data 4
Data 5
Data 6
Data 7 (MSB)
nAck
Busy
Perror
Select
nAutoFd
NC
GND
FG
Logic-H
GND
nInit
nFault
GND
DK_Status
+5V
nSelectIn
Nibble Mode
Byte Mode
HostClk
PtrClk
PtrBusy /Data3,7
AckDataReq/Data2,6
Xflag /Data1,5
HostBusy
NC
GND
FG
Logic-H
GND
nInit
nDataAvail /Data0,4
ND
ND
ND
1284-Active
HostClk
Data 0 (LSB)
Data 1
Data 2
Data 3
Data 4
Data 5
Data 6
Data 7 (MSB)
PtrClk
PtrBusy
AckDataReq
Xflag
HostBusy
NC
GND
FG
Logic-H
GND
nInit
nDataAvail
ND
ND
ND
1284-Active
USB Interface
Pin No.
Signal Name
Assignment
Shell
Shield
Drain Wire
Frame Ground
1
VBUS
Red
Host Power
2
D-
White
Data Line(D-)
3
D+
Green
Data Line(D+)
4
GND
Black
Signal Ground
86
(Color)
Function
Drawer Connector
Pin No.
Signal name
Direction
1
Frame ground
-
2
Drawer kick- out drive signal 1
Output
3
Drawer open/close signal
Input
4
+24V
-
5
Drawer kick- out drive signal 2
Output
6
Signal ground
-
B. Notes
Paper dust inside the printer may lower the print quality. In this
case clean the printer as follows.
1) Open the printer cover and remove the paper if exists.
2) Clean the print head with a cotton swab moistened with
alcohol solvent.
3) Clean the platen roller and paper end sensor with cotton
swab moistened with water.
4) Insert a paper roll and close the printer cover.
The remained amount of paper detected by paper near end
sensor varies with the diameter of the paper core.
To adjust the remained amount, contact your dealer.
87
C. Specification
Printing method
Thermal line printing
180 X 180 dpi
(7dots/mm)
Dot density
203 X 203 dpi
(8dots/mm)
Printing width
57.5mm, 72.192 ± 0.2mm
Paper width
58mm,80mm,82.5 mm
Characters per line (default)
Printing speed
180 DPI
180 DPI 42 (Font A)
203 DPI 48 (Font A)
56 (Font B)
64 (Font B)
Mono : 47 lines/sec(1/6” Feed) 200mm/sec
Color : 23.6 Line/ Sec(1/6inch feed) 100mm/sec
203 DPI
Mono : 42 lines/sec(1/6” Feed) 180mm/sec
Color : 21 Line/ Sec(1/6inch feed) 90mm/sec
Receive Buffer Size
4K Bytes
NOTE : Printing speed may be slower, depending on the data transmission speed and the
combination of control commands.
Supply voltage
Environmental
Input voltage
100~240 VAC
Frequency
50/60 Hz
Output voltage
+24 VDC
Temperature
0 ~ 45 ℃ (Operating)
-10 ~ 50 ℃ (Storage)
Conditions
Humidity
30 ~ 80 % RH (Operating)
10 ~ 90 % RH (Storage)
; Except for paper
MCBF *
Monochrome :70,000,000Lines
Mechanism
2Color
Auto cutter life *
:35,000,000Lines
1,200,000 Cut
KD04-00046E
Rev. 1.00
* These values are calculated under printing level 2 with
recommended paper at normal temperature.
* These values may vary with environment temperature, printing
level, etc.
88
89
Download PDF
Similar pages