Custom Audio Electronics TPTCM60-UC, TPTCM112-SC, TPTCM112-PC, TPTCM112-SE, TPTCM112-UC User Manual

...
Page 1
Kiosk and ticket printer
TPTCM
60 mm / 112 mm
User Manual
www .custom.it
TPTCM
Page 2
All rights reserved. Total or partial reproduction of this manual in whatever form, whether by printed or electronic means, is forbidden. While guarantee­ing that the information contained in it has been carefully checked, CUSTOM ENGINEERING SPA and other entities utilized in the realization of this manual bear no responsibility for how the manual is used. Information regarding any errors found in it or suggestions on how it could be improved are appreciated. Since products are subject to continuous check and improvement, CUSTOM ENGINEERING SPA reserves the right to make changes in information contained in this manual without prior notification.
COD. DOME-TPTCM REV. 1.11 Copyright 2002 CUSTOM ENGINEERING SPA – Italy CUSTOM ENGINEERING SPA
Str. Berettine 2 - 43010 Fontevivo (PARMA) - Italy Tel.: +39 0521-680111 - Fax: +39 0521-610701 http: www .custom.it
Customer Service Department: Tel.: +39 0521-680163 - Fax: +39 0521-680146 Email: support@custom.it
TPTCM
Page 3
1
81192101276345
PRINTER COMPONENTS
A. TPTCM60-xC
(1)
– Front external view
1- Paper roll support 2- Printer frame 3- Near paper end led 4- Status led 5- “Power on” led 6- “Form Feed” Key 7- “Line Feed” Key 8- Paper input 9- Printing mechanism 10- Motor 11- Cutter 12- Paper outfeed
(1)
The x suffix indicates the following models :
- TPTCM60-SC (version with serial interface)
- TPTCM60-PC (version with parallel interface)
- TPTCM60-UC (version with USB interface)
TPTCM
Page 4
8
119121013127634
5
B. TPTCM60-xE
(2)
– Front external view
1- Paper roll 2- Printer frame 3- Near paper end led 4- Status led 5- “Power on” led 6- “Form Feed” key 7- “Line Feed” key 8- Paper input 9- Printing mechanism 10- Motor 11- Cutter 12- Dispenser unit 13- Paper outfeed
(2)
The x suffix indicates the following models :
- TPTCM60-SE (version with serial interface)
- TPTCM60-PE (version with parallel interface)
- TPTCM60-UE (version with USB interface)
TPTCM
Page 5
8119634512710
12
C. TPTCM112-xC
(3)
- Front external view
1- Paper roll 2- Printer frame 3- Near paper end led 4- Status led 5- “Power on” led 6- “Form Feed” key 7- “Line Feed” key 8- Paper input 9- Printing mechanism 10- Motor 11- Cutter 12- Paper outfeed
(3)
The x suffix indicates the following models :
- TPTCM112-SC (version with serial interface)
- TPTCM1 12-PC (version with parallel interface)
- TPTCM112-UC (version with USB interface)
TPTCM
Page 6
811912710
13
12
634
5
D. TPTCM112-xE
(4)
– Front external view
1- Paper roll 2- Printer frame 3- Near paper end led 4- Status led 5- “Power on” led 6- “Form Feed” key 7- “Line Feed” key 8- Ingresso carta 9- Printing mechanism 10- Motor 11- Cutter 12- Dispenser unit 13- Paper outfeed
(4)
The x suffix indicates the following models :
- TPTCM112-SE (version with serial interface)
- TPTCM1 12-PE (version with parallel interface)
- TPTCM112-UE (version with USB interface)
TPTCM
Page 7
1
2
3
123
123
E. Rear external view with RS232 serial interface
1- RS232 serial connector 2- Near paper end sensor connector 3- Power supply connector
F. Rear external view with USB serial interface
1- USB serial connector 2- Near paper end sensor connector 3- Power supply connector
G. Rear external view with Centronics parallel interface
1- Centronics parallel connector 2- Near paper end sensor connector 3- Power supply connector
TPTCM
Page 8

TABLE OF CONTENTS

INTRODUCTION
MANUAL CONTENTS .................................................................................... 1
EXPLANATORY NOTES USED IN THIS MANUAL ......................................1
GENERAL SAFETY INFORMATION ............................................................. 1
UNPACKING THE PRINTER ......................................................................... 2
PRINTER FEATURES ...................................................................................3
PRINTER DESCRIPTION .............................................................................4
1. INSTALLATION AND USE
1.1 CONNECTIONS................................................................................... 1-1
1.1.1 Power Supply................................................................................. 1-1
1.2 SELF-TEST .......................................................................................... 1-2
1.3 CONFIGURATION ............................................................................... 1-4
1.4 HEXADECIMAL DUMP ........................................................................ 1-5
1.5 MAINTENANCE .................................................................................... 1-6
1.5.1 Changing the paper roll.................................................................. 1 - 6
2. INTERFACES
2.1 RS232 SERIAL .................................................................................... 2-1
2.2 USB SERIAL INTERFACE .................................................................. 2-3
2.3 CENTRONICS PARALLEL .................................................................. 2-4
3. PRINTER FUNCTIONS
3.1 PRINTING MODES.............................................................................. 3-1
3.2 CONTROL CHARACTERS ................................................................. 3-2
3.2.1 Custom TPT emulation ................................................................. 3 -2
3.2.2 ESC/POS emulation ..................................................................... 3-2
4. TECHNICAL SPECIFICATIONS
4.1 TECHNICAL SPECIFICATIONS ......................................................... 4-1
4.2 DIMENSIONS ....................................................................................... 4-3
i
TPTCM
Page 9
TABLE OF CONTENTS
5. CHARACTER SETS
5.1 CHARACTER SETS ............................................................................ 5-1
APPENDIX A - ACCESSORIES AND SPARE PARTS
A.1 ACCESSORIES................................................................................... A-1
A.1.1 Power supply for TPTCM60x model printers................................ A-1
A.1.2 Power supply for TPTCM112x model printers.............................. A-2
A.1.3 Plastic dispenser ........................................................................... A-4
A.1.4 Positionable roll holder support..................................................... A -6
A.2 SUPPLIES ......................................................................................... A-10
TPTCM
ii
Page 10

INTRODUCTION

MANUAL CONTENTS
In addition to the Introduction which includes a description of the explanatory notes used in the manual, general safety information, how to unpack the printer and a brief description of the printer including its basic features, this manual is organized as follows:
Chapter 1: Contains the information required for correct printer installation
and its proper use Chapter 2: Contains information on interface specifications Chapter 3: Contains a description of the printer command set Chapter 4: Contains Technical Specifications of the printer Chapter 5: Contains the character sets (fonts) used by the printer
EXPLANATORY NOTES USED IN THIS MANUAL
N.B.
Gives important information or suggestions relative to the use of the printer.
W ARNING
Information marked with this symbol must be carefully followed to guard against damaging the printer.
DANGER
Information marked with this symbol must be carefully followed to guard against operator injury or damage.

GENERAL SAFETY INFORMATION

Read and keep the instructions which follow.
Follow all warnings and instructions indicated on the printer.
Before cleaning the printer, disconnect the power supply.
Clean the printer with a damp cloth. Do not use liquid or spray products.
Do not operate the printer near water.
Do not use the printer on unstable surfaces that might cause it to fall and
be seriously damaged.
1
TPTCM
Page 11
INTRODUCTION
Only use the printer on hard surfaces and in environments that guarantee proper ventilation.
Make sure the printer is placed in such a way as to avoid damage to its wiring.
Use the type of electrical power supply indicated on the printer label. If in doubt, contact your retailer.
Do not block the ventilation openings.
Do not introduce foreign objects of any kind into the printer as this could
cause a short circuit or damage parts that could jeopardize printer functioning.
Do not spill liquids onto the printer.
Do not carry out technical operations on the printer, with the exception of
the scheduled maintenance procedures specifically indicated in the user manual.
Disconnect the printer from the electricity supply and have it repaired by a specialized technician when:
A. The feed connector has been damaged. B. Liquid has seeped inside the printer. C. The printer has been exposed to rain or water. D. The printer is not functioning normally despite the fact that all
instructions in the users manual have been followed. E. The printer has been dropped and its outer casing damaged. F. Printer performance is poor. G. The printer is not functioning.
UNPACKING THE PRINTER
Remove the printer from its carton being careful not to damage the packing material so that it may be re-used if the printer is to be transported in the future. Make sure that all the components listed below are present and that there are no signs of damage. If there are, contact Customer Service.
1. Printer
2. Manual (or CD-Rom)
3. Paper roll
TPTCM
2
Page 12
INTRODUCTION

PRINTER FEATURES

SYMBOL LEGEND: The symbol @ indicates the TPTCM60x The symbol A indicates the TPTCM112x
The TPTCM printer series is comprised of printers designed to emit high­resolution thermal-printed tickets ideal for use in information and multimedia kiosks, self-service machines, no-queue systems, parking areas, gaming machines and toll receipt machines. Two ticket presentation systems are available on the TPTCM series:
- Motor-driven dispenser with sensors on the dispenser that holds the ticket while it is being printed and then delivers it once it has been cut. Ideal for those systems requiring a variable-length ticket.
- Static presenter: Delivers and manages ticket presence using a paper sensor in outfeed. Ideal for those systems in which printed ticket length is fixed.
The TPTCM series offers a wide range of options in addition to normal print features:
High speed printing: @ 140mm/sec,A 120 mm/sec.
ESC/POS and CUSTOM TPT emulation.
Bar code UPC-A. UPC-E, EAN13, EAN8, CODE39, ITF, CODABAR,
CODE93, CODE128 and CODE32.
6 standard and international character set fonts.
Completely- or partially-programmable fonts.
Double width/height, quadruple width/height, expanded, italic, rotated
90°, 180° and 270°.
Receive buffer: 16Kbytes.
Definition of function macros for automatic operation repetition.
Internal programmable counter.
Graphic print mode.
Print density.
3 programmable logos: @ (448 x 585 dots) or A (832 x 314 dots).
Paper cutter.
Positionable paper roll holder.
Plastic paper outfeed slot.
3
TPTCM
Page 13
INTRODUCTION
2
1359648
7

PRINTER DESCRIPTION

The TPTCM printers (fig.1) are comprised of a metal frame (1), paper roll holder (2), printing mechanism (3) and cutter (4). The following keys are located on the control panel: FORM FEED (5), LINE FEED (6), “Power On” LED (7), Paper Low LED (8) and “Status” LED (9).
(Fig.1)
When the LINE FEED (6) key is pressed, the printer advances the paper so that it may be inserted manually in the printing mechanism. During power-up, if the LINE FEED key is held down, the printer will perform the FONT TEST routine.
If the FORM FEED (5) key is enabled, when it is pressed the printer advances the paper the number of increments programmed in the Eeprom.
TPTCM
4
Page 14
INTRODUCTION
f the FORM FEED key is not enabled and the printer is in Custom Emulation mode, when the key is pressed, the code 12 (HEX 0C) is transmitted on the RS232 serial line. This function may be modified by the ESC = software command (see section on software commands).
During power-up, if both keys are held down, the printer enters the print
setup routine. Following the print-out of the setup report, the printer remains in standby until a key is pressed or signals arrive from the serial port; each 10 characters it prints out hexadecimal and ASCII codes (if the characters are underlined, the receive buffer is full); see Receive buffer hexidecimal print-out
The “Power On” LED (green) indicates that the printer is on.
The Paper Low LED (red) indicates that the paper is about to run out.
The “Status” LED (yellow) indicates printer status; the check is made
on-line. Given in the table below are the various LED signals and the corresponding printer status.
sutatsDELsutatsDEL
sutatsDELsutatsDELnoitpircseDnoitpircseD
sutatsDEL
ydaetSNOretnirP- noitcnuflamon
gniknilbdipaRgnitaehrevO
gniknilbwolS( doirepdednetxeroftil) egassem"repaPoN"
gniknilbwolS( )doireptrohsroftilsdrawpudenrutdaeH
ffosniameRnoitcnuflamretnirP
noitpircseDnoitpircseD
noitpircseD
(Tab.1)
5
TPTCM
Page 15

1. INSTALLATION AND USE

Pin 1
J5

1.1 CONNECTIONS

(Fig.1.1)

1.1.1 Power supply

For the power supply, the printer is equipped with a male, 90° mobile screw (pitch 5.08mm) terminal (J5). The signals on the power suppy connector pins are as follows:
W ARNING:
Respect power supply polarity.
(T ab.1.1)
.onniP.onniP
.onniP.onniPlangiSlangiS
.onniP
langiSlangiS
langiS
22222
11111
DNG
ylppusrewopccV42
TPTCM11-
Page 16
1. INSTALLATION AND USE

1.2 SELF-TEST

Printer operating status is indicated in the configuration print-out in which, next to the name of the components displayed (see figures 1.2 and 1.3), the following information is given:
• under INTERFACE is given the interface present (RS232, CENTRONICS,
(1)
USB
).
• under EEPROM TEST and CUTTER TEST, the message OK appears if
functioning and NOT OK if faulty.
• under EJECTER TEST, the message OK appears if functioning, NONE if
not present and NOT OK if faulty.
• under HEAD TEMPERATURE is given the temperature of the head.
• under PAPER PRINTED is given the number of centimeters of paper printed.
• under CUT COUNTER is given the number of cuts made.
• under POWER ON COUNTER is given the number of power-ups made.
(1)
NOTE: If the printer has a USB interface and the cable is
plugged into the printer connector, the message USB will appear next to the address assigned by the Host to the USB peripheral device in use (see fig. 1.3).
TPTCM 21-
Page 17
1. INSTALLATION AND USE
Model with serial interface Model with USB interface
* PRINTER SETUP *
INTERFACE............................: RS232
EEPROM TEST ...................... : OK
CUTTER TEST ...................... : OK
EJECTER TEST .....................: OK
HEAD TEMPERA TURE [°C].: 22.5
P APER PRINTED [cm]..........: 9860
CUT COUNTER.....................: 604
POWER ON COUNTER........:135
Printer emulation : CUSTOM TPT Baud Rate Data length Parity Handshaking Autofeed : CR disabled Panel key : Enabled Print Mode : Normal Height Mode : x 1 Width Mode : x 1 Justification : Left Character set : U.S.A. Font Dimension : 16x24 28 col Speed / Quality : Normal Current : Normal Paper autoload : Enabled Reset buffer : At Paper End Print Density : Normal
(2)
(2)
(2)
(2)
: 9600 bps : 8 bits/chr : None : Xon/Xoff
* PRINTER SETUP *
INTERFACE............................: USB : 2
EEPROM TEST ...................... : OK
CUTTER TEST ...................... : OK
EJECTER TEST .....................: OK
HEAD TEMPERA TURE [°C].: 22.5
P APER PRINTED [cm]..........: 9860
CUT COUNTER.....................: 604
POWER ON COUNTER........:135
Printer emulation : CUSTOM TPT Autofeed : CR disabled Panel key : Enabled Print Mode : Normal Height Mode : x 1 Width Mode : x 1 Justification : Left Character set : U.S.A. Font Dimension : 16x24 28 col Speed / Quality : Normal Current : Normal Paper autoload : Enabled Reset buffer : At Paper End Print Density : Normal
[FF] Key to enter setup [LF] Key to skip setup
(1)
[FF] Key to enter setup [LF] Key to skip setup
(Fig.1.2)
(2)
If the printer has an USB interface, the serial interface configura
tion parameters are not displayed.
(Fig.1.3)
TPTCM31-
Page 18
1. INSTALLATION AND USE
.l
.l
.l
.l
.l
.l
.l
.l
.l
.l

1.3 CONFIGURATION

This printer permits the configuration of default parameters. The printer’s configurable parameters are:
D
Printer emulation: ESC/POS, CUSTOM TPT
If a serial interface is present:
Baud Rate: 57600, 38400, 19200, 9600 D, 4800, 2400, 1200.
Data length: 7, 8 bits/char D.
Parity: None D, even or odd.
Handshaking: XON/XOFF D or Hardware.
If a parallel interface is present:
Select line: Select D, Ticket Present, Paper Low.
Fault line: Error D, Ticket Present, Paper Low.
.
Autofeed: CR deactivated D or CR activated.
Panel keys: Activated D or deactivated.
Print mode: Normal D or Reverse.
Height mode: x1 D , x2 or x4.
Width mode: x1 D, x2 or x4.
Justification: Left D, Centered or Right.
With ESC/POS emulation:
Char/line: @ A=32 / B=42 columnsD or A=42 / B=56 columns
A A=58 / B=82 columnsD or A=82 / B=104 columns
With CUSTOM TPT emulation:
Font Size:
oc65
oc65
oc65
oc65
oc65
.loc43.loc43
.loc43.loc43.loc25.loc25
.loc43
.loc25.loc25
.loc25
e
23x4242x6161x8
d
.loc81.loc81
.loc81.loc81.loc82.loc82
.loc81
.loc82.loc82
.loc82
23x4242x6161x8
oc401
oc401
oc401
oc401
oc401
Speed/Quality: Normal D, Draft or High Quality.
Paper Autoload: Deactivated D or Activated.
Reset buffer: Not implemented, At paper end D.
Print density: Normal D, Light, Very light, Dark, Very dark, Double copy.
TPTCM 41-
Page 19
1. INSTALLATION AND USE
General notes:
1)
The parameters marked with the symbol D are the default values.
2)
The symbol @ indicates the TPTCM60x
3)
The symbol A indicates the TPTCM112x
4)
Settings remain active even after the printer has been turned off.
The settings made are stored in EEPROM (nonvolative memory). During power-up, if both the LINE FEED and FORM FEED keys are held down, the printer enters configuration mode and prints-out the setup report; it will remain in standby until a key is pressed or characters are received through the communication port (see Hexadecimal dump). When the LINE FEED key is pressed, the printer skips the setup mode and terminates the Hexadecimal dump function. When the FORM FEED key is pressed, the printer enters the parameter entry mode.

1.4 HEXADECIMAL DUMP

This function is used to diagnose the characters received through the communication port; the characters are printed out both as hexadecimal codes and ASCII codes. Once the self-test routine has finished, the printer enters Hexadecimal Dump mode. The printer remains in standby until a key is pressed or characters are received through the communication port. For every 10 characters received, the hexadecimal and corresponding ASCII codes are printed out (if the characters are underlined, the receive buffer is full).
Shown below is an example of a Hexadecimal Dump:
48 65 78 61 64 65 63 69 6D 61 Hexadecima 6C 20 64 75 6D 70 20 66 75 6E l dump fun 63 74 69 6F 6E 20 30 31 32 33 ction 0123 34 35 36 37 38 39 61 62 63 64 456789abcd 65 66 67 68 69 6A 6B 6C 6D 6E efghijklmn 6F 70 71 72 73 74 75 76 77 78 opqrstuvwx 79 7A yz
TPTCM51-
Page 20
1. INSTALLATION AND USE
312
4

1.5 MAINTENANCE

1.5.1 Changing the paper roll

Depending on how the printer “Paper Autoload” parameter is set, one of two procedures must be followed:
If enabled: Position the paper roll (1), so that it unrolls correctly as shown in fig. 1.4; insert the paper into the infeed slot (3) and wait for the roll to load automatically.
If not enabled, proceed as follows:
1) Position the paper roll (1), so that it unrolls correctly as shown in fig. 1.4;
2) Raise the print head by lifting the lever (2) in the direction indicated by the arrow;
(Fig.1.4)
3) Insert the end of the paper roll into the infeed slot (3) and have it pass beyond the print head;
4) Lower the head lever (3) and press the LINE FEED key (4), so that the paper will feed a few centimeters out of the printer.
TPTCM 61-
Page 21
1. INSTALLATION AND USE
ATTENTION
Before inserting the paper, make sure it is cut cleanly.
(Fig.1.5)
TPTCM71-
Page 22
2. INTERFACES
12345
987
6
USB
SERIAL
)
s
"
!
(Fig.2.1)

2.1 RS232 SERIAL

The printer has an RS232 serial interface and is connected by means of a 9 pin female connector (see fig. 2.). In the following table, the signals present on the connector are listed:
NIPNIP
NIPNIPLANGISLANGIS
NIP
11111 DCDtuptuODCDevitca(NOretnirP.tcetedreirraCataD
22222 DXTtuptuODXR 33333 DXRtupnIDXT
44444 .C.N-.C.NdetcennoctoN 55555 DNG-DNGlangisdnuorG
LANGISLANGISNOITCERIDNOITCERID
LANGIS
NOITCERIDNOITCERIDOTOTOTOTOTNOITPIRCSEDNOITPIRCSED
NOITCERID
)tsoH
NOITPIRCSEDNOITPIRCSED
NOITPIRCSED
(T ab.2.1)
)hgih232SRlevelta
tsoHmorf(tuptuolaireS.atadevieceR
drawot(tupniatadlaireS.atadtimsnarT
66666 RSDtuptuORSDdnanoretnirP.ydaeRteSataD
.)hgihlevel232SRtaevitca(gnitarepo
77777 .C.N-.C.NdetcennoctoN 88888 STRTUOSTCatadeviecerotydaeR.dnesotraelC
)levelhgih232SRtaevitca(
99999 .C.N-.C.NdetcennoctoN
TPTCM12-
Page 23
2. INTERFACES
SIGNAL GND
TXD
DCD
CTS
DSR
8
975
63421
8
975
63421
RXD
SIG NAL GND
RXD
DCD
CTS
DSR
897563421
TXD
12345678910111213141516171819202122232425
The following diagrams show examples of connections between the printer and the Personal Computer using 25 and 9 pin female connectors.
(Fig.2.2)
TPTCM60-Sx / PC TPTCM112-Sx
(Fig.2.3)
TPTCM60-Sx / PC TPTCM112-Sx
TPTCM 22-
Page 24
2. INTERFACES

2.2 USB SERIAL INTERFACE

Printers with USB serial interface conform to USB 1.0 standards and have the following specifications:
Communication speed 12 Mbit/sec
“Receptacle series B”-type connector.
Refer to the table below for the connector pin signals and connection to a device:
NIPNIP
NIPNIPLANGISLANGIS
NIP
11111 22222 33333 44444
llehSllehS
llehSllehS
llehS
LANGISLANGISNOITPIRCSEDNOITPIRCSED
LANGIS
SUBV.C.N
-D-ataD
+D+ataD
DNGlangisdnuorG
dleihSdleihselbaC
NOITPIRCSEDNOITPIRCSED
NOITPIRCSED
Fig. 2.4 illustrates USB interface connector pin layout:
"
!
(Fig.2.4)
(T ab.2.2)
TPTCM32-
Page 25
2. INTERFACES

2.3 CENTRONICS PARALLEL

The printer has a Centronics parallel interface and is connected by means of a 25-pin female connector (see fig. 2.4). In the following table, the signals present on the connector are listed:
NIPNIP
NIPNIPELANGESELANGES
NIP
11111 ebortStupniebortS 22222 0D0tibtupniataD 33333 1D1tibtupniataD 44444 2D2tibtupniataD 55555 3D3tibtupniataD
ELANGESELANGESENOIZNUFENOIZNUF
ELANGES
ENOIZNUFENOIZNUF
ENOIZNUF
(T ab.2.3)
66666 4D4tibtupniataD 77777 5D5tibtupniataD 88888 6D6tibtupniataD 99999 7D7tibtupniataD
0101010101 KCAegdelwonkcA 1111111111 YSUBysuB 2121212121 EPdnerepaP 3131313131 TCELESdnerepapraeN/ecneserptekciT/tceleS 4141414141 .C.NdetcennoctoN 5151515151 TLUAFdnerepapraeN/ecneserptekciT/tluaF 6161616161 TESERteserretnirP 7171717171 DNGDNG 8181818181 .C.NdetcennoctoN
)*()*(
)*()*(
)*(
)*()*(
)*()*(
)*(
52-9152-91
52-9152-91 DNGDNG
52-91
For the parallel connector, the connection between printer and Personal Computer, must be made with a 25- pin- to- pin connector.
TPTCM 42-
Page 26
2. INTERFACES
13125
14
(*) NOTE : Functions selecting through the parameter setting mode to the start. The signals Select and Fault respond to the logic of functioning of the Centronics parallel port. The signal “Ticket Presence “ is high if the ticket is present on the mouth of exit; the signal “Near paper end” is high when the RED LED has turned on.
(Fig.2.5)
TPTCM52-
Page 27

3. PRINTER FUNCTIONS

TPT CM
Ticket printer

3.1 PRINT DIRECTION

The printer has two printing directions which can be selected by means of the control characters:normal and reverse.
PAPER OU TFEED DIRECTIO N
(Fig.3.1)
Ticket printer TPT CM
TPTCM13-
Page 28
3. PRINTER FUNCTIONS

3.2 COMMANDS DESCRIPTION

3.2.1 Custom TPT Emulation

The following table lists all the commands for function management in Cus­tom TPT Emulation of the printer. The commands can be transmitted to the printer at any moment, but they will only be carried out when the commands ahead of them have been executed. The commands are carried out when the circular buffer is free to do so.
(T ab.3.1)
IICSAIICSA
IICSAIICSAXEHXEH
IICSA
COMMAND DESCRIPTION TABLE
XEHXEHnoitpircseDnoitpircseD
XEH
FLA0$deefenildnatnirP
TVB0$batlacitreV FFC0$deefmroF
RCD0$nruteregairracdnatnrP
NAC81$reffubenilslecnaC
n!CSE)n(12$B1$edomtnirpsteS
#CSE8n1n32$B1$egapcihpargniatadsevieceR
2n1n$CSE2n1n42$B1$noitisoptnirpedocrabsteS
n%CSE2n1n52$B1$egapcihpargstnirP
LnmA2$B1$
HnLnm*CSE
Hn
noitpircseDnoitpircseD
noitpircseD
edomegamitibsteS
2n1n+CSE2n1nB2$B1$edomcihparg-imesnistnirP n4CSE)n(43$B1$edomtpircssteser/steS n=CSE)n(D3$B1$yekdeefmrofselbasid/selbanE n?CSE)n(F3$B1$gnittesretnirpstseuqeR
@CSE04$B1$retnirpehtsteseR
2n1nACSE2n1n14$B1$rotomgnippetssevoM
nDCSEn44$B1$ytilibtisnesrepaptluafedsteS
nFCSEn64$B1$
nGCSE)n(74$B1$edomekirts-elbuodsteser/steS
nNCSE)n(E4$b1$edomevitagensteS
TPTCM 23-
knabmarotniknabhsalfseipoC
)setyB61(
Page 29
3. PRINTER FUNCTIONS
IICSAIICSA
IICSAIICSAXEHXEH
IICSA
PCSE05$B1$)SETYB48361(tropmorfknabmarslliF
nRCSE)n(25$B1$esunitnofsteS nSCSE)n(35$B1$esuniytilibisnesrepapsteS nUCSE)n(55$B1$edomenilrednusteS nVCSE)n(65$B109ybdetatoredomtnirpsteS
WCSE75$B1$eniltodcihpargastnirP
2n1nZCSEhNINC5$B1$rebmunspetsdeefmrofsteS
HnLn\CSEHnLnC5$B1$noitisoptnirpevitalersteS
naCSE)n(16$B1$noitacifitsujstceleS
n4cCSE)n(43$36$B1$gnitnirppotsotrosnesrepapstceleS n5cCSE)n(53$36$B1$snottublenapselbasid/selbanE
XEHXEHnoitpircseDnoitpircseD
XEH
noitpircseDnoitpircseD
noitpircseD
ndCSE)n(46$B1$senilnrepapdeefdnastnirP
nfCSE)n(66$B1$tnoftluafedsteS
ngCSE)n(76$B1$edomgnitnirpdersteser/steS iCSE96$B1$yletelpmocrepapstuC mCSED6$B1$yllaitraprepapstuC
nrCSE)n(27$B1$
sCSE37$B1$)setybk61(tropotknabmarsdneS vCSE67$B1$sutatsretnirptimsnarT zCSEA7$B1$eulavbatlacitrevsteS
n{CSE)n(B7$B1$
|CSEC7$B1$egapcihpargslecnaC
HxLxn·CSE
LyHy
LyHy
HxLxnAF$B1$
knabhsalfotniknabmarseipoC
)setybk61(
retcarahcnwod-edispulecnac/steS
gnitnirp
knabcihpargstnirP
HnLn¹CSEHnLnBF$B1$troplairesotknabmarstimsnarT
n³CSE)n(CF$B1$knabmarotniknabhsalfsrefsnarT
HnLn²CSEHnLnDF$B1$troplairesmorfknabmarsevieceR
n¦CSE)n(EF$B1$knabhsalfotniknabmarsrefsnarT
:SGA3$D1$noitinifedorcamfodne/tratssteS
mn0CSGmn03$34$D1$edomtnirpretnuocstceleS
TPTCM33-
Page 30
.moCIICSA.moCIICSA
.moCIICSA.moCIICSA.moCXEH.moCXEH
.moCIICSA
3. PRINTER FUNCTIONS
.moCXEH.moCXEHnoitpircseDnoitpircseD
.moCXEH
noitpircseDnoitpircseD
noitpircseD
HaLa1CSG
rnHbLb
r
HnLn2CSG
HnLn
;bs;as;CSG
;cs;rs;ns
B3$cs
nHSG)n(84$D1$noitisoptnirpIRHstceleS
nISG)n(94$D1$DIretnirpstimsnarT
yxPSGyx05$D1$stinunoitomlacitrevdnalatnozirohsteS
mtr^SGmtrE5$D1$orcamsetucexE
cSG36$D1$retnuocstnirP
]l[]m[neSG
]l[
13$34$D1$
nHbLbHaLa
23$34$D1$
B3$34$D1$
B3$bsB3$as
B3$rsB3$ns
]m[n56$D1$
)A(edomtnuocstceleS
retnuocsteS
)B(edomtnuocstceleS
sdnammoctekcitstcejE
nhSG)n(86$D1$thgiehedocrabstceleS nkSG
RC>IRH<
vSG67$D1$tseuqersutatsdednetxE
nwSG)n(77$D1$htdiwedocrabstceleS
SG α nn0E$D1$
SG Γ 2E$D1$ SG Π 3E$D1$repapdetnirpfo)mc(htgnelfognidaeR
SG σ 5E$D1$purewopforebmungnidaeR
)n(B6$D1$
edocrabastnirP
RC>IRH<
kcab
retnirpeht
In the table listed above, the commands marked with this symbol are defined only for the serial interface.
SUTATSLLUFcitamotuaelbasid/elbanE
morfdemrofrepstucforebmungnidaeR
Given below are more detailed descriptions of each command.
TPTCM 43-
Page 31
3. PRINTER FUNCTIONS
L
L
L
F
F
F
FLF
FLF
F
[Name] Print and line feed [Format] ASCII L F
Hex 0A Decimal 1 0
[Description] Prints the data in the buffer and feeds one line based on the
current line spacing. [Notes] • Sets the print position to the beginning of the line. [Default] [Reference] ESC 2, ESC 3 [Example]
TVTVTVTVTV
[Name] Vertical tab [Format] ASCII V T
Hex 0B
Decimale 11 [Description] When this character is received , the paper forward feeds by
n lines (default value : 10). This value can be modified by
using the command ESC z. When the printer is next
initialized, the default value is reset. [Notes] [Default] [Reference] [Example]
FFF
FFF
F
[Name] Form Feed [Format] ASCII F F
Hex 0C
Decimal 1 2 [Description] If the buffer contains any characters, these are printed and
the paper forward feeds until the detection of a reference
mark on the paper, signalled by the NICK photocell. Alterna-
tively the paper forward feeds by the number of dotlines
TPTCM53-
Page 32
preset by the command ESC Z.
C
C
C
C
C
C
[Notes] [Default] [Reference] [Example]
RCR
RCR
R
[Name] Carriage return [Format] ASCII C R
Hex 0D Decimal 1 3
3. PRINTER FUNCTIONS
[Description] When autofeed is “CR enabled”, this command functions in
the same way as LF, otherwise it is disregarded.
[Notes] The command sets the print position at the beginning of the
line. [Default] [Reference] LF [Example]
NACNA
NACNA
NA
[Name] Cancel print data buffer [Format] ASCII CAN
Hex 18
Decimal 2 4 [Description] Deletes all the print data in the current print buffer. [Notes] The command set the print position to the beginning of the
line [Default] [Reference] [Example]
TPTCM 63-
Page 33
3. PRINTER FUNCTIONS
E
E
E
E
E
t
E
E
E
E
E
n!CS
n!CS
n!CS
n!CS
n!CS
[Name] Select print modes [Format] ASCII ESC ! n
Hex 1B 21 n
Decimal 2 7 3 3 n [Range] [Description] This command sets the print mode. Each bit of “n” is read as
follows:
tiBtiB
tiBtiBNOITCNUFNOITCNUF
tiB
NOITCNUFNOITCNUF011111
NOITCNUF
0.u.n
1.u.n rotpircsrepusstceleS
2
tpircsrepuS
pircsbuS
)61x8rofylno(tpircsbus
3.u.n 4thgiehelbuoDlecnaCteS 5htdiwelbuoDlecnaCteS 6thgiehelpurdauQlecnaCteS 7htdiwelpurdauQlecnaCteS
[Notes] Height and width commands set the mode for a whole line. [Default] n=0 [Reference] [Example]
8n...1n#CS
8n...1n#CS
8n...1n#CS
8n...1n#CS
8n...1n#CS
[Name] Receives data in graphic page [Format] ASCII ESC # n1 n8
Hex 1 B 2 3 n1 n8 Decimal 2 7 35 n1 n8
[Description] This receives an array of data an arranges it in a graphic page
at the given coordinates. The coordinates define the vertices of a window in which the data is stored.
TPTCM73-
Page 34
x1=(n1 * 256) + n2
E
E
E
E
E
E
E
E
E
E
y1=(n3 * 256) + n4 x2=(n5 * 256) + n6
y2=(n7 * 256) + n8
The values of coordinates x1 and x2 are aligned with the byte.
[Notes]
3. PRINTER FUNCTIONS
[Default] [Reference] [Example]
2n1n$CS
2n1n$CS
2n1n$CS
2n1n$CS
2n1n$CS
[Name] Sets bar code printing position. [Format] ASCII ESC $ n1 n2
Hex 1 B 24 n1 n2 Decimal 2 7 36 n1 n2
[Description] The bar code is printed at position (n1*256) + n2. If the value
exceeds @ 448 A 832, it is rejected.
[Notes]
@ indicates TPTCM60x Aindicates TPTCM112x
[Default] [Reference] [Example]
2n1n%CS
2n1n%CS
2n1n%CS
2n1n%CS
2n1n%CS
[Name] Prints grahic page. [Format] ASCII ESC $ n 1 n2
Hex 1B 25 n1 n2 Decimal 27 37 n1 n2
TPTCM 83-
Page 35
3. PRINTER FUNCTIONS
E
E
E
E
E
[Description] Prints graphic page starting from the beginning for a number
of lines eqaul to (n1*256) + n2; if the vaule is higher than the lines availables (@ 292 A 157), it print the entire page.
[Notes]
@ indicates TPTCM60x Aindicates TPTCM112x
[Default] [Example]
kd...1dHnLnm*CS
kd...1dHnLnm*CS
kd...1dHnLnm*CS
kd...1dHnLnm*CS
kd...1dHnLnm*CS
[Name] Select bit image mode [Format] ASCII ESC * m n L n H d1...dk
Hex 1B 2A m nL nH d1...dk Decimal 2 7 4 2 m nL nH d1...dk
[Range] m = 0, 1, 32, 33
0 nL 255 0 nH
@ 3 A 9
0 d 255
[Description] Selects a bit image mode using m for the number of dots
specified by nL and nH, as follows:
noitceridlacitreV)1*(noitceridlatnoziroH
m
elgnistod8
0
ytisned
elbuodtod8
1
ytisned
elgnistod42
23
ytisned
elbuodtod42
33
ytisned
stod.NIPDIPD)k(ataDfo.N
876001652xHn+Ln
876002652xHn+Ln
420020013x)652xHn+Ln(
420020023x)652xHn+Ln(
[Notes] • The nL and nH indicates the number of bytes.
• If the bit image data input exceeds the number of dots to be printed on a line, the excess data is ignored.
d indicates the bit image data. Set a corresponding bit to 1 to print a dot, or to 0 to not print the dot.
• If the value of m is outside the specified range, nL and data following it are processed as normal data.
• To print the bit image use LF, CR, ESC J or ESC d.
TPTCM93-
Page 36
3. PRINTER FUNCTIONS
E
E
E
E
E
• After printing a bit image, the printer returns to normal data processing mode.
• This command is not affected by the emphasized, double­strike, underline (etc.) print modes, except for the upside­down mode.
• The relationship between the image data and the dots to be printed is as follows:
8-dot bit image 24-dot bit image
@ indicates TPTCM60x A indicates TPTCM112x
[Default] [Reference] [Example]
2n1n+CS
2n1n+CS
2n1n+CS
2n1n+CS
2n1n+CS
[Name] Semi-graphic printing mode [Format] ASCII ESC + n1 n2
Hex 1B 2B n1 n2 Decimal 27 43 n1 n2
[Description] The bar code is printed at position (n1*256) + n2. If the value
exceeds The number of characters to be received is (n1*256) + n2. In this mode, the bytes received are input in the line buffer at
the current position of the cursor and in a different order from that of the previous command. Let’s imagine that a print line
@ 448 A 832, it is rejected.
consists of an array of 24 rows containing
TPTCM 103-
@ 56 A 104 bytes
Page 37
3. PRINTER FUNCTIONS
12
10434567895656
TPTCM112x
TPTCM60x
each: the characters received after this command will be input starting from the top line and proceeding towards the bottom line. After 24 characters, the pointer increases and proceeds to the next position. At the the line is printed and filling continues on the next line. Thanks to this procedure, text and graphics can be combined. In fact, if, for example, there were any characters present in the print buffer, the bytes subsequent to this command would be input in the position immediately after. Figure 1 shows a line buffer: each box corresponds to 8 dots, which on paper correspond to 1 mm, both horizontally and vertically. To fill the memory
@ 56
th
A104th position
row 1
completely, example, to print a filled bar
@ 1344 A2496 bytes are required. For
@ 448 A 832 dots long and 24
dots high, send the following command:
@ 1Bh + 2Bh + 05h + 40h + (1344* FFh)
A 1Bh + 2Bh + 09h + C0h + (2496* FFh)
buffer position
[Notes] @ indicates TPTCM60x A indicates TPTCM112x [Default] [Reference] [Example]
row 24
TPTCM113-
Page 38
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
E
E
n4CS
n4CS
n4CS
n4CS
n4CS
[Name] Set/reset italic mode [Format] ASCII ESC 4 n
Hex 1B 34 n
Decimal 27 52 n [Range] 0 n 1, 48 n 49 [Description] Turns italic mode on or off, based on the following values of
n:
nnoitcnuF
84,0edomcilatiffosnruT 94,1edomcilatinosnruT
[Notes] • The printer can print any character in italic mode.
• When italic mode is turned off by setting the value of n to 0
or 48, the data which follows is printed in normal mode.
• Italic mode can also be turned on or off using ESC !. Note,
however, that the last received command is the effective one. [Default] n = 0 [Reference] ESC ! [Example]
n=CS
n=CS
n=CS
n=CS
n=CS
[Name] Enables / Disables Form Feed key [Format] ASCII ESC = n
Hex 1B 3D n
Decimal 27 61 n [Description] This command is used to control the Form Feed key.
Normally, when this key is pressed, the paper forward feeds
until a reference mark is detected or until the steps set by the
ESC + ‘Z’ command have been completed. When the key is
released, a character FF (0Ch) is transmitted. In this way a
controller can check the output of receipts with progressive
number etc. directly.
n = 0 Disables transmission - Enables the Form Feed key
n > 0 Enables transmission when the Form Feed key is
pressed. [Notes]
TPTCM 123-
Page 39
3. PRINTER FUNCTIONS
E
E
E
E
E
[Default] [Reference] [Example]
)ECAFRETNILAIRESHTIWYLNO(n? CS
)ECAFRETNILAIRESHTIWYLNO(n? CS
)ECAFRETNILAIRESHTIWYLNO(n? CS
)ECAFRETNILAIRESHTIWYLNO(n? CS
)ECAFRETNILAIRESHTIWYLNO(n? CS
[Name] Printer setting request [Format] ASCII ESC ? n
Hex 1B 3F n
Decimal 2 7 63 n [Range] 32 n 126 [Description] This command transmits two bytes to serial port, when each
bit indicates the printer setting. The meaning of these bytes
depends on the n parameter:
Byte 1
with n = 0
1tiBtiB0 noitcnuFnoitpircseD 00 lamroNedomH 01 elbuoDedomH
10 elpurdauQedomH 11 desutoNedomH
3tiBtiB2 noitcnuFnoitpircseD 00 lamroNedomV 01 elbuoDedomV
10 elpurdauQedomV 11 desutoNedomV
4tiBnoitcnuFnoitpircseD
-desutoN-
TPTCM133-
Page 40
3. PRINTER FUNCTIONS
5tiBnoitcnuFnoitpircseD
Byte2
0tpircsrepuS
1tpircsbuS
6tiBnoitcnuFnoitpircseD
0FFOesreveR
1NOesreveR
7tiBnoitcnuFnoitpircseD
0FFOnoitatoR
1NOnoitatoR
0tiBnoitcnuF
/tpircsrepuS
tpircsbuS
esreveR
noitatoR
0delbanerettuC
1delbasidrettuC
1tiBnoitcnuF
0delbanednerepaP
1delbasiddnerepaP
2tiBnoitcnuF
0delbanedeeFmroF
1delbasiddeeFmroF
3tiBnoitcnuF
0delbanedeefotuA
1delbasiddeefotuA
TPTCM 143-
Page 41
3. PRINTER FUNCTIONS
)
4tiBnoitcnuF
023x42tnoF
142x61tnoFro61x8tnoF
5tiBtiB6 7tiBnoitcnuF
--- desutoN
with n=1
Byte 1
1etyB
2etyBeulavdaehgnitnirpsetacidnI
with n=2
1etyB2etyBnoitpircseD
HL DEEFMROFrofseniltodforebmunsetacidnI
with n=3
tiBnoitcnuF
0
2 3
IRHsetacidnI
4
BATlacitreV(BATVrofsdeefenilforebmunsetacidnI
ezisedoCraBsetacidnI1
)1()1(
)1()1(
)1(
noitisopgnitnirp
[Notes]
5desutoN 6desutoN 7desutoN
(1)
These bits correspond to the coding assigned with the GS
w and GS H commands.
2etyBthgiehedoCraBsetacidnI
TPTCM153-
Page 42
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
[Default] [Reference] [Example]
@CSE@CS
@CSE@CS
@CS
[Name] Initialize printer [Format] ASCII ESC @
Hex 1B 40 Decimal 2 7 6 4
[Description] When this command is received, the printer resets, restoring
the default programming and erasing the RAM.The machine requires approx. 3 seconds from reception of the command
to regain its full operating capacity. [Notes] • Same as hardware reset. [Default] [Reference] [Example]
2n1nACS
2n1nACS
2n1nACS
2n1nACS
2n1nACS
[Name] Moves stepping motor [Format] ASCII ESC A n1 n2
Hex 1 B 41 n1 n2
Decimal 2 7 65 n1 n2 [Description] This command moves the paper feeding step motor by a
number of steps equal to (n1*256) + n2. [Notes] [Default] [Reference] [Example]
TPTCM 163-
Page 43
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
E
E
nDCS
nDCS
nDCS
nDCS
nDCS
[Name] Sets the default paper sensibility. [Format] ASCII ESC D n
Hex 1B 44 n
Decimal 27 68 n [Range] [Description] This command sets the default paper sensibility. The current
paper sensibility in use is also changed. [Notes] [Default] [Reference] [Example]
nFCS
nFCS
nFCS
nFCS
nFCS
[Name] Copy flash bank into ram bank (16kbytes) [Format] ASCII ESC F n Hex 1B 46 n Decimal 27 70 n [Range] 1 n 6 [Description] The value of “n” determines flash bank:
n = 1 1 n = 2 2 n = 3 3 n = 4 4 n = 5 5 n = 6 6
st
bank
nd
bank
rd
bank
th
bank
th
bank
th
bank
if n = 0 or n > 6 the command is ignored. [Notes] [Default] [Reference] [Example]
TPTCM173-
Page 44
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
E
E
E
E
E
nGCS
nGCS
nGCS
nGCS
nGCS
[Name] Turn double-strike mode On/Off. [Format] ASCII ESC G n
Hex 1B 47 n
Decimal 2 7 71 n [Range] 0 n 255 [Description] Turn 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.
[Notes] • Only the LSB of n is active.
• Printer output is the same in double-strike mode and
emphasized mode. [Default] n = 0 [Reference] ESC E [Example]
nNCS
nNCS
nNCS
nNCS
nNCS
[Name] Sets negative mode. [Format] ASCII ESC N n
Hex 1B 4E n
Decimal 27 78 n [Description] Sets or cancel printing negative mode.
n = 0 Normal print
n <> 0 Negative print [Notes] [Default] n = 0 [Reference] [Example]
PCSEPCS
PCSEPCS
PCS
[Name] Fill ram bank from port (serial or parallel). [Format] ASCII ESC P 16384 bytes
Hex 1B 50 16384 bytes
Decimal 2 7 80 16384 bytes [Description] This command can transfer graphic page into ram.
TPTCM 183-
Page 45
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
@ 56 A104 bytes is an horizontal dotline of @ 448 A 832
dots; for The number of bytes that make graphic page is
16352 A 104x157 = 16328, the others
bytes must be sent, but are not important. [Notes] [Default] n = 0 [Reference] [Example]
nRCSEnRCS
nRCS
nRCSE
nRCS
[Name] Sets font. [Format] ASCII ESC R n
[Range] 0 n 12
@ indicates TPTCM60x Aindicates TPTCM112x
Hex 1B 52 n
Decimal 2 7 82 n
@ 292 A157 dotlines.
@ 56x292 =
@ 32 A56
[Description] It sets the font currently being used. This setting is
maintained until a new command given or the machine is
reset.
n = 01h Font 8x16 n = 02h Font 16x24
n = 03h Font 24x32 [Notes] [Default] n = 0 [Reference] [Example]
nSCS
nSCS
nSCS
nSCS
nSCS
[Name] Sets paper sensibility. [Format] ASCII ESC S n
Hex 1B 53 n Decimal 2 7 83 n
[Description] It sets the paper sensibility currently in used. This setting is
maintained until a new command is given or the machine is reset.
TPTCM193-
Page 46
n = 00h High
E
E
E
E
E
E
E
E
E
E
n = 01h Normal n = 02h Medium n = 03h L ow
n = 04h Double copy [Notes] [Default] [Reference] [Example]
nUCS
nUCS
nUCS
nUCS
nUCS
[Name] Sets underlined mode.
3. PRINTER FUNCTIONS
[Format] ASCII ESC U n
Hex 1B 55 n Decimal 2 7 85 n
[Description] Sets or cancels the underline printing mode.
n = 0 Normal print
n <> 0 Underlined mode [Notes] [Default] [Reference] [Example]
nVCS
nVCS
nVCS
nVCS
nVCS
[Name] Sets the print mode rotated by 90°. [Format] ASCII ESC V n
Hex 1B 56 n
Decimal 2 7 86 n [Description] Sets or cancels the 90° printing flag rotation in according to n
:
n = 0 Normal print
n <> 0 Rotated print
The printing direction depends of the reverse bit. [Notes]
TPTCM 203-
Page 47
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
[Default] [Reference] [Example]
WCSEWCS
WCSEWCS
ddddd setyb65setyb65
WCS
[Name] Prints a graphic dotline. [Format] ASCII ESC W @56 bytes A 104 bytes
setyb65setyb65 eeeee setyb401setyb401
setyb65
Hex 1B 57 @ 56 bytes A104 bytes Decimal 27 87 @ 56 bytes A 104 bytes
setyb401setyb401
setyb401
[Description] This command prints a dotline (
@ 448 A832 dots) after
@ 56 A 104 bytes and feeds the paper.
[Notes] [Default] [Reference] [Example]
[Name] Sets the number of steps for form feed. [Format] ASCII ESC Z n1 n2
[Description] When the printer receives an FF (0Ch) character, or when the
@ indicates TPTCM60x Aindicates TPTCM112x
2n1nZCS
2n1nZCS
2n1nZCS
2n1nZCS
2n1nZCS
Hex 1B 5A n1 n2 Decimale 2 7 90 n1 n2
FF key is pressed, the paper forward feeds until the photocell finds a reference point or up to the distance preset in the Eeprom. The default value, which is 240 (30 mm), can be modified by the user. The number of steps is given by (n1*256) +n2. The set value is stored in the Eeprom, and
continues to be stored even when the printer is switched off. [Notes] [Default] [Reference] [Example]
TPTCM213-
Page 48
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
E
E
HnLn\CS
HnLn\CS
HnLn\CS
HnLn\CS
HnLn\CS
[Name] Set relative print position [Format] ASCII ESC \ nL nH
Hex 1B 5C nL nH Decimal 2 7 92 nL nH
[Range] 0 nL 255
0 nH 255
[Description] Sets the print starting position based on the current position
by using the horizontal or vertical motion unit. This command sets the distance from the current position to [(nL+ nH × 256) × (horizontal or vertical motion unit)].
[Notes] • Any setting that exceeds the printable area is ignored.
• When the starting position is specified by n motion units to the right: nL + nH × 256 = n When the starting position is specified by n motion units to the left (negative direction), use the complement of 65536:
nL + nH × 256 = 65536 – n
• If setting exceeds the printing area width, the left or right margin is set to the default value.
• The horizontal and vertical motion unit are specified by GS P.
GS P can change the horizontal (and vertical) motion units. However, the value cannot be less than the minimum horizon­tal movement amount.
• In standard mode, the horizontal motion unit is used. [Default] [Reference] GS P [Example]
naCS
naCS
naCS
naCS
naCS
[Name] Select justification [Format] ASCII ESC a n
Hex 1B 61 n
Decimal 2 7 9 7 n [Range] 0 n 2, 48 n 50 [Description] Aligns all data in one line to the specified position.
TPTCM 223-
Page 49
3. PRINTER FUNCTIONS
E
E
E
E
E
n selects the type of justification as follows:
n Justification
0, 48 Flush left 1, 49 Centered 2, 50 Flush right
[Notes] • This command is only enabled when inserted at the begin-
ning of a line.
• Lines are justified within the specified printing area.
• Spaces set by HT, ESC $ and ESC \ will be justified ac-
cording to the previously-entered mode. [Default] n = 0 [Reference] [Examp le] Flush left Centered Flush right
ABC ABCD ABCDE
n4cCS
n4cCS
n4cCS
n4cCS
n4cCS
ABC
ABCD
ABCDE
ABC
ABCD
ABCDE
[Name] Select paper sensor to stop printing. [Format] ASCII ESC c 4 n
Hex 1B 63 34 n
Decimale 2 7 99 5 2 n [Range] 0 n 255 [Description] Selects the paper sensor used to stop printing when a near
paper-end is deleted, using n as follows :
tiBnO/ffOxeHlamiceD
ffO000
0
nO01 1
nuFoitcn
.delbanerosnesdnellorrepaP
.delbanerosnesdne-raenllorrepaP
1- - ­2- - ­3- - ­4- - ­5- - ­6- - ­7- - -
denifednU denifednU denifednU denifednU denifednU denifednU denifednU
TPTCM233-
Page 50
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
E
E
[Notes] • When a near paper-end is detected, printing stops after
printing the current line and feeding the paper.
• The paper roll near-end sensor is enabled when either bit 0 is 1.
• This setting is not cleared by printer resetting, because it is
stored in the Eeprom. [Default] n = 0 [Reference] [Example]
n5cCS
n5cCS
n5cCS
n5cCS
n5cCS
[Name] Enable/disable front panel buttons [Format] ASCII ESC c 5 n
Hex 1B 63 35 n
Decimal 2 7 9 9 53 n [Range] 0 n 255 [Description] Enables/disables the buttons on the front panel.
• When the LSB of n is 0, the panel buttons are enabled.
• When the LSB of n is 1, the panel buttons are disabled.
[Notes] • Only the LSB of n is effective.
• On the printer, the panel buttons are LINE FEED and FORM
FEED.
• When the panel buttons are disabled, the buttons may only
be used after the printer has been reset.
• When the panel buttons are disabled, is possible to know
the status through the DLE EOT command. [Default] n = 0 [Reference] DLE EOT [Example]
ndCS
ndCS
ndCS
ndCS
ndCS
[Name] Print and feed paper n lines [Format] ASCII ESC d n
Hex 1B 64 n
Decimal 2 7 100 n [Range] 0 n 255
TPTCM 243-
Page 51
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
E
E
[Description] Prints the data in the print buffer and feeds the paper n lines. [Notes] • Sets the print starting position at the beginning of the line.
• This command does not affect the line spacing set by ESC 2 or ESC 3.
• The maximum paper feed amount is 200 lines. Even if a paper feed amount of more than 200 lines is set, the printer
feeds the paper only 200 lines. [Default] [Reference] ESC 2, ESC 3 [Example]
nfCS
nfCS
nfCS
nfCS
nfCS
[Name] Sets the default font. [Format] ASCII ESC f n
Hex 1B 66 n
Decimal 2 7 102 n [Description] This command sets the default font. The font currently in use
is also changed.
n = 01h Font 8x16 n = 02h Font 16x24
n = 03h Font 24x32 [Notes] [Default] [Reference] [Example]
ngCS
ngCS
ngCS
ngCS
ngCS
[Name] Set/reset red printing mode [Format] ASCII ESC g n
Hex 1B 67 n
Decimal 2 7 103 n [Range] 0 n 1, 48 n 49 [Description] Sets and resets red printing mode.
TPTCM253-
Page 52
3. PRINTER FUNCTIONS
E
E
E
E
E
E
n Function
0, 48 Reset red printing mode 1, 49 Set red printing mode
[Notes] • The printer prints only entire lines in red, not individual char-
acters.
• The printer prints red only if enabled by Setup. [Default] n = 0 [Reference] [Example]
iCSEiCS
iCSEiCS
iCS
[Name] Total cut [Format] ASCII ESC i
Hex 1B 69 Decimal 2 7 105
[Description] This command enables cutter operation. If there is no cutter,
a disabling flag is set and any subsequent cut commands will be ignored.
[Notes] • The printer waits to complete all paper movement com-
mands before it executes a total cut.
• With the TPT112H model, the kind of cutter sets total or
partial cut. [Default] [Reference] [Example]
mCSEmCS
mCSEmCS
mCS
[Name] Partial cut [Format] ASCII ESC m
Hex 1B 6D
Decimal 2 7 109 [Description] This command enables partial cutter operation. If there is no
cutter, a disabling flag is set and any subsequent cut com-
mands will be ignored. [Notes] • The printer waits to complete all paper movement com-
mands before it executes a partial cut.
TPTCM 263-
Page 53
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
E
E
[Default] [Reference] [Example]
nrCS
nrCS
nrCS
nrCS
nrCS
[Name] Copy ram bank into flash bank (16Kbytes) [Format] ASCII ESC r n
Hex 1B 72 n
Decimal 2 7 114 n [Range] 1 n 6 [Description] The value of n selects the flash bank :
n = 1 1 n = 2 2 n = 3 3 n = 4 4 n = 5 5 n = 6 6
st
bank
nd
bank
rd
bank
th
bank
th
bank
th
bank
If n = 0 or n > 6 the command is ignored. For about 1 sec. the printer does not receive characters or
commands. The serial version (TPT60S4) return :
77h if flash memory is not programmed 88h if flash memory is not erased
AAh if flash memory is programmed. [Notes] [Default] [Reference] [Example]
)ECAFRETNILAIRESYLNO(sCS
)ECAFRETNILAIRESYLNO(sCS
)ECAFRETNILAIRESYLNO(sCS
)ECAFRETNILAIRESYLNO(sCS
)ECAFRETNILAIRESYLNO(sCS
[Name] Sends ram bank to port (16Kbytes) [Format] ASCII ESC s
Hex 1B 73 Decimal 2 7 115
[Description] This commands sends 16384 RAM bytes to serial port.
TPTCM273-
Page 54
3. PRINTER FUNCTIONS
E
E
E
E
E
[Notes] [Default] [Reference] [Example]
)ECAFRETNILAIRESYLNO(vCS
)ECAFRETNILAIRESYLNO(vCS
)ECAFRETNILAIRESYLNO(vCS
)ECAFRETNILAIRESYLNO(vCS
)ECAFRETNILAIRESYLNO(vCS
[Name] Transmit status request. [Format] ASCII ESC v
Hex 1B 76 Decimal 27 118
[Description] This command transmits a byte, where each bit indicates the
printer status, to serial port.
tiBnO/ffOxeHlamiceD
0
1
2
3
4
5
6
7
ffO000
nO101
ffO000
nO202
ffO000
nO404
ffO000
nO808
ffO000
nO0161
ffO000
nO0223
ffO000
nO0446
ffO000
nO08821
tuorepaP
fforotoM norotoM rorreoN
nuFoitcn
ecnadnubaniecneserprepaP
dnerepapraeN
detcetedtonhctoN
llecotohpmorfdetcetedhctoN
ecneserprepaP
desaeleryekdeeFeniL
desserpyekdeeFeniL
desaeleryekdeeFmroF
desserpyekdeeFmroF
tcerrocerutarepmetdaeH
rorreerutarepmetdaeH
.cte,pudaeH,dnerepapoteudrorrE
[Notes] • This command is executed immediately, even when the
data buffer is full (Busy ). [Default] [Reference] [Example]
TPTCM 283-
Page 55
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
zCSEzCS
zCSEzCS
zCS
[Name] Sets the vertical tab value. [Format] ASCII ESC z
Hex 1B 7A Decimal 2 7 122
[Description] Sets the number of feeds lines when a vertical tab character
is received. The default value on switching on the printer is
10. The set value is valid until the printer is next initialized. [Notes] [Default] [Reference] [Example]
n{CS
n{CS
n{CS
n{CS
n{CS
[Name] Turn upside-down printing mode on/off [Format] ASCII ESC { n
Hex 1B 7B n
Decimal 2 7 123 n [Range] 0 n 255 [Description] Turns upside-down printing mode on or off.
• When the LSB of n is 0, the upside-down printing mode is
off.
• When the LSB of n is 1, the upside-down printing mode is
on. [Notes] • Only the LSB of n is effective.
• This command is valid only if entered at the beginning of a
line.
• In upside-down printing mode, the printer rotates the line to
be printed 180° and then prints it. [Default] n = 0 [Reference] [Example] Upside-down printing Off Upside-down printing On
ABCDEFG 0123456
Printing direction
0123456 ABCDEFG
TPTCM293-
Page 56
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
|CSE|CS
|CSE|CS
|CS
[Name] Delete graphic pge. [Format] ASCII ESC |
Hex 1B 7C
Decimale 2 7 124 [Description] This command deletes graphic page. [Notes] [Default] [Reference] [Example]
LyHyLxHxn·CS
LyHyLxHxn·CS
LyHyLxHxn·CS
LyHyLxHxn·CS
LyHyLxHxn·CS
[Name] Print graphic bank(@ 448
××
× 585 dots A 832 x 315 dots).
××
[Format] ASCII ESC · n xH xL yH yL
Hex 1B FA n xH xL yH yL
Decimal 2 7 250 n xH xL yH yL [Range] 0 n 3
0 xH, xL, yH, yL 255 [Description] Prints graphic bank from flash or ram.
n selects the graphic source as follows:
nnoitcnuF
0knabmartnirP
11ogolknabhsalftnirP 22ogolknabhsalftnirP 33ogolknabhsalftnirP
xL + xH × 256 specifies the starting dotline (@ 1 ÷ 585 A 1 ÷ 315).
yL + yH × 256 specifies the number of lines to print.
[Notes] • If (xL + (xH × 256)) >
execute the command.
• If ( xL + ( xH × 256 ) + yL +( yH × 256 ))> the printer prints only
@ 585 A315 - xL + ( xH × 256 ) +1
dotline.
@ indicates TPTCM60x Aindicates TPTCM112x
TPTCM 303-
@ 585 A315 the printer does not
@ 585 A315
Page 57
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
E
E
[Default] [Reference] ESC ³, ESC ², ESC ¦ [Examp le] To print from ram bank dotline 100 to dotline 299, send:
1BH FAH 00H 00H 64H 00H C7H
)ecafretnilairesylno(¹CS
)ecafretnilairesylno(¹CS
)ecafretnilairesylno(¹CS
)ecafretnilairesylno(¹CS
)ecafretnilairesylno(¹CS
[Name] Transmit ram bank to serial port [Format] ASCII ESC ¹ nL nH
Hex 1B FB nL nH
Decimal 2 7 251 nL nH [Description] Transmits (nH x 256) + nL bytes of ram bank to serial port. [Notes] • The size of ram bank for graphic printing is :
@ 448 horizontal dots (56 bytes/dotline) x 585 vertical dots
(32760 bytes = 16380 words).
A 832 horizontal dots (104 bytes/dotline) x 315 vertical dots
(32760 bytes = 16380 words).
@ indicates TPTCM60x Aindicates TPTCM112x
[Default] [Reference] ESC ³, ESC ², ESC ¦ [Example]
n³CS
n³CS
n³CS
n³CS
n³CS
[Name] Transfer flash bank into ram bank [Format] ASCII ESC ³ n
Hex 1B FC n
Decimal 2 7 252 n [Range] 1 n 3 [Description] Transfers flash bank into ram bank (32768 bytes).
n selects the bank as follows:
nnoitcnuF
1marotni1ogolknabhsalfsrefsnarT 2marotni2ogolknabhsalfsrefsnarT 3marotni3ogolknabhsalfsrefsnarT
TPTCM313-
Page 58
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
E
E
[Notes] [Default] [Reference] ESC ·, ESC ², ESC ¦ [Example]
HnLn²CS
HnLn²CS
HnLn²CS
HnLn²CS
HnLn²CS
[Name] Receive ram bank from serial port [Format] ASCII ESC ² nL nH
Hex 1B FD nL nH
Decimal 2 7 253 nL nH [Range] 0 nL, nH 255 [Description] Receives [nL + (nH × 256)] words from the port and puts
them into the ram bank. [Notes] • The number of data bytes received is [nL + (nH × 256)] × 2.
• Each word is first received as MSByte and then as LSByte.
• If [nL + (nH × 256)] is greater than 16384, the data which
follows is processed as normal data.
• An horizontal dotline is represented to
@ indicates TPTCM60x Aindicates TPTCM112x
[Default] [Reference] ESC ·, ESC ³, ESC ¦ [Example]
n¦CS
n¦CS
n¦CS
n¦CS
n¦CS
[Name] Transfer ram bank into flash bank
@ 28 A52 words.
[Format] ASCII ESC ¦ n
Hex 1B FE n
Decimal 2 7 2 54 n [Range] 1 n 3 [Description] Transfers the ram bank into the flash bank (32768 bytes).
n selects the bank as follows:
TPTCM 323-
Page 59
3. PRINTER FUNCTIONS
G
G
G
nnoitcnuF
11ogolknabhsalfotniknabmarsrefsnarT 22ogolknabhsalfotniknabmarsrefsnarT 33ogolknabhsalfotniknabmarsrefsnarT
[Notes] [Default] [Reference] ESC ·, ESC ², ESC ³ Example
: SG: S
: SG: S
: S
[Name] Start/end macro definition [Format] ASCII G S :
Hex 1D 3A
Decimal 2 9 58 [Description] Starts or ends macro definition. [Notes] • Macro definition starts when this command is received dur-
ing normal operation.
• When GS ^ is received during macro definition, the printer
ends macro definition and clears all definitions.
• Macros are not defined when power is turned on to the ma-
chine.
• Macro content is not cancelled by the ESC @ command.
Therefore, ESC @ may be included in the content of macro
definitions.
• If the printer receives GS : a second time after previously
receiving GS :, the printer remains in macro undefined status.
• The contents of the macro can be defined up to 2048
bytes. If the macro definition exceeds 2048 bytes, excess
data is not stored. [Default] [Reference] GS ^ [Example]
TPTCM333-
Page 60
3. PRINTER FUNCTIONS
G
G
G
G
G
mn0CS
mn0CS
mn0CS
mn0CS
mn0CS
[Name] Select counter print mode [Format] ASCII G S C 0 n m
Hex 1D 43 30 n m Decimal 2 9 67 4 8 n m
[Range] 0 n 5
m = 0, 1, 2, 48, 49, 50
[Description] Selects a print mode for the serial number counter.
n specifies the number of digits to be printed as follows: when n = 0, the printer prints the actual digits indicated by the numeric value. when n = 1 to 5, the command sets the number of digits to be printed.
• m specifies the printing position within the entire range of printed digits as follows:
mnoitisopgnitnirPsselstigidfognissecorP
deificepsesohtnaht 84,0thgirhsulFtfelehtotsecapssddA 94,1thgirhsulFtfelehtot'0'asddA 05,2tfelhsulFthgirehtotsecapssddA
[Notes] • If n or m is out of the defined range, the previously set print
mode is not changed.
• If n = 0, m is not applicable. [Default] n = 0, m = 0 [Reference] GS C 1, GS C 2, GS C ;, GS c [Example] n = 3,m = 0 n = 3, m = 1 n = 3, m=2
¨¨1 001 1¨¨
¨ indicates a space
TPTCM 343-
Page 61
3. PRINTER FUNCTIONS
G
G
G
G
G
rnHbLbHaLa1CS
rnHbLbHaLa1CS
rnHbLbHaLa1CS
rnHbLbHaLa1CS
rnHbLbHaLa1CS
[Name] Select count mode (A). [Format] ASCII G S C 1 aL aH b L bH n r
Hex 1D 43 31 aL aH bL bH n r Decimal 2 9 67 49 aL aH bL bH n r
[Range] 0 aL, aH ≤ 255
0 bL, bH 255 0 n, r ≤ 255
[Description] Selects a count mode for the serial number counter.
aL, aH or bL, bH specify the counter range.
n indicates the unit amount when counting up or down.
r indicates the repetition number when the counter value is fixed.
[Notes] • Count-up mode is specified when:
[aL + (aH × 256)] < [bL + (bH × 256)] and n 0 and r 0
• Count-down mode is specified when: [aL + (aH × 256)] > [bL + (bH × 256)] and n 0 and r 0
• Counting stops when: [aL + (aH × 256)] = [bL + (bH × 256)] or n = 0 or r = 0
• Setting the count-up mode, the minimum counter value is [aL + (aH × 256)] and the maximum value is [bL + (bH ×
256)]. If the counting up reaches a value that exceeds the maximum, it resets to the minimum value.
• Setting the count-down mode, the maximum counter value is [aL + (aH × 256)] and the minimum value is [bL + (bH ×
256)]. If the counting down reaches a value less than the minimum, it resets to the maximum value.
• When this command is executed, the internal count that
indicates the repetition number specified by r is cleared. [Default] aL = 1, aH = 0, bL = 255, bH = 255, n = 1, r = 1 [Reference] GS C 0, GS C 2, GS C ;, GS c [Example]
TPTCM353-
Page 62
3. PRINTER FUNCTIONS
G
G
G
G
G
G
G
G
G
G
HnLn2CS
HnLn2CS
HnLn2CS
HnLn2CS
HnLn2CS
[Name] Set counter [Format] ASCII G S C 2 nL nH
Hex 1D 43 32 nL nH
Decimal 2 9 67 50 nL nH [Range] 0 nL, nH ≤ 255 [Description] Sets the serial number counter value.
nL and nH determine the value of the serial number counter
set by [nL + (nH × 256)]. [Notes] • In count-up mode, if the counter value specified by this
command goes out of the counter operation range specified
by GS C 1 or GS C ; it is forced to convert to the minimum
value through GS c.
• In count-down mode, if the counter value specified by this
command goes out of the counter operation range specified
by GS C 1 or GS C ; it is forced to convert to the maximum
value through GS c. [Default] nL = 1, nH = 0 [Reference] GS C 0, GS C 1, GS C ;, GS c [Example]
; cs; rs; ns; bs; as; CS
; cs; rs; ns; bs; as; CS
; cs; rs; ns; bs; as; CS
; cs; rs; ns; bs; as; CS
; cs; rs; ns; bs; as; CS
[Name] Select count mode [Format] ASCII G S C ; sa ; sb ; sn ; sr ; sc ;
Hex 1D 43 3B sa 3B sb 3B sn 3B sr 3B sc 3B
Decimal 29 67 59 sa 59 sb 59 sn 59 sr 59 sc 59 [Range] 0 sa, sb, sc 65535
0 sn, sr 255 These values are all character strings. [Description] Selects a count mode for the serial number counter and
specifies the value of the counter.
sa, sb, sn, sr and sc are all displayed as ASCII characters
using codes from ‘0’ to ‘9’.
sa and sb specify the counter range.
sn indicates the unit amount for counting up or down.
sr indicates the repetition number when the counter value is
fixed.
TPTCM 363-
Page 63
3. PRINTER FUNCTIONS
G
G
G
sc indicates the counter value.
[Notes] • Count-up mode is specified when:
sa < sb and sn 0 and sr 0
• Count-down mode is specified when: sa > sb and sn 0 and sr 0
• Counting stops when: sa = sb or sn = 0 or sr = 0
• In setting count-up mode, the minimum value of the counter is sa and the maximum value is sb. If counting up reaches a value exceeding the maximum, it resets to the minimum value. If the counter value set by sc is outside the counter operation range, the counter value is forced to convert to the minimum value by executing GS c.
• In setting count-down mode, the maximum value of the counter is sa and the minimum value is sb. If counting down reaches a value less than the minimum, it resets to the maxi­mum value. If the counter value set by sc is outside the counter operation range, the counter value is forced to con­vert to the maximum value by executing GS c.
• Parameters sa to sc can be omitted. If omitted, they remain unchanged.
• Parameters sa to sc cannot contain characters other than ‘0’
to ‘9’. [Default] sa = 1, sb = 65535, sn = 1, sr = 1, sc = 1 [Reference] GS C 0, GS C 2, GS C 1, GS c [Example]
nHSGnHS
nHSGnHS
nHS
[Name] Select printing position of Human Readable Interpreta-
tion ( HRI ) characters
[Format] ASCII G S H n
Hex 1D 48 n
Decimal 2 9 72 n [Range] 0 n 3, 48 n 51 [Description] Selects the printing position of HRI characters when printing
bar codes.
n selects the printing positions as follows:
TPTCM373-
Page 64
3. PRINTER FUNCTIONS
G
G
G
G
G
nnuFnoitc
84,0detnirptoN 94,1edocrabehtevobA 05,2edocrabehtwoleB 15,3edocrabehtwolebehtevobahtoB
[Notes] • HRI characters are printed using the font specified by GS f. [Default] n = 0 [Reference] GS f, GS k [Example]
)ECAFRETNILAIRESHTIWYLNO(nIS
)ECAFRETNILAIRESHTIWYLNO(nIS
)ECAFRETNILAIRESHTIWYLNO(nIS
)ECAFRETNILAIRESHTIWYLNO(nIS
)ECAFRETNILAIRESHTIWYLNO(nIS
[Name] Transmit printer ID [Format] ASCII G S I n
Hex 1D 49 n
Decimal 2 9 7 3 n [Range] 1 n 3, 49 n 51 [Description] Transmits the printer ID specified by n follows:
nDIretnirPnoitacificepS
94,1DIledomretnirP
05,2DIepyTwolebelbateeS
15,3DInoisrevMOR
)retcarahc4(
)x06MCTPT(HA4
)x211MCTPT(HC4
noisrevMORnosdnepeD
TPTCM 383-
Page 65
3. PRINTER FUNCTIONS
G
G
G
G
G
n = 2, Type ID
tiBnO/ffOxeHlamiceD
0
1
2 3- - -
4ffO000 5- - ­6- - -
7
ffO000 detroppustonsedocretcarahcetyb-2 ffO000 deilppustonrettucotuA
ffO000 lebalo/wrepaplamrehT
nO404
ffO000
nO08821
denifednU
denifednU denifednU
SOP/CSE noitalume
noitcnuF
deilppusrettucotuA
lebal/wrepaplamrehT
.ffOotdexiF.desutoN
noitalumeTPTmotsuC
[Notes] • Tthe printer only transmits 1 byte (printer ID) without confir-
mation that the host is ready to receive data.
• This command is executed when the data is processed in the data buffer. Therefore, there could be a time lag between command reception and data transmission, depending on
data buffer status. [Default] [Reference] [Example]
yxPS
yxPS
yxPS
yxPS
yxPS
[Name] Set horizontal and vertical motion units [Format] ASCII G S P x y
Hex 1D 50 x y
Decimal 2 9 80 x y [Range] x = 100, 200
y = 100, 200 [Description] Sets the horizontal and vertical motion units to 1/x inch and
1/y inch respectively.
When x is set to 0, the default setting value is used.
When y is set to 0, the default setting value is used. [Notes] • The horizontal direction is perpendicular to the paper feed
direction.
TPTCM393-
Page 66
3. PRINTER FUNCTIONS
G
G
G
G
G
• In standard mode, the following commands use x or y, re­gardless of character rotation (upside-down or 90° clockwise rotation): Q Commands using x : ESC SP, ESC $, ESC \, GS L, GS W. R Commands using y : ESC 3, ESC J.
• This command does not affect the previously specified values.
• The calculated result from combining this command with others is truncated to the minimum value of the mechanical
pitch or an exact multiple of that value. [Default] x = 200, y = 200 [Reference] ESC SP, ESC $, ESC \, ESC 3, ESC J, GS L, GS W [Example]
mtr^S
mtr^S
mtr^S
mtr^S
mtr^S
[Name] Execute macro [Format] ASCII G S ^ r t m
Hex 1D 5E r t m
Decimal 2 9 94 r t m [Range] 0 r, t ≤ 255
0 ≤ m ≤ 1 [Description] Executes a macro.
r specifies the number of times to execute the macro.
t specifies the waiting time for executing the macro.
The waiting time is t × 100 msec. for each macro execution.
m specifies macro executing mode:
When the LSB of m = 0, the macro is executed r times con-
tinuously at the interval specified by t.
When the LSB of m = 1, after waiting for the period specified
by t, the LED indicator blinks and the printer waits for the
FORM FEED button to be pressed. After the button is
pressed, the printer executes the macro once. The printer
repeats the operation r times. [Notes] • This command has an interval of (t × 100 msec.) after a
macro is executed by t.
• If this command is received while a macro is being defined,
the macro definition is aborted and the definition is cleared.
TPTCM 403-
Page 67
3. PRINTER FUNCTIONS
G
G
G
• If the macro is not defined or if r is 0, nothing is executed.
• When the macro is executed by pressing the FORM FEED button (m=1), the paper cannot be fed using the FORM
FEED button. [Default] [Reference] GS : [Example]
cSGcS
cSGcS
cS
[Name] Print counter [Format] ASCII G S c
Hex 1D 63
Decimal 2 9 99 [Description] Sets the serial counter value in the print buffer and incre-
ments or decrements the counter value. [Notes] • After setting the current counter value in the print buffer as
print data (a character string), the printer counts up or down
based on the count mode set. The counter value in the print
buffer is printed when the printer receives a print command or
the buffer is full.
• The counter print mode is set using GS C 0.
• The counter mode is set using GS C 1 or GS C ;.
• In count-up mode, if the counter value set by this command
goes out of the counter operation range set by GS C 1 or
GS C ; it is forced to revert to the minimum value.
• In count-down mode, if the counter value set by this com-
mand goes out of the counter operation range set by GS C 1
or GS C ; it is forced to revert to the maximum value. [Default] [Reference] GS C 0, GS C1, GS C 2, GS C ; [Example]
TPTCM413-
Page 68
3. PRINTER FUNCTIONS
G
G
G
G
G
]m[neS
]m[neS
]m[neS
]m[neS
]m[neS
[Name] Ejector commands [Format] ASCII G S e n [m]
Hex 1D 65 n [m]
Decimal 2 9 101 n [m] [Range] 0 n 8 [Description] This command checks tickets ejector :
n = 0 Ticket produced with defined number of steps (see
command notes)
n = 1 Ejector motor off
n = 2 Ejector motor on
n = 3 ticket presenting with m steps (1 step = 22 mm)
n = 4 ticket catch
n = 5 ticket espulsion
n = 6 transmits ejector byte status
tiBnO/ffOxeHlamiceD
0
1
2
3
4
5
6 7
ffO000 dnerepapraentoN
nO101 dnerepapraeN
ffO000 ffOotdexiF.desutoN ffO000 rosnesdnerepaP
nO404
ffO000 tuostekciT
nO808
ffO000
nO0161
ffO000 fforotomrotcejE
nO0223
ffO000
nO0446
ffO000 ffOotdexiF.desutoN
nuFoitcn
.tneserpsirepaP
htuomrotcejenotneserptekciT
fforotomgnippetsretnirP
norotomgnippetsretnirP
norotomrotcejE
rorreoN
sruccororrE
n = 7 sets maximum ticket length :
The maximum ticket length is [(m*256+l) * (vertical motion
unit )] inches.
n = 8 ticket presenting with m steps (1 step = 6.7mm) [Notes] m must be sent with n = 3, 7;
l must be sent with n = 7;
TPTCM 423-
Page 69
3. PRINTER FUNCTIONS
G
G
G
G
G
G
G
G
• if n=3 and ticket is not cut yet, before execute the command a total cutting will be make.
• if n=0 the fixed value of ticket presenting is :
- on power on and after a reset command ( both hardware and software) 47mm
- the last distance saved to a GS e 3 or GS e 8 commands. [Default] Maximum ticket length m*256+l = 4160 (52 cm) [Reference] GS k [Example]
nhSGnhS
nhSGnhS
nhS
[Name] Set bar code height [Format] ASCII G S h n
Hex 1D 68 n
Decimal 2 9 104 n [Range] 1 n 255 [Description] Sets the height of the bar code.
n specifies the number of vertical dots. [Notes] [Default] n = 96 ( 12 mm ) [Reference] GS k [Example]
<nkS
<nkS
<nkS
<nkS
IRHIRH
IRHIRH
RC>RC>
RC>RC>
IRH
<nkS
[Name] Prints bar code. [Formato] ASCII G S k n <HRI> CR
RC>
Hex 1D 6B n <HRI> 0D
Decimale 2 9 107 n <HRI> 1 3 [Range] 1 n 7 [Description] Prints a bar code. The value of n selects the bar code type
to print :
n = 1 UPC-E
n = 2 EAN 13
n = 3 EAN 18
n = 4 CODE 39 (max 12 characters)
TPTCM433-
Page 70
3. PRINTER FUNCTIONS
G
G
G
G
G
n = 5 ITF (Interleaved 2 of 5) (max 22 characters) n = 6 CODEBAR (max 16 characters) n = 7 UPC-A (max 16 characters)
[Notes] • The rotation command does not affect on bar code printing. [Default] [Reference] GS h [Example]
)ecafretnilairesylnO(vS
)ecafretnilairesylnO(vS
)ecafretnilairesylnO(vS
)ecafretnilairesylnO(vS
)ecafretnilairesylnO(vS
[Name] Request expanded status Format] ASCII GS v
Hex 1D 76 Decimal 2 9 118
[Description] This command transmits two bytes, each bit indicates the
printer status to serial port. First byte :
tiBnO/ffOxeHlamiceD
0
1
2
3
4
5
6
7
ffO000
nO101
ffO000
nO202
ffO000
nO404
ffO000
nO808
ffO000
nO0161
ffO000
nO0223
ffO000
nO0446
ffO000
nO08821
tuorepaP
fforotoM norotoM rorreoN
nuFoitcn
ecnadnubaniecneserprepaP
dnerepapraeN
detcetedtonhctoN
llecotohpmorfdetcetedhctoN
ecneserprepaP
desaeleryekdeeFeniL
desserpyekdeeFeniL
desaeleryekdeeFmroF
desserpyekdeeFmroF
tcerrocerutarepmetdaeH
rorreerutarepmetdaeH
.cte,pudaeH,dnerepapoteudrorrE
TPTCM 443-
Page 71
3. PRINTER FUNCTIONS
G
G
G
G
G
Second byte :
tiBnO/ffOxeHlamiceD 0nO101 1nO202 2nO404 3nO808
4nO0161
5- - ­6- - -
7- - -
gnitnirP
pudaeH
hctonedistuO
NOrotomrotcejE
desutoN desutoN
nuFoitcn
htuomtixeehtnotekciT
)tneserptonsirotcejeehtfi(desutoN
)tneserpsirotcejeehtfiylno(maJrepaP
[Notes] • This command is executed immediately, even when the
data buffer is full (Busy ). [Default] [Reference] DLE EOT [Example]
nwS
nwS
nwS
nwS
nwS
[Name] Set bar code width [Format] ASCII G S w n
Hex 1D 77 n
Decimal 2 9 119 n [Range] 2 n 6 [Description] Sets the horizontal size of the bar code.
n specifies the bar code width as follows:
nhtdiweludoM)mm(
252.0
3573.0
45.0
5526.0
657.0
TPTCM453-
Page 72
3. PRINTER FUNCTIONS
G
G
[Notes] [Default] n = 3 [Reference] GS k [Example]
SGS
SGSGααααα nnnnn
S
[Name] Enable / disable automatic FULL STATUS back [Format] ASCII G S α n
Hex 1D E0 n
Decimal 2 9 224 n [Range] 0 n 255 [Description] Enable / disable automatic full status back.
n specifies the composition of FULL STATUS as follows:
tiBnO/ffOxeHlamiceD
0
ffO000
nO101
ffO000
1
nO202
ffO000
2
nO404
ffO000
3
nO808
4- - -
5- - ­6- - ­7- - -
.denifednU .denifednU .denifednU .denifednU
.sutatsrepaPelbasiD
.sutatsrepaPelbanE
.sutatsresUelbasiD
.sutatsresUelbanE
noitcnuF
.sutatSrorrEelbarevoceRelbasiD
.sutatSrorrEelbarevoceRelbanE
.sutatSrorrEelbarevocernUelbasiD
.sutatSrorrEelbarevocernUelbanE
[Notes] • Once enable at least one byte of the FULL STATUS, for
each change of at least one of the bits which compose the
required status, the status sent in automatic from the printer
will be so composed as follows:
1° Byte = 0x10 (DLE)
2° Byte = n
Next byte (depends how many bits are active in n)
TPTCM 463-
Page 73
3. PRINTER FUNCTIONS
G
G
G
G
[Reference] DLE EOT n [Example]
SGS
SGSGΓΓΓΓΓ
S
[Name] Reading number of cuts performed from the printer [Format] ASCII G S Γ
Hex 1D E2 Decimal 2 9 226
[Description] Reading the number of cuts performed from the printer.
The command return a string that points out how many cuts are performed by the printer, for example if there are per­formed 2376 cuts, it will be:
‘2376 cuts’ [Notes] [Default] [Reference] [Example]
SGS
SGSGΠΠΠΠΠ
S
[Name] Reading of length (cm) of printed paper
[Format] ASCII G S Π
Hex 1D E3
Decimal 2 9 227 [Description] Reading of length (cm) of printed paper.
The command return a string pointing out how much paper is
printed, for example if the printer has print about 2515,5 m, it
will be:
‘251550cm’ [Notes] [Default] [Reference] [Example]
TPTCM473-
Page 74
3. PRINTER FUNCTIONS
G
G
SGS
SGSGσσσσσ
S
[Name] Reading number of power up
[Format] ASCII G S σ
Hex 1D E5
Decimal 2 9 229 [Description] Reading number of power up of the printer. [Notes] • The command return a string pointing out the number of
turning on of the printer, for example if the printer is turned on
512 times, it will be:
‘512on’ [Default] [Reference] [Example]
3.2.2 ESC/POS emulation
The following table lists all the commands for function management in ESC/ POS emulation of the printer. The commands can be transmitted to the printer at any moment, but they will only be carried out when the commands ahead of them have been executed. The commands are carried out when the circular buffer is free to do so.
(T ab.3.2)
IICSAIICSA
IICSAIICSAXEHXEH
IICSA
COMMAND DESCRIPTION TABLE
XEHXEHnoitpircseDnoitpircseD
XEH
noitpircseDnoitpircseD
noitpircseD
SB80$ecapskcaB TH90$batlatnoziroH
FLA0$deefenildnatnirP
RCD0$nruteregairracdnatnirP
nTOEELD)n(40$01$noissimsnartsutatsemit-laeR
NAC81$dettimsnarteniltnerruclecnaC
nPSCSE)n(02$B1$gnicapsedis-thgirretcarahcteS
n!CSE)n(12$B1$edomtnirpteS
HnLn$CSEHnLn42$B1$noitisopetulosbateS
TPTCM 483-
Page 75
3. PRINTER FUNCTIONS
IICSAIICSA
IICSAIICSAXEHXEH
IICSA
n%CSE)n(52$B1$tesretcarahcdenifed-resulecnac/tceleS
2c1cy&CSE2c1cy62$B1$sretcarahcdenifed-resuenifeD
XEHXEHnoitpircseDnoitpircseD
XEH
noitpircseDnoitpircseD
noitpircseD
HnLnm*CSE
kd...1d
n-CSE)n(D2$B1$ffo/noedomenilrednunruT 0CSE03$B1$gnicapsenilhcni-8/1tceleS 2CSE23$B1$gnicapsenilhcni-6/1tceleS
n3CSE)n(33$B1$stinumuminimgnisugnicapsenilteS n4CSE)n(43$B1$edomtpircsteser/teS n=CSE)n(D3$B1$ecivedtceleS n?CSE)n(F3$B1$sretcarahcdenifed-resulecnaC
@CSE04$B1$retnirpezilaitinI
kn...1nDCSE
LUN
nECSE)n(54$B1$edomdezisahpmetceleS nGCSE)n(74$B1$edomekirts-elbuodtceleS
00
LnmA2$B1$
kd...1dHn
edomtnirpegamitceleS
kn...1n44$B1$
snoitisopbatlatnozirohteS
nJCSE)n(A4$B1$repapdeefdnatnirP
nRCSE)n(25$B1$tesretcarahclanoitanretnitceleS nVCSE)n(65$B1$denrut°09edomtnirptceleS
HnLn\CSEHnLnC5$B1$noitisoptnirpevitalerteS
naCSE)n(16$B1$noitacifitsujtceleS
n4cCSEn43$36$B1$ n5cCSE)n(53$36$B1$snottublenaptnorfelbasid/elbanE
ndCSE)n(46$B1$senilnrepapdeefdnatnirP iCSE96$B1$tuclatoT mCSED6$B1$tuclaitraP
nrCSE)n(27$B1$edomgnitnirpderteser/teS
ntCSE)n(47$B1$elbatedocretcarahctceleS
vCSE67$B1$sutatsretnirptimsnarT
gnitnirprofrosnesrepaptceleS
noitpurretni
n{CSE)n(B7$B1$
retcarahcnwod-edispulecnac/teS
gnitnirp
TPTCM493-
Page 76
IICSAIICSA
IICSAIICSAXEHXEH
IICSA
3. PRINTER FUNCTIONS
XEHXEHnoitpircseDnoitpircseD
XEH
noitpircseDnoitpircseD
noitpircseD
HxLxn·CSE
LyHy
HnLn¹CSEHnLnBF$B1$
n³CSE)n(CF$B1$egapcihpargotniknabhsalfrefsnarT
HnLn²CSEHnLnDF$B1$
n¦CSE)n(EF$B1$knabhsalfotniegapcihpargrefsnarT
n!SG)n(12$D1$ezisretcarahctceleS
:SGA3$D1$noitinifedorcamfodne/tratsteS
nBSG)n(24$D1$
mn0CSGmn03$34$D1$edomtnirpretnuoctceleS
HaLa1CSG
rnHbLb
HnLn2CSGHnLn23$34$D1$retnuoctceleS
LyHy
HxLxnAF$B1$
La13$34$D1$
rnHbLbHa
cihpargtnirP
otegapcihpargtimsnarT
tropnoitacinummoc
morfegapcihpargevieceR
tropnoitacinummoc
edomgnitnirpesreverkcalb/etihwnruT
ffo/no
)A(edomtnuoctceleS
;bs;as;CSG
;cs;rs;ns
nHSG)n(84$D1$sretcarahcIRHfonoitisopgnitnirptceleS
nISG)n(94$D1$DIretnirptimsnarT
HnLnLSGHnLnC4$D1$nigramtfelteS
yxPSGyx05$D1$
HnLnWSGHnLn75$D1$htdiwaeragnitnirpteS
mtr^SGmtrE5$D1$orcametucexE
cSG36$D1$retnuoctnirP
]m[neSG]m[)n(56$D1$sdnammocrotcejE
nfSG)n(66$D1$sretcarahcIRHroftnoftceleS
nhSG)n(86$D1$edocrabfothgiehtceleS
LUNmkSG00mB6$D1$edocrabtnirP
asB3$34$D1$
B3$nsB3$bsB3$
B3$csB3$rs
)B(edomtnuoctceleS
stinunoitomlacitrevdnalatnozirohteS
)1edom(
nrSG)n(27$D1$sutatstimsnarT
vSG67$D1$sutatsdednapxetseuqeR
nwSG)n(77$D1$
TPTCM 503-
fo)tnemegralne(edislatnozirohtceleS
edocrab
Page 77
3. PRINTER FUNCTIONS
B
B
H
H
H
IICSAIICSA
IICSAIICSAXEHXEH
IICSA
n|SG)n(C7$D1$ytisnedgnitnirpteS
n~SG)n(E7$D1$tpircsbus/tpircsrepusteS
XEHXEHnoitpircseDnoitpircseD
XEH
noitpircseDnoitpircseD
noitpircseD
SG α nn0E$D1$
SG Γ 2E$D1$ SG Π 3E$D1$repapdetnirpfo)mc(htgnelfognidaeR
SG σ 5E$D1$purewopforebmungnidaeR
kcabSUTATS
retnirpeht
In the table listed above, the commands marked with this symbol are defined only for the serial interface.
Given below are more detailed descriptions of each command.
SBS
SBSB
S
[Name] Back space
LLUFcitamotuaelbasid/elbanE
morfdemrofrepstucforebmungnidaeR
[Format] ASCII B S
Hex 08
Decimal 8 [Description] Moves print position to previous character. [Notes] Can be used to put two characters at the same position. [Default] [Reference] [Example]
THT
THT
T
[Name] Horizontal tab [Format] ASCII HT
Hex 09
Decimal 9 [Description] Moves the print position to the next horizontal tab position. [Notes] • Ignored unless the next horizontal tab position has been
set.
TPTCM513-
Page 78
• If the command is received when the printing position is at
L
L
L
C
C
C
the right margin, the printer executes print buffer full printing and horizontal tab processing from the beginning of the next line.
• Horizontal tab positions are set using ESC D. [Default] [Reference] ESC D [Example]
FLF
FLF
F
[Name] Print and line feed [Format] ASCII LF
Hex 0A
3. PRINTER FUNCTIONS
Decimal 10
[Description] Prints the data in the buffer and feeds one line based on the
current line spacing. [Notes] • Sets the print position to the beginning of the line. [Default] [Reference] ESC 2, ESC 3 [Example]
RCR
RCR
R
[Name] Print and carriage return [Format] ASCII C R
Hex 0D
Decimal 1 3 [Description] When autofeed is “CR enabled”, this command functions in
the same way as LF, otherwise it is disregarded. [Notes] • This command sets the print position to the beginning of the
line. [Default] [Reference] LF [Example]
TPTCM 523-
Page 79
3. PRINTER FUNCTIONS
D
D
D
D
D
nTOEEL
nTOEEL
nTOEEL
nTOEEL
nTOEEL
[Name] Real-time status transmission [Format] ASCII DLE EOT n
Hex 10 04 n
Decimal 1 6 4 n [Range] 1 n 4, n=20 [Description] Transmits the selected printer status specified by n in real
time according to the following parameters:
n = 1 transmit printer status
n = 2 transmit off-line status
n = 3 transmit error status
n = 4 transmit paper roll sensor status
n = 20 transmit FULL STATUS [Notes] • This command is executed when the data buffer is full.
• This status is transmitted whenever data sequence 10H
04H n is received (1 n 4). [Default] [Reference] See tables below. [Example]
n=1: Printer status
tiBnO/ffOxeHlamiceD
0ffO000
1nO202
2ffO000
ffO000
3
nO808 4nO0161 5- - ­6- - ­7ffO000
.enil-nO .enil-ffO
.denifednU .denifednU
noitcnuF .ffOotdexiF.desutoN .nOotdexiF.desutoN .ffOotdexiF.desutoN
.nOotdexiF.desutoN
.ffOotdexiF.desutoN
TPTCM533-
Page 80
n=2: Off-line status
3. PRINTER FUNCTIONS
tiBnO/ffOxeHlamiceD
0ffO000
1nO202
ffO000
2
nO04 4
ffO000
3
nO808
4nO0161
ffO000
5
nO0223
ffO000
6
nO0446
7ffO000
n=3: Error status
tiBnO/ffOxeHlamiceD
0ffO000
1nO202 2ffO000 3- - ­4nO0161 5ffO000
ffO000
6
nO0464
7ffO000
noitcnuF .ffOotdexiF.desutoN .nOotdexiF.desutoN
.desolcrevoC
.deneporevoC
.nottubDEEFybdedeeft'nsirepaP
.nottubDEEFybdedeefsirepaP
.nOotdexiF.desutoN
.ecneserprepaP
.dnerepapoteudpotsgnitnirP
.rorreoN
.rorrE
.ffOotdexiF.desutoN
noitcnuF
otdexiF.desutoN.ffO otdexiF.desutoN.nO otdexiF.desutoN.ffO
.denifednU
.nOotdexiF.desutoN
otdexiF.desutoN.ffO
.rorreelbarevocer-otuaoN
.rorreelbarevocer-otuA
ffOotdexiF.desutoN
n=4: Paper roll sensor status
tiBnO/ffOxeHlamiceD
0ffO000
1nO202
ffO000
23,
nO0C 21
4nO0161
ffO000
6,5
On 60 69
7ffO000
TPTCM 543-
nuFnoitc
.ffOotdexiF.desutoN .nOotdexiF.desutoN
.ecnadnubanitneserprepaP
.dnerepapraeN
otdexiF.desutoN.nO
.tneserprepaP
.tneserptonrepaP
.ffOotdexiF.desutoN
Page 81
3. PRINTER FUNCTIONS
n=20: FULL status (6 bytes) 1° Byte = 0x10 (DLE) 2° byte = 0x0F 3° byte = Paper status
tiBnO/ffOxeHlamiceD
0
1Off00 0 2 3ffO000
4Off00 0 5
6 7- ---
ffO000
nO101
ffO000
nO404
ffO000
nO0223
ffO000
nO0446
.DEVRESER
nuFnoitc
.tneserprepaP
.tneserptonrepaP
OotdexiF.desutoNff.
.ecnadnubanitneserprepaP
.dnerepapraeN
.ffOotdexiF.desutoN
otdexiF.desutoN.ffO
.tuptuonitneserptontekciT
.tuptuonitneserptekciT
dnerepaplautrivtoN
)*()*(
)*()*(
.
)*(
dnerepaplautriV
)*()*(
)*()*(
.
)*(
(*) Virtual paper end is set when the paper length available, readed by GS ß,
is 0.
4° byte = USER STATUS
tiBnO/ffOxeHlamiceD
0ffO000
ffO000
1
On 02 2
2ffO000
ffO000
3
On 08 8
4ffO000
ffO000
5
On 0223
ffO000
6
nO0446
7ffO000
nuFnoitc
.ffOotdexiF.desutoN
.desolcrevoC
.deneporevoC
.ffOotdexiF.desutoN .fforotomrepapgarD .norotomrepapgarD
.ffOotdexiF.desutoN
.desaeleryekFL
.desserpyekFL
.desaeleryekFF
.desserpyekFF
.ffOotdexiF.desutoN
TPTCM553-
Page 82
3. PRINTER FUNCTIONS
C
C
C
5° byte = Recoverable error Status
tiBnO/ffOxeHlamiceD
ffO000
0
nO101
1Off00 0
2ffO000
ffO000
3
ffO000
4Off000
ffO000
5
nO0223
ffO000
6
nO0446
ffO000
7
nO08821
6° byte = Unrecoverable error Status
tiBnO/ffOxeHlamiceD
ffO000
0
nO101
1Off00 0
ffO000
2
nO404
ffO000
3
ffO000
4Off000
ffO000
5
nO0223
ffO000
6
nO0446
7ffO000
nuFnoitc
.koerutarepmetdaeH
.rorreerutarepmetdaeH OotdexiF.desutoNff. OotdexiF.desutoNff.
.koegatlovylppusrewoP
.rorreegatlovylppusrewoP
otdexiF.desutoN.ffO
.dnammocegdelwonkcA
.rorrednammocegdelwonkcatoN
.etuorrepapeerF
.majrepaP
.gnihcraesnirodnuofrekaMkcalB
.dnuoftonrekaMkcalB
nuFnoitc
.korettuC
.rorrerettuC
OotdexiF.desutoNff.
.koMAR
.rorreMAR
.koMORPEE
.rorreMORPEE
otdexiF.desutoN.ffO
.koAGPF
.rorreAGPF
.kohsalF
.rorrehsalF
.ffOotdexiF.desutoN
NACNA
NACNA
NA
[Name] Cancel current line transmitted [Format] ASCII CAN
Hex 18
Decimal 2 4 [Description] Deletes current line transmitted. [Notes] • Sets the print position to the beginning of the line.
TPTCM 563-
Page 83
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
E
E
[Default] [Reference] [Example]
nPSCS
nPSCS
nPSCS
nPSCS
nPSCS
[Name] Set right-side character spacing [Format] ASCII ESC SP n
Hex 1B 20 n
Decimal 2 7 3 2 n [Range] 0 n 255 [Description] Sets the character spacing for the right side of the character
to [n x horizontal or vertical motion units]. [Notes] • The right character spacing for double-width mode is twice
the normal value.
When the characters are enlarged, the right side character
spacing is m (2 or 4) times the normal value.
• The horizontal and vertical motion units are specified by GS
P. Changing the horizontal or vertical motion units does not
affect the current right side spacing.
• The GS P command can change the horizontal (and verti-
cal) motion unit. However, the value cannot be less than the
minimum horizontal movement amount.
• In standard mode, the horizontal motion unit is used.
• The maximum right side spacing is 255/200 inches. [Default] n = 0 [Reference] GS P [Example]
n!CS
n!CS
n!CS
n!CS
n!CS
[Name] Select print modes [Format] ASCII ESC ! n
Hex 1B 21 n
Decimal 2 7 3 3 n [Range] 0 n 255 [Description] Selects print modes using n (see table below):
TPTCM573-
Page 84
3. PRINTER FUNCTIONS
tiBnO/ffOxeHlamiceD
ffO000
0
nO101
1- - -
2- - -
ffO000
3
nO808
ffO000
4
nO0161
ffO000
5
nO0223
ffO000
6
nO0446
ffO000
7
nO08821
nuFnoitc
.detcelesAtnofretcarahC
.detcelesBtnofretcarahC .denifednU .denifednU
.detcelestonedomdednapxE
.detcelesedomdednapxE
.detcelestonedomthgieh-elbuoD
.detcelesedomthgieh-elbuoD
.detcelestonedomhtdiw-elbuoD
.detcelesedomhtdiw-elbuoD
.detcelestonedomcilatI
.detcelesedomcilatI
.detcelestonedomenilrednU
.detcelesedomenilrednU
[Notes] • The printer can underline all characters, but cannot under-
line the spaces set by HT, ESC $, ESC \ and 90° rotated characters.
• When characters are enlarged to different heights on one line, the characters are aligned at the baseline or topline (see GS ~).
• This command resets the left and right margin at default value (see GS L, GS W).
ESC E can also be used to turn the emphasized mode on/ off. However, the last-received setting command is the effec­tive one.
ESC - can also be used to turn the underlining mode on/off. However, the last-received setting command is the effective one.
ESC 4 can also be used to turn the italic mode on/off. How­ever, the last-received setting command is the effective one.
GS ! can also be used to select character height/width. However, the last-received setting command is the effective
one. [Default] n = 0 [Reference] ESC -, ESC E, ESC 4, GS !
TPTCM 583-
Page 85
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
E
E
[Example]
HnLn$CS
HnLn$CS
HnLn$CS
HnLn$CS
HnLn$CS
[Name] Set absolute print position [Format] ASCII ESC $ nL nH
Hex 1B 24 nL nH Decimal 2 7 36 nL nH
[Range] 0 nL 255
0 nH 255
[Description] Sets the distance from the beginning of the line to the posi-
tion at which subsequent characters are to be printed. The distance from the beginning of the line to the print posi-
tion is [(nL + nH × 256) × (vertical or horizontal motion unit)] inches.
[Notes] • Settings outside the specified printable area are ignored.
• The horizontal and vertical motion unit are specified by GS P .
GS P can change the horizontal (and vertical) motion unit. However, the value cannot be less than the minimum horizon­tal movement amount.
• In standard mode, the horizontal motion unit (x) is used.
• If the setting is outside the printing area width, it sets the absolute print position, but the left or right margin is set at
default value. [Default] [Reference] ESC \, GS P [Example]
n%CS
n%CS
n%CS
n%CS
n%CS
[Name] Select/cancel user-defined characters [Format] ASCII ESC % n
Hex 1B 25 n
Decimal 2 7 37 n [Range] 0 n 255 [Description] Selects or cancels the user-defined character set.
When the Least Significant Bit (LSB) of n is 0, the user-de-
fined character set is canceled.
TPTCM593-
Page 86
3. PRINTER FUNCTIONS
E
E
E
E
E
When the LSB of n is 1, the user-defined character set is selected.
[Notes] • Only the LSB of n is applicable.
• When the user-defined character set is canceled, the inter-
nal character set is automatically selected. [Default] n=0 [Reference] ESC &, ESC ? [Example]
y(d1d1x[2c1cy&CS
y(d1d1x[2c1cy&CS
y(d1d1x[2c1cy&CS
y(d1d1x[2c1cy&CS
ЧЧЧЧЧ y(d1dkx[])1xy(d1dkx[])1x
y(d1d1x[2c1cy&CS
y(d1dkx[])1xy(d1dkx[])1x ××××× ])kx])kx
y(d1dkx[])1x
[Name] Defines user-defined characters [Format] ASCII ESC & y c1 c2
Hex 1B 26 y c1 c2
])kx])kx
])kx
Decimal 2 7 37 y c 1 c2 [Range] y = 3
32 c1 c2 126
0 x 14 (Font ( 14 × 24))
0 x 10 (Font 10 × 24)
0 x 8 (Font 8 × 24)
0 d1 … d (y × xk) ≤ 255
k = c2 – c1 + 1 [Description] Defines user-defined characters.
Y specifies the number of bytes in the vertical direction.
C1 specifies the beginning character code for the definition,
and C2 specifies the final code.
X specifies the number of dots in the horizontal direction. [Notes] • The allowable character code range is from ASCII 20H (32)
to 7EH (126) (95 characters).
• It is possible to define multiple characters for consecutive
character codes. If only one character is desired, use c1 =
c2.
• If c2 < c1, the command is not executed.
• d is the dot data for the characters. The dot pattern is in the
horizontal direction starting from the left. Any remaining dots
on the right remain blank.
• The data to define a user-defined character is ( x
x y) bytes.
• To print a dot, set the corresponding bit to 1; to not have it
print, set to 0.
• This command can define different user-defined character
TPTCM 603-
Page 87
3. PRINTER FUNCTIONS
E
E
E
E
E
patterns for each font. To select the font, use ESC !.
• The user-defined character definitions are cleared when: ESC @ or GS * or ESC ? are executed or the printer is reset
or the power shut off. [Default] Internal character set. [Reference] ESC %, ESC ? [Example]
kd...1dHnLnm*CS
kd...1dHnLnm*CS
kd...1dHnLnm*CS
kd...1dHnLnm*CS
kd...1dHnLnm*CS
[Name] Select bit image mode [Format] ASCII ESC * m n L n H d1...dk
Hex 1B 2A m nL nH d1...dk
Decimal 2 7 4 2 m nL nH d1...dk [Range] m = 0, 1, 32, 33
0 nL 255
0 nH
0 d 255 [Description] Selects a bit image mode using m for the number of dots
specified by nL and nH, as follows:
@ 1 A 3
TPTCM613-
Page 88
3. PRINTER FUNCTIONS
noitceridlacitreV)1*(noitceridlatnoziroH
m
elgnistod8
0
ytisned
elbuodtod8
1
ytisned
elgnistod42
23
ytisned
elbuodtod42
33
ytisned
stod.NIPDIPD)k(ataDfo.N
876001652xHn+Ln
876002652xHn+Ln
420020013x)652xHn+Ln(
420020023x)652xHn+Ln(
[Notes] • The nL and nH commands indicate the number of dots of
the bit image in the horizontal direction. The number of dots is calculated using: nL + nH × 256.
• If the bit image data input exceeds the number of dots to be printed on a line, the excess data is ignored.
d indicates the bit image data. Set a corresponding bit to 1 to print a dot, or to 0 to not print the dot.
• If the value of m is outside the specified range, nL and data following it are processed as normal data.
• If the width of the printing area set by GS L and GS W is less than the width required by the data set using ESC * , the excess data are ignored.
• To print the bit image use LF, CR, ESC J or ESC d.
• After printing a bit image, the printer returns to normal data processing mode.
• This command is not affected by the emphasized, double­strike, underline (etc.) print modes, except for the upside­down mode.
• The relationship between the image data and the dots to be printed is as follows:
TPTCM 623-
Page 89
3. PRINTER FUNCTIONS
E
E
E
E
E
8-dot bit image 24-dot bit image
@ indicates TPTCM60x A indicates TPTCM112x
[Default] [Reference] [Example]
n-CS
n-CS
n-CS
n-CS
n-CS
[Name] Turn underline mode on/off [Format] ASCII ESC - n
Hex 1B 2D n
Decimal 2 7 4 5 n [Range] 0 n 2, 48 n 50 [Description] Turns underline mode on or off, based on the following val-
ues of n:
n = 0, 48 Turns off underline mode
n = 1, 49 Turns on underline mode (1-dot thick)
n = 2, 50 Turns on underline mode (2-dot thick) [Notes] • The printer can underline all characters, but cannot under-
line the space set by HT and right-side character spacing.
• The printer cannot underline 90° rotated characters and
white/black inverted characters.
• When underline mode is turned off by setting the value of n
to 0 or 48, the data which follows is not underlined.
• Underline mode can also be turned on or off by using
ESC !. Note, however, that the last received command is the
effective one.
TPTCM633-
Page 90
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
E
E
E
[Default] n=0 [Reference] ESC ! [Example]
0CSE0CS
0CSE0CS
0CS
[Name] Select 1/8-inch line spacing [Format] ASCII ESC 0
Hex 1B 30
Decimal 2 7 48 [Description] Selects 1/8-inch line spacing [Notes] [Default] [Reference] ESC 2, ESC 3 [Example]
2CSE2CS
2CSE2CS
2CS
[Name] Select 1/6-inch line spacing [Format] ASCII ESC 2
Hex 1B 32
Decimal 2 7 5 0 [Description] Selects 1/6-inch line spacing. [Notes] [Default] [Reference] ESC 0, ESC 3 [Example]
n3CS
n3CS
n3CS
n3CS
n3CS
[Name] Set line spacing [Format] ASCII ESC 3 n
Hex 1B 33 n
Decimal 2 7 5 1 n [Range] 0 n 255 [Description] Sets line spacing to [ n × (vertical or horizontal motion unit)]
inches.
TPTCM 643-
Page 91
3. PRINTER FUNCTIONS
E
E
E
E
E
[Notes] • The horizontal and vertical motion unit are specified by
GS P. Changing the horizontal or vertical motion unit does not affect the current line spacing.
• The GS P command can change the horizontal (and verti­cal) motion unit. However, the value cannot be less than the minimum vertical movement amount.
• In standard mode, the vertical motion unit is used.
• The maximum line spacing is n = 255 ( 32 mm). [Default] n = 32 (1/6 inch) [Reference] ESC 0, ESC 2, GS P [Example]
n4CS
n4CS
n4CS
n4CS
n4CS
[Name] Set/reset italic mode [Format] ASCII ESC 4 n
Hex 1B 34 n
Decimal 27 52 n [Range] 0 n 1, 48 n 49 [Description] Turns italic mode on or off, based on the following values of
n:
nnoitcnuF
84,0edomcilatiffosnruT
94,1edomcilatinosnruT
[Notes] • The printer can print any character in italic mode.
• When italic mode is turned off by setting the value of n to 0
or 48, the data which follows is printed in normal mode.
• Italic mode can also be turned on or off using ESC !. Note,
however, that the last received command is the effective one. [Default] n = 0 [Reference] ESC ! [Example]
TPTCM653-
Page 92
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
E
E
n=CS
n=CS
n=CS
n=CS
n=CS
[Name] Select peripheral device [Format] ASCII ESC = n
Hex 1B 3D n
Decimal 2 7 6 1 n [Range] 0 n 255 [Description] Select the device to which the host computer sends data,
using n as follows:
tiBnO/ffOxeHlamiceD
ffO000
0
nO01 1
1- - ­2- - ­3- - ­4- - ­5- - ­6- - -
ffO000
7
nO08821
delbasidretnirP
delbaneretnirP denifednU denifednU denifednU denifednU denifednU denifednU denifednU denifednU
noitcnuF
[Notes] • When the printer is disabled, it ignores all transmitted data
until the printer is enabled through this command. [Default] n = 1 [Reference] [Example]
n? CS
n? CS
n? CS
n? CS
n? CS
[Name] Cancel user-defined characters [Format] ASCII ESC ? n
Hex 1B 3F n
Decimal 27 6 3 n [Range] 32 n 126 [Description] Cancels user-defined characters. [Notes] • This command cancels the pattern defined for the character
code specified by n. After the user-defined character is can-
celled, the corresponding pattern for the internal character is
printed.
TPTCM 663-
Page 93
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
• This command deletes the pattern defined for the specified character code in the font selected by ESC !.
• If the user-defined character has not been defined for the
specified character code, the printer ignores this command. [Default] [Reference] ESC &, ESC % [Example]
@CSE@CS
@CSE@CS
@CS
[Name] Initialize printer [Format] ASCII ESC @
Hex 1B 40
Decimal 2 7 6 4 [Description] Clears the data in the print buffer and resets the printer mode
to that in effect when power was turned on. [Notes] • The data in the receiver buffer is not cleared.
• The macro definitions are not cleared. [Default] [Reference] [Example]
LUN]kn...1n[DCS
LUN]kn...1n[DCS
LUN]kn...1n[DCS
LUN]kn...1n[DCS
LUN]kn...1n[DCS
[Name] Set horizontal tab positions [Format] ASCII ESC D n1...nk NUL
Hex 1B 44 n1...nk 00 Decimal 2 7 6 8 n1...nk 0
[Range] 1 n 255
0 k 32
[Description] Sets horizontal tab positions
n specifies the column number for setting a horizontal tab
position calculated from the beginning of the line.
k indicates the total number of horizontal tab positions to be
set.
[Notes] • The horizontal tab position is stored as a value of [character
width x n] measured from the beginning of the line. The char­acter width includes the right-side character spacing and
TPTCM673-
Page 94
3. PRINTER FUNCTIONS
E
E
E
E
E
double-width characters are set with twice the width of normal characters.
• This command cancels previous tab settings.
• When setting n = 8, the print position is moved to column 9, by sending HT.
• Up to 32 tab positions ( k = 32) can be set. Data exceeding 32 tab positions is processed as normal data.
• Send [ n ] k in ascending order and place a 0 NUL code at the end. When [ n ] k is less than or equal to the preceding value [ n ] k-1, the setting is complete and the data which follows is processed as normal data.
ESC D NUL cancels all horizontal tab positions.
• The previously specified horizontal tab position does not change, even if the character width is modified.
[Default] Default tab positions are set at intervals of 8 characters (col-
umns 9, 17, 25, …) for Font A when the right-side character
spacing is 0. [Reference] HT [Example]
nECS
nECS
nECS
nECS
nECS
[Name] Turn emphasized mode on/off [Format] ASCII ESC E n
Hex 1B 45 n
Decimal 2 7 6 9 n [Range] 0 n 255 [Description] Turns emphasized mode on/off.
• When the LSB of n is 0, the emphasized mode is off.
• When the LSB of n is 1, the emphasized mode is on.
[Notes] • Only the LSB of n is effective.
ESC ! also turns on and off the emphasized mode. How-
ever, the last received command is the effective one. [Default] n = 0 [Reference] ESC ! [Example]
TPTCM 683-
Page 95
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
E
E
nGCS
nGCS
nGCS
nGCS
nGCS
[Name] Turn double-strike mode on/off [Format] ASCII ESC G n
Hex 1B 47 n
Decimal 2 7 71 n [Range] 0 n 255 [Description] Turns double-strike mode on or off.
• When the LSB of n is 0, the double-strike mode is off.
• When the LSB of n is 1, the double-strike mode is on.
[Notes] • Only the LSB of n is effective.
• Printer output is the same in double-strike and emphasized
mode. [Default] n = 0 [Reference] ESC E [Example]
nJCS
nJCS
nJCS
nJCS
nJCS
[Name] Print and paper feed [Format] ASCII ESC J n
Hex 1B 4A n
Decimal 2 7 74 n [Range] 0 n 255 [Description] Prints the data in the print buffer and feeds the paper [ n ×
(vertical or horizontal motion unit)] inches. [Notes] • After printing has been completed, this command sets the
print starting position to the beginning of the line.
• The paper feed amount set by this command does not af-
fect the values set by ESC 2 or ESC 3.
• The horizontal and vertical motion units are specified by
GS P.
GS P can change the vertical (and horizontal) motion unit.
However, the value cannot be less than the minimum vertical
movement amount.
• In standard mode, the vertical motion unit is used.
• The maximum paper feed amount is 31.8 mm. [Default] [Reference] GS P
TPTCM693-
Page 96
3. PRINTER FUNCTIONS
E
E
E
E
E
[Example]
nRCS
nRCS
nRCS
nRCS
nRCS
[Name] Select an international character set [Format] ASCII ESC R n
Hex 1B 52 n
Decimal 2 7 8 2 n [Range] 0 n 12 [Description] Selects the international character set n according to the
table below:
xeH324204B5C5D5E506B7C7D7E7
ntesretcarahC
0.A.S.U#$@[\]^`{|}~ 1ecnarF#$à°ç§^`èùè"
2ynamreG#$§ÄÖÜ^`äöü
β
3modgniKdetin$@[\]^`{|}~ 4IkramneD#$@Æ
Å^ `æ
φ
å~ 5nedewS # ИДЦЕЬйдцеь 6ylatI #$@°\и^щатим
71niapStP$@iÑ¿^`"ñ}~ 8apaJn #$@[¥]^`{|}~ 9yawroN#ÉÆ
ÅÜéæ
φ
åü
01IIkramneD#$ÉÆ
ÅÜéæ
φ
åü
11pSnia2 # $ à i Ñ ¿ è ` í ñ ö ü
21SuoaciremAht#$àiÑ¿èùíñöü
[Default] n = 0 [Reference]
TPTCM 703-
Page 97
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
E
E
[Example]
nVCS
nVCS
nVCS
nVCS
nVCS
[Name] Set 90° rotated print mode. [Format] ASCII ESC V n
Hex 1B 56 n
Decimal 2 7 86 n [Range] 0 n 1, 48 n 49 [Description] Turns 90° rotation mode on/off.
n is used as follows :
nnnnnnoitcnuFnoitcnuF
84,0edomnoitator°09ffosnruT
94,1edomnoitator°09nosnruT
noitcnuFnoitcnuF
noitcnuF
[Notes] • When underlined mode is turned on, the printer does not
underline 90° rotated characters. All the same it’s possible
select the underline mode.
• Double-width and double-height commands in 90° rotation
mode enlarge characters in the opposite directions from
double-height and double-width commands in normal mode.
• This command is not available in Page mode.
• If this command is entered in Page mode, the printer all the
same save the setting. Default] n = 0 [Reference] ESC !, ESC -
HnLn\CS
HnLn\CS
HnLn\CS
HnLn\CS
HnLn\CS
[Name] Set relative print position [Format] ASCII ESC \ nL nH
Hex 1B 5C nL nH
Decimal 2 7 92 nL nH [Range] 0 nL 255
0 nH 255 [Description] Sets the print starting position based on the current position
by using the horizontal or vertical motion unit.
TPTCM713-
Page 98
3. PRINTER FUNCTIONS
E
E
E
E
E
This command sets the distance from the current position to [(nL+ nH × 256) × (horizontal or vertical motion unit)].
[Notes] • Any setting that exceeds the printable area is ignored.
• When the starting position is specified by n motion units to the right: nL + nH × 256 = n When the starting position is specified by n motion units to the left (negative direction), use the complement of 65536:
nL + nH × 256 = 65536 – n
• If setting exceeds the printing area width, the left or right margin is set to the default value.
• The horizontal and vertical motion unit are specified by GS P.
GS P can change the horizontal (and vertical) motion units. However, the value cannot be less than the minimum horizon­tal movement amount.
• In standard mode, the horizontal motion unit is used. [Default] [Reference] ESC $, GS P [Example]
naCS
naCS
naCS
naCS
naCS
[Name] Select justification [Format] ASCII ESC a n
Hex 1B 61 n
Decimal 2 7 9 7 n [Range] 0 n 2, 48 n 50 [Description] Aligns all data in one line to the specified position.
n selects the type of justification as follows:
n Justification
0, 48 Flush left 1, 49 Centered 2, 50 Flush right
[Notes] • This command is only enabled when inserted at the begin-
ning of a line.
• Lines are justified within the specified printing area.
• Spaces set by HT, ESC $ and ESC \ will be justified ac-
cording to the previously-entered mode.
TPTCM 723-
Page 99
3. PRINTER FUNCTIONS
E
E
E
E
E
[Default] n = 0 [Reference] [Examp le] Flush left Centered Flush right
ABC ABCD ABCDE
n4cCS
n4cCS
n4cCS
n4cCS
n4cCS
ABC
ABCD
ABCDE
ABC
ABCD
ABCDE
[Name] Select paper sensor to stop printing. [Format] ASCII ESC c 4 n
Hex 1B 63 34 n
Decimale 2 7 99 5 2 n [Range] 0 n 255 [Description] Selects the paper sensor used to stop printing when a near
paper-end is deleted, using n as follows :
tiBnO/ffOxeHlamiceD
nuFoitcn
0
ffO000
nO01 1
1- - ­2- - ­3- - ­4- - ­5- - ­6- - ­7- - -
denifednU denifednU denifednU denifednU denifednU denifednU denifednU
.delbanerosnesdnellorrepaP
.delbanerosnesdne-raenllorrepaP
[Notes] • When a near paper-end is detected, printing stops after
printing the current line and feeding the paper.
• The paper roll near-end sensor is enabled when either bit 0 is 1.
• This setting is not cleared by printer resetting, because it is
stored in the Eeprom. [Default] n = 0 [Reference]
TPTCM733-
Page 100
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
E
E
[Example]
n5cCS
n5cCS
n5cCS
n5cCS
n5cCS
[Name] Enable/disable front panel buttons [Format] ASCII ESC c 5 n
Hex 1B 63 35 n
Decimal 2 7 9 9 53 n [Range] 0 n 255 [Description] Enables/disables the buttons on the front panel.
• When the LSB of n is 0, the panel buttons are enabled.
• When the LSB of n is 1, the panel buttons are disabled.
[Notes] • Only the LSB of n is effective.
• On the printer, the panel buttons are LINE FEED and FORM
FEED.
• When the panel buttons are disabled, the buttons may only
be used after the printer has been reset.
• When the panel buttons are disabled, is possible to know
the status through the DLE EOT command. [Default] n = 0 [Reference] DLE EOT [Example]
ndCS
ndCS
ndCS
ndCS
ndCS
[Name] Print and feed paper n lines [Format] ASCII ESC d n
Hex 1B 64 n
Decimal 2 7 100 n [Range] 0 n 255 [Description] Prints the data in the print buffer and feeds the paper n lines. [Notes] • Sets the print starting position at the beginning of the line.
• This command does not affect the line spacing set by
ESC 2 or ESC 3.
• The maximum paper feed amount is 200 lines. Even if a
paper feed amount of more than 200 lines is set, the printer
feeds the paper only 200 lines. [Default]
TPTCM 743-
Loading...