Samsung SRP-275 Operator`s manual

Samsung SRP-275 Operator`s manual
Operator’s manual
POS impact dot matrix printer
SRP-275
ELECTRO - MECHANICS
printed in korea
2004. 09
ELECTRO - MECHANICS
Safety Precautions
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.
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.
You must use only the supplied adaptor.
It is dangerous to use other adaptors.
PROHIBITED
Do not pull the cable to unplug.
Keep the plastic bag out of children’s reach.
This can damage the cable, which is the origin of a fire or
a breakdown of the printer.
If not, a child may put the bag on his head.
PROHIBITED
PROHIBITED
Do not plug in or unplug with your hands wet.
You can be electrocuted.
If you observe a strange smoke, odor or noise from the
printer, unplug it before taking following measures.
Switch off the printer and unplug the set from the mains.
After the disappearance of the smoke, call your dealer to repair it.
PROHIBITED
TO UNPLUG
Safety Precautions
SRP-275
All rights reserved. No part of this publication may reproduced, stored in a retrieval, or transmitted in any form
or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written
permission of SAMSUNG ELECTRO-MECHANICS.
WARNING
Violating following instructions can cause serious injury or death.
Do not bend the cable by force or leave it under
any heavy object.
Keep the desiccant out of children’s reach.
If not, they may eat it.
A damaged cable can cause a fire.
Neither SAMSUNG ELECTRO-MECHANICS nor its affiliates shall be liable to the purchaser of this product or
third parties for damages, losses, costs, or expenses incurred by purchaser or third parties as a result of :
accident, misuse, or abuse of this product or unauthorized modifications, repairs, or alterations to this product,
or (excluding the U.S.) failure to strictly comply with SAMSUNG ELECTRO-MECHANICS s operating and
maintenance instructions.
SAMSUNG ELECTRO-MECHANICS shall not be liable against any damages or problems arising from the
use of any options or ant consumable products other than those designated as Original Samsung products or
Samsung Approved products by SAMSUNG ELECTRO-MECHANICS.
PROHIBITED
PROHIBITED
No patent liability is assumed with respect to the use of the information contained herein. While every
precaution has been taken in the preparation of this book, SAMSUNG ELECTRO-MECHANICS assumed no
responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of
the information contained herein.
Notice
The contents of this manual are subject to change without notice.
Copyright ' 2004 SAMSUNG ELECTRO-MECHANICS. CO., LTD
EMC and Safety standards Applied
Install the printer on the stable surface.
If the printer falls down, it can be broken and you can
hurt yourself.
Use only approved accessories and do not try to
disassemble, repair or remodel it for yourself.
Call your dealer when you need these services.
DISASSEMBLING
PROHIBITED
PROHIBITED
PRINTER
PRINTER
WARNING
The connection of a non-shielded printer interface cable to this printer will invalidate the EMC standards of this device. You are
cautioned that changes or modifications not expressly approved by the party responsible for compliance could void your authority to
operate the equipment.
CE Marking
Do not use the printer when it is out of order.
This can cause a fire or an electrocution.
Switch off and unplug the printer before calling your dealer.
TO UNPLUG
Do not let water or other foreign objects in the printer.
If this happened, switch off and unplug the printer before
calling your dealer.
PROHIBITED
Table of contents
Chapter 1. Setting up the printer
1.1. Unpacking
1.2. Choosing a place for the printer
1.3. Connecting the cables
1.4. Installing ribbon cassette
1.5. Installing or replacing the paper roll
1.6. Changing the frame control paper position
1.7. Installing wall mount
1.8. Using the operation panel
1.9. Self test
1-2
1-2
1-3
1-4
1-5
1-6
1-7
1-8
1-9
4.8. Page 17 (PC866 : Russian)
4.9. Page 18 (PC852 : DosLatin2)
4.10. Page 19 (PC858 : Euro)
4.11. Page 21 (PC862 : Israel)
4.12. Page 22 (PC864 : Arabic)
4.13.Page 23 (Thai character code 42)
4.14. Page 24 (WPC1253 : Greek)
4.15. Page 25 (WPC1254 : Turkish)
4.16. Page 26 (WPC1257 : Baltic)
4.17. Page 27 (FARSI)
4.18. Page 28 (WPC1251 : Russian)
4.19. Page 29 (PC737 : Greek)
4.20. Page 30 (PC775: Baltic)
4.21. International character code table
4-9
4-10
4-11
4-12
4-13
4-14
4-15
4-16
4-17
4-18
4-19
4-20
4-21
4-22
Chapter 2. Troubleshooting
2.1. ERROR LED blinking pattern
2.1. The printer does not start printing
2.2. The printer stops printing
2.3. You want to check the operation of the printer by itself
2.4. printing is poor
2.5. You want to check a software program
2-2
2-3
2-4
2-5
2-6
2-7
Chapter 3. DIP Switch
3.1. Setting the DIP Switches
3.1.1 DIP Switch Setting for Epson(ESC/POS) mode
3.1.2 DIP Switch setting for Citizen(iDP 3550) mode
3.1.3 DIP Switch setting for Star(SP500) mode
3.2. Setting the Memory Switches
3.2.1 Memory Switch setting for Epson(ESC/POS) mode
3.2.2 Memory Switch setting for Star(SP500) mode
3.3 Changing the DIP Switch setting
3-2
3-2
3-3
3-4
3-5
3-5
3-6
3-21
Chapter 5. Control commands list
5.1. Commands
5.2. Explanation of terms
5.3 Explanation processing
5.3.1 Undefined codes
5.3.2 Undefined commands
5.3.3 settings outside the defined range
5.4 Commands for SRP-275 Series
5.4.1 Commands list for Epson mode (TM-U220)
5.4.2 Commands description for Epson mode (TM-U220)
5.4.3 Commands list for STAR mode (SP500)
5.4.4 Commands description for STAR mode (SP500)
5.4.5 Commands list for CITIZEN mode (iDP3550/3551)
5.4.6 Commands description for CITIZEN mode (iDP3550/3551)
5-2
5-2
5-3
5-3
5-3
5-3
5-4
5-4
5-6
5-74
5-76
5-123
5-125
Chapter 6. Reference information
Chapter 4. Code table
4.1. Page 0 (PC437 : USA, Standard Europe (International Character Set : USA))
4.2. Page 1 (Katakana)
4.3. Page 2 (PC850 : Multilingual)
4.4. Page 3 (PC860 : Portuguese)
4.6. Page 5 (PC865 : Nordic)
4.7. Page 16 (WPC1252 : Latin1)
4-2
4-3
4-4
4-5
4-7
4-8
6.1. Printing specification
6.2. Paper specification
6.3 Ribbon cassette specification
6.4 Electrical characteristics
6.5 Reliability
6.6 Environmental
6.7 Dimensions & weight
6.8 Optional features
6-2
6-2
6-2
6-3
6-3
6-3
6-4
6-4
Introduction
CHAPTER
The SRP-275 is a high-quality impact dot matrix POS printer.
This one-station printer has the following features.
1
Compact design and light-weight.
High-speed printing using logic-seeking(5.3LPS).
Easy to use : clamshell mechanism.
High reliability and long life due to the use of stepping motors for head carriage return and paper feeding.
Two color printing (red/black) available.
Various formats are possible because the paper feeding pitch is selectable.
SETTING UP THE PRINTER
High general control utility based on the ESC/POS (TM) standard.
The head can be driven due to the internal drawer interface.
The auto cutter uses a circular method with a high-quality blade and a long life
(Approximately 1,000,000 cuts).
Paper near end switch is standard.
A internal AC adaptor.
Please be sure to read the instructions in this manual carefully before using your new printer.
Front View
1
Rear View
C O N T E N T S
Character font (7X9, 9X9) is selectable.
1.1 Unpacking
1-2
1.2 Choosing a place for the printer
1-2
1.3 Connecting the cables
1-3
1.4 Installing ribbon cassette
1-4
1.5 Installing or replacing paper roll
1-5
1.6 Changing the frame control paper position
1-6
1.7 Installing wall mount
1-7
1.8 Using the control panel
1-8
1.9 Self test
1-9
CHAPTER 1
Setting up the printer
1.1 Unpacking
1.3 Connecting the cables
Plugging in AC adaptor
Your printer box should include the items shown in the illustration below.
If any items are damaged or missing, please contact your dealer.
Before connecting the printer to the power supply, make sure that the voltage and power
specifications match the printer’s requirements. Using an incorrect power supply can
cause serious damage to the printer.
Connect the AC adaptor according to the following procedure.
1) Make sure the printer is turned off.
2) Before inserting the AC adaptor, connect the power cord.
3) Insert the AC adaptor as shown.
4) Plug the AC adaptor cable into the printer’s power connector.
5) Plug the power cord into the outlet, and turn on the power.
AC adaptor
Power cord
Quick reference sheet
Operator’s manual
SRP-275 A , C
Ribbon Cassette
Paper roll
Connecting the interface cable
Connect the printer to the host ECR (host computer) though an interface cable matching the specification
of the printer and the host ECR (host computer). Be sure to use a drawer that matches the printer’s
specification.
1.2 Choosing a place for the printer
Avoid locations that are subject to direct sunlight or excessive heat.
Avoid using or storing the printer in a place subject to excessive temperature or moisture.
Do not use or store the printer in a dirty location.
When setting up the printer, choose a stable, horizontal location.
Intense vibration or shock may damage the printer.
Ensure the printer has enough space to be used easily.
1-2
Depending on the interface your system uses, either connect the serial, parallel, USB or Ethernet
communication cable to the appropriate connector on the back of the printer. Cables are provided by your
dealer or system installer.
Connect the interface cable according to the following procedure.
1) Turn off printer and the ECR (host computer) host.
2) Plug the interface cable into the interface connector on the printer then fasten the screw on
both sides of the connector.
3) Plug the drawer kick-out cable into the drawer kick-out connector on the printer.
(When removing the drawer kick-out cable, press on the connector’s clip while pulling out.)
1-3
CHAPTER 1
Setting up the printer
1.4 Installing ribbon cassette
1.5 Installing paper roll
1) Before inserting the ribbon cassette, turn the
knob clockwise to prevent twisting the ribbon.
2) Open the front cover of printer.
Notice the caution label and do not touch the auto cutter blade when you open rear cover.
1) To prevent data loss, make sure that the printer
is not receiving data.
2) Open the rear cover by pushing the open button
and push the arrow mark back.
3) Take out the old ribbon cassette if there is one.
4) Insert the new ribbon cassette as shown
and pay particular attention to the placement
of the ribbon behind the Printer Head.
3) Remove the used paper roll core if there is one.
4) Insert the paper roll as shown.
5) During inserting the ribbon cassette, turn the
knob clockwise again to make sure the ribbon
moves freely in the cassette.
5) Be sure to note the correct direction that the
paper should come off the paper roll.
6) Close front cover of printer.
6) Pull out small amount of paper as shown.
Then close the rear cover and tear off the extra
paper by pulling it toward the front of the printer.
Malfunctions and other problems may arise if other than specified ribbon cassettes are
used in the printer. The Warranty may be void if other than specified ribbon cassettes are
used. Contact your dealer or place of purchase for more information about proper ribbon
cassettes.
1-4
1-5
CHAPTER 1
Setting up the printer
1.7 Changing the frame control paper position
1.8 Installing wall mount (Option)
1) Open the rear cover.
2) Remove the frame control paper by loosing
the two screws(3 x 6).(76 mm default)
1) Turn the Set over and attach the Bracket hanger
to the Frame base then tighten four screws.
3) Reattach the frame control paper in you want.
(Insert and tighten two screws(3 x 6) to reattach.)
4) Close the rear cover.
5) Change the Memory Switch setting for changing
paper roll width. (See the instructions "Setting the
Memory Switches"(3.1) in Chapter 3.)
2) Attach the Bracket mount to the wall firmly with
the eight screws. Be sure that the Bracket
attached properly to match the direction of arrow
as shown. And the Bracket mount should be
always fixed vertically.
3) Insert the Bracket hanger of Set to the Bracket
mount as shown.
1-6
1-7
CHAPTER 1
Setting up the printer
1.9 Using the operation panel
Most of the functions of this printer are governed by software, but you can monitor the printer s status by
looking at the lights on the operation panel and for some procedures you will use the buttons.
operation panel
1.9 Self test
The self test let you know if your printer is operating properly. It checks the printing quality, ROM version,
DIP Switch settings, memory switch settings and statistic data.
The test is independent of any other equipment or software, so it is a good idea to run it when you first set
up the printer or if you have any trouble. If the self test works correctly, the problem is in the other
equipment or the software, not the printer.
Running the self test
1) Make sure the printer is turned off and the printer cover is closed properly.
2) While holding down the FEED button, turn on the printer and continue to hold until the paper begins to
feed. The self test prints the printer DIP Switch settings and memory switch settings.
And cuts the paper and pauses. (The power light blinks.)
3) Press the FEED button to continue printing the statistic data.
4) Press the FEED button to continue printing the rolling ASCII pattern.
- POWER LED (Green Color)
5) The self test mode terminates after printing the rolling ASCII pattern automatically.
This indicator light is on when the power is turned on. It blinks when the printer is in the self
test printing standby state. Always wait until this indicator light stops blinking before you start
using the printer and before you turn it off.
- ERROR LED (Red Color)
When this indicator light is on (but not blinking), it means that the printer is out of paper or
almost out of paper or the printer covers are open. When this light blinking, there is an error.
(See "ERROR LED blinking pattern" (2.1) in Chapter 2.) If you see this light blinking, turn off
the printer for a few seconds and then turn it back on. If the light is still blinking, call your
supervisor or a service person.
- PAPER OUT LED (Red Color)
When this indicator light is on, it means that the paper near end. Replace the new paper roll.
When ERROR and PAPER OUT indicator lights are on it means paper end.
Install the paper roll.(See"Installing paper roll"(1.5)in Chapter 1.)
- FEED button
Use this button to feed paper or to start self test and for hexadecimal dump mode.
(See the instructions "Self test" (1.7) in this chapter for self test.)
(See the instructions "Hexadecimal dump" (2.6) in Chapter 2 for hexadecimal dump mode.)
1-6
1-7
Note
CHAPTER
2
C O N T E N T S
TROUBLESHOOTING
1-8
1-11
2.1 ERROR LED blinking pattern
2-2
2.2 The printer does not start printing
2-3
2.3 The printer stops printing
2-4
2.4 You want to check the operation of
the printer by itself
2-4
2.5 Printing is poor
2-5
2.6 You want to check a software program
2-6
2-2
CHAPTER 2
Troubleshooting
This chapter gives solutions to some printer problems you may have.
2.1 ERROR LED blinking pattern
The printer stops all printer operations for the selected paper section, goes off line, and the ERROR LED
blinks when an error is detected.
Errors that are impossible to recover
ERROR
Description
ERROR LED Blinking Pattern
Recovery
Errors that automatically recover
ERROR
Description
Rear cover open error
(when recoverable
error is selected) (*1)
The rear cover is opened
when printing.
Print head
temperature error (*2)
The temperature of the
print head is extremely
high.
ERROR LED Blinking Pattern
200ms
Recovery
Recovers automatically
when the print head cools.
(*2) Print head temperature error is not abnormal.
Recoverable Errors
When a recoverable error occurs, after the cause of the error is removed, the printer can recover from the
error by receiving an error recovery command without turning off the power:
Description
Rear cover open error
(*1)
The rear cover is opened
when printing.
Auto cutter error
(Type C only)
The auto cutter does not
work correctly.
Home position detection The home position cannot
error (This is
be detected due to a
"Mechanical error")
paper jam.
ERROR LED Blinking Pattern
200ms
Recovery
Recovers automatically
when the rear cover is
closed.
Recovers by error recovery
command.
Recovers by error recovery
command.
(*1) These conditions are selected by MSW8-5 and 8-8. When MSW 8-5 (mapping of
the cover open status) is OFF, the error does not occur and a "paper end error"
occurs instead. If MSW8-8 is ON, this error is handled as a recoverable error.
2-2
After R/W checking, the
printer does not work
correctly.
Writing to, reading out, or
erasing the NV memory
for image scanning results
does not work correctly.
High voltage error.
The power supply voltage
is extremely high.
Impossible to recover.
Low voltage error.
The power supply voltage
is extremely low.
Impossible to recover.
CPU execution error.
The CPU executes an
incorrect address or I/F
board is not connected.
Impossible to recover.
Print head temperature
detection circuit error.
There is an abnormality
in the print head
temperature.
Impossible to recover.
Recovers automatically
when the rear cover is
closed.
(*1) This conditions are selected by MSW 8-5, 8-8. When MSW 8-5 (mapping of the
cover open status) is off, the error hasn’t occurred but there is a "paper end error"
instead. If MSW 8-8 is off, this error is handled as an automatically recoverable error.
ERROR
R/W error in memory
or gate array.
200ms
Recovers automatically
when the rear cover is
closed.
If you see this light blinking, turn off the printer for a few seconds and then turn it back on.
If the light is still blinking, call your supervisor or a service person.
2.2 The printer does not start printing
Are any of the operation panel lights on, If no operation panel lights are on, check the following:
- Make sure that the printer is turned on.
- Make sure that the power supply cable is correctly plugged into the printer and to the power outlet.
- Make sure if the ribbon cassette is installed.
If any of the lights are on, please check the following:
- If the POWER LED is blinking, the printer is not ready yet.
Wait until the light quits blinking and the printer is ready to use.
- If the ERROR LED is on (but not blinking), the printer is off line. Check to see that the covers are closed
and check the paper state. See "Installing paper roll" (1.5) in Chapter 1 for instructions on installing or replacing
the paper roll.
- If the ERROR LED is blinking, there is an error. In this case, turn off the printer for a few seconds and
then turn it back on. If the light is still blinking, call your supervisor or service person.
- If the PAPER OUT LED is on, check the paper roll in the printer. See "Installing paper roll" (1.5) in Chapter 1 for
instruction on installing the paper roll.
2-3
CHAPTER 2
Troubleshooting
2.3 The printer stops printing
If the ERROR LED is on (but not blinking), the printer is off line. Check to see that the covers are closed
and check the paper state. See "Installing paper roll"(1.5) in Chapter 1 for instructions on installing or
replacing the paper roll.
If the ERROR LED is blinking, there is an error. In this case, turn off the printer for a few seconds and
then turn it back on. If the LED is still blinking, call your supervisor or a service person.
Turn off the printer and check for a paper jam. To clear paper jam, follow the steps below:
1) Turn off the printer and open the rear cover of the printer.
2) Remove the jammed paper and reload the paper roll as described in Chapter 1.
3) Close the rear cover.
4) Turn on the printer.
Turn off the printer and check for a ribbon jam. To clear ribbon jam, follow the steps below:
1) Turn off the printer and open the front cover of the printer.
2.6 You want to check a software program
Hexadecimal dump
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 other data in hexadecimal format along with a guide section to help
you find specific commands.
To use the hexadecimal dump feature, follow these steps:
1) After you make sure that the printer is off, open the rear cover of the printer.
2) Hold down the FEED button while you turn on the printer.
3) Close the rear cover.
4) Run any software program that sends data to the printer. The printer prints "Hexadecimal dump" and then all
the codes are received in a two column format. The first column contains the hexadecimal codes and the
second column gives the ASCII characters that correspond to the codes.
2) Remove the jammed ribbon and reinstall the ribbon cassette as described in Chapter 1.
3) Close the front cover.
Hexadecimal dump
4) Turn on the printer.
1B 21 00 1B 26 02 40 40 . !
2.4 You want to check the operation of the printer by itself
.
.
&
.
1B 25 01 1B 63 34 00 1B . % .
.
c
4
41 42 43 44 45 46 47 48 A B C D E F
Self test
Try to run the self test to check that the printer works properly. See the self test instructions in Chapter 1
to run the self test. If the self test does not work, contact your supervisor or a service person.
If the self test works properly, check the following:
@ @
.
.
G H
(A period(.) is printed for each code that has no ASCII equivalent.)
5) When the printing finishes, turn off the printer.
1) Check the connection at both ends of the interface cable between the printer and the computer.
Also make sure that this cable meets the specifications for both the printer and the computer.
2) The data transmission settings may be different between the printer and computer.
Make sure that the printer’s DIP Switch settings for data transmission are the same as the computer’s.
You can see the printer’s interface settings on your self test printout.
If the printer still does not print, contact your dealer or a qualified service person.
2.5 Printing is poor
Check the state of ribbon cassette. If the ribbon cassette life ends, replace the ribbon cassette as
described in Chapter 1.
If the printer is still poor, contact your dealer or a qualified service person.
2-4
2-5
CHAPTER
3
SWITCH SETTINGS
C O N T E N T S
Note
3.1 Setting the DIP Switches
3-2
3.1.1 DIP Switch Setting for
Epson(ESC/POS) mode
3-2
3.1.2 DIP Switch setting for
Citizen(iDP 3550) mode
3-3
3.1.3 DIP Switch setting for
Star(SP500) mode
3-4
3.2 Setting the Memory Switches
3.2.1 Memory Switch setting for
Epson(ESC/POS) mode
3.2.2 Memory Switch setting for
Star(SP500) mode
3.3 Changing the DIP Switch setting
3-5
3-5
3-6
3-21
CHAPTER 3
Switch settings
Although the factory settings are best for almost all users, if you have special requirements,
you can change the DIP Switch.
3.1 Setting the DIP Switches
Your printer has two sets of DIP Switches. The functions of the switches are shown in the following table.
3.1.1 DIP Switch setting for Epson (ESC/POS) mode
DIP Switch 1
Switch
1-1
1-2
1-3
Function
ON
Emulation selection(*1)
OFF
Refer to the following table
Auto cutter
Enable
1-4
BUSY condition
Receive buffer full
1-5
1-6
1-7
1-8
Serial interface selection
Print NV bit image #1 after cutting
Near end switch
Print column
Memory switch
Enable
Enable
42/35
Disable
Receive buffer full or
Offline
DIP Switch
Disable
Disable
40/33
Default
OFF
OFF
OFF
OFF
OFF
OFF
OFF
DIP Switch 2 (RS232C serial interface model)
Switch
2-1
2-2
2-3
2-4
2-5
2-6
2-7
2-8
Function
Data receive error
Hand shaking
Word length
Parity check
Parity selection
ON
Ignore
Reserved
XON/XOFF
7 bits
Enable
EVEN
Baud rate selection(*2)
OFF
Default
Print "?"
OFF
OFF
OFF
OFF
OFF
OFF
DTR/DSR
8 bits
Disable
ODD
Refer to the following table
OFF
(*1) Emulation Selection (DSW 1-1and 1-2)
Emulation
1-1
1-2
EPSON
STAR
CITIZEN
EPSON-KP
OFF
OFF
ON
ON
OFF
ON
OFF
ON
EPSON-KP(EPSON Kitchen printer Mode) : A alarm is generated by printer after auto cutting and in paper end error.
(*2) Baud rate selection (Transmission speed)
Transmission
2-7
2-8
2400 baud
4800 baud
9600 baud
19200 baud
ON
OFF
OFF
ON
ON
ON
OFF
OFF
3.1.2 DIP Switch setting for Citizen(iDP 3550) mode
DIP Switch 1
Switch
1-1
1-2
1-3
DIP Switch 2 (Parallel interface model)
Switch
2-1
2-2
2-3
2-4
2-5
2-6
2-7
2-8
3-2
Function
Auto line feed
ON
Enable
Undefined
OFF
Disable
Default
OFF
1-4
1-5
1-6
1-7
1-8
Function
Emulation selection(*1)
Auto cutter
CBM command
International characters(*2)
CR mode
ON
OFF
Refer to the following table
Enable
CBM2 mode
(iDP3530 system)
Disable
CBM1 mode
(iDP3540 system)
Default
OFF
OFF
OFF
OFF
Refer to the following table
ON
CR
OFF
CR+LF
OFF
3-3
CHAPTER 3
Switch settings
3.1.3 DIP Switch setting for Star(SP500) mode
DIP Switch 2 (RS232C serial interface model)
Function
Switch
2-1
2-2
2-3
2-4
2-5
2-6
2-7
2-8
Word length
Parity check
Parity selection
Handshaking
ON
OFF
Default
8 bits
Disable
ODD
DTR/DSR
7 bits
Enable
EVEN
XON/XOFF
ON
ON
ON
ON
Refer to the following table
Baud rate selection(*3)
Near end Switch
Mechanism type
Enable
Graphic
Disable
Character
OFF
OFF
OFF
DIP Switch 1
Switch
1-1
1-2
1-3
1-4
1-5
1-6
1-7
1-8
Function
ON
OFF
Refer to the following table
Emulation selection(*1)
Auto cutter
Black/Red printing
Enable
Enable
Disable
Disable
Default
OFF
OFF
OFF
OFF
Reserved
DIP Switch 2 (RS232C serial interface model)
Switch
(*1) Emulation Selection (DSW 1-1and 1-2)
Emulation
1-1
1-2
EPSON
STAR
CITIZEN
EPSON-KP
OFF
OFF
ON
ON
OFF
ON
OFF
ON
EPSON-KP(EPSON Kitchen printer Mode) : A alarm is generated by printer after auto cutting and in paper end error.
(*2) International character selection
No.
DSW1-5 DSW1-6 DSW1-7
Country
U.S.A.
ON
ON
ON
France
OFF
ON
ON
Germany
ON
OFF
ON
U.K.
OFF
OFF
ON
Denmark
ON
ON
OFF
Sweden
OFF
ON
OFF
Italy
ON
OFF
OFF
Windows code
OFF
OFF
OFF
(*3) Baud rate selection (Transmission speed)
3-4
Transmission
2-5
2-6
2400 baud
4800 baud
9600 baud
19200 baud
ON
OFF
OFF
ON
ON
ON
OFF
OFF
2-1
2-2
2-3
2-4
2-5
2-6
2-7
2-8
Function
ON
Reserved
Reserved
XON/XOFF
7 bits
Enable
EVEN
Hand shaking
Word length
Parity check
Parity selection
Baud rate selection(*2)
OFF
Default
DTR/DSR
8 bits
Disable
ODD
OFF
OFF
OFF
OFF
OFF
OFF
Refer to the following table
OFF
Code page
Page 0 (PC 437 : U.S.A.)
Page 2 (PC 850 : Multilingual)
Page 5 (PC 865 : Nordic)
Page 2 (PC 850 : Multilingual)
Windows code
(*2) Baud rate selection (Transmission speed)
Transmission
2-7
2-8
2400 baud
4800 baud
9600 baud
19200 baud
ON
OFF
OFF
ON
ON
ON
OFF
OFF
Change in DIP Switch settings are recognized only when the printer power is turned on or
when the printer is reset by using the interface. If the DIP Switch setting is changed after
the printer power is turned on, the change does not take effect until the printer is turned on
again or is reset.
3-5
CHAPTER 3
Switch settings
3.2 Setting the Memory Switches
3.2.1 Memory Switch setting for Epson(ESC/POS) mode
(*1) Memory Switch 2-4~8
This printer has "Memory Switch" set which is software switches. Memory Switch set has "MSW2",
"MSW8", "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) :
The Memory Switch is available to be changed by three methods :
-
Memory Switch setting utility.
Memory Switch setup mode (there are limitations on what can be changed)
Control from ESC/POS command.
Some Memory Switch settings can be changed by the "Memory Switch setting mode".
See “Procedure of Memory Switch setting”.
Settings of the Memory Switch are stored in the NV memory; therefore, even if the printer is turned off,
the settings are maintained.
When you replace a SRP-270 with a SRP-275, you should adjust the MSW8-5 to OFF.
Memory Switch 2
Switch
1
2
3
4~8
Function
Reserved
Reserved
Reserved for Chinese selection
Code page selection(*1)
ON
-
OFF
Fixed to Off
"
"
Refer to the following table
3-6
MSW2-7
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
MSW2-6 MSW2-5 MSW2-4
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Character Table
Page 0 (PC437 : U.S.A.)
Page 1 (Katakana)
Page 2 (PC850 : Multilingual)
Page 3 (PC860 : Portuguese)
Page 4 (PC863 : Canadian-French)
Page 5 (PC865 : Nordic)
Page 16 (WPC1252 : Latin1)
Page 17 (PC866 : Russian)
Page 18 (PC852 : Latin2)
Page 19 (PC858 : Euro)
Page 21 (PC862 : Israel)
Page 22 (PC864 : Arabic)
Page 23 (Thai character code 42)
Page 24 (WPC1253 : Greek)
Page 25 (WPC1254 : Turkish)
Page 26 (WPC1257 : Baltic)
Page 27 (Farsi)
Page 28 (WPC1251 : Russian) (*2)
Page 29 (PC737 : Greek) (*2)
Page 30 (PC775 : Baltic) (*2)
(*2) Only Font B available.
Memory Switch 8
Switch
Desired code page can be selected using Memory Switch 2-4~8 by setting as
following.(Setting value : Hexadecimal)
MSW2-8
1
2
3
4
5
6
7
8
Function
ON
OFF
Reserved
Fixed to Off
Reserved
Reserved
Reserved
Selection of the cover open status
Cover open
Paper end
Reserved
Fixed to Off
Receive buffer full release
Remaining 522 bytes
Remaining 640 bytes
Printer (Cover open during operation) Errors that can possibly recover Errors that automatically recover
3-7
CHAPTER 3
Switch settings
MSW 8-5 :
When Off is selected, a bit of the "paper end sensor" in each status that is transmitted
from the printer is changed every time the rear cover is open or closed. When On is
selected, a bit of the "rear cover open / close" in each status that is transmitted from the
printer is changed every time the rear cover is open or closed. When you replace a SRP270 with a SRP-275, you should adjust the MSW 8-5 to Off.
MSW 8-8 :
When Off is selected, a bit of the "automatic recoverable error" in each status that is
transmitted from the printer is changed every time the rear cover is open. When On is
selected, a bit of the "mechanical error" in each status that is transmitted from the printer is
changed every time the rear cover is open.
The setting of MSW 8-5 and 8-8 can be set by "Memory Switch setup mode".
Memory Switch setup mode
The following items are specified in the Memory Switch setup mode:
Basic Serial communication condition (Serial communication)
- Transmission speed
- Parity
- Handshaking
- Data length
Receive buffer full release condition (MSW 8-7)
Paper roll width (Customize value)
Cover open status (MSW 8-5)
All new settings will be lost if the power supply is turned off in the memory switch setup
mode. Be sure to follow the proper procedure, and turn the power off at the correct time.
Customize value
Function
Selectable value
Paper roll width
57.5 mm / 69.5 mm / 76 mm (default value)
These setting can be set by "Memory Switch setup mode."
Serial communication
Selectable value
Function
Baud rate
Parity
Handshake
Data length
Starting the Memory Switch setup mode
Use the following procedure to start the Memory Switch setup mode.
1) Open the rear cover.
2) Turn the power on while pressing the FEED button.
3) Press the FEED button twice after POWER, ERROR, and PAPER OUT LEDs are lit.
4) Close rear the cover. The printer prints the enabled settings of the memory switches and instructions.
5) Follow the instructions to process the switch setup.
2400 bps
9600 bps
None
Even
DSR/DTR
7 bits
4800 bps
19200 bps
Odd
XON/XOFF
8 bits
In the Memory Switch setup, the POWER LED may be flashing.
There are two methods, DIP Switch and Memory Switch, to adjust the serial
communication conditions. DIP Switch1-5 selects which is effective, DIP Switch or
Memory Switch. To enable the "Serial communication" setting, you have to adjust the
"Serial interface selection" function of DIP Switch 1-5 to "Memory Switch".
These settings can be set by "Memory Switch setup mode".
3-8
3-9
CHAPTER 3
Switch settings
Procedure of Memory Switch setting
3.2.2 Memory Switch setting for Star (SP500) mode
Settings
Memory Switches are from MSW 0 to 8 MSW 8. They are stored in non-volatile memory
(flash memory). To change the settings, send the following commands from the host.
[Name] Set Memory Switch
[Code] ASCII
ESC
GS
#
m N n1 n2 n3 n4 LF NUL
Hexadecimal
1B
1D
23
m N n1 n2 n3 n4 0A 00
Decimal
27
29
35
m N n1 n2 n3 n4 10 0
[Defined Region] m = "W", "T", ",", "+", "-,", "@"
"0" ≤ N, n1, n2, n3, n4 ≤ "9",
"A" ≤ N, n1, n2, n3, n4 ≤ "F"
[Function]
Sends command to write after defining memory switch using the definition
command specified by the following classes to set the memory switch.
The printer is automatically reset after writing the setting defined by that command
to the non-volatile memory.
Do not turn off the power to the printer while sending commands to the non
volatile memory. Doing so will destroy the memory switch setting. It is also possible
for all memory switch settings to become offset to their initial, default settings.
Consider the life of the non-volatile memory and avoid over-use of this command.
Function
Class
m
N
n1 n2 n3 n4
Data definition (data Specification)
Data definition (set specified bit)
Data definition (clear specified bit)
Data definition (clear all data)
Definition data write and reset
Definition data write and reset and
test print
Definition
Definition
Definition
Definition
Write
","
"+"
"-"
"@"
"W"
N
N
N
Fixed at "0"
Fixed at "0"
n1 n2 n3 n4
n1 n2 n3 n4
n1 n2 n3 n4
Fixed at "0000"
Fixed at "0000"
Write
"T"
Fixed at "0"
Fixed at "0000"
(Ex) Memory Switch 1-8 = 0; Memory Switch 2-7 = 1: Memory Switch 2-A =1 for a test print:
PRINT #1, CHR$(&H1B);CHR$(&H1D);CHR$(&H23);CHR$(&H2D);CHR$(&H31); ’ <ESC><GS> # - 1
PRINT #1, CHR$(&H30);CHR$(&H31);CHR$(&H30);CHR$(&H30);CHR$(&H0A);CHR$(0); ’ 0100 <LF><NUL>
PRINT #1, CHR$(&H1B);CHR$(&H1D);CHR$(&H23);CHR$(&H2B);CHR$(&H32); ’ <ESC><GS> # + 2
PRINT #1, CHR$(&H30);CHR$(&H34);CHR$(&H38);CHR$(&H30);CHR$(&H0A);CHR$(0); ’ 0480 <LF><NUL>
PRINT #1, CHR$(&H1B);CHR$(&H1D);CHR$(&H23);CHR$(&H54);CHR$(&H30); ’ <ESC><GS> # T 0
PRINT #1, CHR$(&H30);CHR$(&H30);CHR$(&H30);CHR$(&H30);CHR$(&H0A);CHR$(&H0); ’ 0000 <LF><NUL>
3-10
3-11
CHAPTER 3
Switch settings
Default Settings
Function
The default settings for Memory Switch 0 to Memory Switch 8 are shown below.
Settings vary for single byte character countries (standard specifications (SBCS)) and for double-byte
character countries (Chinese character specifications (DBCS)).
Standard specifications (SBCS)
Memory Switch Number
Ex-factory Settings (n1, n2, n3, n4)
MSW0
MSW1
MSW2
MSW3
MSW4
MSW5
MSW6
MSW7
MSW8
"0000"
"0000"
"0000"
"0000"
"0000"
"0000"
"0000"
"0000"
"0000"
Bit
Function
F~C
Reserved
Red and black
(inverted black and white)
Commands(*3)
Reserved
B~A
9~5
4
0
Country specifications (*1)
3~2
1~0
<FF> Command Function selection
Reserved
1
Refer to the following table
SBCS
DBCS
(Single Byte Countries)
(Double Byte Countries)
Refer to the following table
(*1) Country Specifications
Chinese character specifications (DBCS) (For China)
3-12
Memory Switch 0
Memory Switch Number
Ex-factory Settings (n1, n2, n3, n4)
Country
MSW0-4 = 0
MSW0-4 = 1
MSW0
MSW1
MSW2
MSW3
MSW4
MSW5
MSW6
MSW7
MSW8
"0010"
"0000"
"0000"
"0000"
"0000"
"0000"
"0000"
"0000"
"0000"
Overseas
Standard Specifications
Chinese Characters
(*2) <FF> Command Function Selection
Country
Country
Auto cutter model
0
0
0
1
1
0
1
1
<FF> Command Function
<FF> Command Function
Tear Bar Model
Executes a form feed.
After paper fed to cutting position
Executes partial cut.
Executes a form feed.
After paper fed to cutting position
Executes partial cut.
Executes a form feed.
Paper fed to the tear-bar
position.
Executes a form feed.
Paper fed to the tear-bar
position.
3-13
CHAPTER 3
Switch settings
Memory Switch 1
(*3) Red and Black (inverted black and white) Commands
MSW0-3
MSW0-2
<ESC> 4 / <ESC> 5 Command Functions
0
0
1
1
0
1
0
1
White/black inverted printing (1 Pass)
<Option 1> White/black inversion (79 font print) + enhancing (2 passes)
<Option 2> Upper line + Underline + enhancing (2 passes)
<Option 3> Upper line + Underline + double tall expanded + enhancing (4 passes)
This setting functions to specify adornments when the subsequent red (white/black inversion) print
command is set. It is a substitute function for the conventional red/black (white/black inversion)
printing.
<ESC> "4": Red (white/black inversion) printing
<ESC> "5": Red (white/black inversion) printing cancelled.
When using <ESC> 5 to cancel adornments, it returns to the previously set adornments.
(Adornments such as underline, upper line, double-tall expanded and enhancing are cancelled if
there is no command to set them (for example the <ESC> "-" 1 specification for underlines).
This setting is enabled only for ANK characters and block characters. It is disabled for IBM block
characters and Chinese characters composed of 12 dot vertical characters (IBM block characters
and Chinese characters do not have adornment with this command).
Precautions for selecting Option 1.
1)Prints white/black inverted characters using 79 fonts regardless of the current font size setting.
2)Inserts a one dot string of black printing to the head of the white/black inverted characters.
3)Printing data created on a conventional red/black printer, using 1 and 2 above, there are cases
in which the printing position will shift to the right and a line of printable characters reduced.
(For example, to write 42 digits of red print data using conventional a 79 font, there is a line
feed at the 35th digit, and the remaining 7 digits are printed on the next line.)
4)Download defined characters defined with 79 fonts are printed regardless of the current
font setting (79/59).
5)MSW 3-6 must not be set to 1 (ANK character count = many).
(This will cause a while line to appear between characters.)
Bit
Function
F
E~5
4
3~0
Reserved
0
Zero style
International Characters(*1)
1
Normal
Slash zero
Refer to the following table
(*1) International Characters Default Value Settings.
MSW1-3
MSW1-2
MSW1-1
MSW1-0
International Characters
0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
0
1
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
U.S.A.
France
Germany
U.K.
Denmark1
Sweden
Italy
Spain 1
Japan
Norway
Denmark2
Precautions for selecting Option 2 and Option 3.
1)Do not apply an upper line or an underline to characters when rotating 90 or 270 degrees.
3-14
3-15
CHAPTER 3
Switch settings
Memory Switch 2
Memory Switch 3
Bit
Function
F
D~C
Reserved
How to recover to print ready after
Inserting paper
Reserved
B
Printing region width(*1)
Refer to the following table
A
Paper width selection(*1)
Refer to the following table
E
9~4
3
2
1~0
0
Press FEED
Contextual auto-cut function (*2)
1
Bit
Auto-recovery
F~D
C~8
7~2
1~0
Disabled
Function
1
Character Table(*2)
Refer to the following table
<CR> Command Functions(*1)
Refer to the following table
(*1) <CR> Command Functions
MSW3-1
MSW3-0 <CR>
Functions
0
0
1
1
0 Ignored
1 Ignored
0
1
Prints and performs a line feed (same as <LF>)
Prints (No line feed)
Enabled
Refer to the following table
Near end switch function(*3)
0
(*2) Character Table Settings
These settings are enabled only on standard specification printers.
MSW3-C MSW3-B MSW3-A MSW3-9 MSW3-8
(*1) Printing region width (MSW-2B) / Paper width (MSW-2B) selection
MSW1-3
MSW1-2
Printing region width
Paper width
0
0
1
1
0
1
0
1
400 half dots
300 half dots
385 half dots
297 half dots
76mm
57.5mm
76mm
57.5mm
(*2) Contextual auto cut function
This function auto cuts paper when a paper feed command that feeds continuously over 7/6 inch.
Hosts that cannot send an escape sequence, such as <ESC> "d" 0 can cut paper if a 1/6 inch line feed
code <LF> is sent seven times.
(*3) Near End Switch Function
When an optional near end switch is mounted, settings should abide by those shown in the table below.
3-16
MSW2-1
MSW2-0
0
0
0
1
1
0
1
1
Near End Switch Function
Disabled
Disabled
Reflects the near end Switch state to the status.
Printing does not stop for near end, and the printer does not go offline.
Reflects the near end Switch state to the status.
Printing does stop for near end, and the printer goes offline.
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
0
0
0
0
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Character table
Page 0 (PC437 : U.S.A.)
Page 1 (Katakana)
Page 2 (PC850 : Multilingual)
Page 3 (PC860 : Portuguese)
Page 4 (PC863 : Canadian-French)
Page 5 (PC865 : Nordic)
Page 16 (WPC1252 : Latin1)
Page 17 (PC866 : Russian)
Page 18 (PC852 : Latin2)
Page 19 (PC858 : Euro)
Page 21 (PC862 : Israel)
Page 22 (PC864 : Arabic)
Page 23 (Thai character code 42)
Page 24 (WPC1253 : Greek)
Page 25 (WPC1254 : Turkish)
Page 26 (WPC1257 : Baltic)
Page 27 (Farsi)
Page 28 (WPC1251 : Russian) (*2)
Page 29 (PC737 : Greek) (*2)
Page 30 (PC775 : Baltic) (*2)
(*3) Only font B available
3-17
CHAPTER 3
Switch settings
3.3 Changing the DIP Switch setting
If you need to change settings, follow the steps below to make your changes.
Memory Switch 4
Bit
Function
0
1
Automatic status function
Disabled
Enabled
ESC RS a n command function
Only setting
Auto-status sent only once
Data reception error (serial)
Prints "?"
Ignored
Bit
Function
0
1
F~0
Reserved
F~9
8
7~4
3
2~1
0
Memory Switch 5
Memory Switch 6
Turn off the printer before removing the DIP Switch cover to prevent an electric short,
which can damage the printer.
1) Make sure the printer is turned off.
2) Remove the screw from the DIP Switch cover.
Then take off the DIP Switch cover, which is shown in the illustration below.
3) Set the switches using a pointed tool, such as tweezers or a small.
4) Replace the DIP Switch cover. Then secure it with the screw.
The new settings take effect when you turn on the printer.
Bit
Function
0
1
F~A
9
8~0
BUSY Condition
Reception Buffer or Offline
Reception Buffer Full
Bit
Function
0
1
F~0
Reserved
Memory Switch 7
3-18
3-19
Note
CHAPTER
4
C O N T E N T S
CODE TABLE
3-20
4.1 Page 0 (PC437 : USA, Standard Europe
(International Character Set : USA))
4-2
4.2 Page 1 (Katakana)
4-3
4.3 Page 2 (PC850 : Multilingual)
4-4
4.4 Page 3 (PC860 : Portuguese)
4-5
4.5 Page 4 (PC863 : Canadian-French)
4-6
4.6 Page 5 (PC865 : Nordic)
4-7
4.7 Page 16 (WPC1252 : Latin1)
4-8
4.8 Page 17 (PC866 : Russian)
4-9
4.9 Page 18 (PC852 : DosLatin2)
4-10
4.10 Page 19 (PC858 : Euro)
4-11
4.11 Page 21 (PC862 : Israel)
4-12
4.12 Page 22 (PC864 : Arabic)
4-13
4.13 Page 23 (Thai character code 42)
4-14
4.14 Page 24 (WPC1253 : Greek)
4-15
4.15 Page 25 (WPC1254 : Turkish)
4-16
4.16 Page 26 (WPC1257 : Baltic)
4-17
4.17 Page 27 (FARSI)
4-18
4.18 Page 28 (WPC1251 : Russian)
4-19
4.19 Page 29 (PC737 : Greek)
4-20
4.20 Page 30 (PC775: Baltic)
4-21
4.21 International character code table
4-22
CHAPTER 4
Code table
The following pages show the character code tables.
To fine 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 right digit. For example, 4A=J
4.1 Page 0 (PC 437 : USA, Standard Europe (International Character Set : USA))
4-2
4.2 Page 1 (Katakana)
4-3
<#
CHAPTER 4
Code table
4.3 Page 2 (PC850 : Multilingual)
4-4
4.4 Page 3 (PC860 : Portuguese)
4-5
CHAPTER 4
Code table
4.5 Page 4 (PC863 : Canadian-French)
4-6
4.6 Page 5 (PC865 : Nordic)
4-7
CHAPTER 4
Code table
4.7 Page 16 (WPC1252 : Latin1)
4-8
4.8 Page 17 (PC866 : Russian)
4-9
CHAPTER 4
Code table
4.9 Page 18 (PC852 : DosLatin2)
4-10
4.10 Page 19 (PC858 : Euro)
4-11
CHAPTER 4
Code table
4.11 Page 21 (PC862 : Israel)
4-12
4.12 Page 22 (PC864 : Arabic)
4-13
CHAPTER 4
Code table
4.13 Page 23 (Thai character code 42)
4-14
4.14 Page 24 (WPC1253 : Greek)
4-15
CHAPTER 4
Code table
4.15 Page 25 (WPC1254 : Turkish)
4-16
4.16 Page 26 (WPC1257 : Baltic)
4-17
CHAPTER 4
Code table
4.17 Page 27 (Farsi)
4-18
4.18 Page 28 (WPC1251 : Russian)
4-19
CHAPTER 4
Code table
4.19 Page 29 (PC737 : Greek)
4-20
4.20 Page 30 (PC775 : Baltic)
4-21
CHAPTER 4
Code table
4.21 International character code table
4-22
CHAPTER
5
C O N T E N T S
CONTROL COMMANDS LIST
5.1 Command Notation
5-2
5.2 Explanation of Terms
5-2
5.3 Explanation Processing
5-3
5.3.1 Undefined codes
5-3
5.3.2 Undefined commands
5-3
5.3.3 settings outside the defined range
5.4 Commands for SRP-275 Series
5-3
5-4
5.4.1 Commands list for Epson mode (TM-U220)
5-4
5.4.2 Commands description for
Epson mode (TM-U220)
5-6
5.4.3 Commands list for STAR mode (SP500)
5-74
5.4.4 Commands description for
STAR mode (SP500)
5-76
5.4.5 Commands list for
CITIZEN mode (iDP3550/3551)
5-123
5.4.6 Commands description for
CITIZEN mode (iDP3550/3551)
5-125
CHAPTER 5
CONTROL COMMANDS LIST
5.1 Command notation
XXXX
[Name]
[Format]
[Range]
[Description]
[Notes]
The name of the command.
The code sequence.
Gives the allowable ranges for the arguments.
Describes the command’s function.
Provides important information on setting and using the printer command, if necessary.
Item(s) marked with * indicates "important notice".
[Default]
Gives the default values (if any) for the command arguments.
[Reference] Lists related commands.
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.
5.3 Exception processing
5.3.1 Undefined codes
This term refers to the codes ranging from 00H to 1FH in the character code table. If a code in this
range that is not defined as a command is input, that code (one byte) is read in and discarded,
and subsequent data is processed as normal data.
Example : 30H, 31H, 03H, 32H, 0AH, 33H
If the above data string is input, the printer reads in and discards "03H" as an undefined code.
Note that 0AH is defined as a command (LF). As a result, the data string that is actually processed
is: 30H, 31H, 32H, 0AH, 33H
5.3.2 Undefined commands
If the data following ESC (1BH) or GS (1DH) is not defined as a command, then the two bytes
(ESC/GS and the code that follows) are read in and discarded.
Example: 30H, 1BH, 22H, 31H, 32H
If the above data string is input, the printer discards the data 1BH and 22H as undefined commands.
As a result, the data string that is actually processed is: 30H, 31H, 32H
5.2 Explanation of terms
5.3.3 Settings outside the defined range
Reception buffer
The reception buffer is a buffer that stores, as is, the data received from the host
(the reception data). The reception data is stored in the reception buffer temporarily,
and is then processed sequentially.
Print buffer
The print buffer is a buffer that stores the image data to be printed.
Print buffer full
This is the state where the print buffer is full. If new print data is input while the print buffer is full,
the data in the print buffer is printed out and a line feed is executed.
This is the same operation as the LF operation.
Start of line
The start of line state satisfies the following condition:
- There is no print data (including spaces and portions of data skipped due to HT) currently
in the print buffer.
Printable area
The maximum range within which printing is possible under the printer specifications.
Inch
A unit of length. One inch is 25.4mm.
MSB
Most Significant Bit.
LSB
Least Significant Bit.
5-2
If a value outside of the defined range is input for a command that takes parameters, that command
is ignored and the previous value for that setting remains unchanged. In the case of a command that
takes multiple parameters, command processing is halted the moment that a value outside of the
defined range is input and subsequent values are processed as normal data.
Example:1BH, 52H, 15H
If the above data string is input, 1BH and 52H are defined as a command (ESC R), but the
parameter 15H is outside of the defined range. As a result, the printer reads in and discards the data
string 1BH, 52H, 15H. Accordingly, the previously set international character set is not changed.
5-3
CHAPTER 5
CONTROL COMMANDS LIST
5.4 Commands for SRP-275 Series
5.4.1 Commands list for EPSON Mode(TM-U220)
n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
5-4
Command
HT
LF
CR
DLE EOT
DLE ENQ
DLE DC4(fn = 1)
ESC SP
ESC !
ESC %
ESC &
ESC *
ESC ESC 2
ESC 3
ESC <
ESC =
ESC ?
ESC @
ESC D
ESC E
ESC G
ESC J
ESC K
ESC M
ESC R
ESC U
ESC a
ESC c 3
ESC c 4
ESC c 5
ESC d
ESC e
ESC i
ESC m
ESC p
ESC r
ESC t
ESC u
ESC v
ESC {
ESC g<0>
ESC g<n>
Description
Horizontal tab
Print and line feed
Print and carriage return
Real-time status transmission
Real-time request to printer
Generate pulse at real-time
Set right-side character spacing
Select print mode(s)
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
Return home
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
Print and reverse feed
Select character font
Select an international character set
Turn unidirectional printing mode on/off
Select justification
Select paper sensor(s) to output paper end signals
Select paper sensor(s) to stop printing
Enable/disable panel buttons
Print and feed n lines
Print and reverse feed n lines
Partial cut (one point left uncut)
Partial cut (one point left uncut)
Generate pulse
Select print color
Select character code table
Transmit peripheral device status
Transmit paper sensor status
Turn upside-down printing mode on/off
Start macro record (For logo)
Execute macro (For logo)
Hex
n
09
0A
0D
10 04
10 05
10 14
1B 20
1B 21
1B 25
1B 26
1B 2A
1B 2D
1B 32
1B 33
1B 3C
1B 3D
1B 3F
1B 40
1B 44
1B 45
1B 47
1B 4A
1B 4B
1B 4D
1B 52
1B 55
1B 61
1B 63 33
1B 63 34
1B 63 35
1B 64
1B 65
1B 69
1B 6D
1B 70
1B 72
1B 74
1B 75
1B 76
1B 7B
1B 67 00
1B 67 <n>
43
44
45
46
47
48
49
50
51
52
Command
FS p
FS q
GS ( A
GS ( C
GS ( D
GS ( E
GS I
GS V
GS a
GS r
Description
Print NV bit image
Define NV bit image
Execute test print
Edit NV user memory
Enable/disable real-time command
User setup commands
Transmit printer ID
Select cut mode and cut paper
Enable/disable Automatic Status Back (ASB)
Transmit status
Hex
1C 70
1C 71
1D 28 41
1D 28 43
1D 28 44
1D 28 45
1D 49
1D 56
1D 61
1D 72
5-5
CHAPTER 5
CONTROL COMMANDS LIST
5.4.2 Commands description for Epson mode (TM-U220)
HT
CR
[Name]
Horizontal tab
[Format]
ASCII
HT
[Name]
Print and carriage return
[Format]
ASCII
CR
Hex
Decimal
09
Hex
0D
9
Decimal
13
[Range]
None
[Range]
None
[Default]
None
[Default]
None
[Description]
Moves the printing position to the next horizontal tab.
[Description]
[Notes]
This command is ignored unless the next horizontal tab position
has been set.
When auto line feed is enabled (DSW 2-1)
(Only available with Parallel Interface)
When auto line feed is disabled
Executes printing and one line feed as LF
Prints data in print buffer and does not feed the
paper
Horizontal tab positions are set by ESC D.
If the next horizontal tab position exceeds the printing area,
the printer sets the printing position to [Printing area width + 1].
When underline mode is turned on, the underline will not be printed
under the tab space skipped by this command.
[Format]
With a parallel interface, enabling or disabling the auto line feed can be
selected by the DIP Switch (DSW2-1).
Print and line feed
ASCII
LF
Hex
0A
Decimal
10
[Range]
None
[Default]
None
[Description]
Prints the data in the print buffer and feeds one line.
[Notes]
With a serial interface, the command performs as if auto line feed is
disabled.
After printing, the printing position moves to the beginning of the line.
LF
[Name]
[Notes]
The amount of paper fed per line is based on the value set using the
line spacing command (ESC 2 or ESC 3).
After printing, the printing position moves to the beginning of the line.
5-6
5-7
CHAPTER 5
CONTROL COMMANDS LIST
Printer status (n = 1) is as follows:
DLE EOT
[Name]
Real-time status transmission
[Format]
ASCII
Binary
Hex
Decimal
0
1
0
1
0
1
1
0
0
0
00
02
00
04
00
08
10
00
00
00
0.
2
0
4
0
8
16
0
0
0
DLE
EOT
n
0
1
Hex
10
04
n
2
Decimal
16
4
n
[Range]
1≤n≤4
[Description]
Transmits 1 byte of status data specified in real time, using n as follows:
n
1
2
3
4
[Notes]
Bit
Function
Transmit printer status
Transmit offline status
Transmit error status
Transmit paper sensor status
This is a real-time command that the printer executes upon receiving it.
Take the following into consideration:
- If this command interrupts the code string of another command,
this command is processed as a parameter of the other command ;
therefore, the print result will not be correct.
- If a command such as bit-image or defined data has a code string that is
the same as a code string in a parameter, the printer processes and then
continues with the bit-image or other command.
With a serial interface model, this command is executed even when the
printer is offline, the receive buffer is full, or an error occurs.
3
4
5
6
7
Status
Not used. Fixed to Off
Not used. Fixed to On
Drawer kick-out connector pin 3 is LOW
Drawer kick-out connector pin 3 is HIGH
Online
Offline
Not used. Fixed to On
Not used. Fixed to Off
Not used. Fixed to Off
Not used. Fixed to Off
offline status (n = 2) is as follows:
Bit
Binary
Hex
Decimal
0
1
0
1
0
1
0
1
1
0
1
0
1
0
00
02
00
04
00
08
10
00
20
00
04
00
0.
2
0
4
0
8
16
0
32
0
4
0
2
3
4
5
6
7
Status
Not used. Fixed to Off
Not used. Fixed to On
Cover is closed
Cover is open
Paper is not being fed by the paper feed button
Paper is being fed by the paper feed button
Not used. Fixed to On
No paper end stop
Printing stops due to a paper end
No error
Error occurred
Not used. Fixed to Off
With a parallel interface model, this command is not executed in the
following conditions, because the printer is busy and unable to receive data
from the host computer. The busy condition is set by DIP Switch (DSW1-4).
- Receive buffer is full when DIP Switch (DSW1-4) is set to On.
- Printer is offline, an error occurs, or receive buffer is full when
DIP Switch (DSW1-4) is set to Off.
This command can be used when the printer is disabled by ESC =.
Each status equals 1 byte.
5-8
5-9
CHAPTER 5
CONTROL COMMANDS LIST
Error status (n = 3) is as follows:
DLE ENQ
Bit
Binary
Hex
Decimal
0
1
0
1
0
1
0
1
1
0
1
0
1
0
00
02
00
04
00
08
10
00
20
00
04
00
0
2
0
4
0
8
16
0
32
0
4
0
2
3
4
5
6
7
Status
Not used. Fixed to Off
Not used. Fixed to On
No mechanical error
Mechanical error occurred
No auto cutter error
Auto cutter error occurred
Not used. Fixed to On
No unrecoverable error
Unrecoverable error occurred
No auto-recoverable error
Auto-recoverable error occurred
Not used. Fixed to Off
If mechanical error (bit 2) or auto cutter error (bit 3) occurs due to paper jams or the like,
it is possible to recover by correcting the cause of the error and executing DLE ENQ.
If an unrecoverable error (bit 5) occurs, turn off the power as soon as possible.
Paper sensor status (n = 4) is as follows:
Bit
Binary
Hex
Decimal
0
1
0
1
00
11
1
00
11
0
00
02
00
0C
10
00
60
00
0
2
0
12
16
0
96
0
2,3
4
5,6
7
5-10
Status
Not used. Fixed to Off
Not used. Fixed to On
Paper near-end sensor : paper adequate
Paper near-end sensor : paper near end
Not used. Fixed to On
Paper end sensor: paper present
Paper end sensor: paper not present
Not used. Fixed to Off
[Name]
Real-time request to printer
[Format]
ASCII
DLE
ENQ
n
Hex
10
05
n
Decimal
16
5
n
[Range]
n=2
[Default]
None
[Description]
Recovers from an error after clearing the receive and print buffers.
[Notes]
This is a real-time command that the printer executes upon receiving it.
Note the following when using this command.
- If this command is embedded within the code string of another command,
it is processed as a parameter of the other command, and the print result
is not correct.
- If another command (such as bit image or defined data) has a code string
in a parameter that is the same as this command, the printer starts
processing this command.
DLE ENQ 2 is enabled when a recoverable error occurs with the exception
of an automatically recoverable error, and is ignored in other cases.
With a serial interface model, this command is executed even when the
printer is offline or the receive buffer is full.
With a parallel interface model, this command is not executed in the following
conditions, because the printer is busy and unable to receive data from the
host computer. The busy condition is set by DIP Switch (DSW1-4).
- Receive buffer is full when DIP Switch (DSW1-4) is set to On.
- Printer is offline, an error occurs, or receive buffer is full when
DIP Switch (DSW1-4) is set to Off.
When a recoverable error occurs, after removing the cause of the error,
the printer can recover from the error by transmitting DLE ENQ 2 without the
printer being turned off.
DLE ENQ 2 is also executed to recover from a recoverable error when the
printer is disabled by ESC =.
After processing DLE ENQ 2, the printing position is moved to the left side
of the printable area. Printer is in the status "beginning of the line," or "there
is data in the print buffer."
This command is disabled while sending the block data "Header ~ NUL."
5-11
CHAPTER 5
CONTROL COMMANDS LIST
DLE DC4 (fn = 1)
ESC SP
[Name]
Generate pulse at real-time
[Format]
ASCII
[Range]
[Description]
DLE
DC4
n
m
t
Hex
10
14
n
m
t
Decimal
16
20
n
m
t
Set right-side character spacing
[Format]
ASCII
SP
n
Hex
1B
20
n
Decimal
27
32
n
[Range]
0 ≤ n ≤ 255
m = 0, 1
[Default]
n=0
1≤t≤8
[Description]
Sets the right-side character spacing to n x (horizontal or vertical motion unit).
Outputs the pulse specified by t to connector pin m as follows in real time:
[Notes]
- When characters are enlarged, the character spacing is n times normal value.
The character spacing for double-width mode is twice the normal value.
Connector pin
Drawer kick-out connector pin 2
Drawer kick-out connector pin 5
The pulse ON time is [ t x100 ms] and the OFF time is [ t x100 ms]
This is a real-time command that the printer executes upon receiving it.
Note the following when using this command.
-If this command is embedded within the code string of another command,
it is processed as a parameter of the other command, and the print result is
not correct.
-If another command (such as bit image or defined data) has a code string in
a parameter that is the same as this command, the printer starts processing
this command.
ESC !
[Name]
-In error status
-When the pulse is being output to the connector pin
(during processing of ESC p and DLE DC4)
-During transmission of block data (Header ~ NUL)
-When this command is disabled by GS (D)
Select print mode(s)
[Format]
ESC
!
n
Hex
ASCII
1B
21
n
Decimal
27
33
n
[Range]
0 ≤ n ≤ 255
[Default]
n=1
[Description]
Selects or cancels print modes collectively (emphasized, double-height,
double-width, underline) using n as follows:
This command is ignored in the following states:
Bit
0
1,2
3
4
5
6
7
5-12
ESC
n=1
m
0
1
[Notes]
[Name]
Off/On
Hex
Off
On
Off
On
Off
On
Off
On
Off
Off
On
00
01
00
08
00
10
00
20
00
80
Decimal
0
8
0
16
0
32
0
128
Status
Character font A(9x9)selected
Character font B(7x9) selected
Undefined
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
Undefined
Underline mode not selected
Underline mode selected
5-13
CHAPTER 5
CONTROL COMMANDS LIST
[Notes]
-
Functions for each bit can also be executed by the following commands:
- Bit 0 (character font): ESC M
- Bit 3 (Emphasized mode): ESC E
- Bit 7 (underline mode): ESC —
ESC &
[Name]
Define user-defined characters
[Format]
ASCII
When some characters in a line are double-height, all characters on the line
are aligned at the baseline.
When double-width mode is turned on, the characters are enlarged to the
right, based on the left side of the character.
[Range]
When both double-height and double-width modes are turned on,
quadruple size characters are printed.
The character is enlarged in the paper feed direction when double-height
mode is selected, and it is enlarged perpendicular to the paper feed direction
when double-width mode is selected.
The underline thickness is that specified by ESC —, regardless of the
character size. The underline is the same color as the printed character.
[Format]
Select/cancel user-defined character set
ESC
%
n
Hex
ASCII
1B
25
n
Decimal
27
37
n
[Range]
0 ≤ n ≤ 255
[Default]
n=0
[Description]
Selects 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.
[Notes]
When the user-defined character set is canceled, the resident character
set is automatically selected.
Settings of this command are effective until ESC @ is executed,
the printer is reset, or the power is turned off.
y c1 c2 [x1 d1 ... d(y X x1)] ... [xk d1 ... d(y X xk)]
Hex
1B
26
y c1 c2 [x1 d1 ... d(y X x1)] ... [xk d1 ... d(y X xk)]
Decimal
27
38
y c1 c2 [x1 d1 ... d(y X x1)] ... [xk d1 ... d(y X xk)]
y=2
32 ≤ c1 ≤ c2 ≤ 126
0 ≤ x ≤ 12 (Font A (9 x 9))
0 ≤ x ≤ 10 (Font B (7 x 9))
0 ≤ d ≤ 255
k = c2 - c1 + 1
None
[Description]
Defines user-defined characters from character code check c1 to c2.
- y specifies the number of bytes in the vertical direction.
- x specifies the number of dots in the horizontal direction.
- d is the dot data for the user-defined characters.
[Notes]
[Name]
&
[Default]
The printer cannot underline the space set by HT.
ESC %
ESC
Character codes from the alphanumeric characters (20H (decimal 32) to
7EH (decimal 126)) can be defined.
Data (d) specifies a bit printed to 1 and not printed to 0. The dot pattern is in
the horizontal direction from the left side. Any remaining dots on the right
side are blank.
The data to define a user-defined character is (y x x) bytes.
When the value of y, c1, c2, or x is out of the range, this command is
canceled, and the following data is processed as normal data.
This command can define user-defined characters for each font
independently. To select a font, use ESC ! or ESC M.
Once the user-defined characters have been defined, they are available until
ESC ? or ESC @ is executed; the user-defined characters are redefined;
the power is turned off; or the printer is reset.
The user-defined characters are not defined at the default, and the resident
characters are printed.
The relationship between the definition data and printing result is as follows.
Example: Downloaded character definition consists of 9 x 7 dots.
d1
d3
d5
d7
d9
d11
d13
d2
d4
d6
d8
d10
d12
d14
MSB
LSB
MSB
LSB
5-14
5-15
CHAPTER 5
CONTROL COMMANDS LIST
The modes selectable by m are as follows:
ESC *
[Name]
Select bit-image mode
[Format]
ASCII
[Range]
- "Vertical" is in the direction of paper feeding and "horizontal" is perpendicular
(at right angles) to the direction of paper feeding.
ESC
*
m
nL
nH
d1 ... dk
Hex
1B
2A
m
nL
nH
d1 ... dk
Decimal
27
42
m
nL
nH
d1 ... dk
m = 0, 1
- The maximum number of dots for printing depends on a DIP Switch [DSW1-8] setting
and paper width. See the description of GS ( E <Function 5>, <Function 6> for details.
m
0 ≤ nL ≤ 255
0 ≤ nH ≤ 3
0
0 ≤ d ≤ 255
k = nL + nHx255
1
[Default]
None
[Description]
Selects a bit-image mode using m for the number of dots specified by
(nL + nH x 256) as follows :
m
0
1
Mode
Number of bits for vertical data
8-dot single-density
8
8-dot double-density
8
[Notes]
Dot density in horizontal
Single-density
Double-density
Amount of data ( k)
nL + nH x 256
nL + nH x 256
Data (d) specifies a bit printed to 1 and not printed to 0.
If the bit image data exceeds the number of dots to be printed on a line,
the excess data is ignored.
The bit-image is not affected by print mode (emphasized, double-strike,
underline, character size), except for upside-down printing mode.
After printing a bit image, the printer processes normal data.
Vertical
Dot
Mode
dot density density
8-dot
singledensity
8-dot
doubledensity
Set adjacent
dots
Horizontal
Maximum number of dots
MSW1-8: ON
MSW 1-8: OFF
Paper Width:76/ 69.5/ 57.5 (mm) Paper Width:76/ 69.5/ 57.5 (mm)
72 dpi
80 dpi
Permitted
192/ 180/ 148
200/ 180/ 150
72 dpi
160 dpi
Prohibited
385/ 360 / 297
400/ 360/ 300
ESC [Name]
Turn underline mode on/off
[Format]
ASCII
ESC
—
n
Hex
1B
2D
n
Decimal
27
45
n
[Range]
n = 0, 1, 48, 49
[Default]
n=0
[Description]
Turns underline mode on or off using n as follows:
n
0, 48
1, 49
2, 50
When printing multiple line bit images, selecting unidirectional printing mode
with ESC U enables printing patterns in which the top and bottom parts are
aligned vertically.
Function
Turns off underline mode
Turns on underline mode (1-dot thick)
Turns on underline mode (1-dot thick)
This command is used to print a picture or logo.
The relationship between the bit image data and the print result is as follows.
MSB
d2
....
dk
LSB
5-16
The printer cannot underline the space set by HT
Changing the character size does not affect the current underline thickness.
8 dot mode (m = 0,1)
d1
[Notes]
When underline mode is turned off, the following data cannot be underlined,
but the thickness is maintained.
This command and bit 7 of ESC ! turn on and off underline mode in the
same way.
5-17
CHAPTER 5
CONTROL COMMANDS LIST
ESC 2
ESC <
[Name]
Select default line spacing
[Format]
ASCII
ESC
2
[Name]
Return home
[Format]
ASCII
ESC
<
Hex
1B
32
Hex
1B
3C
Decimal
27
50
Decimal
27
60
[Range]
None
[Range]
None
[Default]
None
[Default]
None
[Description]
Sets the line spacing to the "default line spacing."
[Description]
Moves the print head to the standby position.
[Notes]
- The default line spacing is about 4.23 mm (1/6 inch),
which is equivalent to 12 dots.
[Notes]
The standby position is on the left.
The command rechecks the standby position ;
therefore, the print position might be shifted before and after checking the
standby position.
- Selected line spacing is effective until ESC 3 is executed,
ESC @ is executed, the printer is reset, or the power is turned off.
ESC =
[Name]
Select peripheral device
[Format]
ASCII
ESC 3
[Name]
[Format]
Set line spacing
ASCII
Hex
Decimal
5-18
=
n
Hex
1B
3D
n
Decimal
27
61
n
0≤n≤3
ESC
3
n
[Range]
1B
33
n
[Default]
n=1
n
[Description]
Selects the device to which the host computer sends data, using n as follows:
27
51
[Range]
0 ≤ n ≤ 255
[Default]
Amount of line spacing which corresponds to "default line spacing."
(See ESC 2 for the default line spacing.)
[Description]
Sets the line spacing to n x (vertical motion unit).
[Notes]
ESC
The vertical motion unit is 0.176 mm (1/144 inch) (the minimum movement
amount). This value equals a half dot pitch. The default value is (n = 24).
n
1
2
3
[Notes]
Function
Enables the printer
Disables the printer
Enables the printer
When the printer is disabled, it ignores all received data and commands
with the exception of ESC = and real-time commands.
When the motion unit is changed after the line spacing is set, the line
spacing setting does not change.
If ASB is enabled when the printer is disabled by this command, the printer
transmits the ASB status message whenever the status changes.
See the description of GS a for ASB function.
Selected line spacing is effective until ESC 2 is executed,
ESC @ is executed, the printer is reset, or the power is turned off.
Settings of this command are effective until the printer is reset, or the power
is turned off.
5-19
CHAPTER 5
CONTROL COMMANDS LIST
ESC ?
ESC D
[Name]
Cancel user-defined characters
[Format]
ASCII
ESC
?
n
Hex
1B
3F
n
Decimal
27
63
n
[Range]
32 ≤ n ≤ 126
[Default]
None
[Description]
Cancels the user-defined characters defined for the character code n.
[Notes]
ASCII
ESC
D
n1 ... nk NUL
Hex
1B
44
n1 ... nk 00
Decimal
27
68
n1 ... nk 0
0 ≤ n ≤ 255
0 ≤ k ≤ 32
[Default]
After the user-defined characters are canceled, the resident character set
is printed.
n = 8, 16, 24, 32, ...
(Every eight characters for the default font set by ESC ! or ESC M)
[Description]
This command can cancel user-defined characters for each font independently.
To select a font, use ESC ! or ESC M.
Sets a horizontal tab to n columns from the beginning of the line.
k indicates the number of horizontal tab positions to be set.
[Notes]
[Name]
Initialize printer
[Format]
ASCII
The horizontal tab position is stored as a value of [character width x n]
measured from the beginning of the line. The character width includes the
right-side character spacing, and double-width characters are selected with
twice the width of normal characters.
The character width should be set before using this command.
Settings of character fonts, space width, and enlargement affect the setting
of character width.
ESC
@
A maximum of 32 horizontal tab positions can be set. Data exceeding
32 horizontal tab positions is processed as normal data.
Hex
1B
40
This command cancels any previous horizontal tab settings.
Decimal
27
64
Transmit [n] k in ascending order and place a NUL code at the end.
ESC D NUL cancels all horizontal tab positions.
[Range]
None
[Default]
None
[Description]
The data in the print buffer is cleared, and the printer mode(s) is reset to the
mode that was in effect when the power was turned on.
- Any macro definitions are not cleared.
- Contents of user NV memory are not cleared.
- NV bit image is not cleared.
5-20
Set horizontal tab positions
[Format]
[Range]
ESC @
[Notes]
[Name]
When [n] is less than or equal to the preceding value [n] k-1, horizontal tab
setting is finished, and the following data is processed as normal data.
k is not transmission data to the printer.
Even if the character width is changed after setting the horizontal tab
positions, the setting of the horizontal tab positions will not be changed.
The DIP switch settings are not checked again.
Horizontal tab position settings are effective until ESC @ is executed,
the printer is reset, or the power is turned off.
The data in the receive buffer is not cleared.
Print position can be changed by HT.
This command can cancel all the settings, such as print mode and line feed,
at the same time.
When the left margin setting is changed, the horizontal tab position is also
changed.
5-21
CHAPTER 5
CONTROL COMMANDS LIST
ESC E
ESC J
[Name]
Turn emphasized mode on/off
[Format]
ASCII
ESC
E
n
Hex
1B
45
n
Decimal
27
69
n
[Range]
0 ≤ n ≤ 255
[Default]
n=0
[Description]
Turns emphasized mode on or off.
[Range]
[Default]
[Description]
[Notes]
- When the LSB of n is 0, emphasized mode is turned off.
- When the LSB of n is 1, emphasized mode is turned on.
[Notes]
[Name]
[Format]
This mode is effective for alphanumeric, multilingual,
and user-defined characters.
The settings of this command are effective until ESC ! is executed,
ESC @ is executed, the printer is reset, or the power is turned off.
Print and feed paper
ASCII
ESC
J
n
Hex
1B
4A
n
Decimal
27
74
n
0 ≤ n ≤ 255
None
Prints the data in the print buffer and feeds the paper n.
(vertical unit).
After printing, the printing position moves to the beginning of the line.
The position of the left margin is the beginning of the line.
This command is used to temporarily feed a specific length without changing
the line spacing set by other commands.
The vertical motion unit is 0.176 mm (1/144 inch) (the minimum movement amount).
This value equals a half dot pitch.
ESC K
[Name]
[Format]
ESC G
[Name]
[Format]
[Range]
Turn double-strike mode on/off
ESC
G
n
Hex
ASCII
1B
47
n
Decimal
27
71
n
0 ≤ n ≤ 255
[Default]
n=0
[Description]
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.
5-22
[Range]
[Default]
[Description]
[Notes]
Print and reverse feed
ASCII
ESC
K
n
Hex
1B
4B
n
Decimal
27
75
n
0 ≤ n ≤ 24
None
Prints the data in the print buffer and feeds the paper n x (vertical motion unit)
in the reverse direction.
After printing, the printing position moves to the beginning of the line.
When a left margin is set, the position of the left margin is the beginning of the line.
The vertical motion unit is used.
This command is used to temporarily feed a specific length without changing
the line spacing set by other commands.
This command must not be executed consecutively more than one time.
The vertical motion unit is 0.176 mm (1/144 inch) (the minimum movement amount).
This value equals a half dot pitch. In the reverse direction, the maximum paper feed
amount is 4.23 mm (24/144 inch). If the specified amount exceeds 4.23 mm
(24/144 inch), the printer only prints the data and does not feed the paper.
5-23
CHAPTER 5
CONTROL COMMANDS LIST
ESC M
ESC U
[Name]
Select character font
[Format]
ASCII
ESC
M
Hex
1B
4D
n
Decimal
27
77
n
[Range]
n = 0, 1, 48, 49
[Default]
n=1
[Description]
Selects a character font, using n as follows :
n
0, 48
1, 49
[Notes]
n
Font
Font A(9 x 9)
Font B(7 x 9)
[Name]
[Format]
[Range]
[Default]
[Description]
[Notes]
The settings of this command are effective until ESC ! is executed,
ESC @ is executed, the printer is reset, or the power is turned off.
ESC R
[Name]
Select an international character set
[Format]
ASCII
ESC
R
n
Hex
1B
52
n
Decimal
27
82
n
[Range]
0 ≤ n ≤ 10
[Default]
n=0
[Description]
Selects an international character set n as follows :
n
0
1
2
3
4
5
6
7
8
9
10
5-24
Character set
U.S.A.
France
Germany
U.K.
Denmark I
Sweden
Italy
Spain I
Japan
Norway
Denmark II
Turn unidirectional printing mode on / off
ASCII
ESC
U
n
Hex
1B
55
n
Decimal
27
85
n
0 ≤ n ≤ 255
n=0
Turns unidirectional printing mode on or off.
- When the LSB of n is 0, unidirectional printing mode is turned off.
- When the LSB of n is 1, unidirectional printing mode is turned on.
When unidirectional printing mode is turned off, bidirectional printing mode
is automatically turned on.
Unidirectional printing mode can be turned on when printing double-height
characters or graphics or bit image or two dimension code to ensure that the
top and bottom of the printing patterns are aligned.
The settings of this command are effective until ESC @ is executed,
the printer is reset, or the power is turned off.
ESC a
[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
Aligns all the data in one line to a specified position, using n as follows :
n
0, 48
1, 49
2, 50
[Notes]
Justification
Left justification
Centering
Right justification
This command is enabled only when processed at the beginning of the line
This command justifies printing data (such as characters, all graphics)
and space area set by HT.
The settings of this command are effective until ESC @ is executed,
the printer is reset, or the power is turned off.
5-25
CHAPTER 5
CONTROL COMMANDS LIST
ESC c 3
ESC c 4
[Name]
Select paper sensor(s) to output paper end signals
[Format]
ASCII
ESC
c
3
n
Hex
1B
63
33
n
Decimal
27
99
51
n
Select paper sensor(s) to stop printing
[Format]
ASCII
ESC
c
4
n
Hex
1B
63
34
n
Decimal
27
99
52
n
[Range]
0 ≤ n ≤ 255
[Range]
0 ≤ n ≤ 255
[Default]
n = 15
[Default]
n=0
[Description]
Selects whether to output paper end signals to a parallel interface or not
when a paper end is detected by the sensor selected, using n as follows:
[Description]
Selects whether to stop printing or not when the paper runs out using
n as follows:
Bit
0
1
2
3
4-7
[Notes]
Off/On
Hex
Decimal
Off
On
Off
On
Off
On
Off
On
-
00
01
00
02
00
04
00
08
-
0
1
0
2
0
4
0
8
-
Bit
Function
Paper near end sensor disabled.
Paper near end sensor enabled.
Paper near end sensor disabled.
Paper near end sensor enabled.
Paper end sensor disabled.
Paper end sensor enabled.
Paper end sensor disabled.
Paper end sensor enabled.
Undefined
This command is enabled only with a parallel interface and is ignored
with a serial interface.
The paper near end sensor is enabled when either bit 0 or bit 1 is on
or both are on.
The paper end sensor is enabled when either bit 2 or bit 3 is on or
both are on.
When all sensors are disabled, the paper-end signal is always paper
present.
5-26
[Name]
0
1
2-7
[Notes]
Off/On
Hex
Decimal
Off
On
Off
On
-
00
01
00
02
-
0
1
0
2
-
Function
Paper near end sensor disabled.
Paper near end sensor enabled.
Paper near end sensor disabled.
Paper near end sensor enabled.
Undefined
It is possible to select multiple sensors to stop printing.
When any sensor detects a paper-end, printing stops.
The paper end sensor is always enabled, and when it detects a
paper-end, the printer stops printing.
The paper near end sensor is enabled when either bit 0 or bit 1 is on
or both are on.
When a paper near-end is detected, printing stops after printing the current
line and feeding the paper.
The printer goes offline and Paper LED comes on after printing stops.
To resume printing, cancel the "paper near end" status by replacing
the paper roll.
The settings of this command are effective until ESC @ is executed,
the printer is reset, or the power is turned off.
If the roll paper near-end sensor is disabled and a paper near-end is
detected, printing does not stop and the printer does not go offline,
but the Paper LED does come on.
The paper near end sensor is an option. If the paper near end
sensor is not included, this printer does not detect a paper near end.
The settings of this command are effective until ESC @ is executed,
the printer is reset, or the power is turned off.
5-27
CHAPTER 5
CONTROL COMMANDS LIST
ESC c 5
ESC e
[Name]
Enable/disable panel buttons
[Format]
ASCII
[Name]
Print and reverse feed n lines
[Format]
ASCII
ESC
c
5
n
Hex
1B
63
35
n
Hex
Decimal
27
99
53
n
Decimal
ESC
e
n
1B
65
n
27
101
n
[Range]
0 ≤ n ≤ 255
[Range]
0≤n≤1
[Default]
n=0
[Default]
None
[Description]
Enables or disables the panel buttons.
[Description]
Prints the data in the print buffer and feeds n lines in the reverse direction.
- When the LSB of n is 0, all buttons are enabled.
- When the LSB of n is 1, all buttons are disabled.
[Notes]
[Notes]
If panel buttons are disabled, the function of the panel button,
such as feeding, will be executed when the panel button is turned on.
The amount of paper fed per line is based on the value set using the
line spacing command (ESC 2 or ESC 3).
After printing, the printing position moves to the beginning of the line.
This command is used to temporarily feed a specific line without changing
the line spacing set by other commands.
To prevent problems caused by accidentally pressing the buttons,
use this command to disable the buttons.
This command must not be executed consecutively more than one time.
In the reverse direction, the maximum paper feed amount is 4.23 mm
(24/144 inch). If the specified amount exceeds 4.23 mm (24/144 inch),
the printer only prints the data and does not feed the paper.
ESC d
[Name]
[Format]
[Range]
Print and feed n lines
ESC
d
n
Hex
ASCII
1B
64
n
Decimal
27
100
n
0 ≤ n ≤ 255
[Default]
None
[Description]
Prints the data in the print buffer and feeds n lines.
[Notes]
The amount of paper feed per line is based on the value set using the line
spacing command (ESC 2 or ESC 3).
After printing, the printing position moves to the beginning of the line.
ESC i
[Name]
[Format]
Partial cut (one point left uncut)
ESC
i
Hex
ASCII
1B
69
Decimal
27
105
[Range]
None
[Default]
None
[Description]
Executes a partial cut of the paper roll with one point left uncut.
This command is used to temporarily feed a specific line without changing
the line spacing set by other commands.
5-28
5-29
CHAPTER 5
CONTROL COMMANDS LIST
ESC m
ESC g n
[Name]
Partial cut (one point left uncut)
[Name]
Execute Macro
[Format]
ASCII
[Format]
ASCII
ESC
i
ESC
g
n
Hex
1B
69
Hex
1B
67
n
Decimal
27
105
Decimal
27
103
n
[Range]
None
[Range]
1 ≤ n ≤ 10
[Default]
None
[Description]
Execute macro using the parameter by n.
[Description]
Executes a partial cut of the paper roll with one point left uncut.
[Notes]
n = Macro index number.
The NV bit image is defined by ESC g.
This command should be used only when the macro is downloaded by
ESC g command.
ESC g
[Name]
Start macro record
[Format]
ASCII
[Range]
ESC
g
0
<k> [<nH> <nL> ]k [d1...dm]k
Hex
1B
67
00
<k> [<nH> <nL> ]k [d1...dm]k
Decimal
27
103
0
<k> [<nH> <nL> ]k [d1...dm]k
ESC p
[Name]
Generate pulse
[Format]
ASCII
t1
t2
1B
70
m
t1
t2
0 ≤ nL ≤ 255
Decimal
27
112
m
t1
t2
[Range]
Start macro definition (Define logo)
- k = the number of total macro index
1 ≤ t2 ≤ 255
[Default]
None
[Description]
Outputs the pulse specified by t1 and t2 to the specified connector pin m as
follows:
- (256 x nH) + nL = the Length of each macro
m
0
1
- m = (256 x nH) + nL
The SRP-275 Printer maintains a 2M bit (256KB) section of flash
memory to save NV bit image.
This command is useful to define NV bit image (Logo).
The NV bit image is printed by ESC g n.
m = 0, 1, 48, 49
1 ≤ t1 ≤ 255
0 ≤ d ≤ 255
5-30
m
Hex
[(256 x nH) + nL ]1 + ...+ [(256 x nH) + nL ]k < 2Mbit (256KB)
[Notes]
p
k ≤ 10
0 ≤ nH ≤ 255
[Description]
ESC
Connector Pin
Drawer kick-out connector pin 2
Drawer kick-out connector pin 5
- The pulse for ON time is (t1 x 2 msec) and for OFF time is (t2 x 2 msec).
[Notes]
If t2 < t1, the OFF time is equal to the ON time.
If t2 < 50, t2 is supposed to be 50.
5-31
CHAPTER 5
CONTROL COMMANDS LIST
ESC r
ESC t
[Name]
Select print color
[Format]
ASCII
ESC
r
n
[Name]
Select paper sensor(s) to output paper-end signals
[Format]
ASCII
ESC
t
n
Hex
1B
72
n
Hex
1B
74
n
Decimal
27
114
n
Decimal
27
116
n
[Range]
n = 0, 1, 48, 49
[Range]
n = 0, 1, 2, 3, 4, 5, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 255
[Default]
n=0
[Default]
n=0
[Description]
Selects a print color, using n as follows:
[Description]
Selects a page n from the character code table.
n
0, 48
1, 49
[Notes]
n
0
1
2
3
4
5
16
17
18
19
21
22
23
24
25
26
27
28
29
30
Selected color
Black
Red
This command is enabled only when processed at the beginning of the line.
This command is effective until ESC @ is executed, the printer is reset,
or the power is turned off.
[Notes]
Page
PC437
Katakana
PC850
PC860
PC863
PC865
WPC1252
PC866
PC852
PC858
PC862
PC864
Thai character code 42
WPC1253
WPC1254
PC1257
Farsi
WPC1251(*1)
PC737(*1)
PC775(*1)
The alphanumeric characters (20H (decimal 32) to 7FH (decimal 127)) are
the same for each page.
The executed characters (80H (decimal 128) to FFH (decimal 225)) are
different for each page.
The selected characters code table is effective until ESC @ is executed, the
printer is reset, or the power is turned off.
n = 255; default code page.
(*1) Only Font B available.
5-32
5-33
CHAPTER 5
CONTROL COMMANDS LIST
ESC u
ESC v
[Name]
Transmit peripheral device status.
[Format]
ASCII
ESC
u
n
[Name]
Transmit peripheral device status.
[Format]
ASCII
v
Hex
1B
75
n
Hex
1B
76
Decimal
27
117
n
Decimal
27
118
[Range]
n = 0, 48
[Description]
[Default]
Transmit the peripheral device status of 1 byte.
[Notes]
[Notes]
ESC
The peripheral device to be transmitted is as follows:
Bit
0
1-3
4
5,6
7
Binary
Hex
Decimal
0
1
0
0
00
01
00
00
0
1
0
0
Transmit the status of paper sensor(s) as 1 byte of data.
See GS r for details on status transmission.
The peripheral device status to be transmitted is as follows:
Status
Drawer kick-out connector pin 3 LOW.
Drawer kick-out connector pin 3 is HIGH.
Undefined.
Not used. Fixed to Off.
Undefined.
Not used. Fixed to Off.
Bit
0,1
2,3
4
5,6
7
Binary
Hex
Decimal
00
11
00
11
0
Off
00
03
00
0C
00
00
0
3
00
12
0
0
Status
Paper near end sensor: paper adequate.
Paper near end sensor: paper near end.
Paper end sensor: paper present.
Paper end sensor: paper not present.
Not used. Fixed to Off.
Undefined.
Not used. Fixed to Off.
When the paper end sensor detects a paper-end, the printer goes offline
and does not execute this command. Therefore, bits 2 and 3 of the paper
sensor status do not transmit a paper-end status.
5-34
5-35
CHAPTER 5
CONTROL COMMANDS LIST
FS p
ESC
[Name]
Turn upside-down printing mode on/off.
[Format]
ASCII
ESC
{
n
[Name]
Print NV bit image
[Format]
ASCII
FS
m
1B
7B
n
Hex
1C
70
n
m
Decimal
27
123
n
Decimal
28
112
n
m
1 ≤ n ≤ 255
[Default]
n=0
[Description]
Turn upside-down printing mode on or off.
[Range]
1 ≤ n ≤ 255
m = 0, 1, 48, 49
[Description]
-When the LSB of n is 0, upside-down printing mode is turned off.
This command is enabled only when processed at the beginning of the line.
The upside-down printing mode is effective for all data.
The settings of this command are effective until ESC @ is executed, the
printer is reset, or the power is turned off.
When upside-down printing mode is turned on, the printer prints 180
rotated characters from right to left. The line printing order is not reversed;
therefor, be careful of the order of the data transmitted.
Print Sample
Prints a NV bit image n using the mode specified by m.
n
0, 48
1, 49
-When the LSB of n is 1, upside-down printing mode is turned off.
5-36
n
Hex
[Range]
[Notes]
p
[Notes]
Mode
Normal
Double-width
Scaling for horizontal
x1
x2
Scaling for vertical
x1
x1
This command is not effective when the NV bit image specified by n has not
been defined.
This command is effective only when there is no data in the print buffer and
the printer is at the beginning of the line.
If the NV bit image exceeds one line of printing area, the printer does not
print it.
This command is not affected by print modes (such as emphasized,
underline, character size), except upside-down printing mode.
This command executes paper feed for amount needed for printing the
NV bit image regardless of paper feed amount set by a paper feed setting
command.
After printing the bit image, this command sets the print position to the
beginning of the line.
When printing the NV bit image, selecting unidirectional printing mode with
ESC U enables printing patterns in which the top and bottom parts are
aligned vertically.
The NV bit image is defined by FS q.
5-37
CHAPTER 5
CONTROL COMMANDS LIST
The modes selectable by m are as follows :
"Vertical" is in the direction of paper feeding and "horizontal" is perpendicular
(at right angles) to the direction of paper feeding.
The maximum number of dots for printing depends on the setting of
DIP Switch [DSW1-8] and paper width. See the description of GS
( E <Function 5>, <Function 6> for details.
Vertical
Scaling
x1
x2
Dot density
Dot density
72 dpi
--
160 dpi
80 dpi
Horizontal
Maximum number of dots
MSW 2-1: ON
MSW 2-1: OFF
Paper Width:
Paper Width:
76/ 69.5/ 57.5 (mm)
76/ 69.5/ 57.5 (mm)
385/ 360/ 297
400/ 360/ 300
192/ 180/ 148
200/ 180/ 150
FS q
[Name]
[Format]
[Range]
[Notes]
- k indicates the number of the definition data. k is a parameter for an
explanation; therefore, it does not need to be transmitted.
NV bit image means a bit image which is defined in a non-volatile memory.
The NV bit image defined is effective until the next NV bit image is defined.
This command is effective only when processed at the beginning of the line.
k bytes data of d1...dk is processed as a defined data of a NV bit image.
The defined data (d) specifies a bit printed to 1 and not printed to 0.
All NV bit images previously defined are canceled.
After processing this command, the printer executes a software reset.
Therefore, processing this command enables the printer to be in the correct
status as when the power is turned on.
The limitations during processing of this command are as follows:
- Paper cannot be fed by using paper FEED button.
- The real-time commands are ignored.
- Even if the ASB function is effective, the ASB status cannot be transmitted.
The NV bit image is printed by FS p.
Bit image data and print result are as follows :
Define NV bit image
ASCII
FS
q
n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n
Hex
1C
71
n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n
Decimal
28
113
n [xL xH yL yH d1...dk]1...[xL xH yL yH d1...dk]n
1 ≤ n ≤ 255
1 ≤ (xL + xH x 256) ≤ 1023( 0 ≤ xL ≤ 255, 0 ≤ xH ≤ 3)
1 ≤ (yL + yH x 256) ≤ 288( 0 ≤ yL ≤ 255, yH = 0.1)
1 ≤ d ≤ 255
k = ( xL + xH x 256)x ( yL + yH x 256) x 8
Total defined data area is 256 KB
[Description]
Defines NV bit image specified.
-
5-38
Y = yL + yH x 256
n specifies the number of defined NV bit images.
xL, xH specifies ( xL + xH x 256) bytes in the horizontal direction for the
NV bit image you defined.
yL, yH specifies ( yL + yH x 256) bytes in the vertical direction for the
NV bit image you defined.
d specifies the definition data for the NV bit image.
5-39
CHAPTER 5
CONTROL COMMANDS LIST
GS ( A
GS ( C
[Name]
Execute test print
[Format]
ASCII
GS
(
A
pL
pH
n
m
Hex
1D
28
41
02
00
n
Decimal 29
40
65
2
0
n
[Range]
1 ≤ m ≤ 3, 49 ≤ m ≤ 3
[Description]
Executes a specified test print.
[Name]
Edit NV user memory
[Format]
ASCII
GS
m
Hex
1D 28 43 pL pH m
m
Decimal 29
[Description]
- pL and pH specify the number of parameters following n to
(pL + pHx256) bytes.
- n specifies paper used for the test print as follows :
n
0, 48
1, 49
2, 50
[Notes]
Paper
Basic sheet (Paper roll)
Paper roll
5-40
Type
Hexadecimal dump
Printer status printing
Rolling pattern
This command is effective only when processed at the beginning of the line.
After processing this command, the printer performs a software reset.
Executing this command puts the printer in the same status as when the
power is turned on. Transmit commands or data after confirming the
complete software reset.
If hexadecimal dump (m = 1, 49) is specified, the printer prints a message.
Transmit commands or data after the printing.
When processing printer status printing (m = 2, 50), rolling pattern printing
(m = 3, 51), ASB status and real-time commands cannot be used.
C
pL pH m
40 67 pL pH m
fn
b
[c1, c2]
[d1...dk]
fn
b
[c1, c2]
[d1...dk]
fn
b
[c1, c2]
[d1...dk]
Deletes, stores, and transmits data in the NV user memory area based on the
functions defined in the table below. Also sends status information for the
amount of space used in NV RAM and the amount of space still available.
- The function code (fn) specifies the function.
- m specifies a type of the test print as follows:
n
1, 49
2, 50
3, 51
(
[Notes]
fn
0, 48
1, 49
2, 50
3, 51
4, 52
Paper
Function 0
Function 1
Function 2
Function 3
Function 4
5, 53
Function 5
6, 54
Function 6
Description
Deletes specified record
Stores data in specified record
Sends data stored in specified record
Sends capacity currently being used
Sends available capacity
Transmits the key code of the record stored in the
NV user memory
Cancels all records stored in the NV user memory
- pL and pH specify the bytes following parameter
pH (m and [a1 b1] ... [ak bk]) as (pL + (pH x_256)).
- The other parameters are explained under each of the functions.
The command function is defined by the function code (fn). The command
operation differs, depending on the function.
The NV user memory area is especially provided for storing character data
in the non-volatile memory built into the printer.
The NV user memory data configuration is as follows:
key code + data + terminator. This unit is called a record.
- A record is one data processing unit in the NV user memory.
It is identified and specified by a key code. One record consists of a
group of 4 bytes of data or more.
- The key code is a 2-byte ID code used to identify records and is created
with parameters c1, c2 in the command. You can specify any desired
character code from 32H - 7EH.
- Data is the character string specified by d1... dk in Function 1 of the GS
( C command. You cannot specify control codes 00H — 1FH, 7FH as
character string data.
- The terminator is a 1-byte code, automatically assigned when the
printer stores data.
5-41
CHAPTER 5
CONTROL COMMANDS LIST
NV user memory data remains valid until the host sends a deletion or
storage function command.
Data is written to the non-volatile memory by Function 1, 2, or 3.
When using those commands, note the following:
- The printer may be BUSY while the functions are performing.
The printer does not process any received data while it is BUSY;
therefore, under no circumstances should the host send data at this time.
Note the rules below for the operating NV memory (store data / cancel data):
- Paper feeding is disabled by the paper FEED button.
- The printer ignores real-time commands.
- Even if "ASB is enabled" is specified, the printer does not send
ASB status.
You can use the NV user memory as an index of note for the following:
- Customize information: index of the NV bit image definition contents.
- Maintenance information: ink ribbon replacement date, telephone
number of company, etc.
[Notes for transmitting processing of the block data]
- Data is send by Function 2, 3, 4, or 5. When you use these functions, obey the following
rules.
- When the host PC transmits the function data, transmit the next data after receiving
the corresponding data from the printer.
- With serial interface printers, use this function when the host is READY.
- With a parallel interface printer, data sent (excluding ASB status) with this command
("Header to NUL") is temporarily stored in the printer send buffer, as with other data.
When the host goes into Reverse mode, the printer then sends the data sequentially
from the beginning of the send buffer. When using this command, promptly change
into Reverse mode to start the data receive process.
- You cannot use ASB status and real-time commands while "Header to NUL" data is
being sent.
- When communication with the printer uses XON/XOFF control with serial interface,
the XOFF code may interrupt the "Header to NUL" data string.
- The transmission information for each function can be identified to other transmission
data according to specific data of the transmission data block. When the header
transmitted by the printer is [hex = 37H/decimal =55], treat NUL [hex = 00H/decimal =0]
as a data group and identify it according to the combination of the header and the
identifier.
5-42
[Notes for ESC/POS Handshaking Protocol]
Use ESC/POS Handshaking Protocol below for Functions 2 and 5: identifier.
Step
Host process
1
Send GS ( C <Function 2>.
2
3
Receive data from printer.
Send response code. (*1)
Printer process
Start processing of Function 2.
(Read specified record back to host.)
Send data in memory.
Continue processing (*2) (*3) according to response.
(*1) Response code
ASCII
ACK
NAK
CAN
Hex
06
15
18
Decimal
6
21
24
Request
Send next data.
Resend previously sent data.
Cancel send process.
(*2) Processing according to response
(unsent data exists, identified by send data set "Identification status")
Response code
ACK
NAK
CAN
Process
Start send processing for next data.
Resend previously sent data.
End processing for this command.
Processing the codes except for ACK, NAK, and CAN performs the same processing as CAN.
(*3) Processing according to response
(no unsent data, identified by send data set "Identification status")
Response code
ACK, CAN
NAK
Process
End processing for this command.
Resend previously sent data.
Record data definition area capacity is 64 KB.
5-43
CHAPTER 5
CONTROL COMMANDS LIST
[Description]
GS ( C pL pH m fn b c1 c2 <Function 0>
[Format]
[Range]
ASCII
GS
(
C
pL
pH
m
fn
b
c1 c2
Hex
1D
28
43
05
00
00
fn
00
c1 c2
Decimal
29
40
67
5
0
0
fn
0
c1 c2
- When the specified record already exists, the data is overwritten.
- A terminator is automatically assigned.
(pL + pHx256) = 5 (pL = 5, pH = 0)
[Notes]
- This function uses the "data quantity (k) + 3 byte" area for execution.
b=0
- You cannot use this command when the NV user memory does not have
enough capacity to store the specified records.
The available capacity is confirmed by Function 4.
32 ≤ c2 ≤ 126
[Description]
Deletes the specified record stored in the NV user memory.
The deleted area becomes an "unused" area available for storage.
[Notes]
- This command is valid only at the beginning of the line.
- You cannot include macros with this command, so do not use this command
while defining macros.
GS ( C pL pH m fn b c1 c2 <Function 2>
[Format]
[Range]
GS ( C pL pH m fn b c1 c2 d1...dk <Function 1>
[Range]
- This command is valid only at the beginning of the line.
m = 0 fn = 0, 48
32 ≤ c1 ≤ 126
[Format]
Stores data ( d1... dk) in the record specified by parameters c1 and c2
(the key code ID numbers).
ASCII
GS
(
C
pL
pH
m
fn
b
c1
c2
d1...dk
Hex
1D
28
43
pL
pH
00
fn
00
c1
c2
d1...dk
Decimal
29
40
67
pL
pH
0
fn
0
c1
c2
d1...dk
32 ≤ c1 ≤ 126
(
C
pL
pH
m
fn
b
c1 c2
Hex
1D
28
43
05
00
00
fn
00
c1 c2
Decimal
29
40
67
5
0
0
fn
0
c1 c2
(pL + pHx 256) = 5 ( pL = 5, pH = 0)
fn = 2, 50
b=0
32 ≤ c1 ≤ 126
32 ≤ c2 ≤ 126
m=0
b=0
GS
m=0
6 ≤ (pL + pH x 256) ≤ 65535 (0 ≤ pL ≤ 255, 0 ≤ pH ≤ 255)
fn = 1, 49
ASCII
[Description]
Transmits the data for the record with the ID code specified by parameters c1,
c2 in the NV user memory.
- ESC/POS Handshaking Protocol is required for this function.
32 ≤ c2 ≤ 126
32 ≤ d ≤254
k = (pL + pHx 256) -5
5-44
5-45
CHAPTER 5
CONTROL COMMANDS LIST
[Notes]
- When the specified record exists, the printer sends the "Header to NUL"
data shown below:
Send data
Header
Identifier
Identification status (*1) (*2)
Data (*3)
NUL
Hex
37H
70H
40H or 41H
20H __FEH
00H
Decimal
55
112
64 or 65
32 __254
0
Data quantity
1 byte
1 byte
1 byte
1 -80 bytes
1 byte
GS ( C pL pH m fn b <Function 3>
[Format]
[Range]
(*3) The key code and terminator are not included in the data.
- If the host specifies a nonexistent record, the printer sends the
"Header to NUL" data shown below:
Send data
Header
Identifier
Identification status
NUL
Hex
37H
70H
40H
00H
Decimal
55
112
64
0
Data quantity
1 byte
1 byte
1 byte
1 byte
- See [Notes for transmission process] for description of transmission
process.
- See [Notes for ESC/POS Handshaking Protocol] for description of
ESC/POS Handshaking Protocol.
(
C
pL
pH
m
fn
b
1D
28
43
03
00
00
fn
00
Decimal
29
40
67
3
0
0
fn
0
(pL + pH x 256) = 3 ( pL = 3, pH = 0)
fn = 3, 51
b=0
[Description]
- If there is no unsent data, the identification status of the third byte is
40H or 64 decimal.
(*2) The printer performs batch processing when the data to be stored in the
specified record is 80 bytes or less. At this time, the identification status
of the third byte is 40H or 64 decimal.
GS
m=0
(*1) When the quantity of stored data exceeds 80 bytes, the printer
performs partial processing, using the following rules:
- If there is unsent data, the identification status of the third byte is
41H or 65 decimal.
ASCII
Hex
[Notes]
The printer sends the host the number of data bytes currently used in the
NV memory area.
- ESC/POS Handshaking Protocol is not required for this function.
- With this function, the printer sends the "Header to NUL"
data shown below:
Send data
Header
Identifier
Identification status
NUL
Hex
37H
28H
30H - 39H
00H
Decimal
55
40
48 - 57
0
Data quantity
11 byte
1 byte
1-8 bytes
1 byte
(*1) The quantity of stored data bytes, plus the key code and terminator, equal
the capacity being used.
- The decimal value expressing the capacity being used is converted to
ASCII character data and sent from the most significant digit.
Example :
When 120 bytes is used, the number 120 is expressed with
three bytes of data (Hexadecimal: 31H, 32H, and 30H / decimal numbers
49, 50, and 48).
When no memory area is used, the number 0 is expressed with
1 byte of data. (Hexadecimal: 30H / decimal number 48).
- See previous [Notes for transmission process] for process sending
data group.
5-46
5-47
CHAPTER 5
CONTROL COMMANDS LIST
GS ( C pL pH m fn b <Function 4>
[Format]
[Range]
GS ( C pL pH m fn b <Function 5>
ASCII
GS
(
C
pL
pH
m
fn
b
Hex
1D
28
43
03
00
00
fn
00
Decimal
29
40
67
3
0
0
fn
0
[Format]
ASCII
GS
(
C
pL
pH
m
fn
b
Hex
1D
28
43
03
00
00
fn
00
9
40
67
3
0
0
fn
0
Decimal
(pL + pHx 256) = 3 (pL = 3, pH = 0)
[Range]
(pL + pH x 256) = 3 (pL = 3, pH = 0)
m=0
m=0
fn = 4, 52
fn = 5, 53
b=0
b=0
[Description]
The printer sends the available NV user memory.
[Description]
Transmits the key code ID for the record stored in the NV user memory.
[Notes]
- ESC/POS Handshaking Protocol is not required for this function.
- With this function, the printer sends the "Header to NUL" data shown below:
[Notes]
- ESC/POS Handshaking Protocol is required for this function.
- When record exists, the printer sends the "Header to NUL" data as shown
below:
Send data
Header
Identifier
Available Capacity (*1)
NUL
Hex
37H
29H
30H - 39H
00H
Decimal
55
41
48 - 57
0
Data quantity
1 byte
1 byte
1-8 bytes
1 byte
(*1) The available capacity indicates the number of bytes not being used.
- The decimal value for the available capacity is converted to ASCII character
data and sent from the most significant digit.
Example:
When 120 bytes is available (not being used), the number 120 is expressed
with 3 bytes of data (Hexadecimal: 31H, 32H, and 30H / decimal numbers
= 49, 50, and 48).
- See previous [Notes for transmission process] for process sending data
group.
Send data
Header
Identifier
Identification status (*1) (*2)
NUL
Hex
37H
71H
40H
00H
Decimal
55
113
64
0
Data quantity
1 byte
1 byte
1 byte
1 byte
(*1) When the quantity of stored data exceeds 40 records, the printer performs
partial processing, using the following rules:
- If there is unsent data, the identification status of the third byte is
41H or 65 decimal.
- If there is no unsent data, the identification status of the third byte is
40H or 64 decimal.
(*2) The printer performs batch processing when the data to be stored in the
specified record is 40 records or less. At this time, the identification status
of the third byte is 40H or 64 decimal.
(*3) The data is the key code. A terminator is not included in the data.
- If the host specifies a nonexistent record, the printer sends the "Header to
NUL" data shown below :
Send data
Header
Identifier
Identification (*1) (*2)
NUL
5-48
Hex
37H
71H
40H
00H
Decimal
55
113
64
0
Data quantity
1 byte
1 byte
1 byte
1 byte
5-49
CHAPTER 5
CONTROL COMMANDS LIST
- See [Notes for transmission process] for description of transmission
process.
- See [Notes for ESC/POS Handshaking Protocol] for description of
ESC/POS Handshaking Protocol.
GS ( D
[Name]
Enable/disable real-time command
[Format]
ASCII
GS
(
D
pL
pH
m
[a1 b1]...[ak bk]
Hex
1D
28
44
pL
pH
14
[a1 b1]...[ak bk]
Decimal 29
40
68
pL
pH
20
[a1 b1]...[ak bk]
[Range]
m = 20
GS ( C pL pH m fn b d1 d2 d3 <Function 6>
[Format]
ASCII
GS
(
C
pL
pH
m
fn
b
d1
d2
d3
Hex
1D
28
43
06
00
00
fn
00
43
4C
52
Decimal
[Range]
29
40
67
6
0
0
(pL + pH x 256) = 3, 5 ( pL = 3, 5, pH = 0)
fn
0
67
76
82
(pL + pH x 256) = 6 ( pL = 6, pH = 0)
a=1
b = 0, 1, 48, 49
[Default]
a = 1/ b = 1 (DLE DC4 fn m t ( n = 1): enable)
[Description]
Specifies enable or disable of a real-time command.
b=0
- pL, pH sets the number of parameters after pH (m and [a1 b1]...[ak bk])
to (pL + pH x 256) bytes.
- a specifies the type of real-time command.
- b specifies enable/disable of real-time command processing.
d1 = 67
a
m=0
fn = 6, 54
d2 = 76
0, 48
1
d3 = 82
[Description]
[Notes]
This command cannot include macros; therefore, do not use this command
when defining macros.
5-50
1, 49
The printer deletes all records stored in the NV user memory.
- All area is changed to unused area.
This command is effective only at the beginning of the line.
b
Real-time command type
Disable DLE DC4 n m t ( n = 1): output a specified pulse in real-time
(It does not process)
Enable DLE DC4 n m t ( n = 1): output a specified pulse in real-time
(It does process)
DLE DC4 n m t (n=1): output a specified pulse in real-time.
[Notes]
- The printer processes each real-time command that is enabled upon
receiving it.
- A real-time command specified as disabled is not processed.
- The setting of this command is effective until ESC @ is executed,
the printer is reset, or the power is turned off.
- If you transmit a command for a bit image or defined data that contains the
sequence DLE DC4, be sure to disable real-time command processing
before transmitting the bit image or defined data command.
Then the printer will process the sequence DLE DC4 as image data.
5-51
CHAPTER 5
CONTROL COMMANDS LIST
GS ( E
[Name]
User setup commands
[Format]
ASCII
GS
Hex
1D
28
45
pL
pH
fn
[parameters]
Decimal 29
40
69
pL
pH
fn
[parameters]
[Description]
(
E
pL
pH
fn
[parameters]
Controls the user setting modes. The table below explains the functions
available in this command.
- The value of fn specifies the function.
fn
1
2
3
4
5
6
11
12
Function1
Function2
Function3
Function4
Function5
Function6
Function11
Function12
Function
Changes into the user setting mode
Ends user setting mode session. (Performs a software reset.)
Changes the memory switch
Transmits the host the value for the memory switch
Changes the customized setting values
Transmits the customized setting values
Sets communication condition of serial interface
Transmits communication condition of serial interface
- pL and pH specify the number of bytes for the parameters following
pH (fn and [a1 b1] ... [ak bk]) as(pL + pH x 256).
- The other parameters are explained under the respective functions.
[Notes]
The value of parameter fn determines the function number for this
command. Command operation differs, depending on the function number.
The value defined by the user setting mode is effective until redefined by
this mode again. It is not initialized by turning off the power or executing
ESC @.
User setting mode is a special mode to change settings for the printer s
built-in non-volatile memory.
To change a setting, you must change the printer into user setting mode,
using Function 1.
The setting you specify is activated by transmitting a Function 2 command
upon completion of making the setting.
Note the rules below for the user setting mode:
- Functions 4, 6, 12, the functions used to transmit the current settings to the
host, can be used at any time, without changing into the user setting mode.
- Data is written to the non-volatile memory by Functions 3, 5 and 11. Note the
following when using those functions:
- The printer might be BUSY. In this case, be sure not to transmit a
command from the host because the printer will not receive the data.
[Notes for transmission process]
- Data is transmitted by Functions 1, 4, 6 and 12. When you use these
functions, obey the following rules.
- When the host PC transmits the function data, transmit the next data after
receiving the corresponding data from the printer.
- With a serial interface printer, be sure to use this function when the host
can receive data.
- With a parallel interface printer, data transmitted (excluding ASB status)
with this command ("Header to NUL") is temporarily stored in the printer
transmit buffer, as with other data. When the host goes into reverse mode,
the printer then transmits the data sequentially from the beginning of the
transmit buffer. When using this command, promptly change into reverse
mode to start the data receive process.
- You cannot use ASB status and real-time commands while "Header to
NUL" data is being transmitted.
- When communication with the printer uses XON/XOFF control with serial
interface, the XOFF code may interrupt the "Header to NUL" data string.
- The transmission information for each function can be identified to other
transmission data according to specific data of the transmission data block.
When the header transmitted by the printer is [hex =37H/decimal =55],
treat NUL [hex = 00H/decimal =0] as a data group and identify it according
to the combination of the header and the identifier.
- The printer does not process character data.
- The printer does not process commands other than this command
and the GS I command.
- The printer ignores real-time commands.
- The printer does not transmit ASB status.
5-52
5-53
CHAPTER 5
CONTROL COMMANDS LIST
GS ( E pL pH fn d1 d2 <Function 1>
[Format]
[Range]
[Description]
[Notes]
GS ( E pL pH fn d1 d2 d3 <Function 2>
ASCII
GS
(
E
pL
pH
fn
d1
d2
Hex
1D
28
45
03
00
01
49
4E
Decimal 29
40
69
3
0
1
73
78
[Format]
(pL + pH x 256) = 3 (pL = 3, pH = 0)
[Range]
ASCII
GS
(
E
pL
pH
fn
d1
d2
d3
Hex
1D
28
45
04
00
02
4F
55
54
Decimal 29
40
69
4
0
2
79
85
84
(pL + pH x 256) = 4 (pL = 4, pH = 0)
fn = 1
n=2
d1 = 73
d1 = 79
d2 = 78
d2 = 85
This command changes the printer into the user setting mode.
d3 = 84
This command is valid only at the beginning of the line.
[Description]
When the printer goes into the user setting mode, it transmits a mode,
it transmits a "mode change notice" back to the host.
[Notes]
Transmit data
Header
Identifier
NUL
Hex
37H
20H
00H
Decimal
55
32
0
Data quantity
1 byte
1 byte
1 byte
Ends the user setting mode, and the printer performs a software reset.
This function is performed when the printer is in user setting mode.
After the software reset, the printer goes into the power on state.
Executing this function enables setting values set in user setting mode
(such as memory switch or customize value).
Be sure to execute this function after changing all the setting values.
When it has executed this function, send the next commands after
checking the mode change notice.
See previous [Notes for transmission process] for process sending
data group.
5-54
5-55
CHAPTER 5
CONTROL COMMANDS LIST
GS ( E pL pH fn [a1 b18...b11]...[ak nk8 nk1] <Function 3>
[Format]
[Range]
ASCI
G
(
E
pL
pH
fn
[a1 b18...b11 ]...[ak nk8 nk1]
Hex
1D
28
45
pL
pH
03
[a1 b18...b11]...[ak nk8 nk1]
Decimal 29
40
69
pL
pH
3
[a1 b18...b11]...[ak nk8 nk1]
a = 2, 8
GS ( E pL pH fn a <Function 4>
[Format]
[Range]
ASCII
GS
(
E
pL
pH
fn
a
Hex
1D
28
45
02
00
04
a
Decimal 29
40
69
2
0
4
a
(pL + pH x 256) = 2 ( pL = 2, pH = 0)
[Default]
all memory switches are OFF ( b = 48).
fn = 4
[Description]
Changes the memory switch specified by a to the value specified by b.
a = 2, 8
When b = 48, the memory switch is set to OFF.
[Description]
When b = 49, the memory switch is set to ON.
When b = 50, does not change the memory switch.
[Notes]
The printer transmits the host the value for the memory switch specified by
parameter a.
This function works both in user setting mode and during normal printer
operation.
When a = 2,Memory Switch 2 is set as follows:
MSW
2-1 to 2-8
Setting value (b)
48
2-4 to 2-8
48 or 49
Reserved
Default code page setting(refer to setting the Memory
Switches ).
When a = 2,Memory Switch 2 is set as follows:
MSW
8-1 to 8-4
Setting value (b)
48
48
8-5
49
8-6
48
48
8-7
48
48
8-8
49
The printer transmits the Header to NUL data shown below:
Function
Function
Reserved
The printer status is sent back as the paper empty when
the rear cover is opened.
The printer status is sent back the rear cover open
when the rear cover is opened.
Reserved: Fixed to OFF (Don t change the setting)
Printer BUSY is released when the remaining capacity
of the receive buffer goes to 640 bytes.
Printer BUSY is released when the remaining capacity
of the receive buffer goes to 522 bytes.
Printer cover open during operation: Error that
automatically recovers.
Printer cover open during operation: Error that can
possibly recovers.
Transmit data
Header
Identifier
Setting value
NUL
Hex
37H
21H
30H or 31H
00H
Decimal
55
33
48 or 49
0
Data quantity
1 byte
1 byte
8 byte
1 byte
The value of the memory switch is transmitted from bit 8 to bit 1. 48 or 49 is
transmitted for a bit of Reserved.
See description of <Function 3> of this command for detail of Memory
Switch.
See [Notes for the processing to transmit data] for description of the
processing to transmit data.
Setting of [MSW 8-5] affects the statuses as follows:
-Basic ASB status (See GS a command)
-Real-time status (See DLE EOT command)
5-56
5-57
CHAPTER 5
CONTROL COMMANDS LIST
GS ( E pL pH fn [a1 n1L n1H]...[ak nkL nkH] <Function 5>
[Format]
[Range]
ASCII
GS
(
E
pL
pH
fn
[a1n1L n1H] ... [ak nkL nkH]
Hex
1D
28
45
pL
pH
05
[a1 n1L n1H] ... [ak nkL nkH]
Decimal 29
40
69
pL
pH
5
[a1 n1L n1H] ... [ak nkL nkH]
4 ≤ (pL + pH x 256) ≤ 65533
GS ( E pL pH fn a <Function 6>
[Format]
[Range]
(
E
pL
pH
fn
a
1D
28
45
02
00
06
a
Decimal 29
40
69
2
0
6
a
(pL + pH x 256) = 2 ( pL = 2, pH = 0)
(0 ≤ pL ≤ 255, 0 ≤ pH ≤ 255: (pL + pH x 256) = 3 x k + 1)
fn = 6
a=3
[Description]
a=3
[Default]
(nL + nH x 256) = 5 ( nL = 5, nH = 0) [default value when a = 3]
[Description]
Changes the customized value specified by parameter a to (nL + nH x 256).
a
3
[Notes]
Type of customized value
Paper width
This function works only in user setting mode.
Customized value is specified by unit of 3 bytes ( a, nL, nH)
Ex: A transmitted data as specifying paper width;
ASCII:
GS
(
E
pL
pH
fn
a
nL
nH
Hexadecimal: 1D
2B
45
04
00
05
03
06
00
Decimal:
40
69
4
0
5
3
6
0
29
To activate the customized values you set with this function, you must
transmit a Function 2 command.
If you attempt to set a combination of settings that is not possible, the NV bit
image memory setting is reduced to an allowable value.
paper width settings ( a = 3)
(nL + nH x 256)
2
4
5
The printer transmits to the host the customized value for the NV memory
area specified by parameter a.
a
3
nL + nH x 256 = 2, 4, 5 ( nL = 2, 4, 5, nH = 0)
Paper width
57.5 mm (2.26 inch)
69.5 mm (2.74 inch)
76 mm (3.00 inch)
Setting the paper width ( a = 3) can be changed by Memory switch setting mode
by the panel switch operation when the power supply is turned on.
5-58
GS
fn = 5
1 ≤ k ≤ 21844
[Notes]
ASCII
Hex
Type of customized value
Paper width
This function works both in user setting mode and during normal printer
operation.
The printer transmits the data below ( Header to NUL ) with this function:
Transmit data
Header
Identifier
Value number (*1)
Hex
37H
21H
30H or 31H
Decimal
55
33
48 ~ 49
Data quantity
1 byte
1 byte
1-3 byte
Transmit data
Separation code
Setting value
NUL
Hex
1FH
30H ~ 39H
00H
Decimal
31
48 ~ 59
0
Data quantity
1 byte
1-5 byte
1-3 byte
(*1) The decimal value for the customized value number (a; parameter of this
function) is converted to ASCII character data and sent starting from the
high order end.
Example:
If the a is 118, the 118 (expressed hexadecimally as 31H, 31H, 38H.
Decimally as 49, 49, 56) is converted to 3-bytes data.
(*2) The customized value is determined by the value defined in Function 5.
Example 1:
When setting value is 120, the customized value is 120 expressed with 3
bytes of data (hex numbers: 31H,32H, 30H / decimal numbers: 49, 50, 48).
Example 2:
When setting value is -1, the customized value is 65535 expressed with 5
bytes of data (hex numbers: 36H,35H, 35H, 33H, 35H / decimal numbers:
54,53, 53, 51, 53).
5-59
CHAPTER 5
CONTROL COMMANDS LIST
Bit length ( a = 4) is specified by d as follows:
GS ( E pL pH fn a d1...dk <Function 11>
[Format]
[Range]
ASCII
GS
(
E
pL
pH
fn
a
d1...dk
Hex
1D
28
45
pL
pH
0B
a
d1...dk
Decimal 29
40
69
pL
pH
11
a
d1...dk
3 ≤ ( pL + pH x 256) ≤ 8 (3 ≤ pL ≤ 8, 0 ≤ pH ≤ 255)
n = 11
1≤a≤4
48 ≤ d ≤ 57 [a = 1]
48 ≤ d ≤ 50 [a = 2]
d = 48, 49 [a = 3]
d = 55, 56 [a = 4]
1≤k≤6
[Default]
d1...dk = 9600 [a = 1]
d = 48 [a = 2]
d = 48 [a = 3]
d = 56 [a = 4]
[Description]
Changes the condition of the serial interface defined by a.
a
1
2
3
4
Item
Baud rate
Parity
Flow control
Bit length
d
55
56
[Notes]
Function
Select 7 bits length
Select 8 bits length
It is recommended that the DIP Switch be used to change communication
condition.
-If the communication control between host and printer does not
correspond, the printer cannot process data from the host normally, and the
host cannot receive data from the printer normally.
This function works in user setting mode.
This function works with serial interface printers.
The communication condition set by this function is enabled by executing
Function 2 or restarting the printer. It is necessary to change the
communication condition of the host to be the same as the printer to
communicate with the printer.
To enable the communication condition set by this function, set DSW 1-5 to
ON (Interface condition selection).
-The serial communication setting is also specified by DIP switch.
-4 baud rates are selectable by this command. [ 2400 , 4800 , 9600 ,19200 ]
-Setting of this function can be changed by Memory switch setting mode by
the panel switch operation.
Baud rate (a = 1) is specified by number.
Example: When defining 19200 bps: 5 bytes as 19200 (Hexadecimal =
31H, 39H, 32H, 30H,30H / Decimal= 49, 57, 50, 48, 48)
Parity (a = 2) is specified by d as follows:
d
48
49
50
Function
Select no parity
Select odd parity
Select even parity
Flow control (a = 3) is specified by d as follows:
d
48
49
5-60
Function
Select Flow control of DTR/DSR
Select Flow control of XON/XOFF
5-61
CHAPTER 5
CONTROL COMMANDS LIST
GS ( E pL pH fn a <Function 12>
[Format]
[Range]
[Description]
[Notes]
GS I
ASCII
GS
(
E
pL
pH
fn
a
[Name]
Transmit printer ID
Hex
1D
28
45
pL
pH
0B
a
[Format]
ASCII
GS
I
Decimal 29
40
69
pL
pH
11
a
Hex
1D
49
n
Decimal 29
73
n
(pL + pH x 256) = 2 (pL = 2, pH = 0)
fn = 12
1≤a≤4
[Range]
1 ≤ n ≤ 3, 49 ≤ n ≤ 51, 65 ≤ n ≤ 68, n = 33
Transmits the setting value of the serial interface communication condition
specified by a.
[Default]
None
[Description]
Transmits 1 byte of printer ID which is specified by n as follows:
n
1, 49
2, 50
3, 51
This function works in user setting mode and during normal operation.
This function transmits "Header to NUL" as follows:
a
1
2
3
4
[Notes]
Communication condition
Baud rate
Parity
Flow control
Bit length
n
33
Hex
37H
33H
30H ~ 34H
1FH
30H ~ 39H
00H
Specification
Printer model
Printer type
Firmware version
Decimal
55
51
48 ~ 52
31
48 ~ 57
0
Data quantity
1 byte
1 byte
1 byte
1 byte
1 ~ 5 bytes
1 byte
(*1) Communication condition is specified by a.
(*2) Setting value is set by Function 11.
- Setting value is set by Function 11. It might differ from the current
communication condition before executing Function 2 or depending on the
setting of the DIP Switch.
- This function is used to confirm whether Function 11 ends normally before
executing Function 2.
Printer ID
Type information
Specification
Supported functions
Transmits printer information B (common information), using n as follows:
This function works in user setting mode and during normal operation.
Transmit data
Header
Identifier
Communication condition (*1)
Separator
Setting value (*2)
NUL
Printer ID
Printer model ID
Type ID
Version ID
Transmits printer information A (common information), using n as follows:
This function transmits "Header to NUL" as follows:
5-62
n
n
65
66
67
68
[Notes]
Printer ID
Firmware version
Maker name
Printer model
Serial No
Specification
Firmware version
KPS
Printer model
Serial No of the printer
When you use this command, obey the following rules.
- When the host PC transmits the function data, transmit next data after
receiving the corresponding ID from the printer.
- With a serial interface printer, be sure to use this function when the host
can receive data.
- With a parallel interface printer, data (printer ID, printer information) sent
with this command is temporarily stored in the printer send buffer like other
transmitted data (except ASB). When the host goes into reverse mode, the
printer then sends the data sequentially from the beginning of the send
buffer.
5-63
CHAPTER 5
CONTROL COMMANDS LIST
[Notes for printer ID]
Each printer ID is composed of 1 byte of data (when 1 ≤ n ≤ 3, 49 ≤ n ≤ 51).
Printer model ID differs, depending on the printer model (when n = 1, 49).
Transmits specified printer information, as follows:
Bit
0
1
2
3
4
5
6
7
Off/On
Hex
Decimal
Off
On
Off
On
Off
On
Off
Off
Off
00
01
00
02
00
04
00
00
00
0
1
0
2
0
4
0
0
0
Multi-byte character codes are not supported.
Multi-byte character codes are supported.
Auto cutter not installed.
Auto cutter installed.
DM-D (customer display) is not installed.
DM-D (customer display) is installed.
Reserved.
Not used. Fixed to Off.
Reserved.
E/P (Endorse printer) not installed
Not used. Fixed to Off.
[Notes for printer information A]
Printer information A (n = 33) consists of [Header ~ NUL] as shown in the
following table:
Printer information A (*2)
NUL
5-64
Hex
3DH
20H ~ 2FH
Depends on
printer model
00H
Decimal
61
32 ~ 47
Depends on
printer model
0
Example: When type information is specified (n = 33), the identifier is
[hex = 21H/decimal = 33].
(*2) If the printer information cannot be transmitted, the printer transmits 3-byte
code of [Header +Identifier + NUL].
Function
Printer ID is distinguished from other send data by bits 4 and 7. When the
data sent from printer after printing GS I is "0xx0xxxx" (x = 0, 1), the printer
processes the data as printer ID.
Transmit data
Header
Identifier(*1)
(*1) The identifier is transmitted as the transmitted parameter n of this
command.
Amount of data
1 byte
1 byte
0 ~ 80 bytes
The printer information A of type information (n = 33) is 2 bytes of data
as shown in the following tables.
Bit
0
1
2
3-5
6
7
Off/On
Hex
Decimal
Off
On
Off
On
Off
On
On
Off
00
01
00
02
00
04
40
00
0
1
0
2
0
4
64
0
Function
Multi-byte character codes are not supported.
Multi-byte character codes are supported.
Auto cutter not installed.
Auto cutter installed.
DM-D (customer display) is not installed.
DM-D (customer display) is installed.
Reserved.
Fixed.
Fixed.
During transmission of [Header ~ NUL], ASB status and real time
commands are disabled.
When communication with the printer uses XON/XOFF control, the XOFF
code may interrupt the Header to NUL data string.
The printer information A can be differentiated by the header of the block
data from other transmission data. After outputting GS I, if the data
transmitted from the printer is [Hex = 3DH/Decimal = 61], data is processed
up to NUL [Hex = 00H/Decimal = 0] as the data block, according to the
header and identifier.
1 byte
5-65
CHAPTER 5
CONTROL COMMANDS LIST
[Notes for printer information B]
GS V
Each printer information is composed of [header + printer information +
UL] (when 65 ≤ n ≤ 68).
Send data
Header
Printer information B
NUL
Hex
5FH
Depends on the model
00H
Decimal
95
Depends on the model
0
[Name]
Select cut mode and cut paper
[Format]
Function A
Data
1 byte
1-80 bytes
1 byte
Function B
- If the printer information is not prepared, [Header + NUL] (2 bytes) are sent.
The firmware version can be confirmed by self test printing. The self test is
executed by executing GS ( A, or by panel switch operation when power is
turned on.
When transmitting [Header to NUL], ASB status and real-time commands
cannot be used.
With serial interface, when communication with the printer uses XON/XOFF
control, the XOFF code may interrupt the Header to NUL data string.
Type ID (n = 2, 50)
Bit 1: [Auto cutter is installed/not installed] indicates the state of
DIP switch 1-3.
Bit 2: The bit [DM-D (Customer display) isn’t supported.
Printer model (n = 67)
Printer model: SRP-275
Type information (n = 33)
Bit 1: [Auto cutter is installed/not installed] indicates the state of
DIP switch 1-3.
Bit 2: The bit [DM-D (Customer display) isn’t supported.
5-66
GS
V
m
Hex
1D
56
m
Decimal
29
86
m
ASCII
GS
V
m
n
Hex
1D
56
m
n
Decimal
29
86
m
n
[Range]
Function A m = 0, 1, 48, 49
Function B m = 65, 66; 0 ≤ n ≤255
[Default]
None
[Description]
Select a paper cutting mode using m and then cut the paper, as follows:
m
Printer information can be identified to other transmission data according to
specific data of the transmission data block. When the header transmitted by
the printer is [hex = 5FH/decimal=95], treat NUL [hex = 00H/decimal =0] as
a data group and identify it according to the following data.
Printer model ID (n = 1, 49)
Hex: 0DH / Decimal: 13
ASCII
<A>
Function
0,48
1,49
65
<B>
66
Executes a full cut (cuts the paper completely).
Executes a partial cut (one point left uncut).
Feeds paper to (cutting position + n x vertical motion unit) and
executes a partial cut(one point left uncut).
Feeds paper to (cutting position + n x vertical motion unit) and
executes a partial cut(one point left uncut).
[Notes for <A>]
If an auto cutter is not provided, this command is ignored.
[Notes for <B>]
When n = 0, the printer feeds the paper to the cutting position and cuts it.
If an auto cutter is not provided, the printer only feeds the paper for specified
amount.
Vertical motion unit is used for calculating a paper feed amount.
5-67
CHAPTER 5
CONTROL COMMANDS LIST
Therefore you cannot get the printer status change through ASB status
when block data [header - NUL] is transmitted.
GS a
[Name]
Enable/disable Automatic Status Back (ASB)
[Format]
ASCII
GS
Hex
1D
61
n
Decimal 29
97
n
n
Any basic ASB status represents the enabled status whenever the status
changes. Therefore the disabled status items may change, because each
status transmission represents the current status.
[Range]
0 ≤ n ≤ 255
The basic ASB statuses, corresponding to each bit for n are as follows:
[Default]
When DIP Switch or Memory Switch (BUSY condition) is Off: n = 0
When DIP Switch or Memory Switch (BUSY condition) is On: n = 2
Bit
[Description]
Enables or disables basic ASB (Automatic Status Back) and specifies the
status items to include, using n as follows:
Bit
0
1
2
3
4
5
6
7
[Notes]
5-68
a
Off/On
Off
On
Off
On
Off
On
Off
On
-
Hex
00
01
00
02
00
04
00
08
-
Decimal
0
1
0
2
0
4
0
8
-
Status for ASB
Drawer kick-out connector pin 3 status disabled.
Drawer kick-out connector pin 3 status enabled.
On-line/off-line disabled.
On-line/off-line enabled
Error status disabled.
Error status enabled.
Paper sensor status disabled.
Paper sensor status enabled.
Undefined.
Undefined.
Undefined.
Undefined.
ASB is the function that transmit the status of [cover open/close], [Online/
Offline] from the printer automatically. It is called [ASB function] and the
status is [ASB status]. If you use ASB, application can acquire the printer
change in a real-time and passively.
Select any status enabled (except n = 0) and basic ASB starts. Then
transmit the current basic ASB status. After that, while ASB is active the
selected enabled basic ASB status is transmitted whenever the status
changes.
When n = 0, basic ASB is disabled. When ASB is disabled, basic ASB
status is not transmitted.
Multiple status items can be selected.
When ASB is active, ASB status is transmitted whenever the status changes
even if ESC = is not selected.
This command setting is effective until ESC @ is executed, the printer is
reset or power is turned off.
During Block data [header - NUL] transmission, ASB is disabled temporarily.
n
0
1
2
3
6
ASB status
Function
Bit
Drawer kick-out
Bit 2 of the first byte
connector status.
Bit 3 of the first byte
Bit 5 of the first byte
Online/offline
status.
Error status.
Roll pap
sensor
status
Panel switch
status.
Bit 6 of the first byte
Bit 0 of the second byte
Bit 0 and 1 of the third
byte[Note]
Bit 2 and 3 of the third
byte[Note]
Bit 2 of the second byte
Bit 3 of the second byte
Bit 5 of the second byte
Status
Drawer kick-out connector
pin 3 status
Online/ offline status.
Cover status.
Paper is being fed by paper
feed button status.
Waiting for online recovery
status.
Paper near-end sensor
status.
Paper end sensor status.
Mechanical error status.
Auto cutter error status.
Unrecoverable error status.
Automatically recoverable error
Bit 6 of the second byte
status.
Paper near-end sensor
Bits 0 and 1 of the third byte
status.
Bits 2 and 3 of the third byte Paper end sensor status.
Bit 1 of the second byte
Paper feed status
5-69
CHAPTER 5
CONTROL COMMANDS LIST
[Note]
Only if ESC 4 is selected or paper stop printing sensor is not selected.
Third byte (paper sensor information)
Basic ASB status is 4-byte configuration [first byte - fourth byte].
Bit
The status to be transmitted are as follows:
0,1
First byte (printer information)
Bit
0
1
2
3
4
5
6
7
Off/On
Off
Off
Off
On
Off
On
On
Off
On
Off
On
Off
Hex
00
00
00
04
00
08
10
00
20
00
40
00
Decimal
0
0
0
4
0
8
16
0
32
0
64
0
2,3
Function
Not used. Fixed to Off.
Not used. Fixed to Off.
Drawer kick-out connector pin 3 is LOW.
Drawer kick-out connector pin 3 is HIGH.
On-line.
Off-line.
Not used. Fixed to On.
Cover is close
Cover is open
Paper is not being fed by the paper feed button.
Paper is being fed by the paper feed button.
Not used. Fixed to Off.
Second byte (printer information)
Bit
0
1
2
3
4
5
6
7
Off/On
Off
Off
Off
On
Off
On
Off
Off
On
Off
On
Off
Hex
00
00
00
04
00
08
00
00
20
00
40
00
Decimal
0
0
0
4
0
8
0
0
32
0
64
0
Function
Not used. Fixed to Off.
Not used. Fixed to Off.
No mechanical error.
Mechanical error.
No auto cutter error.
Auto cutter error occurred.
Not used. Fixed to Off.
No unrecoverable error.
Unrecoverable error.
No automatically recoverable error.
Automatically recoverable error occurred.
Not used. Fixed to Off.
4
5
6
7
Off/On
Off
On
Off
On
Off
Off
Off
Off
Hex
00
03
00
0C
00
00
00
00
Decimal
0
3
0
12
0
0
0
0
Function
Paper near end sensor: paper adequate.
Paper near end sensor: paper near end.
Paper end sensor: paper present.
Paper end sensor: no paper present.
Not used. Fixed to Off.
Not used. Fixed to Off.
Not used. Fixed to Off.
Not used. Fixed to Off.
- Some paper sensors are not present, depending on the printer model.
The names of some paper sensors are different, depending on
the printer model.
Fourth byte(paper sensor information)
Bit
0
1
2
3
4
5
6
7
Off/On
On
On
On
On
Off
Off
Off
Off
Hex
01
02
04
08
00
00
00
00
Decimal
1
2
4
8
0
0
0
0
Function
Not used. Fixed to On.
Not used. Fixed to On.
Not used. Fixed to On.
Not used. Fixed to On.
Not used. Fixed to Off.
Not used. Fixed to Off.
Not used. Fixed to Off.
Not used. Fixed to Off.
- If mechanical error (bit 2) or auto-cutter error (bit 3) occurs due to paper
jams or the like, it is possible to recover by correcting a cause of the error
and executing DLE ENQ.
- If an unrecoverable error (bit 5) occurs, turn off the power as soon as
possible.
5-70
5-71
CHAPTER 5
CONTROL COMMANDS LIST
When you use this command, obey the following rules.
GS r
[Name]
Transmit status
[Format]
ASCII
GS
r
n
Hex
1D
72
n
Decimal 29 114
n
- After the host PC transmits the function data, the printer will send
response data or status data back to the PC. Do not transmit more data
from the PC until the response data or status data are received from the
printer.
- When operating with a serial interface, be sure to configure operation so
that the host computer uses the printer only when it is READY.
[Range]
n = 1, 2, 49, 50
[Description]
Transmits 1 byte of status data using n as follows:
n
1, 49
2, 50
[Notes]
Function
Transmits paper sensor status
Transmits drawer kick-out connector status
- With a parallel interface, a real-time status is stored in the transmission
buffer of the printer temporarily the same as the other transmission data
(except for ASB status), and when the host enters reverse mode, data is
transmitted in order from the beginning of the transmission buffer.
Each status is 1 byte.
The status to be transmitted is as follows:
- Paper sensor status (n = 1, 49)
Bit
0,1
2,3
4
5,6
7
Binary
00
11
00
11
0
0
Hex
00
03
00
0C
00
00
Decimal
0
3
0
12
0
0
Status
Paper near-end sensor: paper adequate.
Paper near-end sensor: paper not present.
Paper end sensor: paper present.
Paper end sensor: paper not present.
Not used. Fixed to Off.
Undefined.
Not used. Fixed to Off.
The status to be transmitted is as follows:
- Drawer kick-out connector status (n = 2, 50)
Bit
0
1-3
4
5,6
7
5-72
Binary
0
1
0
Hex
00
01
00
Decimal
0
1
0
0
00
0
Status
Drawer kick-out connector pin 3 is LOW.
Drawer kick-out connector pin 3 is HIGH.
Undefined.
Not used. Fixed to Off.
Undefined
Not used. Fixed to Off.
5-73
CHAPTER 5
CONTROL COMMANDS LIST
5.4.3 Commands list for STAR mode (SP500)
n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
5-74
Command
ESC GS t
ESC R
ESC /
ESC M
ESC P
ESC :
ESC SP
SO
DC4
ESC W
ESC h
ESC E
ESC F
ESC
ESC _
ESC 4
ESC 5
SI
DC2
ESC RS i
LF
CR
ESC a
ESC 0
ESC 1
ESC z 0("0")
ESC z 1("1")
ESC J
ESC A
ESC 2
ESC 3
ESC y
ESC I
FF
ESC C
ESC C 0
VT
ESC B
ESC N
ESC O
ESC l
ESC Q
Description
Hex
n
Command
Specify code page
Specify international character set
Specify/cancel slash zero
Specify 7_9 font (half dots)
Specify 9_9 font
Specify 5_9 font (3P-1)
Specify character space
Specify double-wide expanded characters
Cancel double wide printing
Specify/cancel double-wide printing
Specify/cancel double-high printing
Select emphasized printing
Cancel emphasized printing
Select/cancels underline mode
Select/cancels upperline mode
Specify white/black inversion and red color printing
Cancel white/black inversion and specify black color printing
Select upside-down printing
Cancel upside-down printing
Specify/cancel rotating print mode
Line feed
Line feed (according to memory switch settings)
Feed paper n lines
Set line feed to 1/8 inch
Set line feed to 7/72 inch
Set line feed to 1/12 inch
Set line feed to 1/6 inch
Execute n/72 inch paper feed one time
Define n/72 inch pitch line feed
Set ESC A line feed pitch
Set line feed to n/216 inch line feed pitch (approximate value)
Set line feed to n/144 inch line feed pitch
Execute n/144 inch paper feed one time
Form feed
Set page length to n lines
Set page length to n inches
Feed paper to vertical table position
Set vertical tab position
Set bottom margin to n lines
Cancel bottom margin
Set left margin
Set right margin
1B 1D 74
1B 52
1B 2F
1B 4D
1B 50
1B 3A
1B 20
0E
14
1B 57
1B 68
1B 45
1B 46
1B 2D
1B 5F
1B 34
1B 35
0F
12
1B 1E 69
0A
0D
1B 61
1B 30
1B 31
1B 7A 00(30)
1B 7A 01(31)
1B 4A
1B 41
1B
1B 33
1B 79
1B 49
0C
1B 43
1B 43 00
0B
1B 42
1B 4E
1B 4F
1B 6C
1B 51
43
44
45
46
47
48
48
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
HT
ESC D
ESC GS a
ESC GS A
ESC GS R
ESC &
ESC %
ESC K
ESC L
ESC d
ESC BEL
BEL
FS
SUB
EM
ENQ
EOT
ESC ACK SOH
ESC RS a
ETB
ESC RS E
DC3
DC1
ESC @
ESC U
ESC GS #
ESC #
ESC ? LF NUL
Description
Move print position to horizontal tab position
Set/cancel horizontal tab position
Specify position alignment
Specify absolute position
Specify relative position
Register/delete download characters
Set/cancel download characters
Standard density bit image
Double density bit image
Paper cut instruction
Set pulse width for external device drive
External device 1 drive instruction
External device 1 drive instruction (real time)
External device 2 drive instruction (real time)
External device 2 drive instruction (real time)
Inquire ENQ status
Inquire EOT status
Inquire status
Set status transmission conditions
Update ETB status (check after printing)
Clear the ETB counter and ETB status
Printer deselect
Printer select
Command initialization
Select printing direction
Set memory switch
Set memory switch
Reset printer and test print
Hex
09
1B 44
1B 1D 61
1B 1D 41
1B 1D 52
1B 26
1B 25
1B 4B
1B 4C
1B 64
1B 07
07
1C
1A
19
05
04
1B 06 01
1B 1E 61
17
1B 1E 45
13
11
1B 40
1B 55
1B 1D 23
1B 23
1B 3F 0A 00
5-75
5.4.5 Commands list for CITIZEN mode (iDP3550/3551)
n
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Command
FF n
FF
SO (Note)
SI (Note)
LF
CR
DC1 (Note)
DC2 (Note)
DC3 (Note)
CAN
ESC * n1 n2
ESC - n
ESC 1
ESC 2
ESC 3
ESC C n
ESC N n
ESC O
ESC f 1
ESC t n
ESC BEL n1 n2
BEL
FS
SUB
RS
ESC P 0
ESC P 1
ESC R n
ESC & 0 n1 n2
ESC % n
ESC / n
ESC DC3 n
ESC y n
ESC DC2 n1 n2
GS * n1 n2
GS / m
Description
Hex
n-line paper feed (CBM1 mode)
0C n
Form feed (CBM2 mode)
0C
Specifying the double width character (CBM1 mode)
0E
Canceling the double width character
0F
Print and paper feed
0A
Printing
0D
Initializing the printer (CBM1 mode)
11
Specifying/Canceling the inverted character(CBM1 mode)
12
Specifying the red print (CBM1 mode)
13
Canceling the print data
18
Specifying the bit image mode
1B 2A n1 n2
Specifying/Canceling the Underline
1B 2D n
Specifying 1/9-inch line feed width
1B 31H
Specifying 2/9-inch line feed width
1B 32
Specifying standard line feed width
1B 33
Setting the page length
1B 43 n
Specifying the perforation skip
1B 4E n
Canceling the perforation skip
1B 4F
Form feed (Changing the page)
1B 66 01
Selecting the character code table
1B 74 n
Setting the external device drive pulse width
1B 07 n1 n2
Driving command A for Drawer-1
07
Driving command B for Drawer-1
1C
Driving command for Drawer-2
1A
Buzzer-on
1E
Partial cut
1B 50 00
Partial cut
1B 50 01
Selecting the international character set
1B 52 n
Defining the download character set
1B 26 00 n1 n2
Specifying/Canceling the download character
1B 25 n
Defining the message
1B 2F n
Printing the message
1B 13 n
Setting the print lines after paper near end detection
1B 79 n
Deleting the download character, message, bit image
1B 12 n1 n2
Defining the download bit image
1D 2A n1 n2
Printing the download bit image
1D 2F m
Effective when CBM mode is selected with the DIP Switch segments 1-1 and 1-2 and
CMB1 (OFF) is selected with the DIP Switch segment 1-4. If CBM2 (ON) is selected with
the DIP Switch segment 1-4, the functions of these commands are changed as shown in
the table below.
5-123
CHAPTER 5
CONTROL COMMANDS LIST
5.4.6 Commands description CITIZEN mode (iDP3550/3551)
Command
Code
SO
0E
SI
0F
Command
Code
DC1
DC2
DC3
ESC "C" n
11
12
13
1B 43 n
Function
8-bit data selected
Specifying the double width
character
Canceling the double width
character
7-bit data selected
Specifying the shift-out side
character
Specifying the shift-in side
character
Function
FF n
(CBM1 Mode)
[Name]
n-line paper feed
[Format]
ASCII
FF
n
Hex
0C
n
[Range]
1 ≤ n ≤ 127
[Description]
This command feeds the paper by n-lines. You can set n = 1 to 127 lines.
If the print buffer contains the data, use of this command feeds the paper
by n-lines after printing the data. Setting n = 0 does not feed the paper.
Selecting the printer
Specifying the red print
Deselecting the printer
Setting the page length
FF
[Name]
[Format]
[Description]
(CBM2 Mode)
Form feed
ASCII
FF
Hex
0C
This command searches for the beginning of the next page after printing the
data in the print buffer
SO
Specifying the double width character
[Format]
ASCII
SO
Hex
0E
[Description]
5-124
(CBM1 Mode)
[Name]
The data following this command is printed doubled in the horizontal direction.
Double width characters remain valid until the double width character cancel
command is entered, but they are also cancelled after they are printed one
line. Note that the double width characters take up two ordinary characters
worth of width.
5-125
CHAPTER 5
CONTROL COMMANDS LIST
SO
(CBM2 Mode)
LF
[Name]
Specifying the double width character/shift-out side characters
[Name]
Printing and paper feed
[Format]
ASCII
SO
[Format]
ASCII
LF
Hex
0E
Hex
0A
[Description]
If the print buffer contains the data, this command will feed the line after
printing. If not, the command only feeds the line.
[Description]
The data following this command is printed doubled in the horizontal direction.
Double width characters remain valid until the double width character cancel
command is entered, but they are also cancelled after they are printed one
line. Note that the double width characters take up two ordinary characters
worth of width. In the case of a serial interface, if 7-bit data is selected, the
shift-out side character is printed.
CR
[Name]
SI
(CBM1 Mode)
[Name]
Canceling the double width character
[Format]
ASCII
SI
Hex
0F
[Description]
[Description]
This command cancels the double width characters set with SO. The data
following this command are printed in the ordinary character width.
SI
(CBM2 Mode)
ASCII
CR
Hex
0D
This command prints the data. If the DIP switch segment 1-8 is set to OFF,
the printer will print the data in the print buffer and feed the paper by one line.
If it is set to ON, the printer will print the data in the print buffer and will not
feed the paper.
DC1
(CBM1 Mode)
[Name]
Canceling the double width character/Specifying the shift-in side characters
[Name]
Initializing the printer
[Format]
ASCII
SI
[Format]
ASCII
Hex
0F
[Description]
5-126
[Format]
Printing
This command cancels the double width characters set with SO. The data
following this command are printed in the ordinary character width. In the case
of a serial interface, if 7-bit data is selected, the shift-in side character is
printed.
Hex
[Description]
DC1
11
This command initializes the printer.
The input buffer is not cleared.
The settings of the DIP switch segments are not re-read.
5-127
CHAPTER 5
CONTROL COMMANDS LIST
DC1
(CBM2 Mode)
(CBM1 Mode)
[Name]
Setting the select mode
[Name]
Specifying the red print
[Format]
ASCII
[Format]
ASCII
DC3
Hex
13
[Description]
This command sets the printer in the selecting status.
[Description]
This command specifies red-color characters. All the characters in one line are
printed in red by prefixing the print data with this command and sending it to
the printer. When you want to use red characters, use this command for each
line.
Hex
DC1
11
DC2
(CBM1 Mode)
[Name]
Specifying/Canceling the inverted character
[Format]
ASCII
DC2
Hex
12
[Description]
This command selects/deselects the inverted characters. Enter this command
at the beginning of one line. Otherwise, it is overridden. Erect and inverted
characters cannot be mixed in one line.
DC2
[Name]
Specifying the red print
[Format]
ASCII
[Description]
DC3
(CBM2 Mode)
[Name]
Setting the deselect character
[Format]
ASCII
DC3
Hex
13
[Description]
This command sets the printer in the deselecting status in which the printer
cannot receive data. To set the printer in the selecting status, use DC1.
(CBM2 Mode)
Hex
5-128
DC3
CAN
DC2
[Name]
Canceling the print data
12
[Format]
ASCII
CAN
Hex
18
[Description]
This command clears the print data in the lines entered prior to this command.
This command specifies red-color characters. All the characters in one line
are printed in red by prefixing the print data with this command and sending
it to the printer. When you want to use red characters, use this command for
each line.
5-129
CHAPTER 5
CONTROL COMMANDS LIST
ESC * n1 n2
ESC - n
[Name]
Specifying the bit image mode
[Format]
ASCII
ESC
*
n1
n2
Hex
1B
2A
n1
n2
[Range]
[Description]
[Name]
Specifying/Canceling the underline
[Format]
ASCII
ESC
_
n
Hex
1B
2D
n
1 ≤ n1 + 256 x n2 ≤ 360 (for DP654 mechanism)
[Default]
n=0
1 ≤ n1 + 256 x n2 ≤ 400 (for DP657 mechanism)
[Description]
This command selects/deselects an underline. The underline is selected
at n = 1 and deselected at n = 0.
This command allows printing in the bit image mode. Divide the number of
dots printed by 256 and assume its quotient to be n2 and remainder to be n1.
Therefore, the number of horizontal dots will be n1 + 256 x n2.
If the bit image data is entered beyond the dot positions printable in one line,
the surplus data will be discarded. Normal data processing is restored after bit
image printing. Printing is done in a single direction.
ESC 1
[Name]
[Format]
[Description]
Specifying the 1/9-inch line feed width
ASCII
ESC
1
Hex
1B
31
Only effective for Graphic type. This command sets the line feed width to
1/9 inch.
ESC 2
5-130
[Name]
Specifying the 2/9-inch line feed width
[Format]
ASCII
ESC
2
Hex
1B
32
[Description]
Only effective for Graphic type. This command sets the line feed width to
2/9 inch.
5-131
CHAPTER 5
CONTROL COMMANDS LIST
ESC 3
ESC O
[Name]
Specifying the standard line feed width
[Name]
[Format]
ASCII
[Format]
Hex
[Description]
ESC
1B
3
33
This command sets the line feed width as follows.
[Description]
Canceling the perforation skip
ASCII
ESC
O
n
Hex
1B
4F
n
This command cancels perforation skipping operation.
Character type : 1/6 inch
Graphic type : 2/9 inch
ESC C n
[Name]
[Format]
ESC C n
[Name]
Setting the page length
[Format]
ASCII
ESC
C
n
Hex
1B
43
n
[Range]
1 ≤ n ≤ 127
[Description]
Sets the 1-page length to n-lines.
Setting the page length
ASCII
ESC
C
n
Hex
1B
43
n
[Range]
14 ≤ n ≤ 120
[Description]
Sets the 1-page length to n-lines.
Also it initiates a paging operation, with 3 space lines placed at the beginning
and end of a page.
(The first 3-line spacing is initiated when this command is verified.)
[Notes]
- If an out-of-range value is specified for "n", it is set to 66.
- The actual number of printable lines is "n-6".
[Default]
n = 66
ESC N n
[Name]
Specifying the perforation skip
[Format]
ASCII
ESC
N
n
Hex
1B
4E
n
[Range]
[Description]
5-132
1 ≤ n ≤ 126
This command feeds (skips) the lines specified with n without printing.
However, you cannot specify beyond the length of one page.
ESC f <1>
[Name]
Form feed (Changing the page)
[Format]
ASCII
ESC
f
<1>
Hex
1B
66
01
[Description]
This command searches for the beginning of the next page after printing the
data in the print buffer.
5-133
CHAPTER 5
CONTROL COMMANDS LIST
ESC t n
ESC BEL n1 n2
[Name]
Selecting the character code table
[Format]
ASCll
ESC
t
n
[Name]
Setting the external device drive pulse width
[Format]
ASCII
ESC
BEL n1 n2
Hex
18
74
n
[Range]
0 ≤ n ≤ 30
[Range]
Hex
1 ≤ n1, n2 ≤ 127
1B
07
[Description]
This command selects code-page.
[Description]
[Default]
Depends upon DIP Switch setting.
This command sets the power-on time to drive an external device
(such as cash drawer).
n1 n2
Power-on time = n1 x 10 (ms)
n
0
1
2
3
4
5
16
17
18
19
21
22
23
24
25
26
27
28
29
30
(*1) Only Font B available.
5-134
Page
PC437
Katakana
PC850
PC860
PC863
PC865
WPC1252
PC866
PC852
PC858
PC862
PC864
Thai character code 42
WPC1253
WPC1254
WPC1257
Farsi
WPC1251(*1)
PC737(*1)
PC775(*1)
Delay time = n2 x 10 (ms)
To actually drive the drawer, use the BEL and FS commands.
[Default]
n1 = n2 = 20
BEL
[Name]
Driving command A for drawer-1
[Format]
ASCII
BEL
Hex
07
[Description]
This command drives the drawer connector No.2 pin under the condition set
with the ESC BEL n1 n2 command. This command is executed in order of
entry into the input buffer.
5-135
CHAPTER 5
CONTROL COMMANDS LIST
FS
ESC P <0>
[Name]
Driving command B for drawer-1
[Name]
Partial cut
[Format]
ASCII
FS
[Format]
ASCII
ESC
P
<0>
Hex
1C
Hex
1B
50
00
[Description]
This command partially cuts the paper
[Description]
This command drives the drawer connector No. 2 pin under the condition set
with the ESC BEL n1 n2 command.
ESC P <1>
[Name]
[Format]
SUB
[[Name]
[Format]
[Description]
[Description]
Partial cut
ASCII
ESC
P
<1>
Hex
1B
50
01
This command partially cuts the paper
Driving command for drawer-2
ASCII
SUB
Hex
1A
As soon as this command is received, the drawer connector No. 5 pin is
driven. The power-on time is 200 ms ON and 200 ms OFF stationary. The
drawers 1 and 2 cannot be driven simultaneously.
ESC R n
[Name]
[Format]
Selecting the international character set
ASCII
ESC
R
n
1B
52
n
Hex
RS
[Name]
Buzzer-on
[Format]
ASCII
RS
Hex
1E
[Description]
5-136
This command emits a short warning sound from the printer.
[Range]
0 ≤ n ≤ 10
[Description]
Selects a page n from the character code table.
n
0
1
2
3
4
5
6
7
8
9
10
Character Set
U.S.A.
France
Germany
U.K.
Denmark I
Sweden
Italy
Spain
Japan
Norway
Denmark II
5-137
CHAPTER 5
CONTROL COMMANDS LIST
ESC & <0> n1 n2 [m0 m1 m5 m6 m7 m8 m9] n2 — n1 +1
[Name]
Defining the download character set
[Format]
ASCII
ESC
&
<0>
n1
n2 [m0 m8 m9] n2-n1+1
Hex
1B
26
00
n1
n2 [m0 m8 m9] n2-n1+1
[Range]
32 ≤ n1 ≤ n2 ≤ 255, m0 = 0 or m0 = 128
[Description]
This command defines he download characters. n1 is a character code to start
definition and n2 is to end definition, respectively. When defining only one
character, set n1 = n2. You can define the ASCII codes ranging from 32 to
255. Once the download characters are defined, they remain valid until they
are redefined or the download deletion command (ESC DC2 n1 n2) is
executed.
ESC % n
[Name]
Specifying/Canceling the download character set
[Format]
ASCII
ESC
%
n
1B
25
n
Hex
[Description]
This command selects/deselects the download character set. The download
characters cannot be printed by simply defining them with the abovementioned ESC & 0 command. To print them, send this command to the
printer.
n
0
30
1
31
Download Character Set
Deselect
Select
ESC / n "data" CR or LF
[Name]
Defining the message
[Format]
ASCII
ESC
/
n
1B
2F
n
Hex
5-138
[Range]
1 ≤ n ≤ 10
[Description]
This command can define up to a 50-byte message in one line. If the value of
n is specified beyond the range, the data following n will be treated as the print
data. Once the message is defined, it remains valid until it is redefined. The
data should end with CR (0DH) or LF (0AH). If the data exceeds 50 bytes, the
subsequent data will be treated as the print data. Once the message is
defined, it remains valid until it is redefined or the download deletion command
(ESC DC2 n1 n2) is executed.
5-139
CHAPTER 5
CONTROL COMMANDS LIST
ESC DC3 n
ESC DC2 n1 n2
[Name]
Printing the message
[Format]
ASCII
ESC
DC3
n
Hex
1B
13
n
[Range]
1 ≤ n ≤ 10
[Function]
This command prints a message. If the value of n is specified beyond the
range, the message will not be printed.
[Name]
Deleting the download character, message, bit image
[Format]
ASCII
ESC
DC2
n1
n2
Hex
1B
12
n1
n2
[Range]
0 ≤ n1 ≤ 3
0 ≤ n2
(Specify 0 at n1 = 0)
(1 ≤ n2 ≤ 10 at n1 = 1)
(32 ≤ n2 ≤ 255 at n1 = 2)
(Specify 0 at n1 = 3)
[Description]
ESC y n
[Name]
[Format]
Setting the print lines after paper near end detection
ASCll
Hex
5-140
ESC
y
n
1B
79
n
[Range]
0 ≤ n ≤ 255
[Description]
This command sets the number of print lines after paper near end detection.
It stops printing after printing n x 2 lines since detection of the paper near end,
resulting in the paper near end state.
This command deletes the downloaded characters, message, and bit image.
n
0
30
1
31
Download Character Set
Deselect
Select
With n2, specify which data of the function specified with n1 should be
deleted.
n2 = 0
Deletes all the data saved with the download function specified with n1.
n2 0
Deletes the data downloaded at the value specified with n2
(Value specified when saving with each download command),
of the download function specified with n1.
5-141
CHAPTER 5
CONTROL COMMANDS LIST
GS * n1 n2 [d] n1xn2x8
[Name]
Defining the download bit image
[Format]
ASCII
GS
*
n1
n2
m [d] n1xn2x8
Hex
1D
2A
n1
n2
m [d] n1xn2x8
[Range]
1 ≤ n1 ≤ 45
[Range]
0 ≤ n2 ≤ 24
[Description]
This command prints the bit image saved in the number specified with m.
Note) Take care that the number of data (n1 x n2 x 8) is equal to or smaller
than 2,048.
[Notes]
If the print buffer contains the data, this command will be ignored. If the bit
image has not been saved in the specified number, this command will be
ignored. Nothing is printed when m is other
[Description]
5-142
GS / m
This command defines the download bit image having the dots specified n1
and n2. The number of horizontal dots is represented by n1 8 and that of
vertical dots is represented by n2 x 8, respectively. m denotes the number to
be registered. (See a download bit image printout.) d denotes the bit image
data. Once the download bit image is defined, it remains valid until it is
redefined or the download deletion command (ESC DC2 n1 n2) is executed.
[Name]
Printing the download bit image
[Format]
ASCII
GS
/
m
Hex
1D
2F
m
0 ≤ m ≤ 255
5-143
CHAPTER 5
CONTROL COMMANDS LIST
5.4.4 Command description for STAR mode (SP500)
ESC GS t n
ESC R n
[Name]
Select code page
[Format]
ASCII
t
n
[Name]
Specify international character set
[Format]
ASCII
ESC
GS
Hex
1B
1D
74
n
Hex
1B
52
n
Decimal
27
29
116
n
Decimal
27
82
n
R
n
[Range]
0 ≤ n ≤ 30
[Range]
0 ≤ n ≤ 10
[Default]
Memory Switch setting
[Default]
Memory Switch setting
[Description]
Specifies code page according to n value.
[Description]
Specifies international characters according to n value.
n
0
1
2
3
4
5
16
17
18
19
21
22
23
24
25
26
27
28
29
30
Page
PC437
Katakana
PC850
PC860
PC863
PC865
WPC1252
PC866
PC852
PC858
PC862
PC864
Thai character code 42
WPC1253
WPC1254
WPC1257
Farsi
WPC1251(*1)
PC737(*1)
PC775(*1)
(*1) Only Font B available.
n
0
1
2
3
4
5
6
7
8
9
10
Character set
U.S.A.
France
Germany
U.K.
Denmark I
Sweden
Italy
Spain I
Japan
Norway
Denmark II
ESC / n
[Name]
Specify/cancel slash zero
[Format]
ASCII
ESC
/
Hex
1B
2F
n
Decimal
27
47
n
n
[Range]
n = 0, 1, 48, 49
[Default]
Memory Switch setting
[Description
Specifies/cancels slash zero according to n value.
n
0,48
1,49
5-76
ESC
Function
Cancels slash zero
Specifies slash zero
5-77
CHAPTER 5
CONTROL COMMANDS LIST
ESC M
ESC SP n
[Name]
Specify 7 x 9 font (half dots) (default)
[Format]
ASCII
ESC
M
Hex
1B
4D
Decimal
27
77
[Range]
------
[Default]
------
[Description]
Specifies 7 x 9 (half dots) fonts
[Name]
[Format]
[Range]
[Default]
[Description]
Specify character space
ASCII
ESC
SP
n
Hex
1B
20
n
Decimal
27
32
n
0 ≤ n ≤ 15
n=1
Sets character right space in n half-dots.
When in double-wide printing, the right space is also double.
SO
[Name]
[Format]
ESC P
[Name]
[Format]
[Range]
Specify 9 x 9 font (half dots)
ESC
P
Hex
ASCII
1B
50
Decimal
27
80
------
[Default]
------
[Description]
Specifies 9 x 9 font (half dots) dot fonts.
[Range]
[Default]
[Description]
Specify character space
ASCII
SO
Hex
0E
Decimal
14
-----Cancel double-wide expanded characters
Prints ANK characters and Chinese characters with characters expanded
twice the normal width.
This command is equivalent to ESC W n (n = 1).
This command is recommended not to apply to 5_9 (3 pulse = 1) dot fonts
because print quality is not guaranteed.
DC4
ESC :
[Name]
[Format]
[Range]
5-78
[Name]
[Format]
Specify 5 x 9 font (3P-1)
ESC
:
Hex
ASCII
1B
3A
Decimal
27
58
------
[Default]
------
[Description]
Specifies 5 x 9 (3 pulse = 1) dot fonts.
This command is recommended not to use because print quality is not
guaranteed.
[Range]
[Default]
[Description]
Cancel double wide printing
ASCII
DC4
Hex
14
Decimal
20
-----Cancel double-wide expanded characters
Cancels expanded wide printing if the following commands specify expanded
wide printing.
- Double wide printing specifying command (SO)
- Set/cancel double wide printing (ESC W)
This command is equivalent to ESC W n (n = 0).
5-79
CHAPTER 5
CONTROL COMMANDS LIST
ESC W n
ESC E
[Name]
Specify/cancel expanded double-wide printing
[Format]
ASCII
ESC
W
n
Hex
1B
57
n
Decimal
27
87
n
[Range]
n = 0, 1, 48, 49
[Default]
n = 0 (Double wide printing cancelled)
[Description]
Specifies/cancels double-wide expanded printing for ANK characters and
Chinese characters, according to an n value.
n
0, 48
1, 49
[Name]
[Format]
[Range]
[Default]
[Description]
Select emphasized printing
ASCII
ESC
E
Hex
1B
45
Decimal
27
69
-----Emphasized printing cancelled
Specifies emphasized printing for subsequent data.
When in emphasized printing, data is printed in two passes.
Function
Cancel double-wide printing
Specify double-wide expanded printing
This command is recommended not to apply to 5 x 9 (3 pulse = 1) dot fonts
decause print quality is not guaranteed.
ESC h n
[Name]
[Format]
[Range]
Specify/cancel expanded double-high printing
ESC
h
n
Hex
ASCII
1B
68
n
Decimal
27
104
n
n = 0, 1, 48, 49
[Default]
n = 0 (Double-high printing cancelled)
[Description]
Specifies/cancels double-high expanded printing for ANK characters and
Chinese characters, according to an n value.
n
0, 48
1, 49
Function
Cancel printing expanded character height
Specify double-high expanded printing
ESC F
[Name]
[Format]
Cancel emphasized printing
ASCII
ESC
Hex
1B
Decimal
27
[Range]
[Default]
[Description]
-----Emphasized printing cancelled
Cancels emphasized printing for subsequent data.
F
46
70
Double-high & wide expanded character printing is possible by combining the
double-wide and double-high expanded character commands.
The line feed amount including the expanded double-high characters is twice
the normal amount.
This command is recommended not to apply to 5 x 9 (3 pulse = 1) dot fonts because
print quality is not guaranteed.
5-80
5-81
CHAPTER 5
CONTROL COMMANDS LIST
ESC - n
ESC 4
[Name]
Specify/cancel underline mode
[Format]
ASCII
ESC
-
n
Hex
1B
2D
n
Decimal
27
45
n
[Range]
n = 0, 1, 48, 49
[Default]
n = 0 (Underline cancelled)
[Description]
Specifies underline according to the n value.
n
0, 48
1, 49
Name]
[Format]
[Range]
[Default]
[Description]
Function
Cancel underline
Specify underline
Underlines are applied to the dot of the character.
Underlines are not applied to horizontal tabs and to specified horizontal direction
positions.
When double-wide expanded characters have been specified, the underline is also
expanded, but if double-high expanded characters have been selected, the underline
does not expand in the vertical direction. It remains a one-dot line.
ESC _ n
[Name]
Specify/cancel upperline
[Format]
ASCII
ESC
_
Hex
1B
5F
n
Decimal
27
95
n
[Range]
n = 0, 1, 48, 49
[Default]
n = 0 (Upperline cancelled)
[Description]
Specifies upperline according to the n value.
n
0, 48
1, 49
n
Function
Cancel upperline
Specify upperline
Upperlines are applied to the dot of the character.
Upperlines are not applied to horizontal tabs and to specified horizontal direction
positions.
When double-wide expanded characters have been specified, the upperline is also
expanded, but if double-high expanded characters have been selected, the upperline
does not expand in the vertical direction. It remains a one-dot line.
5-82
Specify white/black inversion and red color printing
ASCII
ESC
4
Hex
1B
34
Decimal
27
52
-----White/black inversion cancelled/black color printing specified
The following shows the details of this command.
- Specifies white/black inverted printing
Subsequent characters are printed, including the character pitch,
with white and black inverted.
Cautions when using this command:
1) This command is enabled for ANK characters only.
White/black is not inverted for Chinese characters and block graphic
characters.
2) Do not use when ANK fonts are set to 5 x 9 (3P=1).
(Print quality is not guaranteed.)
- Specifies red color printing (Set DIP Switch 1-4 to "ON")
Subsequent characters are printed in red. Red and black characters can
be mixed on the same line.
This command is enabled for all print data
(ANK characters, Chinese characters and bit images).
ESC 5
[Name]
[Format]
[Range]
[Default]
[Description]
Cancel white/black inversion/specify black color printing
ASCII
ESC
4
Hex
1B
35
Decimal
27
53
-----Cancel white/black inverted printing/specify black printing
The following shows the details of this command.
They vary according to the model.
- Cancels white/black inverted printing
- Specifies black color printing
Cancels red color printing and prints subsequent data in black.
5-83
CHAPTER 5
CONTROL COMMANDS LIST
SI
ESC RS i n
[Name]
Select upside-down printing
[Name]
Specify/cancel character rotate mode
[Format]
ASCII
SI
[Format]
ASCI
ESC
RS
Hex
0F
Hex
1B
1E
69
n
Decimal
15
Decimal
27
30
105
n
[Range]
------
[Default]
Upside-down printing cancelled
[Description]
Specifies upside-down printing
This command is enabled only when at the top of the line.
Therefore, upside down and right-side up characters cannot both exist in the
same line.
[Range]
This command is enabled for following.
- ANK characters
- Chinese characters
- Bit-Image
i
n
0≤n≤2
48 ≤ n ≤ 50 ("0" ≤ n ≤ "2")
[Default]
Character rotation cancelled (n = 0)
[Description]
Specifies direction to rotate print (clockwise) or to cancel rotation for
subsequent data, according to the n value.
n
0, 48
1, 49
2, 50
Set rotation
Cancelled (0° rotation)
270° rotation
90° rotation
Rotated characters cannot be applied with underlines or upperlines.
The relationship between double-high and double-wide is reverse to when
cancelled when rotating.
Cautions when character fonts
DC2
[Name]
[Format]
5-84
Cancel upside-down printing
ASCII
DC2
Hex
12
Decimal
18
[Range]
------
[Default]
Upside-down printing cancelled
[Description]
Cancels upside-down printing
This command is enabled only when at the top of the line.
- Characters are printed using 7 x 9 fonts.
- Registered characters are printed using 7 x 9 font for download
characters as well.
- Double height of character is not available when in character rotate mode.
- This command is recommended not to use because print quality is
not guaranteed.
5-85
CHAPTER 5
CONTROL COMMANDS LIST
LF
ESC a n
Name]
Line feed
[Format]
ASCII
LF
[Name]
Feed paper n lines
[Format]
ASCII
Hex
0A
Hex
1B
61
n
Decimal
10
Decimal
27
97
n
a
n
[Range]
------
[Range]
1 ≤ n ≤ 127
[Default]
Set line feed to 1/6 inch
[Default]
------
[Description]
After printing data in the line buffer, paper is fed according to the currently
set line feed amount.
[Description]
After printing data in the line buffer, paper is fed according to the currently
set line feed amount x n. Line feed amount is unaffected even if double-high
characters and double-high/wide characters exist in the same line.
CR
[Name]
[Format]
ESC 0
Carriage return (line feed)
[Name]
[Format]
ASCII
CR
Hex
0D
Decimal
13
[Range]
Set line feed to 1/8 inch
ESC
0
Hex
ASCII
1B
30
Decimal
27
48
------
[Range]
------
[Default]
1/6 inch
[Default]
Set line feed to 1/6 inch
[Description]
Sets subsequent line feeds to 1/8 inch.
[Description]
Specifies the function according to the memory switch value.
MSW
Condition 1
Condition 2
Condition 3
5-86
ESC
Function
Ignored
Same as the LF code
Executes only printing, with no paper feed.
5-87
CHAPTER 5
CONTROL COMMANDS LIST
ESC z 0
ESC 2
[Name]
Set line feed to 1/12 inch
[Format]
ASCII
ESC
z
0
or
ESC
z
"0"
[Name]
Set ESC A line feed pitch
[Format]
ASCII
2
Hex
1B
7A
00
1B
7A
30
Hex
1B
32
Decimal
27
122
0
27
122
48
Decimal
27
50
[Range]
------
[Range]
------
[Default]
1/6 inch
[Default]
------
[Description]
Sets subsequent line feeds to 1/12 inch.
[Description]
Sets one line feed amount to the value defined by ESC A
(n/72 inch pitch line feed definition).
Line feed pitch is set to 1/6 inch if executing this command when ESC A
(n/72 inch pitch line feed definition) is not set.
ESC z 1
[Name]
Set line feed to 1/6 inch
[Format]
ASCII
Hex
Decimal
[Range]
ESC
1B
27
ESC 3 n
z
7A
122
1
01
1
or
ESC
1B
27
z
7A
122
"1"
31
[Name]
[Format]
49
------
[Default]
1/6 inch
[Description]
Sets subsequent line feeds to 1/6 inch.
[Name]
Define n/72 inch pitch line feed
[Format]
ASCII
Set line feed to n/216 inch line feed pitch
ESC
3
n
Hex
ASCII
1B
33
n
Decimal
27
51
n
[Range]
0 ≤ n ≤ 255
[Default]
n = 36 (1/6 inch)
[Description]
Sets subsequent line feed amounts to a value approximate to n/216 inch.
Because the minimum pitch for the paper feed mechanism is 1/144 of an inch,
the setting value will be approximated according to the following equation.
INT (n x 2/3 + 0.5)/144 of an inch
ESC A n
5-88
ESC
ESC y n
ESC
A
n
[Name]
Hex
1B
41
n
[Format]
Decimal
27
65
n
Set line feed to n/144 inch line feed pitch
ESC
y
n
Hex
ASCII
1B
79
n
Decimal
27
121
n
[Range]
0 ≤ n ≤ 85
[Default]
n = 12 (1/6 inch line feed)
[Range]
0 ≤ n ≤ 255
[Description]
Defines line feed amount for one line as n/72 inch.
To enable this code, ESC 2 (line feed pitch setting) is required.
[Default]
n = 24 (1/6 inch)
[Description]
Sets subsequent line feed amounts to a n/144 inch.
5-89
CHAPTER 5
CONTROL COMMANDS LIST
ESC J n
FF
[Name]
Execute n/72 inch paper feed one time
[Name]
Form feed
[Format]
ASCII
[Format]
ASCII
FF
ESC
J
n
Hex
1B
4A
n
Hex
0C
Decimal
27
74
n
Decimal
12
[Range]
1 ≤ n ≤ 255
[Range]
------
[Default]
------
[Default]
------
[Description]
After printing data in the line buffer, paper is fed n/72 of an inch in the paper
feed direction. Line feed amount is unaffected even if double-high characters
and double-high/wide characters exist in the same line.
The single line feed setting value is not changed by this command.
[Description]
This command performs the following operations after the printer prints the
printing data in the line buffer.
Operations are set by the Memory Switch
MSW
Condition 1
Condition 2
Condition 3
Condition 4
Cutter model
Executes a form feed.
Feeds paper to the cutting
position and performs a full cut.
(*1)
Executes a form feed.
Feeds paper to the cutting
position and performs a partial
cut. (*1)
Tear-bar model
Executes a form feed.
Paper is fed to the tear-bar
position. (*2)
Executes a form feed.
Paper is fed to the tear-bar
position. (*2)
(*1) Paper feed to cutting position: Executes a 1 inch paper feed.
ESC I n
[Name]
Execute n/144 inch paper feed one time
[Format]
ASCII
[Range]
5-90
ESC
I
(*2) Paper feed to tear-bar position: Executes a 7/6 inch paper feed.
Refer to the explanations on memory switches in each of the printer’s
product specification manuals for details regarding Memory Switch settings.
n
Hex
1B
49
n
Decimal
27
73
n
1 ≤ n ≤ 255
[Default]
------
[Description]
After printing data in the line buffer, paper is fed n/144 of an inch in the paper
feed direction. Line feed amount is unaffected even if double-high characters
and double-high/wide characters exist in the same line.
The single line feed setting value is not changed by this command.
5-91
CHAPTER 5
CONTROL COMMANDS LIST
ESC C n
VT
[Name]
Set page length to n lines
[Format]
ASCII
ESC
C
n
[Name]
Feed paper to vertical table position
[Format]
ASCII
VT
Hex
1B
43
n
Hex
0B
Decimal
27
67
n
Decimal
11
[Range]
1 ≤ n ≤ 255
[Range]
------
[Default]
1/6 inch x 42
[Default]
------
[Description]
This command sets the length of one page to [currently set line feed
amount x n] lines.
The current position is the top position of the page.
The page length set using this command is unaffected by changing the
form feed amount later.
Moving to the top of the page is performed using the FF (Form Feed) command.
The page length setting becomes effective and the bottom margin setting
value is cleared when the page length is set to a value below the current
bottom margin setting.
[Description]
This command performs paper feeds up to the next vertical tab position after
the printer prints the data in the line buffer.
This command is ignored if there are no tabs set.
If a vertical tab is set, and the current position is the same as the vertical tab
position, or if it is below that position, it feeds paper to the top of the next page.
ESC B n1 n2 nk NUL
[Name]
Set vertical tab
[Format]
ASCII
ESC C NUL n
[Name]
Set page length to n inches
[Format]
ASCII
[Range]
5-92
[Range]
ESC
C
NUL
n
Hex
1B
43
00
n
Decimal
27
67
0
n
1 ≤ n ≤ 127
[Default]
n=7
[Description]
This command sets the length of one page to n inches.
The current position is the top position of the page.
The page length set using this command is unaffected even if the line feed
amount is subsequently changed.
Moving to the top of the page is performed using the FF (Form Feed) command.
The page length setting becomes effective and the bottom margin setting
value is cleared when the page length is set to a value below the current
bottom margin setting.
ESC
B
n1
n2
nk
NUL
Hex
1B
0B
n1
n2
nk
00
Decimal
27
11
n1
n2
nk
0
1 ≤ n ≤ 255
1 ≤ k ≤ 16
[Default]
(Not set)
[Description]
Sets the vertical tab to the (current form feed amount x n) position.
All other vertical tabs set before setting the vertical tab using this command
are cancelled.
A maximum of 16 vertical tabs can be set. However, the tab position must
satisfy the condition of 1 ≤ n1 ≤ n2... ≤ nk. When receiving the illegal codes
that do not satisfy the condition, tabs up to the illegal code are set, but those
after the illegal code are discarded up to the NUL code so illegal code tab are
not set.
The vertical tab set using this command is unaffected by changing the form
feed amount later.
All vertical tabs are cleared by inputting ESC B NUL.
When set, this is unaffected by double-high and double-high/wide character
settings.
5-93
CHAPTER 5
CONTROL COMMANDS LIST
ESC N n
[Name]
[Format]
[Range]
[Default]
[Description]
ESC O
Set bottom margin to n lines
ASCII
ESC
N
n
Hex
1B
4E
n
Decimal 27
78
n
0 ≤ n ≤ 255
n=0
This command sets the bottom margin position to
(current line feed amount x n).
[Name]
[Format]
[Range]
[Default]
[Description]
Cancel bottom margin
ASCII
ESC
O
Hex
1B
4F
Decimal 27
79
-----(Not set)
This command clears the bottom margin set using the ESC N
(set bottom margin to n lines).
The current position when setting is effective from the next page when within the
bottom margin. The bottom margin set using this command is unaffected by
changing the form feed amount.
The set bottom margin is cleared using the ESC N NUL or the ESC O command.
The bottom margin must be a value smaller than that for the length of one page.
If it is higher than the length of one page, the setting is ignored.
Bottom margin of n line Portion of automatic paper feed.
5-94
5-95
CHAPTER 5
CONTROL COMMANDS LIST
ESC l n
ESC Q n
Name]
Set left margin
[Format]
ASCII
ESC
l
n
Set right margin
[Format]
ASCII
ESC
Q
n
Hex
1B
6C
n
Hex
1B
51
n
Decimal
27
108
n
Decimal
27
81
n
[Range]
0 ≤ n ≤ (Right margin -2) ≤ 255
[Range]
2 ≤ n ≤ Maximum printable digits ≤ 255
[Default]
n=0
[Default]
Maximum printable digits
[Description]
This command sets the left margin (current ANK character pitch x n) using
the left edge as a reference after printing data in the line buffer.
Upside-down printing uses the same left edge as a reference.
Setting this command partway will print the data in the line buffer at that point
and perform a line feed. It will take affect from the next line.
Character spacing is included in the character pitch but is unaffected by
expansion settings.
The left margin set using this command is unaffected by changing the
character pitch after being set.
The left margin must be at least a minimum of 18 dots with the right margin
(*1). If the printable region as set by the left and right margins is smaller than
one character, including the space between characters, printing is not
possible.
[Description]
This command sets the printable region (current ANK character pitch x n)
using the left edge as a reference after printing data in the line buffer.
Upside-down printing uses the same left edge as a reference.
Setting this command partway will print the data in the line buffer at that point
and perform a line feed. It will take affect from the next line.
Character spacing is included in the character pitch but is unaffected by
expansion settings.
The right margin set using this command is unaffected by changing the
character pitch.
The printable region within the defined range must be at least a minimum of
18 dots for the right margin (*1). If the printable region as set by the left and
right margins is smaller than one character, including the space between
characters, printing is not possible.
(*1) More than 4 characters of 7 x 9 fonts, and more than 3 characters in
9 x 9 fonts (when character space = 0).
5-96
[Name]
(*1) More than 4 characters of 7 x 9 fonts, and more than 3 characters in
7 x 9 fonts (when character space = 0).
5-97
CHAPTER 5
CONTROL COMMANDS LIST
HT
ESC D n1 n2 nk NUL
[Name]
Move horizontal tab
[Name]
Set horizontal tab
[Format]
ASCII
HT
[Format]
ASCII
Hex
09
Decimal
9
[Range]
------
[Default]
------
[Description]
Move print position to next horizontal tab position.
The current moves to the next tab position when at the horizontal tab position.
This command is ignored with under the following conditions.
- When there is no horizontal tab set :
- When the current position is the same as the furthest right horizontal
tab position or to the right of it.
In the underline/upperline modes, underlines and upperlines are not
printed in the spaces created by a horizontal tab.
[Range]
ESC
D
n1
n2
nk
NUL
Hex
1B
44
n1
n2
nk
00
Decimal
27
68
n1
n2
nk
0
1 ≤ n ≤ Maximum printable digits ≤ 255
0 ≤ k ≤ 16
[Default]
(Not set)
[Description]
Uses the left edge as a standard to set the horizontal tab to the position of
current ANK character pitch x n).
The horizontal tab reference point is the left edge of the paper, regardless of
the left margin.
When upside-down printing is specified, the right side becomes the reference.
ANK character pitches, including right spaces, are unaffected by expansion
settings.
All other horizontal tabs set before setting the horizontal tab using this
command are cancelled.
A maximum of 16 horizontal tabs can be set, but the tab position must satisfy
the following conditions.
If the following conditions are not met, data up to the NUL code is discarded.
Normal tabs that meet the conditions below are set and tabs after errors occur
are not set.
- 1 ≤ n1 ≤ n 2 ≤ nk
- nk ≤ Printable region
The horizontal tab set using this command is unaffected by changing the
character pitch.
All horizontal tabs are cleared by inputting ESC D NUL.
5-98
5-99
CHAPTER 5
CONTROL COMMANDS LIST
ESC GS a n
ESC GS A n1 n2
[Name]
Specify position alignment
[Format]
ASCII
[Range]
ESC
GS
a
n
Hex
1B
1D
61
n
Decimal
27
29
97
n
0≤n≤2
[Name]
Specify absolute position
[Format]
ASCII
[Range]
48 ≤ n ≤ 50 ("0" ≤ n ≤ "2")
ESC
GS
A
n1
n2
Hex
1B
1D
41
n1
n2
Decimal
27
29
65
n1
n2
0 ≤ n1 ≤ 255
0 ≤ n2 ≤ 255
[Default]
n=0
[Default]
------
[Description]
This specifies position alignment for all data in one line, in the set print region.
[Description]
Moves the print position to the dot position based on the left margin
(n1 + n2 x 256).
When printing up-side down, the right margin is the reference. When the print
area has been exceeded, this command is ignored. If print data is duplicated,
the older print data is overwritten by new data (that older data being deleted in
the process). However, bit image data is processed using OR for the old print
data.
n
0, 48
1, 49
2, 50
Position alignment
Left alignment
Center alignment
Right alignment
ESC GS R n1 n2
[Name]
[Format]
[Range]
Specify relative position
ESC
GS
R
n1
n2
Hex
ASCII
1B
1D
52
n1
n2
Decimal
27
29
82
n1
n2
0 ≤ n1 ≤ 255
0 ≤ n2 ≤ 255
5-100
[Default]
------
[Description]
Moves the print position to the dot position based on the left margin
(n1 + n2 x 256).
When the print area has been exceeded, this command is ignored.
If print data is duplicated, the older print data is overwritten by new data
(that older data being deleted in the process).
However, bit image data is processed using OR for the old print data.
5-101
CHAPTER 5
CONTROL COMMANDS LIST
ESC & NUL n1 n2 [m d1 d2 d3 d4 d5 (d6 d7)]n2-n1+1
[Name]
Register/cancel download characters
[Format]
ASCII
[Range]
Set/cancel download characters
[Format]
ASCII
&
NUL
n1
1B
26
00
n1
n2[m d1 d2 d3 d4 d5 (d6 d7)]n2-n1+1
Hex
1B
25
n
Decimal 27
38
0
n1
n2[m d1 d2 d3 d4 d5 (d6 d7)]n2-n1+1
Decimal
27
37
n
ESC
%
n
32 ≤ n1 ≤ n 2 ≤ 127 (20h ≤ n 1 ≤ n 2 ≤ 7Fh)
[Range]
n = 0, 1, 48, 49
m = 0, 128 (00h, 80h)
[Default]
Download character cancelled.
0 ≤ d1~d7 ≤ 255
[Description]
Specifies/cancels download character according to n value.
[Default]
------
[Description]
Registers download characters to the specified character code.
A maximum of 10 download characters of 7 x 9 font and 5 x 9 font can be
registered. The range for writing download characters is specified by n1, n2.
When the registered character is 1 character, n1 = n2. If one has been already
registered to an address, it is overwritten.
This command registers download characters independent to each font.
m indicates the relationship of the character pattern and the print head
(see figure below).
Definition data (d1 to d7) set the bits that correspond to the dots to print to 1,
and the bits that correspond to the dots that are not printed to 0.
Even if ESC @ (command initialization) is executed, a registered download
character is not cleared.
1) When m = 0(00h):
5-102
[Name]
ESC
Hex
n2[m d1 d2 d3 d4 d5 (d6 d7)]n2-n1+1
ESC % n
n
0, 48
1, 49
Function
Cancel download characters
Specify download characters
Print example of download characters
1) Download character register (ESC & NUL n1 n2 m0 m1 m2...)
2) Specify download characters (ESC % n (n = 1))
3) Print download characters
2) When m = 128 (80h):
5-103
CHAPTER 5
CONTROL COMMANDS LIST
ESC K n NUL d1 d2 dn
ESC L n1 n2 d1 d2 dk
[Name]
Standard density bit image
[Format]
ASCII
ESC
K
1B
Decimal 27
Hex
[Range]
n
NUL
d1
d2
dn
4B
n
75
n
00
d1
d2
dn
0
d1
d2
dn
1 ≤ n ≤ Total dot count(200 dots)
[Name]
Double density bit image
[Format]
ASCII
[Range]
0 ≤ d ≤ 255
[Default]
------
[Description]
This command prints bit images with only the data count determined by n.
The amount of data that can be printed in one line is limited to the total dot
count. Data that exceeds the total dot count or the right margin is ignored.
See each printer’s product specifications manual for details regarding the
total dot count.
After printing this bit image, it automatically returns to the character mode.
The following drawing shows the relationship of the print head needle wires
and the data.
5-104
ESC
L
n1
n2
d1
d2
dk
Hex
1B
4C
n1
n2
d1
d2
dk
Decimal
27
76
n1
n2
d1
d2
dk
1 ≤ (n1 + n2 x 256) ≤ Total half dot count(400 half dots)
k = n1 + n2 x 256
0 ≤ d ≤ 255
[Default]
------
[Description]
This command executes double-density (half-dot prints) bit images with only
the data count determined by n1 and n2.
The amount of data that can be printed in one line is limited to the total
half-dot count. Data that exceeds the total half-dot count or the right margin
is ignored. The relationship of the print head needle wires and the data is the
same as ESC K (Standard density bit image).
When printing double-density bit images, dots adjacent in the horizontal
direction do not print.
After printing the bit image, it automatically returns to the character mode.
5-105
CHAPTER 5
CONTROL COMMANDS LIST
ESC d n
ESC BEL n1 n2
[Name]
Paper cut instruction
[Format]
ASCII
[Range]
n
[Name]
Set external drive device 1 pulse width
[Format]
ASCII
ESC
d
Hex
1B
4C
n
Hex
1B
Decimal
27
64
n
Decimal 27
0≤n≤3
[Range]
48 ≤ n ≤ 51 ("0" ≤ n ≤ "3")
[Default]
------
[Description]
This command executes the auto-cut according to the n specification,
after printing data in the line buffer. After auto-cutter is executed, the printer
considers that position to be the top of the page.
0, 48
1, 49
2, 50
3, 51
Auto cutter
Partial cut at the current position.
This command is ignored on tear-bar models.
Partial cut at the current position.
This command is ignored on tear-bar models.
Paper is fed to cutting position, then a Partial cut is executed.
On tear-bar models, paper is fed to the tear-bar position.
Paper is fed to cutting position, then a partial cut is executed.
On tear-bar models, paper is fed to the tear-bar position.
n1
n2
07
n1
n2
7
n1
n2
1 ≤ n1 ≤ 127
1 ≤ n2 ≤ 127
[Default]
Auto cutter n
ESC BEL
n1 = 20 (Energizing time: 200 msec)
n2 = 20 (Delay time: 200 msec)
[Description]
Sets the energizing and delay times for drive of the external device
(such as cash drawers).
Energizing time = 10 x n1 (ms)
After printing, this is executed by BEL (External device 1 drive instruction) or
FS (External device 1 drive instruction (real time)).
This command is ignored when n1 and n2 are out of range.
- n1 = 0 or n2 = 0: This command is ignored.
- When n1 > 128: n1 = 128. When n2 > 128, n2 = 128.
5-106
5-107
CHAPTER 5
CONTROL COMMANDS LIST
BEL
SUB
[Name]
External device 1 drive instruction
[Name]
External device 2 drive instruction (real time)
[Format]
ASCII
[Format]
ASCII
BEL
Hex
07
Hex
1A
Decimal
7
Decimal
26
[Range]
------
[Range]
------
[Description]
Executes the external device drive conditions set according to the
ESC BEL (external device drive pulse width setting command).
As with other commands, this command temporarily stores data in the data
buffer, then executes in the order received.
[Default]
------
[Description]
Drives external device 2. The energizing time and delay time are fixed at 200
ms each. The printer executes this command immediately upon reception.
This command is the same as the EM command.
External device 1 and external device 2 cannot be executed simultaneously.
[Note]
External device 1 and external device 2 cannot be executed simultaneously
[Note]
FS
5-108
SUB
EM
[Name]
External device 1 drive instruction (real time)
[Name]
External device 2 drive instruction (real time)
[Format]
ASCII
FS
[Format]
ASCII
EM
Hex
1C
Hex
19
Decimal
28
Decimal
25
[Range]
------
[Range]
------
[Default]
------
[Default]
------
[Description]
Executes the external device drive conditions set according to the ESC BEL
(external device drive pulse width setting command).
The printer executes this command immediately upon reception.
[Description]
[Note]
External device 1 and external device 2 cannot be executed simultaneously.
Drives external device 2. The energizing time and delay time are fixed at 200
ms each.
The printer executes this command immediately upon reception.
This command is the same as the SUB command.
[Note]
External device 1 and external device 2 cannot be executed simultaneously.
5-109
CHAPTER 5
CONTROL COMMANDS LIST
ENQ
EOT
[Name]
Inquire ENQ status
[Name]
Inquire EOT status
[Format]
ASCII
[Format]
ASCII
Hex
05
Hex
EOT
04
Decimal
5
Decimal
4
[Range]
------
[Range]
------
[Default]
------
[Default]
------
[Description]
This command is effective only when using an interface capable of
bi-directional data communications.
When this command is received, the printer sends the ENQ status in real time
to the host (not taking it from the reception buffer, but executing it immediately
upon reception from the host). Bi-directional parallel interfaces enter a
"data present" state.
[Description]
This command is effective only when using an interface capable of
bi-directional data communications.
When this command is received, the printer sends the EOT status in real time
to the host (not taking it from the reception buffer, but executing it immediately
upon reception from the host). Bi-directional parallel interfaces enter a
"data present" state.
Bit
7
6
5
4
3
2
1
0
5-110
ENQ
Status
Contents
Drawer kick-out connector status
Buffer overflow
Reception Buffer Empty
Fixed at "0"
Paper end
Mechanical error
Framing error
Parity error
"0"
OPEN
No error
Has Data
Paper
No error
No error
No error
Bit
"1"
CLOSE
Overflow
Empty
No paper
Error
Error
Error
7
6
5
4
3
2
1
0
Status
Contents
Fixed at "1"
Paper end
Paper near-end
Fixed at "0"
"0"
"1"
Paper
No error
No paper
Error
-
5-111
CHAPTER 5
CONTROL COMMANDS LIST
Auto status
ESC ACK SOH
[Name]
Inquire status
[Format]
ASCII
Header 1 (First byte)
ESC
ACK
SOH
Hex
1B
06
01
Decimal
27
6
1
[Range]
------
[Default]
------
[Description]
This command is effective only when using an interface capable of
bi-directional data communications. When this command is received,
the printer sends the status in real time to the host (not taking it from the
reception buffer, but executing it immediately upon reception from the host).
Bi-directional parallel interfaces enter a "data present" state. When in the serial
interface DTR mode, and using a parallel interface, set so that the status can
be inquired even when offline for errors, etc. When this command is sent once
to the printer, do not send the next ESC ACK SOH command until the final
auto status has been received.
[Note]
Refer to following tables(Auto status)
Bit
Status
Contents
"0"
7
6
5
4
3
2
1
0
Fixed at "0"
Reserved (Fixed at "0")
Printer status Byte count
Fixed at "0"
Printer status Byte count
Printer status Byte count
Printer status Byte count
Fixed at "0"
"1"
checked
checked
checked
-
Transmission byte count = 9 = 00100011B (23 Hex)
Header 2 (Second byte)
Bit
Status
Contents
"0"
7
6
5
4
3
2
1
0
Fixed at "0"
Version No.
Version No.
Fixed at "0"
Version No.
Version No.
Version No.
Fixed at "0"
"1"
checked
checked
-
Version No.n = 3 = 00000110B (06 Hex)
Printer status 1 Printer status (Third byte)
Bit
7
6
5
4
3
2
1
0
5-112
Status
Contents
Fixed at "0"
OFFLINE by switch input
Cover status
Fixed at "0"
ONLINE/OFFLINE status
Drawer kick-out connector status
<ETB> command
Fixed at "0"
"0"
No
Close
ON-LINE
OPEN
Not executed
-
"1"
Yes
Open
OFF-LINE
CLOSE
Executed
5-113
CHAPTER 5
CONTROL COMMANDS LIST
Printer status 2 Error information (Fourth byte)
Bit
Printer status 5 Sensor information (Seventh byte)
Status
Contents
"0"
7
6
5
4
3
2
1
0
Fixed at "0"
Stopped by high head
temperature
Non-recoverable error
Fixed at "0"
Auto-cutter error
Mechanical error
Not used (Fixed at "0")
Fixed at "0"
Bit
Not stopped
Stopped
No error
Error
No error
No error
Error
Error
7
6
5
4
3
2
1
0
Status
Contents
"1"
Fixed at "0"
Not used (Fixed at "0")
Not used (Fixed at "0")
Fixed at "0"
Not used (Fixed at "0")
Not used (Fixed at "0")
Not used (Fixed at "0")
Fixed at "0"
"0"
"1"
Paper
Paper
No paper
No paper
Printer status 3 Error information (Fifth byte)
Bit
7
6
5
4
3
2
1
0
Status
Contents
Fixed at "0"
Buffer overflow
Not used (Fixed at "0")
Fixed at "0"
Not used (Fixed at "0")
Not used (Fixed at "0")
Not used (Fixed at "0")
Fixed at "0"
"0"
"1"
No error
Error
Printer status 4 Sensor information (Sixth byte)
Bit
7
6
5
4
3
2
1
0
5-114
Status
Contents
Fixed at "0"
Not used (Fixed at "0")
Not used (Fixed at "0")
Fixed at "0"
Paper end
Paper near-end
Not used (Fixed at "0")
Fixed at "0"
"0"
"1"
Paper
Paper
No paper
No paper
5-115
CHAPTER 5
CONTROL COMMANDS LIST
ESC RS a n
ETB
[Name]
Sets auto status transmission conditions
[Format]
ASCII
[Range]
ESC
RS
a
n
Hex
1B
1E
61
n
Decimal
27
30
97
n
0≤n≤3
48 ≤ n ≤ 51 ("0" ≤ n ≤ "3")
[Default]
DIP Switch or Memory Switch setting
[Description]
This command is effective only when using an interface capable of
bi-directional data communications.
Specification 1:
This command sets the auto status transmission conditions in the table below.
The auto status transmission is sent once with this command.
Specification 2:
The function of this command is set by the memory switch.
Memory Switch Condition 1:
Sets the auto status transmission in the table below.
Memory Switch Condition 2:
Sends the auto status transmission once.
Auto status transmission conditions
N
0, 48
1, 49
Status transmission conditions
Auto status invalid
Auto status valid
[Name]
[Format]
[Description]
Update ETB status (check after printing)
ASCII
ETB
Hex
17
Decimal
23
This command is effective only when using an interface capable of
bi-directional data communications.
Specification 1
This command waits until all printing is completed (the print motor is stopped),
and after printing is completed, the auto status printer status 1-1
(ETB command) is set to "1" (ETB execution completed).
When print data remains in the line buffer when executing this command,
this command is executed after that residual data is printed. The host checks
that this bit has become 1 to recognize that the printing of the transmitted
data has been completed. The ETB status bit is cleared to 0 when returned to host.
The following shows the details of the processing with this command.
1)
2)
3)
4)
Read out from the ETB command and reception buffer
Wait for the printing of data to be completed before the ETB command
After checking the end of printing, the auto status ETB status is set
Auto status transmission (only when auto status is valid)
Specification 2
This command waits until all printing is completed (the print motor is stopped).
After printing, auto status 1 - 1 (ETB command) is set to 1 (ETB execution
completed) and the ETB counter is updated. When print data remains in the line
buffer when executing this command, this command is executed after that residual
data is printed. The host checks that this bit has become 1 to recognize that the
printing of the transmitted data has been completed. The ETB status bit is cleared
to 0 when returned to host. Also, ETB is applied to the end of one data block and
batch transmits a multiple of blocks. By getting the next ETB counter, the end of the
printing of the multiple of blocks is recognized to be completed. Note that zero
clearing of the ETB counter is done by the ESC RS E command.
The following shows the details of the processing with this command.
1) Read out from the ETB command and reception buffer
2) Wait for the printing of data to be completed before the ETB command
3) After checking the end of printing, the auto status ETB status is set and the
ETB counter is positively incremented.
4) Auto status transmission (only when auto status is valid)
5-116
5-117
CHAPTER 5
CONTROL COMMANDS LIST
ESC RS E n
DC3
[Name]
Clear the ETB counter and ETB status 30 69 n
[Format]
ASCII
[Range]
ESC
RS
E
n
Hex
1B
1E
45
n
Decimal
27
30
69
n
[Name]
Printer deselect
[Format]
ASCII
Decimal
19
Hex
DC3
13
n=0
[Range]
------
n = 48 ("0")
[Default]
Select printer
[Default]
------
[Description]
[Description]
Clears the ASB ETB counter to zero and clears the auto status 1 — 1 ETB
status.
Deselects printer. All received data is discarded until the next DC1
(printer select) is received.
CAN
DC1
[Name]
print data and initialize commands
[Name]
[Format]
ASCII
[Format]
CAN
Hex
18
Decimal
24
Select printer
ASCII
DC1
Hex
11
Decimal
17
[Range]
------
[Range]
------
[Default]
------
[Default]
Select printer
[Description]
When the reception buffer and line buffer are cleared, the set commands are
initialized. Immediately executed not when taking out from the reception buffer,
but when received from the host.
DIP Switch is not reread.
The following shows the specifications that are not initialized by this command.
[Description]
Cancels the deselect state of the DC3 (printer deselect) and selects the printer.
- DC1 and DC3 select/deselect status
- ESC BEL external device drive conditions
- Auto status valid/invalid conditions
5-118
5-119
CHAPTER 5
CONTROL COMMANDS LIST
ESC @
ESC GS # m N n1 n2 n3 n4 LF NUL
[Name]
Command initialization
[Format]
ASCII
ESC
@
Hex
1B
40
Decimal
27
64
[Name]
Set memory switch
[Format]
ASCII
[Range]
GS
#
m
N
n1
n2
n3
n4
LF NUL
Hex
1B
1D
23
m
N
n1
n2
n3
n4
0A
00
Decimal
27
29
35
m
N
n1
n2
n3
n4
0A
00
[Range]
------
[Default]
------
48 ≤N ≤ 57 ("0" ≤ N ≤ "9"), 65 ≤ N ≤ 70 ("A" ≤ N ≤ "F")
[Description]
Initializes each command after printing data in the line buffer.
DIP Switch is not reread.
The following shows the specifications that are not initialized by this command.
48 ≤ n1 ≤ 57 ("0" ≤ n1 ≤ "9"), 65 ≤ n1 ≤ 70 ("A" ≤ n1 ≤ "F")
- DC1 and DC3 select/deselect status
- ESC BEL external device drive conditions
- Auto status valid/invalid conditions.
[Name]
Select printing direction
[Format]
ASCII
[Range]
ESC
U
48 ≤ n3 ≤ 57 ("0" ≤ n3 ≤ "9"), 65 ≤ n3 ≤ 70 ("A" ≤ n3 ≤ "F")
48 ≤ n4 ≤ 57 ("0" ≤ n4 ≤ "9"), 65 ≤ n4 ≤ 70 ("A" ≤ n4 ≤ "F")
[Default]
------
[Description]
After defining the memory switches using the definition commands determined
in the Class item of the table below, the memory switches are set by sending
this write command. The printer executes a reset automatically after writing the
setting values defined by the write command to the non-volatile memory.
Do not turn the printer power off while writing to the non-volatile memory.
If it is turned off, the memory switch settings will be corrupted and the settings
may return to initial values where the offset value settings are a digit off from
all the memory switch settings. Consider the life of the non-volatile memory
and avoid over-use of this command.
n
Hex
1B
55
n
Decimal
27
85
n
Functions
Definition data (Data specification)
Definition data (Set specified bit)
Data definition (Clear specified bit)
Data definition (Initialize all data)
Data definition write and reset
Data definition write and reset and
self print
0≤n≤1
48 ≤ n ≤ 49 ("0" ≤ n ≤ "1")
[Description]
Executes print direction specified by this command after printing data in the
line buffer.
N
0, 48
1, 49
m = 87, 84, 44, 43, 45, 64 ( m = "W", "T", ",", "+", "-", "@" )
48 ≤ n2 ≤ 57 ("0" ≤ n2 ≤ "9"), 65 ≤ n2 ≤ 70 ("A" ≤ n2 ≤ "F")
ESC U n
Print direction
Specify bi-directional printing
Specify uni-directional printing
Class
Definition
Definition
Definition
Definition
Definition
Definition
m
N
","
N
"+"
N
"-"
N
"@" Fixed at "0"
"W" Fixed at "0"
"T" Fixed at "0"
n1 n2 n3 n4
n1 n2 n3 n4
n1 n2 n3 n4
n1 n2 n3 n4
Fixed at "0000"
Fixed at "0000"
Fixed at "0000"
- m: Mode selection
- N: Memory switch number to specify
- n1 n2 n3 n4: Specify data m = "," Specify data m = "+"
to set m = "-" Bit number to clear.
[Note]
5-120
ESC
Bit number
The status of this command varies according to the model,
so check the special appendix.
5-121
CHAPTER 5
CONTROL COMMANDS LIST
ESC ? LF NUL
5-122
[Name]
Reset printer and execute self print
[Format]
ASCII
ESC
?
LF
NUL
Hex
1B
3F
0A
00
Decimal
27
63
10
0
[Range]
------
[Default]
------
[Description]
Hardware resets the printer and executes on self print.
After sending this command, the next data should not be sent until the printer
is online (in a state wherein it can receive data).
CHAPTER
6
C O N T E N T S
REFERENCE INFORMATION
6.1 Printing specification
6-2
6.2 Paper specification
6-2
6.3 Ribbon cassette specification
6-2
6.4 Electrical characteristics
6-3
6.5 Reliability
6-3
6.6 Environmental
6-3
6.7 Dimensions & Weight
6-4
6.8 Optional features
6-4
CHAPTER 6
Reference information
6.1 Printing specification
6.4 Electrical characteristics
Item
Printing method
Head wire
Dot pitch
Dot wire diameter
Printing direction
Characters per line
Printing speed
Printing width
Line interval
Paper feed method
Printing method Paper feed speed
Character font
Character sets
Item
Supply voltage
Current consumption
(at 24V, except for drawer
kick-out driving
Description
Serial impact dot matrix method
9pin serial type
0.352 mm (1/72")
0.3 mm (0.01")
Bidirectional(logic seeking) with friction feed
Max. 42(characters)
5.3 LPS (Lines Per Second) at 40 column
63.34 mm (2.49")
4.233 mm (1/6")
Friction feed
Approximately 158 mm (6.2")
7x9/9x9
Alphanumeric characters : 95
International characters : 32
Extended graphics : 128 x 12 pages
6.5 Reliability
Item
6.2 Paper roll specification
Item
Head
Description
Paper roll
76 ±0.5, 69.5 ±0.5, 57.5 ±0.5 mm (2.99 ±0.22, 2.74 ±0.22, 2.26 ±0.22")
0.06 ~ 0.09 mm (0.002~0.003")
ø 83 mm (3.27")
ø 10 ~ 12.5 mm
6.3 Ribbon cassette specification
Item
Standard
Color
Size
Life
Description
MTBF
Remark
The printer will run its best when stored and operated in an environment that meets the following
temperature and humidity conditions:
Item
Continuous printing 7 x 9 font
ASCII
25°C
Relative Humidity
Temperature
Malfunctions and other problems may arise if other than specified ribbon cassettes are
used in the printer. The new settings take effect when you turn on the printer.
6-2
Description
Mechanism :18,000,000 lines
Auto cutter : 1,000,000 cuts
(End of life is defined as the point at which the printer reaches the beginning
of the Wear out Period.)
15,000,000 characters
(Using an average of 2 dots/wire per character.)
300,000 hours
(Failure is defined as Random Failure occurring at the time of the
Random Failure Period.)
6.6 Environmental
ERC-38 (Black / Red)
Black & Red
13 mm (W) x 6 mm (L)
Black : 1,500,000 characters
Red : 750,000 characters
Standby
Maximum 1A for drawer kick-out driving
Life
Firing frequency
Type
Paper width
Thickness
Roll outside diameter
Paper core inside diameter
Operating
Description
24V DC ± 10%
Mean : Approximately 0.5A
Peak : Approximately 1.5A
Mean : Approximately 0.3A
Operating
Storage
Shipping
Operating
Storage
Shipping
Description
: 10 ~ 90 % RH (Non-condensing)
: 10 ~ 90 % RH (Non-condensing)
: 5 ~ 90 % RH (Non-condensing)
: 0°C to 50°C (32 ~ 122°F)
: -10°C to 50°C (14 ~ 122°F)
: -40°C to 70°C (-40 ~ 158°F)
6-3
CHAPTER 6
Reference information
6.7 Dimensions & weight
Dimensions
Item
Dimensions (mm)
W
D
H
160
239
157
Weight
Approx. Wt. : 2.6 kg
Shipping Wt. : 3.4 kg
6.8 Optional features
The optional features either replace a standard feature or enhance the operation of the printer.
All optional features are installed at the factory and must be selected when the printer is ordered.
- Auto cutter (SRP-275A : Exclude auto cutter, SRP-275C : Including auto cutter)
- Interface (Serial / Parallel / USB / Ethernet)
- Cabinet color (Ivory / Dark gray)
- Wall mount
6-4
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement