All rights reserved. T ot al or even partial reproduction of this manual in any form, whether on paper or electronically ,
is strictly forbidden. While CUSTOM ENGINEERING SP A guarantees that the information cont ained in this manual
has been carefully checked and verified, CUSTOM ENGINEERING SP A and other resources utilized in its creation
assume no responsibility for situations arising from its use.
Feedback regarding any errors in the manual’s content or suggestions on how it could be improved would be
greatly appreciated. Since its products are subject to continuous checking and improvement, CUSTOM
ENGINEERING SP A reserves the right to modify the information cont ained in this manual without prior notice.
COD. DOME - TG2460VERS. 1.30
Copyright 2004 CUST OM ENGINEERING SP A – It aly
CUSTOM ENGINEERING SP A
The figures showed list printer parts with USB interface but the remarks are good for the RS232 interface
printers too (apart from the connector).
A. TG1260/TG2460-x-A
(1)
The x suffix indicates the following models :
-TG1260/TG2460-U-A: USB interface, metal front panel and autocutter model.
-TG1260/TG2460-S-A: RS232 serial interface, metal front panel and autocutter model.
‘1- Printing mechanism
2- Autocutter
3- “Print” key
4- “Feed” key
5- Power supply connector
6- USB interface connector
7- Printer frame
8- Autocutter support plate
9- Paper output
10 - Status led
9
(1)
External view
1
8
2
3
7
6
10
5
4
TG1260/2460
Page 4
B. TG1260/TG2460-x-P
(2)
The x suffix indicates the following models :
- TG1260/TG2460-U-P: USB interface and plastic front panel.
- TG1260/TG2460-S-P: RS232 serial interface and plastic front panel.
(2)
external view
1- Printing mechanism
2- “Print” key
3- “Feed” key
4- Power supply connector
5- USB interface connector
6- Printer frame
7- Plastic front panel
8- Paper output
9- Status Led
C. TG1260/TG2460-x-M
(3)
external view
7
9
8
2
3
1
4
6
5
(3)
The x suffix indicates the following models :
- TG1260/TG2460-U-M: USB interface and metal front panel without autocutter model.
- TG1260/TG2460-S-M: RS232 serial interface and metal front panel without autocutter model.
1- Printing mechanism
2- “Print” key
3- “Feed” key
4- Power supply connector
5- USB interface connector
6- Printer frame
7- Metal front panel
8- Paper output
9- Status Led
7
8
1
4
6
5
TG1260/2460
9
2
3
Page 5
D. Back view
(4)
The back view is the same for all models available.
(4)
1- Paper input
2- Inspection cover for paper outlet
MAIN APPLICATIONS ...................................................................................................................................... 2
1.1.1 Power supply TG1260 .................................................................................................................... 1-1
1.1.2 Power supply TG2460 .................................................................................................................... 1-1
1.1.3 USB connector ............................................................................................................................... 1-2
1.1.3 RS232 serial connector .................................................................................................................. 1-2
4.1 CHARACTER SET .................................................................................................................................. 4-1
A.1.1 Power supply.................................................................................................................................. A-1
A.1.1.1 Power supply for TG2460 ............................................................................................................ A-1
A.1.1.2 Power supply for TG1260 ............................................................................................................ A-2
A.1.2 Adjust able paper holder support kit .................................................................................................A-3
A.1.3 Paper dispenser unit..................................................................................................................... A-12
In addition to the Introduction which contains information regarding the symbols used in the manual, general
safety information, instructions for unpacking the printer and a brief description and main characteristics of the
machine, this manual is divided into the following chapters:
Chapter 1:Contains the information required for correct printer installation and use
Chapter 2:Contains a description of printer controls
Chapter 3:Contains printer technical data
Chapter 4:Contains the character sets (fonts) used by the printer
Appendix:Contains the printer accessories and spare parts description
SYMBOLS USED IN THE MANUAL
NOTE
Gives important information or suggestions for printer use.
WARNING
Information indicated by this symbol must be followed carefully to avoid damaging the printer.
DANGER
Information indicated by this symbol must be followed carefully to avoid damage or operator injury .
GENERAL SAFETY INFORMA TIONS
•Read and retain the instructions which follow .
•Before cleaning the printer, be sure to pull out the electrical cable.
•Use a damp cloth to clean the printer. Do not use liquid or spray product s.
•Do not operate the printer near water.
•When positioning the printer, make sure its cables will not be damaged.
•Use the type of electrical power supply indicated on the printer label. If uncertain, contact your dealer .
•Do not insert objects inside the printer as this could cause short-circuiting or damage components that
could jeopardize printer functioning.
•Do not spill liquids onto the machine.
•Do not carry out repairs on the machine yourself, except for the normal maintenance operations given in
the user manual.
•Unplug the printer from the electrical mains and call a specialized repairman if any of the following
conditions should arise:
A. the power supply connector is damaged
B. liquid has spilled into 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 given in the user
manual have been followed
E. the printer has been dropped and the cover is damaged
F. printer performance is noticeably reduced
G . the printer is not working
1
TG2460
Page 10
INTRODUCTION
UNP ACKING THE PRINTER
Remove the printer from the carton, taking care not to damage the packing materials which should be retained
for future shipping/moving.
Make sure all components listed below are present and not damaged. If any part is missing and/or damaged,
contact customer service.
1.Box
2.Foam packing shell
3.Print
4.Paper roll
5.Manual (or CD-rom)
6.Electrical supply cable
3
6
4
5
2
PRINTER DESCRIPTION
Ultra compact thermal printer (only 9cm deep)
for dispensing 60 mm tickets width, easy to
install (4 fastening holes and ticket presentation
to user incorporated). Thanks to the exclusive
anti-paper-jam system, the ticket will always
be promptly dispensed to the user. Thanks to an
innovative type of paper roll holding bracket,
it is possible to accommodate up to 80 mm external
diameter paper rolls, adapt the printer to the mechanical
space requirements necessitated by the application
(3 positions: upper, lower and rear) and manage the
near paper end signal. It is equipped with a 204 dpi thermal
print mechanism; it has the serial RS232 interface and the
USB interface and it’s also available a version equipped with
fireproof plastic or metal front panel, with or without autocutter .
• When the “PRINT” key is pressed during printer power up, it prints the graphic test.
• When the “FEED” key is pressed during printer power up, it prints the font test.
• When both the “PRINT” and the “FEED” keys are pressed during printer power up, it prints the SETUP report.
Pressing the “PRINT” key it’s possible to change the parameters value and to print the parameter current
value; pressing the “FEED” key it’s possible to pass to the next parameter till the end of the SETUP.
• The green Status LED displays a printer hardware error status and the winnings. The check is carried out“on
line”, i.e. in the event of a malfunctioning, the LED will starts flashing as follows:
1
(Fig. 1)
DELSUTATSNOITPIRCSED
FFOsyawlAFFOretnirP
NOsyawlAstluafon–NOretnirP
)doirepgnolarofno(gnihsalfwolSdesiarrevocgnitliT
)doireptrohsarofno(gnihsalfwolSegasseMtuOrepaP
MAIN APPLICATIONS
This printer is the ideal solution for :
• kiosks (internet, public offices, bookings, bank transactions);• instant lotteries;
Every printer available is equipped with a 2 pin male molex connector serie 5569, for the power supply . The
signals on the pins of the feed connector are as follows:
Model no. type :Header :90° Molex serie 5569 (no. 39-30-1020)
Housing:Molex serie 5557 (no. 39-01-3022)
NIPLANGISNOITPIRCSED
1
2
WARNING:
Be sure to observe the correct polarity for the power supply .
1.1.2 Power supply (2460)
Every printer available is equipped with a 2 pin male molex connector serie 5569, for the power supply . The
signals on the pins of the feed connector are as follows:
Model no. type :Header :90° Molex serie 5569 (no. 39-30-1020)
Housing:Molex serie 5557 (no. 39-01-3022)
NIPLANGISNOITPIRCSED
1
V21+REWOP
V42+REWOP
DNGDNUORGLANGIS
(Tab.1.1)
(Tab.1.2)
2
WARNING:
Be sure to observe the correct polarity for the power supply .
DNGDNUORGLANGIS
11-
TG1260/2460
Page 12
1. INSTALLATION AND OPERATION
1.1.3 USB connector
The printer with USB interface complies to USB 1.1 specifications that is:
•Communication speed equal to 12 Mbit/sec.
•Type of connector “Receptacle series B”.
(Fig.1.2)
The signals on the pins of the USB connector are as follows:
NIPLANGISNOITPIRCSED
1SUBV.C.N
2-D-ataD
3+D+ataD
4DNGlangisdnuorG
LLEHSDLEIHSgnidleihselbaC
(Tab.1.3)
1.1.4 RS232 serial connector
The printer with serial RS232 interface is equipped with RJ45 connector. In the following t able are described
the signals on the RS232 connector pins:
The diagrams below show a sample connection between printer and Personal Computer using a 8 pin male
RJ45 connector by printer side and a 9 pin female connector by a PC side.
(Fig.1.4)
Printer sidePC side
1.2 SETUP
The printer enables the configuration of the printer default parameters (see fig. 1.4) pressing both the “PRINT”
and the “FEED” keys during the printer power up. The parameters affected during configuration are:
•Print density: NormalD, Dark, Very Dark, Light, V ery Light.
Notes: The parameters indicates with a D symbol are the default values.
(1)
(2)
The settings made are saved on the EEPROM (non volatile memory).
During the setup routine the printer prints out the setup report and will remain in standby until another key is
pressed or characters are received through the printer communication port. Af ter this, each time the “PRINT”
key is pressed, the parameter is modified and its current value is printed. Once the required value has been
obtained, press the “FEED” key to proceed to the next parameter , and so on. Once all the p arameters have
been run through, the printing of a message signals the end of the setting procedure.
1.3 AUTOTEST
T o run the autotest, press the “FEED” key while switching on the printer. During the running of the autotest, the
character fonts and logos stored inside the printer are printed.
(1)
: DisabledD, Enabled.
NOTE:Using this parameter , it is possible to select whether the Busy signal is activated
when the printer is both in Off Line status and the buffer is full, or only if the reception
buffer is full.
NOTE:These parameters are shown only for the USB interface models.
* PRINTER SETUP *
PROGRAM MEMORY..................OK
PRINTER BUFFER......................OK
CUTTER......................................OK
HEAD VOL T AGE............ [V] = 24,00
HEAD TEMPERATURE [°C ] = 32,5
Printer Emul.: ESC/POS (TM)
Baud Rate: 9600 bps
Data length: 8 bits/chr
Parity: None
Handshaking: Xon/Xoff
Autofeed: CR disabled
USB Address: 0
USB Monitor: Disabled
Panel key: Enabled
Print Mode: Normal
Chars / line: A=32/B=42 col
Speed/Quality: Normal
Offline: Disabled
Print Density: Normal
(Fig.1.5)
TG1260/2460
[PRINT] key to enter setup
[FEED] key to skip setup
41-
Page 15
1. INSTALLATION AND OPERATION
1.4 MAINTENANCE
1.4.1 Changing the paper roll
Every time you change the paper, referred to fig.1.5, need to check as follows :
• Lift the wicket relative to paper roll compartment, and check that there are no scraps of paper at the area
indicated with a) letter near the printing head. If there are, remove the scraps before proceeding with any other
operation.
b
a
(Fig.1.6)
WARNING: Periodically remove accumulated paper dust from the drag paper roll and the area
around the paper outfeed sensor (see fig. 1.5 in the he points indicated with b letter).
(Fig.1.7)
51-
TG1260/2460
Page 16
1. INSTALLATION AND OPERATION
To clean, do not use harsh chemical solvents; the use of a soft, alcohol-moistened
cloth is recommended.
T o change the paper roll in the printer , proceed as follows:
1)Position the paper roll (1), so that it rotates in the direction shown in fig.1.6;
2)Insert the end of the paper roll in the print mechanism (2)and wait until the roll loads automatically;
3)Remove the ticket from the mouth paper output;
WARNING
Before inserting the paper , ensure that it is cut evenly .
1.4.2 Notes for installation and using the printer in the upside down position
T o inst all the printer in the upside down position proceed as follows :
Release the spring
from this side
(Fig.1.8)
(Fig.1.9)
TG1260/2460
61-
Page 17
1. INSTALLATION AND OPERATION
1) Release the spring as indicated in fig. 1.8 and placed it in the new position as indicated in fig. 1.9;
(Fig.1.10)
Hook the spring
in this position
2) The printer is ready to be installed in the upside down position.
(Fig.1.11)
(3)
NOTE: The operations described are valid for all models.
71-
TG1260/2460
Page 18
2. PRINTER FUNCTIONS
2.1 CONTROL CHARACTERS
2.1.1 ESC/POS Emulation
The following table lists all the commands for the management of the ESC/POS™ Emulation. The commands
can be transmitted to the printer at any moment, but they will only be carried out when the commands
previously sent have been executed. There are no commands with priority status; all the commands are
carried out when the circular buffer is feed to do so.
NOTE: in “Note” column where the model is not specified, the command is valid for all models.
The following pages provide a more detailed description of each command.
80$
[Name]Moving back of one character
[Format]ASCIIBS
Hex08
Decimal8
[Description]Moves print position to previous character.
[Notes]This command can put two characters at the same position.
[Default]
[Reference]
[Example]
90$
[Name]Horizontal tabs
[Format]ASCIIHT
Hex09
Decimal9
[Description]Moves the print position to the next horizontal tab position.
[Notes]• This command is ignored if the next horizontal tab position has not been set.
• If the next horizontal tab is outside the print area, the printer will print the entire
contents of the print buffer , then proceed with the processing of the horizont al t abs from
the beginning of the following line.
• The horizontal tabs are set through the command $1B $44.
TG1260/2460
2-2
Page 20
2. PRINTER FUNCTIONS
[Default]
[Reference]$1B $44
[Example]
A0$
[Name]Print and line feed
[Format]ASCIILF
Hex0A
Decimal 10
[Description]Prints the data in the buffer and feeds one line, based on the current line spacing.
[Notes]• This command sets the print position at the beginning of the line.
[Default]
[Reference]$1B $32, $1B $33
[Example]
D0$
[Name]Print and line feed
[Format]ASCIICR
Hex0D
Decimal13
[Description]When autofeed is $0D enabled, this command functions in the same way as $0A,
otherwise it is ignored.
[Notes]• This command sets the print position at the beginning of the line.
[Default]See autofeed parameter on Setup.
[Reference]$0A
[Example]
n40$01$
[Name]Transmission of status in real time
[Format]ASCIIDLEEOTn
Hex1004n
Decimal164n
[Range]1 ≤ n ≤ 4, n =17, 20 ≤ n ≤ 21
[Description]Transmits in real time the selected status of the printer specified by n 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 = 17transmit paper status
n = 20transmit Full Status
n = 21transmit printer ID ($6D )
[Notes]• This command is executed even when the reception buffer is full.
The status is transmitted whenever the data sequence $10 $04 n is received.
[Default]
[Reference]
[Example]
Decimal24
[Description]Deletes all the print data in the current print buffer .
[Notes]This command sets the print position at the beginning of the line.
[Default]
[Reference]
[Example]
TG1260/2460
2-6
Page 24
2. PRINTER FUNCTIONS
n02$B1$
[Name]Set character right-side spacing
[Format]ASCIIESCSPn
Hex1B20n
Decimal2732n
[Range]0 ≤ n ≤ 255
[Description]Sets spacing to right of character at [ n x horizontal or vertical motion units].
[Notes]• The spacing to the right of the character for double width mode is double that used for
normal mode. When the characters are enlarged, the spacing to the right of the
character is m (2 or 4) times the normal value.
• The horizontal and vertical motion units are specified by the command $1D $50.
Changing the horizontal or vertical motion does not affect the current right side spacing.
• The command $1D $50 can change the horizontal (and vertical) motion unit. However,
the value cannot be less than the minimum horizontal spacing amount.
• In standard mode, the horizontal motion unit is used.
• The maximum right side spacing is 255/200 inches.
[Default]n = 0
[Reference]$1D $50
[Example]
n12$B1$
[Name]Select print modes.
[Format]ASCIIESC !n
Hex1B21n
Decimal 2733n
[Range]0 ≤ n ≤ 255
[Description]Selects the print mode using n (see following tables):
[Notes]• The commands nL and nH indicate the number of horizontal dots in the graphic image.
The nL and nH indicate the number of dots of the bit image in the horizontal direction.
The number of dots is calculated by nL + nH × 256
• If the bit image data 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 dot or to 0 not to
print dot.
• if the value of m is out of the specified range, nL and the data following are processed
as normal data.
• If the width of the printing area set by the commands $1D $4C and $1D $57 is less
than the width required by the data sent with the command $1B $2A , the excess data is
ignored.
• To print the bit image use commands $0A, $0D, $1B $4A or $1B $64.
• Af ter printing a bit image, the printer returns to normal dat a processing mode.
• This command is not affected by bold, double-strike and underline (etc.) print modes,
only by upside-down mode.
The relationship between the bit image and the dots to be printed is as follows:
Decimal2745n
[Range]0 ≤ n ≤ 2, 48 ≤ n ≤ 50
[Description]Turns underline mode on or off, based on the following values of n:
n = 0, 48 Turns off underline mode
2-9
TG1260/2460
Page 27
2. PRINTER FUNCTIONS
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 underline the space set by $09 and
right-side character spacing.
• The printer cannot underline 90° clockwise rotated characters and white/black inverted
characters.
• When underline mode is turned off by setting the value of n at 0 or 48, the following
data is not underlined.
• Underline mode can also be turned on or off by using $1B $21.Note, however , that the
last command received is effective.
[Default]n=0
[Reference]$1B $21
[Example]
03$B1$
[Name]Select 1/8-inch line spacing.
[Format]ASCIIESC0
Hex1B30
Decimal2748
[Description]Selects 1/8-inch line spacing.
[Notes]
[Default]
[Reference]$1B $32, $1B $33
[Example]
23$B1$
[Name]Set line spacing at 1/6 inch.
[Format]ASCIIESC2
Hex1B32
Decimal2750
[Description]Selects 1/6 inch line spacing.
[Notes]
[Default]
[Reference]$1B $30, $1B $33
[Example]
n33$B1$
[Name]Set line spacing.
[Format]ASCIIESC3n
Hex1B33n
Decimal2751n
[Range]0 ≤ n ≤ 255
[Description]Sets the line spacing at [ n× (vertical or horizontal motion unit)] inches.
[Notes]• Horizontal and vertical motion units are specified by the command $1D $50. Changing
the horizontal or vertical motion unit does not affect the current line spacing.
• The command $1D $50 can change the horizontal (and vertical) motion unit.
However, the value cannot be less than the minimum vertical movement amount.
• In standard mode, the vertical motion unit is used.
[Notes]• When the printer is disabled, it ignores all transmitted data until the printer is enabled
by this command.
[Default]n = 1
[Reference]
[Example]
2-11
TG1260/2460
Page 29
2. PRINTER FUNCTIONS
@CSE
[Name]Inizialize the printer.
[Format]ASCIIESC @
Hex1B40
Decimal2764
[Description]Clears the data in the print buffer and resets the printer mode to the mode that was in
effect when the power was turned on.
[Notes]• The data in the reception buffer is not cleared.
• The macro definitions are not cleared.
[Default]
[Reference]
[Example]
00$]kn...1n[44$B1$
[Name]Set the horizontal tabs.
[Format]ASCIIESC Dn1...nkNUL
Hex1B44n1...nk00
Decimal2768n1...nk0
[Range]1 ≤ n ≤ 255
0 ≤ k ≤ 32
[Description]Sets the horizontal tabs.
• nspecifies the number of columns for setting a horizontal tab from the beginning of the
line.
• k indicates the total number of horizontal tabs 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 width of the character includes the space to the right of the
character and double width characters are set with a width which is double that of
normal characters.
• This command cancels the previous horizontal tab setting.
• When setting n = 8, the print position is moved to column 9 by sending HT.
• Up to 32 tab positions can be set ( k = 32). Any data exceeding the 32 t abs is
processed as normal data.
• Transmit [ n ] k in ascending order and put a code 0 NUL at the end. When [ n ] k is
less than or equal to the preceding value [ n ] k-1, tab setting is finished and the
following data is processed as normal data.
• This command cancels all horizontal tab positions.
• The previously specified horizontal tab positions do not change, even if the character
width changes.
[Default]The default tabs are at intervals of 8 characters (columns 9, 17, 25, …) for the A Font
when the space to the right of the character is 0.
[Reference]$09
[Example]
n54$B1$
[Name]Turn bold mode on/off.
[Format]ASCIIESCEn
Hex1B45n
Decimal2769n
[Range]0 ≤ n ≤ 255
[Description]Turns bold mode On or Off.
• When the LSB of n is 0, bold mode is turned off.
TG1260/2460
2-12
Page 30
2. PRINTER FUNCTIONS
• When the LSB of n is 1, bold mode is turned on.
[Notes]• Only the LSB of n is effective.
• The command $1B $21 also turns bold mode on and off. In any case, the last
command received is enabled.
[Default]n = 0
[Reference]
[Example]
nGCSE
[Name]Turn double strike mode On/Off.
[Format]ASCIIESC Gn
HexHex1B47n
DecimalDecimal2771n
[Range]0 ≤ n ≤ 255
[Description]Turns double-strike mode On or Off.
• When the LSB of n is 0, double-strike mode is turned off.
• When the LSB of n is 1, double-strike mode is turned on.
[Notes]• Only the LSB of n is effective.
• The printer output is the same in double-strike mode and bold mode.
[Default]n = 0
[Reference]ESC E
[Example]
nJCSE
[Name]Print and feed paper.
[Format]ASCIIESCJn
Hex1B4An
Decimal2774n
[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 is over, this command sets the print st arting position at the beginning of
the line.
• The paper feed amount set by this command does not affect the values set by ESC 2
or ESC 3.
• The horizontal and vertical motion unit are specified by GS P.
• The command 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
[Example]
nRCSE
[Name]Select the international character set.
[Format]ASCIIESCRn
Hex1B52n
Decimal2782n
[Range]0 ≤ n ≤ 12
2-13
TG1260/2460
Page 31
2. PRINTER FUNCTIONS
[Description]Selects the international character set by setting n as in the following table :
[Name]Set print mode rotated by 90°.
[Format]ASCIIESC Vn
Hex1B56n
Decimal2786n
[Range]0 ≤ n ≤ 1
48 ≤ n ≤ 49
[Description]Enable / disable print mode rotated by 90°.n is used as follows :
nnoitcnuF
84,0edomnoitator°09ffosnruT
94,0edomnoitator°09nosnruT
[Notes]• When underlined mode is turned on, the printer does not underline 90° rotated charac-
ters. 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]$1B $21 , $1B $2D
[Example]
[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 printing area width, left or right margin is set to default value.
• The horizontal and vertical motion units are specified by $1D $50.
• The command $1D $50 can change the horizontal (and vertical) motion unit. However,
the value cannot be less than the minimum horizontal movement amount.
• In standard mode, the horizontal motion unit is used.
[Default]
[Reference]$1D $24, $1D $50
[Example]
n16$B1$
[Name]Select justification.
[Format]ASCIIESCan
Hex1B61n
Decimal2797n
[Range]0 ≤ n ≤ 2, 48 ≤ n ≤ 50
[Description]Aligns all the data in one line in the position specified. n selects the type of justification
as follows:
nJustification
0, 48Left justification
1, 49Centring
2, 50Right justification
[Notes]• This command is only enabled if input at the beginning of the line.
• The lines are justified within the specified printing area.
• The spaces set by the commands $09, $1B $24 and $1B $ 5C remain justified as per
the previously set mode.
[Default]n = 0
[Reference]
[Example]Left justification Centering Right justification
ABC
ABCD
ABCDE
ABC
ABCD
ABCDE
ABC
ABCD
ABCDE
2-15
TG1260/2460
Page 33
2. PRINTER FUNCTIONS
n53$36$B1$
[Name]Enable or disable the front panel keys.
[Format]ASCIIESC c5n
Hex1B6335n
Decimal279953n
[Range]0 ≤ n ≤ 255
[Description]Enables or disables the front panel keys.
• When the LSB of n is 0, the panel keys are enabled.
• When the LSB of n is 1, the panel keys are disabled.
[Notes]• Only the LSB of n is effective.
• In the printer, the p anel buttons are the FEED and PRINT keys.
• When the panel keys are disabled, the keys can only operate when reset.
[Default]n = 0
[Reference]See the “Panel key” parameter from Setup.
[Example]
n46$B1$
[Name]Print and feed paper n lines.
[Format]ASCIIESC dn
Hex1B 64n
Decimal27100n
[Range]0 ≤ n ≤ 255
[Description]Prints the data in the print buffer and feeds the paper n lines.
[Notes]• This command sets the print starting position at the beginning of the line.
• This command does not affect the line spacing set by $1B $32 or $1B $33.
• The maximum paper feed amount is 200 lines. Even if a paper feed exceeding 200
lines is set, the printer only feeds the paper by 200 lines.
[Default]
[Reference]$1B $32, $1B $33
[Example]
96$B1$
[Name]Total cut.
[Format]ASCIIESC i
Hex1B 69
Decimal27105
[Description]This command enables cutter operation; if there is no cutter, a disabling flag is set any
subsequent cutting commands will be ignored.
[Notes]• The printer waits until all the paper movement commands have been completed
before executing total cut
[Default]
[Reference]
[Example]
TG1260/2460
2-16
Page 34
2. PRINTER FUNCTIONS
n47$B1$
[Name]Select the character code table.
[Format]ASCIIESC tn
Hex1B 74n
Decimal27116n
[Range]n = 0, 19, 255
[Description]Selects a page n from the character code table, as follows:
[Note]
[Default]n = 0
[Reference]See character code table
[Example]For printing Euro symbol (•), the command sequence is:
$1B, $74, $13, $D5
67$B1$
[Name]Transmit paper sensor status.
[Format]ASCIIESC v
Hex1B76
Decimal27118
[Description]Transmits the current paper sensor status upon receiving this command.
[Notes]• This command is executed immediately, even when the reception buffer is full (Busy ).
The status to be transmitted is shown in the table below :
Decimal27123n
[Range]0 ≤ n ≤ 255
[Description]Turns upside-down printing mode on/of f.
• When the LSB of n is 0, upside-down printing mode is turned off.
• When the LSB of n is 1, upside-down printing mode is turned on.
[Notes]• Only the LSB of n is effective.
• This command is only enabled when input at the beginning of a line.
• In upside-down printing mode, the printer rotates the line to be printed by 180° and
then prints it.
[Default]n = 0
[Reference]
[Example]
Upside-down printing Off Upside-down printing On
ABCDEFG
0123456
ABCDEFG
0123456
Paper outfeed direction
LyHyLxHxnAF$B1$
[Name]Print graphic bank ( 448
[Format]ASCIIESC { }n xHx LyHyL
Hex1B FAn xHxLyHyL
Decimal 27 250n xHxLy HyL
TG1260/2460
××
× 1170 dots).
××
2-18
Page 36
2. PRINTER FUNCTIONS
[Range]1 ≤ n ≤ 2
0 ≤ xH, xL, yH, yL ≤ 255
[Description]Prints the graphics bank from flash or ram. n selects the bank as follows:
nnoitcnuF
11ogolknabhsalftnirP
22ogolknabhsalftnirP
xL + xH × 256 specifies the starting dot line ( 1 ÷ 1170).
yL + yH × 256 specifies the number of lines to print.
[Notes]• If (xL + (xH × 256)) > 1 170the printer does not execute the command.
• If ( xL + ( xH × 256 ) + yL +( yH × 256 ))> 1170the printer only prints 1170- xL + ( xH ×
256 ) +1 dotlines.
[Default]
[Reference]
[Example]T o print logo 1 from flash bank dotline 100 to dotline 299, send:
$1B $FA $01 $00 $64 $00 $C7
nd0dHnLnmFF$B1$
[Name]Receive and store logos in flash.
[Format]ASCIIESC{ }mnLnHd0dn
Hex1BFFmn LnHd0dn
Decimal27255mnLnHd0dn
[Range]0 ≤nL, nH≤ 2551 ≤ m ≤ 20 ≤ d0, dn≤ 255
[Description]• Received [nL + (nH x 256)] x 2 bytes and store in the flash.
• If [nL + (nH x 256)] exceeds 32768, the data following will be processed as normal
data.
• Saved the graphics bank from flash. m selects the bank as follows:
mnoitcnuF
11knabhsalfotniepytogolevaS
22knabhsalfotniepytogolevaS
• d0, dn = value of bit stream image
[Default]
[Reference]
[Example]T o store the logotype indicated below ,into flash bank 2, necessity execute the follows
operation
1)Define the image dimensions.
The width of image is 448 horizontal pixel ; the height maximun of image is 1 170 vertical
pixel.
2) Calculate the number of bytes to send as (height pix*width pix)/16.
Bytes number in example is 448 x 1 170/16=32760 in exadecimal resulting =
7FF8.
3) Bit stream image conversion.
In the following figure is reproduced the logotype enlargement in the zone indicated by
the arrow to define d0...dn
2-19
TG1260/2460
Page 37
2. PRINTER FUNCTIONS
d0d1d2d3
In this example; d0=FF; d1=03; d2=FC; d3=0F
Then send this command to the printer
0x1B0xFF0x020xF80x7F0xFF0 x 030xFC0x0F ...
N. logoDimension
43$0C$C1$
[Name]Total cut and automatic paper moving back.
[Format]ASCIIFS{ }4
Hex1CC034
Decimal2819252
[Description]This command enables cutter operation and executes a total cut and automatic paper
moving back; if there is no cutter, a disabling flag is set any subsequent cutting
commands will be ignored.
[Notes]• The printer waits until all the paper movement commands have been completed before
executing total cut
[Default]
[Reference]
[Example]
TG1260/2460
2-20
Page 38
2. PRINTER FUNCTIONS
n12$D1$
[Name]Select character size.
[Format]ASCIIGS!n
Hex1D21n
Decimal2933n
[Range]0 ≤ n ≤ 255
[Description]Selects character height and width, as follows:
• Bits 0 to 3 : character height selection ( see table 2 ).
• Bits 4 to 7 : character width selection ( see table 1 ).
T able1: Character width selectionT able2: Character height selection
[Notes]• If n or m is out of the defined range, the previously set print mode is not changed.
• If n = 0, m does not have any meaning.
[Default]n = 0, m = 0
[Reference]$1D $43 $31, $1D $43 $32, $1D $43 $3B, $1D $63
[Example]n = 3,m = 0n = 3, m = 1 n = 3, m=2
[Description]Selects a count mode for the serial number counter .
• aL, aH o bL, bH specify the counter range.
• n specify the stepping 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
• In setting count-up mode, the minimum value of the counter is [aL + (aH × 256)] and
the maximum value is [bL + (bH × 256)]. If counting up reaches a value exceeding the
maximum, it is resumed with the minimum value.
• In setting count-down mode, the maximum value of the counter is [aL + (aH × 256)]
and the minimum value is [bL + (bH × 256)]. If counting down reaches a value less than
minimum, it is resumed with the maximum value.
• When the 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]$1D $43 $30, $1D $43 $32, $1D $43 $3B, $1D $63
[Example]
HnLn23$34$D1$
[Name]Set counter.
[Format]ASCIIGSC2nLnH
Hex1D4332nLnH
Decimal 296750nLnH
[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 $1D $43 $31 or $1D $43 $3B, it is forced to
convert to the minimum value by $1D $63.
• In count-down mode, if the counter value specified by this command goes out of the
counter operation range specified by $1D $43 $31 or $1D $43 $3B, it is forced to
convert to the maximum value by $1D $63.
[Default]nL = 1, nH = 0
[Reference]$1D $43 $30, $1D $43 $31, $1D $43 $3B, $1D $63
[Example]
Hex1D433Bsa3Bsb3Bsn3Bsr3Bs c 3 B
Decimal296759sa59sb59sn59sr59sc 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 in ASCII characters using the codes from ‘O’ to
‘9’.
• sa and sb specify the counter range.
• sn indicates the stepping amount for counting up or down.
• sr indicates the repetition number with the counter value fixed.
• 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 is
sb. If counting up reaches a value exceeding the maximum, it is resumed with 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 $1D $63.
• 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 is
resumed with 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 $1D $63.
• Parameters sa to sc can be omitted. If omitted, these values remain unchanged.
• Parameters sa to sc must not contain characters, with the exception of those from ‘0’
to ‘9’.
[Default]sa = 1, sb = 65535, sn = 1, sr = 1, sc = 1
[Reference]$1D $43 $30, $1D $43 $31, $1D $43 $32, $1D $63
[Example]
n84$D1$
[Name]Select printing position of Human Readable Interpretation (HRI)
[Format]ASCIIGSHn
Hex1D48n
Decimal 2972n
[Range]0 ≤ n ≤ 3, 48 ≤ n ≤ 51
[Description]Selects the printing position of HRI characters when printing bar code.
[Notes]• When the DTR/DSR control is selected, the printer only transmits 1 byte (Printer
identification) after it has been given confirmation that the host is ready to receive data.
If the host is not ready , the printer waits until it is.
• When the XON/XOFF control is selected, the printer only transmits 1 byte (Printer
identification) if it has not been given confirmation that the host is ready to receive data.
• This command is carried out once the data has been processed in the reception
buffer . There may therefore be a delay between the moment in which the command is
received and that in which the data is transmitted, depending on the status of the
reception buffer
.[Default]
[Reference]
[Example]
HnLnC4$D1$
[Name]Set left margin.
[Format]ASCIIGSLnLnH
Hex1D4CnLnH
Decimal2976nLnH
[Range]0 ≤ nL, nH ≤ 255 [Description]Sets the left margin.
• The left margin is set at [(nL + nH × 256) × (horizontal motion unit)] inches.
Printable area
2-25
TG1260/2460
Page 43
2. PRINTER FUNCTIONS
Left marginWidth of print area
[Notes]• This command is enabled only at the beginning of the line.
• If the setting exceeds the printable area, the maximum value of the printable area is
used.
• If left margin + printing area width is greater than printable area, then printing area
width is set at maximum value.
• The horizontal and vertical motion units are specified by $1D $50. Changing the
horizontal or vertical motion unit does not affect the current left margin.
• The command $1D $50 can change the horizontal (and vertical) motion unit.
• However, the value cannot be less than the minimum horizont al movement amount
and it must be expressed in even units of the minimum horizontal movement amount.
[Default]If Font A :nL = nH = 0
If Font B :nL =14
nH = 0
[Reference]$1D $50, $1D $57
[Example]
yx05$D1$
[Name]Set horizontal and vertical motion units.
[Format]ASCIIGSPxy
Hex1D50xy
Decimal2980xy
[Range]x = 100, 200
y = 100, 200
[Description]Sets the horizontal and vertical motion units at 1/x inches and 1/y inches, respectively .
When x is set at 0, the default setting value is used.
When y is set at 0, the default setting value is used.
[Notes]• The horizontal direction is perpendicular to the paper feed direction.
• In standard mode, the following commands use x or y, irrespective of character
rotation (upside down or 90° clockwise rotation):
Commands using x : $1B $20, $1B $24, $1B $5C, $1D $4C, $1D $57.
Commands using y : $1B $33, $1B $4A.
• 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]$1B $20, $1B 24, $1B $5C, $1B $33, $1B $4A, $1D $4C, $1D $57[Example]
HnLn75$D1$
[Name]Set printing area width.
[Format]ASCIIGSWnLnH
Hex1D57nLnH
Decimal2987nLnH
[Range]0 ≤ nL, nH ≤ 255
[Description]Sets the printing area width to the area specified by nL and nH.
TG1260/2460
2-26
Page 44
2. PRINTER FUNCTIONS
• The left margin is set at [(nL + nH × 256) × (horizontal motion unit)] inches.
Printable area
Left marginWidth of print area
[Notes]• This command is only enabled at the beginning of the line.
• If right margin is greater than printable area, then the printing area width is set at
maximum value.
• If printing area width = 0, then it is set at maximum value.
• The horizontal and vertical motion unit are specified by $1D $50. Changing the
horizontal or vertical motion unit does not affect the current left margin.
• The command $1D $50 can change the horizontal (and vertical) motion unit.
• However, the value cannot be less than the minimum horizont al movement amount
and it must be expressed in even units of the minimum horizontal movement amount.
[Default]If Font A :nL = 192
nH = 1
If Font B :nL =164
nH = 1
[Reference]$1D $4C, $1D $50[Example]
mtrE5$D1$
[Name]Execute macro.
[Format]ASCIIGS^rtm
Hex1D5Ertm
Decimal 2994rtm
[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 every macro execution.
• m specifies macro executing mode:
When the LSB of m = 0, the macro executes r times continuously at the interval
specified 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 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 lasts for a period 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 definitions cleared.
• If the macro is not defined or if r is 0, nothing happens.
• When the macro is executed by pressing the FEED button (m = 1), the paper can not
be fed by using the FEED button.
[Default]
[Reference]$1D $3A
[Example]
2-27
TG1260/2460
Page 45
2. PRINTER FUNCTIONS
36$D1$
[Name]Print counter.
[Format]ASCIIGSc
Hex1D63
Decimal2999
[Description]Sets the serial counter value in the print buffer and increments 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 is in the buffer
full state.
• The counter print mode is set by $1D $43 $30.
• The counter mode is set by $1D $43 $31 or $1D $43 $3B.
• In count-up mode, if the counter value set by this command goes out of the counter
operation range set by $1D $43 $31 or $1D $43 $3B, it is forced to convert to the
minimum value.
• In count-down mode, if the counter value set by this command goes out of the counter
operation range set by $1D $43 $31 or $1D $43 $3B, it is forced to convert to the
[Name]Select font for HRI characters.
[Format]ASCIIGS fn
Hex1D 66n
Decimal29102n
[Range]n = 0, 1, 48, 49
[Description]Selects a font for the HRI characters used when printing a bar code.
n selects a font from the following table:
ntnoF
[Notes]The HRI characters are printed at the position specified by the command $1D $48.
[Default]n = 0
[Reference]$1D $48, $1D $6B[Example]
84,0.AtnoF
94,1.BtnoF
n86$D1$
[Name]Set bar code height
[Format]ASCIIGS hn
Hex1D 68n
Decimal29104n
[Range]1 ≤ n ≤ 255
[Description]Sets the height of the bar code. n specifies the number of dots in the vertical direction.
[Notes]
[Default]n = 96 (12 mm)
[Description]Selects a bar code system and prints the bar code. m selects a bar code system as
follows:
mBmetsysedocrasretcarahcforebmuNskrameR
0A-CPU11 ≤ k ≤ 2184 ≤ d ≤ 75
1E-CPU11 ≤ k ≤ 2184 ≤ d ≤ 75
2)NAJ(31NAE21 ≤ k ≤ 3184 ≤ d ≤ 75
3)NAJ(8NAE7
493EDOC1≤ k
5FTI1≤ (krebmunneve)84 ≤ d ≤ 75
6RABADOC1≤ k
739EDOC1≤ k ≤5521≤ d ≤721
8821EDOC2≤ k ≤5521≤ d ≤721
0223EDOC8≤ k ≤ 984 ≤ d ≤ 75
≤ k ≤ 884 ≤ d ≤ 75
84 ≤ d ≤56,75≤ d ≤,73,63,23,09
84 ≤ d ≤56,75≤ 1d ≤,34
74,64,54,34
,63,86
85,74,64,54
56A-CPU11 ≤ n ≤ 2184 ≤ d ≤ 75
66E-CPU11 ≤ n ≤ 2184 ≤ d ≤ 75
76)NAJ(31NAE21 ≤ n ≤ 3184 ≤ d ≤ 75
86)NAJ(8NAE7≤ n ≤ 884 ≤ d ≤ 75
84 ≤ d ≤56,
9693EDOC1≤ n ≤552
07FTI1≤ n ≤55284 ≤ d ≤ 75
17RABADOC1≤ n ≤552
2739EDOC1≤ n ≤5520≤ d ≤721
37821EDOC2≤ n ≤5520≤ d ≤721
0923EDOC8≤ n ≤ 984 ≤ d ≤ 75
75≤ d ≤,73,63,23,09
74,64,54,34
84 ≤ d ≤56,75≤ 1d ≤,34,63,86
85,74,64,54
[Notes]• If d is outside the specified range, the printer prints the following message: “BAR
CODE GENERATOR NON OK !” and processes the following data as normal data.
• If the horizontal size exceeds the printing area, the printer only feeds the paper .
• This command feeds as much paper as is required to print the bar code, irrespective
of the line spacing specified by $1B $32 or $1B $33.
2-29
TG1260/2460
Page 47
2. PRINTER FUNCTIONS
• Af ter printing the bar code, this command sets the print position at the beginning of the
line.
• This command is not affected by print modes (bold, double strike, underline or
character size), with the exception of upside-down mode and justification.
[Note for ]• This command ends with a $00 code.
• When the bar code used is UPC-A or UPC-E, the printer prints the bar code data after
receiving 1 1 (without check digit) or 12 ( with check digit) byte bar code dat a.
• When the bar code system used is EAN13, the printer prints the bar code after
receiving 12 (without check digit) or 13 (with check digit) byte bar code data.
• When the system used is EAN8, the printer prints the bar code after receiving 7
(without check digit) or 8 (with check digit) byte bar code data.
• The number of data for ITF bar code must be even. When an odd number of data is
input, the printer ignores the last received data.
[Note for ]• If n is outside the specified range, the printer stops command processing and process
the following data as normal data.
When to use
CODE93:• The printer prints an HRI character ( o ) as a start character at the beginning of the HRI
character string.
• The printer prints an HRI character ( o ) as a stop character at the end of the HRI
character string.
• The printer prints an HRI character ( n ) as a control character ( $00 to $1F and $7F).
When to use
CODE128:• When using the CODE128 in this printer, take the following points into account for
data transmission:
• The top of the bar code data string must be a code set selection character (CODE A ,
CODE B or CODE C) which selects the first code set.
• Special characters are defined by combining two characters “{“ and one character.
The ASCII character “{” is defined by transmitting “{“ twice consecutively.
[Notes]• The printing density is cleared at default value when the printer is reset or the power is
turned off.
[Default]n = 2
[Description]Sets the printing density. n specifies the printing density as follows:
nytisnedgnitnirP
84,0thgilyreV
94,1thgiL
05,2lamroN
15,3kraD
25,4kradyreV
[Reference]
[Example]
TG1260/2460
2-32
Page 50
2. PRINTER FUNCTIONS
2.1.2 Custom emulation
The following table lists all the commands for the management of the Custom emulation. The commands
can be transmitted to the printer at any moment, but they will only be carried out when the commands
previously transmitted have been carried out. There are no priority commands; all commands are carried out
when the circular buffer is free to do so.
NOTE: in “Note” column where the model is not specified, the command is valid for all models.
The following pages provide a more detailed description of each command.
Decimal0
[Description]Character printing is executed in small format (normal)
[Notes]• Setting remains until the next set
[Default]Set up from front keys.
[Reference]$01, $02, $03, $04
[Example]
10$
[Name]Printing with double width character
[Format]ASCIISOH
Hex01
Decimal1
[Description]Printing of the character is executed in double width format
[Notes]• Setting remains until next set
[Default]Set up from front keys.
[Reference]$00, $02, $03, $04
[Example]
20$
[Name]Printing in double height character
[Format]ASCIISTX
Hex02
Decimal2
[Description]Printing of the character is executed in double height format
TG1260/2460
2-34
Page 52
2. PRINTER FUNCTIONS
[Notes]• Setting remains until next set
[Default]Set up from front keys.
[Reference]$00, $01, $03, $04
[Example]
30$
[Name]Printing with expanded character
[Format]ASCIIETX
Hex03
Decimal 3
[Description]Printing of the character is executed in expanded format
[Notes]• Setting remains until next set
[Default]Set up from front keys.
[Reference]$00, $01, $02, $04
[Example]
40$
[Name]Print with small character
[Format]ASCIIEOT
Hex04
Decimal4
[Description]Character printing is executed in small format (normal)
[Notes]• Setting remains until next set
[Default]Set up from front keys.
[Reference]$00, $01, $02, $03
[Example]
A0$
[Name]Line feed
[Format]ASCIILF
Hex0 A
Decimal10
[Description]Prints the data in the buffer and feeds one line, based on the current line spacing.
[Notes]• The command sets the print position at the beginning of the line.
[Default]
[Reference]$1B $32, $1B $33
[Example]
B0$)n(
[Name]Vertical t abs
[Format]ASCIInVT
Hexn0B
Decimaln11
[Range]0 < n ≤ 9
[Description]Runs as many feeds as are defined by n.
[Notes]• This command zeroes the line buffer
2-35
TG1260/2460
Page 53
2. PRINTER FUNCTIONS
[Default]
[Reference]
[Example]
D0$
[Name]Print and line feed
[Format]ASCIICR
Hex0D
Decimal13
[Description]This command prints the data in the buffer.
[Notes]• This command sets the print position at the beginning of the line.
[Default]
[Reference]$0A
[Example]
F0$
[Name]Ignore CR
[Format]ASCIISI
Hex0F
Decimal15
[Description]After this command the CR code is ignored.
[Notes]• T o put the CR code back into operation, reset the printer.
[Default]
[Reference]
[Example]
11$
[Name]Graphic mode DP24/40
[Format]ASCIIDC1
Hex11
Decimal17
[Description]Prints in graphic mode like the DP 24/40.
The command $1 1 enables the DP24-40 printer graphic mode, i.e. to print in graphic
mode, transmit the command $1 1 at the beginning of each line. One line for the DP24-
40 printer (24 column model) corresponds to 44 horizontal dots divided into 24 6-dot
blocks. For the DP24-40 printer (40-column model) one line corresponds to 240
horizontal dots divided into 40 6-dot blocks.
[Notes]The size of the graphic dot and the number of dots per line vary depending on the
number of columns.
To obtain a graphic printout, enter the command $11 at the beginning of each line. The
graphic configuration byte format is as follows:
XRP6P5P4P3P2P1
D7D6D5D4D3D2D1D0
where:
X is not utilized (we recommend 0);
R must be set at 1;
P1, P6 are the data of the graphic dots (1 prints, 0 does not print).
The P6 bit of the string of dots transmitted, is printed on the left and the others (P5, P4,
TG1260/2460
2-36
Page 54
2. PRINTER FUNCTIONS
P3, P2, P1) follow from left to right as shown:
1st byte
2nd byte
P6 P5 P4 P3 P2 P1P6 P5 P4 P3 P2 P1P6 P5 P4 P3 P2 P1
[Default]
[Reference]
[Example]To print a line of dots, transmit:
$1 1, n x $7F (where n is the number of characters per line), $0D.
To print an empty line, transmit:
$1 1, n x $40, $0D.
n12$B1$
[Name]Select print modes.
[Format]ASCIIE S C !n
Hex1B21n
Decimal2733n
[Range]0 ≤ n ≤ 255
[Description]Selects the print mode using n (see following tables):
[Notes]• The printer can underline all the characters, but it cannot underline the space set by
command $1B $24 and 90° clockwise rotated characters.
• When the characters on the same line are enlarged to different heights, they are either
aligned at the baseline or topline.
• This command resets the left and right margin at the default value.
[Default]n = 0
[Reference]
[Example]
HnLn42$B1$
[Name]Set absolute print position
[Format]ASCIIESC $nLnH
Hex1B24nLnH
Decimal 2736nLnH
[Range]0 ≤ nL ≤ 255
2-37
TG1260/2460
Page 55
2. PRINTER FUNCTIONS
0 ≤ nH ≤ 255
[Description]Sets the distance from the beginning of the line to the position in which the subsequent
characters are to be printed.
The distance from the beginning of the line to the print position is [(nL + nH × 256)×
(vertical or horizontal motion unit)] inches.
[Notes]• Settings outside the specified printable area are ignored.
• The vertical and horizontal motion units are specified by $1D $50.
• The command $1D $50 can change the horizontal (and vertical) motion unit. However,
the value cannot be less than the minimum horizontal movement amount.
• In standard mode the horizontal motion unit (x) is used.
• If the setting is outside the printing area width, set absolute print position, but left or
right margin is set at default value.
[Default]
[Reference] $1D $50
[Example]
kd...1dHnLnmA2$B1$
[Name]Select bit image mode.
[Format]ASCIIESC *mnLnHd1...dk
Hex1B2AmnLnHd1...dk
Decimal2742mnLnHd1...dk
[Range]m = 0, 1, 32, 33
0 ≤ nL ≤ 255
0 ≤ nH ≤ 1
0 ≤ d ≤ 255
[Description]Selects a bit image-mode using m for the number of dots specified by nL and by nH, as
$03 : bold printing
[Notes]Setting is memorized in EEPROM.
[Default]Set up from front keys.
[Reference]
[Example]If dH = ‘A ’ and dL = ‘3’ the value of d is 163 ($A3)
E4$B1$
[Name]Set printing in NORMAL
[Format]ASCIIESCN
Hex1B4E
Decimal2778
[Description]Selects printing in NORMAL mode.
[Notes]• Setting remains until next set.
[Default]Set up from front keys.
[Reference]$1B $52
[Example]
25$B1$
[Name]Set printing in REVERSE
[Format]ASCIIESCR
Hex1B52
Decimal2782
[Description]Set printing in REVERSE mode.
[Notes]• Setting remains until next set
[Default]Set up from front keys.
[Reference]$1B $4E
[Example]
n65$B1$
[Name]Set print mode rotated by 90°.
[Format]ASCIIESC Vn
Hex1B56n
Decimal2786n
[Range]0 ≤ n ≤ 1
48 ≤ n ≤ 49
[Description]Enable / disable print mode rotated by 90°. n is used as follows :
2-41
TG1260/2460
Page 59
2. PRINTER FUNCTIONS
nnoitcnuF
84,0edomnoitator°09ffosnruT
94,1edomnoitator°09nosnruT
[Notes]• When underlined mode is turned on, the printer does not underline 90° rotated charac-
ters. 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]$1B $21 , $1B $2D
[Example]
n16$B1$
[Name]Select justification
[Format]ASCIIESCan
Hex1B61n
Decimal2797n
[Range]0 ≤ n ≤ 2, 48 ≤ n ≤ 50
[Description]Aligns all the data in one line in the position specified. n selects the type of justification
as follows:
nJustification
0, 48Left justification
1, 49Centering
2, 50Right justification
[Notes]• This command is only enabled if input at the beginning of the line.
• The lines are justified within the specified printing area.
• The spaces set by the command $1B $24 remain justified as per the previously set
mode.
[Default]n = 0
[Reference]
[Example]Left justification Centering Right justification
ABC
ABCD
ABCDE
26$B1$
[Name]Select FONT 2.
[Format]ASCIIESCb
Hex1B62
Decimal2798
[Description]Select FONT 2.
[Notes]• Setting remains until next set
TG1260/2460
ABC
ABCD
ABCDE
ABC
ABCD
ABCDE
2-42
Page 60
2. PRINTER FUNCTIONS
[Default]Set up from front keys.
[Reference]$1B $42
[Example]
D6$B1$
[Name]Read default parameters of print mode
[Format]ASCIIESC m
Hex1B 6D
Decimal27109
[Description]Reads default parameters of print mode.
[Notes]See ESC M.
[Default]Set up from front keys.
[Reference]$1B $4D
[Example]
07$B1$
[Name]Read default parameters
[Format]ASCIIESCp
Hex1B70
Decimal27112
[Description]Reads default and “on line” parameters.
[Notes]See $1B $47.
[Default]Set up from front keys
[Reference]$1B $47
[Example]
27$B1$LaHa
[Name]Read EEPROM position.
[Format]ASCIIaHaLESCr
HexaHaL1B72
DecimalaHaL27114
[Range]0 ≤ a ≤ 63
‘0’ ≤ aH ≤ ‘9’, ‘A ’ ≤ aH ≤ ‘F’
‘0’ ≤ aL ≤ ‘9’, ‘A’ ≤ aL ≤ ‘F’
[Description]Reads the location addressed by a where:
aH is the most significant nibble, expressed in ASCII, of a
aL is the least significant nibble, expressed in ASCII, of a
[Notes]
[Default]
[Reference]$1B $77
[Example]T o read the position $12, transmit: $31 $32 $1B $72
The response will be the location value in hexadecimals expressed in two ASCII bytes.
2-43
TG1260/2460
Page 61
2. PRINTER FUNCTIONS
n47$B1$
[Name]Select the character code table.
[Format]ASCIIESCtn
Hex1B7 4n
Decimal27116n
[Range]n = 0, 19, 255
[Description]Selects a page n from the character code table, as follows:
[Note]
[Default]n = 0
[Reference]See character code table
[Example]For printing Euro symbol (•), the command sequence is:
$1B, $74, $13, $D5
77$B1$LdHdLaHa
[Name]Write EEPROM position.
[Format]ASCIIaHaLdHdLES C w
HexaHaLdHdL1B 77
DecimalaHaLdHdL27119
[Range]0 ≤ a ≤ 63
‘0’ ≤ aH ≤ ‘9’, ‘A ’ ≤ aH ≤ ‘F’
‘0’ ≤ aL ≤ ‘9’, ‘A’ ≤ aL ≤ ‘F’
0 ≤ d ≤ 255
‘0’ ≤ dH ≤ ‘9’, ‘A ’ ≤ dH ≤ ‘F’
‘0’ ≤ dL ≤ ‘9’, ‘A’ ≤ dL ≤ ‘F’
[Description]Writes, at the location addressed by a, data dwhere:
aH is the most significant nibble, expressed in ASCII, of a
aL is the least significant nibble, expressed in ASCII, of a
dH is the most significant nibble, expressed in ASCII, of d
dL is the least significant nibble, expressed in ASCII, of d
[Notes]
[Default]
[Reference]$1B $72
[Example]T o write the value $34 in position $12, transmit: $31 $32 $33 $34 $1B $77
LyHyLxHxnAF$B1$
[Name]Print graphic bank ( 448
[Format]ASCIIESC{ }nxHxLyHyL
Hex1BFAnxHxLyHy L
Decimal27250nxHxLyHyL
[Range]1 ≤ n ≤ 2
0 ≤ xH, xL, yH, yL≤ 255
[Description]Prints the graphics bank from flash or ram.
n selects the bank as follows:
TG1260/2460
× ×
× 1170 dots).
× ×
2-44
Page 62
2. PRINTER FUNCTIONS
nnuFnoitc
1ftnirPhsal1ogolknab
22ogolknabhsalftnirP
xL + xH × 256 specifies the starting dot line ( 1 ÷ 1170 ).
yL + yH × 256 specifies the number of lines to print.
[Notes]• If (xL + (xH × 256)) > 1170 the printer does not execute the command.
• Se ( xL + ( xH × 256 ) + yL +( yH × 256 ))> 1170 the printer only prints 1170 - xL + ( xH
× 256 ) +1 dotlines.
[Default]
[Reference]
[Example]T o print logo 1 from flash bank dotline 100 to dotline 299, send:
$1B$FA$01$00$64$00$C7
HnLnFF$B1$
[Name]Receive and store logos in flash.
[Format]ASCIIESC{ }mnLnHd0dn
Hex1BFFmn LnHd0dn
Decimal27255mnLnHd0dn
[Range]0 ≤nL, nH≤ 2551 ≤m≤ 20 ≤ d0, dn≤ 255
[Description]• Received [nL + (nH x 256)] x 2 bytes and store in the flash.
• If [nL + (nH x 256)] exceeds 32768, the data following will be processed as normal
data.
• Saved the graphics bank from flash. m selects the bank as follows:
mnoitcnuF
11knabhsalfotniepytogolevaS
22knabhsalfotniepytogolevaS
• d0, dn = value of bit stream image
[Default]
[Reference]
[Example]T o store the logotype indicated below ,into flash bank 2, necessity execute the follows
operation
1)Define the image dimensions.
The width of image is 448 horizontal pixel ; the height maximun of image is 1170 vertical
pixel.
2) Calculate the number of bytes to send as (height pix*width pix)/16.
Bytes number in example is 448 x 1 170/16=32760 in exadecimal resulting =
7FF8.
3) Bit stream image conversion.
In the following figure is reproduced the logotype enlargement in the zone indicated by
the arrow to define d0...dn
2-45
TG1260/2460
Page 63
2. PRINTER FUNCTIONS
d0d1d2d3
In this example; d0=FF; d1=03; d2=FC; d3=0F
Then send this command to the printer
0x1B0xFF0x020xF80x7F0xFF0 x 030xFC0x0F ...
N. logoDimension
43$0C$C1$
[Name]Total cut and automatic paper moving back.
[Format]ASCIIFS{ }4
Hex1CC034
Decimal2819252
[Description]This command enables cutter operation and executes a total cut and automatic paper
moving back; if there is no cutter, a disabling flag is set any subsequent cutting
commands will be ignored.
[Notes]• The printer waits until all the paper movement commands have been completed
before executing total cut
TG1260/2460
2-46
Page 64
2. PRINTER FUNCTIONS
[Default]
[Reference]
[Example]
C0$D1$
[Name]Print the buffer contents.
[Format]ASCIIGSFF
Hex1D0C
Decimal2912
[Description]Prints contents of buffer characters and executes a line feed.
Sets the printing start position at left margin.
[Notes]
[Default]
[Reference]$0A
[Example]
A3$D1$
[Name]Start / end macro definition.
[Format]ASCIIGS:
Hex1D 3A
Decimal 29 58
[Description]St art s or ends macro definition.
[Notes]• Macro definition starts when this command is received during normal operation.
• When the command $1D $5E is received during macro definition, the printer ends the
macro definitions and clears all definitions.
• Macro not defined when the power is turned on.
• The defined contents of the macro are not cleared by the command $1B $40.
Therefore, $1B $40 can be included in the contents of the macro definitions.
• If the printer receives the command $1D $3A again immediately after previously
receiving $1D $3A, the printer remains in the macro undefined state.
• The contents of the macro can be defined up to 1024 bytes. If the macro definition
exceeds 1024 bytes, the excess data is not not stored.
[Default]
[Reference]$1D $5E
[Example]
mn03$34$D1$
[Name]Set counter print mode.
[Format]ASCIIGSC0nm
Hex1D4330nm
Decimal 296748nm
[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 number value.
when n = from 1 to 5, this command sets the number of digits to be printed.
• m specifies the printing position within the entire range of printed digits, as follows:
2-47
TG1260/2460
Page 65
2. PRINTER FUNCTIONS
mPdeificepsesohtnahtrewolstigidfognissecorP
84.0noitacifitsujthgiRAtfelotsecapsdd..
94.1noitacifitsujthgiRAdd.tfel
05.2noitacifitsujtfeLA.thgirotsecapsdd
[Notes]• if n or m is outside the defined range, the previously set print mode is not changed.
• If n = 0, m has no meaning.
[Default]n = 0, m = 0
[Reference]$1D $43 $31, $1D $43 $32, $1D $43 $3B, $1D $63
[Example]n = 3, m = 0n = 3, m = 1n = 3, m=2
[Description]Selects a count mode for the serial number counter.
• aL, aH o bL, bH specify the counter range.
• n specify the stepping 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
• In setting count-up mode, the minimum value of the counter is [aL + (aH × 256)] and
the maximum value is [bL + (bH × 256)]. If counting up reaches a value exceeding the
maximum, it is resumed with the minimum value.
• In setting count-down mode, the maximum value of the counter is [aL + (aH × 256)]
and the minimum value is [bL + (bH × 256)]. If counting down reaches a value less than
minimum, it is resumed with the maximum value.
• When the 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]$1D $43 $30, $1D $43 $32, $1D $43 $3B, $1D $63
[Example]
HnLn23$34$D1$
[Name]Set counter.
[Format]ASCIIGSC2nLnH
Hex1D4332nLnH
Decimal 296750nLnH
TG1260/2460
2-48
Page 66
2. PRINTER FUNCTIONS
[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 by 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 1or GS C ;, it is forced to convert to the
maximum value by GS c.
[Default]nL = 1, nH = 0
[Reference]$1D $43 $30, $1D $43 $31, $1D $43 $3B, $1D $63
[Example]
[Notes]• When the DTR/DSR control is selected, the printer only transmits 1 byte (Printer
identification) after it has been given confirmation that the host is ready to receive data.
If the host is not ready , the printer waits until it is.
• When the XON/XOFF control is selected, the printer only transmits 1 byte (Printer
TG1260/2460
2-50
Page 68
2. PRINTER FUNCTIONS
identification) if it has not been given confirmation that the host is ready to receive data.
• This command is carried out once the data has been processed in the reception
buffer . There may therefore be a delay between the moment in which the command is
received and that in which the data is transmitted, depending on the status of the
[Name]Set horizontal and vertical motion units.
[Format]ASCIIGSPxy
Hex1D50xy
Decimal 2980xy
[Range]x = 100, 200
y = 100, 200
[Description]Sets the horizontal and vertical motion units at 1/x inches and 1/y inches, respectively .
When x is set at 0, the default setting value is used.
When y is set at 0, the default setting value is used.
[Notes]• This command set the ESC/POS emulation and initialize the default values again.
• The horizontal direction is perpendicular to the paper feed direction.
• 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]$1B $24
[Example]
mtrE5$D1$
[Name]Execute macro.
[Format]ASCIIGS^rtm
Hex1D5Ertm
Decimal 2994rtm
[Range]0 ≤ r, t ≤ 255
0 ≤ m ≤ 1
[Description]Executes a macro.
• rspecifies 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 every macro execution.
• m specifies macro executing mode:
When the LSB of m = 0, the macro executes r times continuously at the interval
specified 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 FEED button to be pressed. After the button is
pressed, the printer executes the macro once. The printer repeats the operation rtimes.
[Notes]• This command lasts for a period 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 definitions cleared.
• If the macro is not defined or if r is 0, nothing happens.
2-51
TG1260/2460
Page 69
2. PRINTER FUNCTIONS
• When the macro is executed by pressing the FEED button ( m = 1), the paper can not
be fed by using the FEED button.
[Default]
[Reference]$1D $3A
[Example]
36$D1$
[Name]Print counter.
[Format]ASCIIGSc
Hex1D63
Decimal2999
[Description]Sets the serial counter value in the print buffer and increments 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 is in the buffer
full state.
• The counter print mode is set by $1D $43 $30.
• The counter mode is set by $1D $43 $31 or $1D $43 $3B.
• In count-up mode, if the counter value set by this command goes out of the counter
operation range set by $1D $43 $31 or $1D $43 $3B, it is forced to convert to the
minimum value.
• In count-down mode, if the counter value set by this command goes out of the counter
operation range set by $1D $43 $31 or $1D $43 $3B, it is forced to convert to the
[Name]Select font for HRI characters.
[Format]ASCIIGSfn
Hex1D66n
Decimal29102n
[Range]n = 0, 1, 48, 49
[Description]Selects a font for the HRI characters used when printing a bar code.
n selects a font from the following table:
ntnoF
84,0)42x41(ATNOF
94,1)42x01(BTNOF
[Notes]The HRI characters are printed at the position specified by the command GS H.
[Default]n = 0
[Reference]$1D $48, $1D $6B
[Example]
TG1260/2460
2-52
Page 70
2. PRINTER FUNCTIONS
n86$D1$
[Name]Set bar code height
[Format]ASCIIGShn
Hex1D68n
Decimal29104n
[Range]1 ≤ n ≤ 255
[Description]Sets the height of the bar code. n specifies the number of dots in the vertical direction.
[Notes]
[Default]n = 96 ( 12 mm )
[Reference]$1D $6B
[Example]
00$]kd...1d[mB6$D1$]nd...1d[nmB6$D1$
[Name]Print bar code.
[Format] ASCIIGSkmNUL
Hex1D6Bm00
Decimal29107m0
ASCIIGSkmn
Hex1D6Bmn
Decimal29107mn
[Range] 0 ≤ m ≤ 6
65 ≤ m ≤ 73
[Description]Selects a bar code system and prints the bar code. m selects a bar code sys
mBmetsysedocrasretcarahcforebmuNskrameR
0A-CPU11 ≤ k ≤ 2184 ≤ d ≤ 75
1E-CPU11 ≤ k ≤ 2184 ≤ d ≤ 75
2)NAJ(31NAE21 ≤ k ≤ 3184 ≤ d ≤ 75
3)NAJ(8NAE7
493EDOC1≤ k
5FTI1≤ (krebmunneve)84 ≤ d ≤ 75
6RABADOC1≤ k
739EDOC1≤ k ≤5521≤ d ≤721
8821EDOC2≤ k ≤5521≤ d ≤721
0223EDOC8≤ k ≤ 984 ≤ d ≤ 75
≤ k ≤ 884 ≤ d ≤ 75
84 ≤ d ≤56,75≤ d ≤,73,63,23,09
84 ≤ d ≤56,75≤ 1d ≤,34
74,64,54,34
,63,86
85,74,64,54
2-53
TG1260/2460
Page 71
2. PRINTER FUNCTIONS
56A-CPU11 ≤ n ≤ 2184 ≤ d ≤ 75
66E-CPU11 ≤ n ≤ 2184 ≤ d ≤ 75
76)NAJ(31NAE21 ≤ n ≤ 3184 ≤ d ≤ 75
86)NAJ(8NAE7≤ n ≤ 884 ≤ d ≤ 75
9693EDOC1≤ n ≤552
07FTI1≤ n ≤55284 ≤ d ≤ 75
84 ≤ d ≤56,
17RABADOC1≤ n ≤552
2739EDOC1≤ n
37821EDOC2≤ n ≤5520≤ d ≤721
0923EDOC8≤ n ≤ 984 ≤ d ≤ 75
≤5520≤ d ≤721
[Notes]• If d is outside the specified range, the printer prints the following message: “BAR CODE
GENERA TOR NON OK !” and processes the following data as normal data.
• If the horizontal size exceeds the printing area, the printer only feeds the paper .
• This command feeds as much paper as is required to print the bar code.
• Af ter printing the bar code, this command sets the print position at the beginning of the
line.
• This command is not affected by print modes (bold, double strike, underline or
character size), with the exception of upside-down mode and justification.
[Notes for ]• This command ends with a $00 code.
• When the bar code used is UPC-A or UPC-E, the printer prints the bar code data after
receiving 1 1 (without check digit) or 12 ( with check digit) byte bar code dat a.
• When the bar code system used is EAN13, the printer prints the bar code after
receiving 12 (without check digit) or 13 (with check digit) byte bar code data.
• When the system used is EAN8, the printer prints the bar code after receiving 7
(without check digit) or 8 (with check digit) byte bar code data.
• The number of data for ITF bar code must be even. When an odd number of data is
input, the printer ignores the last received data.
[Note for ]• If n is outside the specified range, the printer stops command processing and
process the following data as normal data.
When to use
CODE93:• The printer prints an HRI character ( o ) as a start character at the beginning of the
HRIcharacter string.
• The printer prints an HRI character ( o ) as a stop character at the end of the HRI
character string.
• The printer prints an HRI character ( n ) as a control character ( $00 to $1F and $7F).
When to use
CODE128:• When using the CODE128 in this printer , take the following point s into account for data
transmission:
• The top of the bar code data string must be a code set selection character(CODE A ,
CODE B or CODE C) which selects the first code set.
• Special characters are defined by combining two characters “{“ and one character.
The ASCII character “}” is defined by transmitting “{“ twice consecutively.
[Description]Sets the printing density. n specifies the printing density as follows:
nytisnedgnitnirP
84,0thgilyreV
94,1thgiL
05,2lamroN
15,3kraD
25,4kradyreV
[Notes]• The printing density is cleared at default value when the printer is reset or the power is
turned off.
[Default]n = 2
[Reference]
[Example]
2.1.3 CBM iDP560RS Emulation
The following table lists all the commands for function management in CBM iDP560RS Emulation. The
commands can be transmitted to the printer at any moment, but they will only be carried out when the commands
previously sent have been executed. There are no priority commands; all commands are carried out when the
circular buffer is free to do. to
NOTE: in “Note” column where the model is not specified, the command is valid for all models.
The following pages provide a more detailed description of each command.
00$
[Name]Print with small character
[Format]ASCIINUL
Hex00
Decimal0
[Description]Character printing is executed in small format (normal)
[Notes]• Setting remains until next set
[Default] Set up from front keys
[Name]Printing with double width character
[Format]ASCIISOH
Hex01
Decimal1
[Description]Printing of the character is executed in double width format
[Notes]• Setting remains until next set
[Default]Set up from front keys
[Reference]$00, $02, $03, $04
[Example]
20$
[Name]Printing in double height character
[Format]ASCIISTX
Hex02
Decimal2
[Description]Printing of the character is executed in double height format
[Notes]• Setting remains until next set
[Default]Set up from front keys
Decimal10
[Description]Prints the data in the buffer and feeds one line, based on the current line spacing.
[Notes]This command sets the print position at the beginning of the line.
[Default]
[Reference]$1B $31, $1B $32
[Example]
C0$
[Name]Carries out form feed after printing.
[Format]ASCIIFF
Hex0A
Decimal10
[Description]Prints the data in the buffer and feeds in accordance with the page length specified by
the command ESC C n.
[Notes]This command sets the print position at the beginning of the line.
[Default]
[Reference]$1B $43
[Example]
TG1260/2460
2-58
Page 76
2. PRINTER FUNCTIONS
D0$
[Name]Print and line feed
[Format]ASCIICR
Hex0 D
Decimal13
[Description]When autofeed is “$0D enabled”, this command functions in the same way as $0A,
otherwise, it is ignored.
[Notes]This command sets the print position at the beginning of the line.
[Default]See the “autofeed” parameter from Setup.
[Reference]$0A
[Example]
E0$
[Name]Improved character designation (same as $1E)
[Format]ASCIISO
Hex0E
Decimal14
[Description]Printing of the character is executed in expanded format.
[Notes]• The command SO is automatically launched after printing.
• Same as $1E
[Default]Set up from front keys
[Reference]$01, $02, $03, $04, $0F , $1E, $1F
[Example]
F0$
[Name]Standard character designation (same as $1F)
[Format]ASCIISI
Hex0F
Decimal15
[Description]Printing of the character is executed in small format
(normal).
[Notes]• Same as $1F
[Default]Set up from front keys
Decimal24
[Description]Deletes all the print data in the current print buffer .
[Notes]This command sets the print position at the beginning of the line.
[Default]
[Reference]
[Example]
E1$
[Name]Enhanced character designation.
[Format]ASCIIRS
Hex1E
Decimal30
[Description]Printing of the character is executed in expanded format.
[Notes]• The command RS is automatically launched after printing.
[Default]Set up from front keys
Decimal2749
[Description]Sets 3 mm line spacing
[Notes]
[Default]
[Reference]$1B $32
[Example]
23$B1$
[Name]Set 5.5 mm line spacing.
[Format]ASCIIESC 2
Hex1B32
Decimal2750
[Description]Set 5.5 mm line spacing.
[Notes]
[Default]
[Reference]$1B $31
[Example]
04$B1$
[Name]Inizialize the printer.
[Format]ASCIIESC@
Hex1B40
Decimal2764
[Description]Clears the data in the print buffer and resets the printer mode to the mode that was in
effect when the power was turned on.
[Notes]• Same as hardware reset
[Default]
[Reference]
[Example]
2-61
TG1260/2460
Page 79
2. PRINTER FUNCTIONS
n34$B1$
[Name]Page length designation and page formatting.
[Format]ASCIIESC Cn
Hex1B43n
Decimal2767n
[Range]14 ≤ n ≤ 120
[Description]This command sets the length (number of lines) of the page, and paging formatting
begins.
A space of three lines is left at both the top and bottom of the page.
[Notes]• Page formatting can be cleared through the command $1B $4F.
[Default]n = 66
[Reference]$0C, $1B $4F
[Example]
Protection devices: Shortcircuit, overload and overvoltage.
TG1260-2460
2A-
Page 90
APPENDIX A - ACCESSORIES AND SPARE PARTS
A.1.2 Adjust able p aper holder support kit
For the printer is available a swinging paper holder support kit (see fig. A.2). This accessory allows to use
bigger diameter paper rolls (max 80mm).
0642GT-PSXCProsnesCFQdnatiKtroppusredlohrepaP
The kit is already assembled as shown in fig A.2.
Paper holder support kit:
1- Paper holder support
2- Paper roll pin
3- Near paper end sensor board
4- T wo fastening screws of the paper holder support to the printer frame (M3x6)
5- T wo disks for the paper roll cont ainment
(Fig.A.2)
2
3
4
1
5
TG1262-24603A-
Page 91
APPENDIX A - ACCESSORIES AND SPARE PARTS
Assembling instructions
The paper holder support positioning isn’t fixed but adjustable on 3 different positions: back, lower and upper
as shown in fig. A.3.
1
1 = Upper positioning
2 = Back positioning
3 = Lower positioning
2
(Fig.A.3)
3
TG1260-2460
4A-
Page 92
APPENDIX A - ACCESSORIES AND SPARE PARTS
Fastening the paper holder support in upper position
Fix the paper holder support to the printer frame by the two fastening screws on issue in the kit. Screw them
where shown in fig. A.4 and connect the near p aper end sensor cable to the printer connector .
WARNING: Check the paper roll pin is assembled with the beveled side turned in the low position
(see the paper roll containment disks part). If this condition isn’t verified, unloose the fastening
screw of the pin to the paper holder support and locate it in the right position.
BEVELED SIDE
(Fig.A.5)
(Fig.A.4)
TG1262-24605A-
Page 93
APPENDIX A - ACCESSORIES AND SPARE PARTS
Fastening the paper holder support in back position
Fix the paper holder support to the printer frame by the two fastening screws on issue in the kit. Screw them
where shown in fig. A.6 and connect the near p aper end sensor cable to the printer connector.
WARNING: Check the paper roll pin is assembled with the beveled side turned in the low position
(see the paper roll containment disks part). If this condition isn’t verified, unloose the fastening
screw of the pin to the paper holder support and locate it in the right position.
BEVELED SIDE
(Fig.A.7)
(Fig.A.6)
TG1260-2460
6A-
Page 94
APPENDIX A - ACCESSORIES AND SPARE PARTS
Fastening the paper holder support in lower position
Fix the paper holder support to the printer frame by the two fastening screws on issue in the kit. Screw them
where shown in fig. A.8 and connect the near p aper end sensor cable to the printer connector.
WARNING: Check the paper roll pin is assembled with the beveled side turned in the low position
(see the paper roll containment disks part). If this condition isn’t verified, unloose the fastening
screw of the pin to the paper holder support and locate it in the right position.
(Fig.A.8)
BEVELED SIDE
(Fig.A.9)
TG1262-24607A-
Page 95
APPENDIX A - ACCESSORIES AND SPARE PARTS
Using the paper roll containment disks
The paper holder support kit is equipped with two paper roll containment disks. The disks operates to keep the roll
paper in the right position. They are realized with holes, which let the near paper end sensor on the paper holder
support works correctly , and with a slot, which hinder the disks from rotating around their own axises . In this slot
must be inserted the special paper roll pin feather, which has to be assembled turned toward the lower position to
avoid paper jam. In the following figure A.10 is shown how to assemble the paper roll containment disks on the
paper roll pin.
NOTE: These remarks are valid for all the printer models available.
TG1260-2460
(Fig.A.10)
8A-
Page 96
APPENDIX A - ACCESSORIES AND SPARE PARTS
Dimensions of printer with paper holder support
TG2460-U-A model (USB interface, metal front panel and autocutter model)
(Fig.A.1 1)
TG1262-24609A-
Page 97
APPENDIX A - ACCESSORIES AND SPARE PARTS
TG2460-U-N model (USB interface and plastic front panel)
(Fig.A.12)
TG1260-2460
10A-
Page 98
APPENDIX A - ACCESSORIES AND SPARE PARTS
TG2460-U-M model(USB interface and metal front panel without autocutter)
TG1262-246011A-
(Fig.A.13)
Page 99
APPENDIX A - ACCESSORIES AND SPARE PARTS
A.1.3 Paper dispenser unit
Assembling paper dispenser unit:
(Fig.A.14)
(Fig.A.15)
Assemble the fastening screw of paper
dispenser unit to the plate which holds the
autocutter.
Insert the paper dispenser unit feathers
in their seats on the plate which holds
the autocutter.
TG1260-2460
(Fig.A.16)
12A-
Page 100
APPENDIX A - ACCESSORIES AND SPARE PARTS
8.2
7.2
24.8
2.5
Ø2.1
38.7
26.8
0.8
59
38.5
28.5
5
31
51.5
57.1
36.4
A.2 SP ARE PARTS
Paper rolls
20.119.3
55X06TCR
llorrepaplamrehtmm06
(T ab.A.4)
TG1262-246013A-
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.