All rights reserved. Total or partial reproduction of this manual in whatever
form, whether by printed or electronic means, is forbidden. While guaranteeing 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.
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
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 highresolution 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:
•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.
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).
TPTCM21-
Page 17
1. INSTALLATION AND USE
Model with serial interfaceModel 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:
•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
AA=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.
TPTCM41-
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).
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.
TPTCM61-
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:
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
TPTCM22-
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:
For the parallel connector, the connection between printer and Personal
Computer, must be made with a 25- pin- to- pin connector.
TPTCM42-
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 Custom 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.
[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
TPTCM103-
@ 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
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]ASCIIESC @
Hex1B40
Decimal2 76 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]ASCIIESC An1n2
Hex1 B41n1n2
Decimal2 765n1n2
[Description]This command moves the paper feeding step motor by a
number of steps equal to (n1*256) + n2.
[Notes]
[Default]
[Reference]
[Example]
TPTCM163-
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]ASCIIESCDn
Hex1B 44n
Decimal27 68n
[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]ASCIIESCF n
Hex 1B 46 n
Decimal27 70 n
[Range]1 ≤ n ≤ 6
[Description]The value of “n” determines flash bank:
n = 11
n = 22
n = 33
n = 44
n = 55
n = 66
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]ASCIIESC Gn
Hex1B 47n
Decimal2 7 71n
[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]ASCIIESCNn
Hex1B4En
Decimal2778n
[Description]Sets or cancel printing negative mode.
n = 0Normal print
n <> 0Negative print
[Notes]
[Default]n = 0
[Reference]
[Example]
PCSEPCS
PCSEPCS
PCS
[Name]Fill ram bank from port (serial or parallel).
[Format]ASCIIESC P16384 bytes
Hex1B5016384 bytes
Decimal2 78016384 bytes
[Description]This command can transfer graphic page into ram.
TPTCM183-
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
16352A 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]ASCIIESCRn
[Range]0 ≤ n ≤ 12
@ indicates TPTCM60xAindicates TPTCM112x
Hex1B52n
Decimal2 782n
@ 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 = 01hFont 8x16
n = 02hFont 16x24
n = 03hFont 24x32
[Notes]
[Default]n = 0
[Reference]
[Example]
nSCS
nSCS
nSCS
nSCS
nSCS
[Name]Sets paper sensibility.
[Format]ASCIIESC Sn
Hex1B53n
Decimal2 783n
[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 = 00hHigh
E
E
E
E
E
E
E
E
E
E
n = 01hNormal
n = 02hMedium
n = 03hL ow
n = 04hDouble copy
[Notes]
[Default]
[Reference]
[Example]
nUCS
nUCS
nUCS
nUCS
nUCS
[Name]Sets underlined mode.
3. PRINTER FUNCTIONS
[Format]ASCIIESC Un
Hex1B55n
Decimal2 785n
[Description]Sets or cancels the underline printing mode.
n = 0Normal print
n <> 0Underlined mode
[Notes]
[Default]
[Reference]
[Example]
nVCS
nVCS
nVCS
nVCS
nVCS
[Name]Sets the print mode rotated by 90°.
[Format]ASCIIESC Vn
Hex1B56n
Decimal2 786n
[Description]Sets or cancels the 90° printing flag rotation in according to n
:
n = 0Normal print
n <> 0Rotated print
The printing direction depends of the reverse bit.
[Notes]
TPTCM203-
Page 47
3. PRINTER FUNCTIONS
E
E
E
E
E
E
E
E
[Default]
[Reference]
[Example]
WCSEWCS
WCSEWCS
dddddsetyb65setyb65
WCS
[Name]Prints a graphic dotline.
[Format]ASCIIESCW@56 bytesA 104 bytes
[Name]Sets the number of steps for form feed.
[Format]ASCIIESC Zn1n2
[Description]When the printer receives an FF (0Ch) character, or when the
@ indicates TPTCM60xAindicates TPTCM112x
2n1nZCS
2n1nZCS
2n1nZCS
2n1nZCS
2n1nZCS
Hex1B5An1n2
Decimale2 790n1n2
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]ASCIIESC \nLnH
Hex1B5CnLnH
Decimal2 792nLnH
[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 horizontal 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]ASCIIESC an
Hex1B61n
Decimal2 79 7n
[Range]0 ≤ n ≤ 2, 48 ≤ n ≤ 50
[Description]Aligns all data in one line to the specified position.
TPTCM223-
Page 49
3. PRINTER FUNCTIONS
E
E
E
E
E
n selects the type of justification as follows:
nJustification
0, 48Flush left
1, 49Centered
2, 50Flush 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 leftCenteredFlush right
ABC
ABCD
ABCDE
n4cCS
n4cCS
n4cCS
n4cCS
n4cCS
ABC
ABCD
ABCDE
ABC
ABCD
ABCDE
[Name]Select paper sensor to stop printing.
[Format]ASCIIESCc4n
Hex1B6334n
Decimale2 7995 2n
[Range]0 ≤ n ≤ 255
[Description]Selects the paper sensor used to stop printing when a near
[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:
[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]ASCIIG SC2nLnH
Hex1D4332nLnH
Decimal2 96750nLnH
[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]ASCIIG S C;sa ;sb ;sn ;sr;sc;
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.
TPTCM363-
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 maximum value. If the counter value set by sc is outside the
counter operation range, the counter value is forced to convert 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]ASCIIG SHn
Hex1D48n
Decimal2 972n
[Range]0 ≤ n ≤ 3, 48 ≤ n ≤ 51
[Description]Selects the printing position of HRI characters when printing
[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]ASCIIG SPxy
Hex1D50xy
Decimal2 980xy
[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, regardless 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]ASCIIG S^rtm
Hex1D5Ertm
Decimal2 994rtm
[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.
TPTCM403-
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]ASCIIG Sc
Hex1D63
Decimal2 999
[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]
Decimal2 9229
[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.
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]ASCIIB S
Hex08
Decimal8
[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]ASCIIHT
Hex09
Decimal9
[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]ASCIILF
Hex0A
3. PRINTER FUNCTIONS
Decimal10
[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]ASCIIC R
Hex0D
Decimal1 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]
TPTCM523-
Page 79
3. PRINTER FUNCTIONS
D
D
D
D
D
nTOEEL
nTOEEL
nTOEEL
nTOEEL
nTOEEL
[Name]Real-time status transmission
[Format]ASCIIDLEEOTn
Hex1004n
Decimal1 64n
[Range]1 ≤ n ≤ 4, n=20
[Description]Transmits the selected printer status specified by n in real
time according to the following parameters:
n = 1transmit printer status
n = 2transmit off-line status
n = 3transmit error status
n = 4transmit 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 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 character 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]ASCIIESC En
Decimal2 786n
[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]ASCIIESC \nLnH
Hex1B5CnLnH
Decimal2 792nLnH
[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 horizontal 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]ASCIIESC an
Hex1B61n
Decimal2 79 7n
[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:
nJustification
0, 48Flush left
1, 49Centered
2, 50Flush 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.
TPTCM723-
Page 99
3. PRINTER FUNCTIONS
E
E
E
E
E
[Default]n = 0
[Reference]
[Examp le]Flush leftCenteredFlush right
ABC
ABCD
ABCDE
n4cCS
n4cCS
n4cCS
n4cCS
n4cCS
ABC
ABCD
ABCDE
ABC
ABCD
ABCDE
[Name]Select paper sensor to stop printing.
[Format]ASCIIESCc4n
Hex1B6334n
Decimale2 7995 2n
[Range]0 ≤ n ≤ 255
[Description]Selects the paper sensor used to stop printing when a near
[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]ASCIIESC c5n
Hex1B6335n
Decimal2 79 953n
[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]ASCIIESC dn
Hex1B64n
Decimal2 7100 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]
TPTCM743-
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.