Add sensor range of TTP-225/ TDP-225 in command SET GAP
Ernest
2011/12/09
Add some command spec in RSS barcode.
Ernest
2012/11/20
Add command SET USBHOST KEYBOARD/SCANNER
Ernest
2012/11/20
Revise STRCOMP() example
Ernest
2012/11/20
Revise TRIM$(), LTRIM$(), RTRIM$() example.
Ernest
2012/11/20
Add <ESC>!P command.
Ernest
2012/11/20
Add <ESC>!O command.
Ernest
2012/11/20
Revise OUT command.
Ernest
2012/11/20
Add SET BLINE command.
Ernest
2012/11/20
Add ELLIPSE command.
Ernest
2012/11/20
Add SET RIBBONEND command.
Ernest
2012/11/20
Add SET ENCODER command.
Ernest
2012/11/21
Revise TEXT command.
Ernest
2012/11/21
Revise speed table of SPEED command.
Ernest
2012/11/21
Revise AZTEC command.
Ernest
2012/11/21
Add BLOCK command.
Ernest
2012/11/21
Add PUT command.
Ernest
2012/11/21
Add GET command.
Ernest
2012/11/21
Add INP() command.
Ernest
2012/11/22
Revise PUTBMP command. Support grayscale printing in direct thermal printing.
Ernest
2012/11/22
Revise BARCODE command. New support barcode TELEPEN, TELEPENN, PLANET, CODE49, DPI, DPL.
Ernest
2012/11/23
Add TLC39 barcode.
Ernest
2012/11/23
Add CODABLOCK command (F mode only).
Ernest
2012/11/23
Add SELFTEST PATTERN command.
Ernest
2012/11/23
Revise the supported CODEPAGE table and example.
Ernest
2012/11/23
Add global variable NOW.
Ernest
2012/11/26
Add DATEADD() command.
Ernest
2012/11/26
Add SET AUTORUN command.
Ernest
2012/11/26
Add LOC() command.
Ernest
2012/11/26
Add NOW$() command.
Ernest
2012/11/26
Revise SET RIBBON command.
Ernest
2012/11/26
Revise SET COUNTER command.
Ernest
2012/11/26
Add <ESC>!C command.
Ernest
2012/11/26
Add <ESC>!Q command.
Ernest
2012/11/26
Add <ESC>!S command.
Ernest
2012/11/26
Add OUTR command.
Ernest
2012/11/26
Add <ESC>!D command.
Ernest
2012/11/26
Add ~!E command.
Ernest
2012/11/27
Add LOB() command.
Ernest
Page 3
2012/11/27
Add WHILE … WEND command.
Ernest
2012/11/27
Add DO … LOOP command.
Ernest
2012/11/27
Add TEXTPIXEL() command.
Ernest
2012/11/27
Add BARCODEPIXEL() command.
Ernest
2012/11/27
Add GETSENSOR() command.
Ernest
2012/11/27
Add GETSETTING() command.
Ernest
2012/11/28
Revise SET CUTTER command.
Ernest
2012/11/28
Revise OPEN command.
Ernest
2012/11/28
Revise FOR … NEXT LOOP command.
Ernest
2012/11/28
Add CLOSE command.
Ernest
2012/11/28
Add COPY command.
Ernest
2012/11/28
Add MPDF417 command for Micro PDF 417 barcode.
Ernest
2012/11/30
Add EOJ command.
Ernest
2012/11/30
Add DELAY command.
Ernest
2012/11/30
Add DISPLAY command.
Ernest
2012/11/30
Add XOR$() command.
Ernest
2012/11/30
Add _MODEL$ variable.
Ernest
2012/11/30
Add _SERIAL$ variable.
Ernest
2012/11/30
Add _VERSION$ variable.
Ernest
2012/11/30
Revise LIMITFEED command.
Ernest
2012/11/30
Revise BOX command.
Ernest
2012/11/30
Add SET FEED_LEN command.
Ernest
2012/12/20
Add external Wi-Fi module setting commands.
Ernest
2012/12/20
Add Ethernet setting commands.
Ernest
2012/12/24
Revise DMATRIX command.
Ernest
2012/12/24
Revise LIMITFEED command.
Ernest
2012/12/24
Revise SELFTEST command
Camille
2013/2/5
Add sample result for each section
Camille
2013/2/6
Add CODEPAGE 864 (Arabic) ; since F/W V7.0
Camille
2013/2/26
Add <ESC>!F command.
Camille
2013/2/26
Add <ESC>!. command.
Camille
Page 4
TABLE OF CONTENTS
How to Ready ......................................................................................................................................... V
Document Conventions.......................................................................................................................... VI
Object Position Calculation ................................................................................................................... VII
Printer Model List .................................................................................................................................. IX
Setup and System Commands ................................................................................................................. 1
GAP ...................................................................................................................................................... 2
DENSITY .............................................................................................................................................. 10
DIRECTION AND MIRROR IMAGE ............................................................................................................. 11
HOME ................................................................................................................................................. 24
BAR ..................................................................................................................................................... 34
CIRCLE ................................................................................................................................................ 45
TEXT ................................................................................................................................................... 73
TSC AUTO ID Technology Co., Ltd. I Copyright 2013 All Rights Reserved.
RUN .................................................................................................................................................. 110
BASIC Commands and Functions ......................................................................................................... 112
END .................................................................................................................................................. 116
OPEN ................................................................................................................................................ 118
CLOSE ............................................................................................................................................... 120
PUT ................................................................................................................................................... 127
GET ................................................................................................................................................... 128
REM .................................................................................................................................................. 148
OUT .................................................................................................................................................. 149
YEAR ................................................................................................................................................. 211
DATE ................................................................................................................................................. 213
SECOND ............................................................................................................................................ 217
TSC AUTO ID Technology Co., Ltd. IV Copyright 2013 All Rights Reserved.
Page 8
The command name
Description of this command
Syntax of this command
The detail description of
each parameter
The example and
printout for reference
How to Ready
TSC AUTO ID Technology Co., Ltd. V Copyright 2013 All Rights Reserved.
Page 9
Convention
Description
[expression list]
Items inside square brackets are optional, expression maximum length 2*1024
bytes.
<ESC>
ASCII 27, control code of status polling command returns/runs the printer
status immediately.
~
ASCII 126, control code of status polling command returns the printer status
only when the printer is ready.
Space
ASCII 32, characters will be ignored in the command line.
"
ASCII 34, beginning and ending of expression.
CR, LF
ASCII 13, ASCII 10, denotes end of command line.
NULL
ASCII 0, supported in the expression.
Note:
203 DPI: 1 mm = 8 dots
The font in bold and italic type is used for note.
Document Conventions
This manual uses the following typographic conventions.
TSC AUTO ID Technology Co., Ltd. VI Copyright 2013 All Rights Reserved.
Page 10
Paper feed direction
DIRECTION 0
Label origin (0,0)
X
Y
X=7mm
Y=3mm
DIRECTION 0
CLS
TEXT 56,24,"3",0,1,1,"ABC"
PRINT 1
Object Position Calculation
Note :
1. 203 DPI, 1mm=8 dots ; 300 DPI, 1mm=11.8 dots
2.Only integer portion will be used. Ex. 2 mm = 23.6 dots then 23 dots will be used.
TSC AUTO ID Technology Co., Ltd. VII Copyright 2013 All Rights Reserved.
Page 11
DIRECTION 1
CLS
TEXT 56,24,"3",0,1,1,"ABC"
PRINT 1
Paper feed direction
DIRECTION 1
Label origin (0,0)
X
Y
X=7mm
Y=3mm
TSC AUTO ID Technology Co., Ltd. VIII Copyright 2013 All Rights Reserved.
Page 12
Series
Models
F/W maintainability
M23 series
M23
No
TDP-643 Plus
TDP-643 Plus
No
TTP-243 series
TTP-243, TTP-243E, TTP-342
No
TTP-244ME series
TTP-243M, TTP-244ME, TTP-342M
No
TTP/TDP-245 series
TTP-245, TTP-245G, TTP-343, TDP-245, TDP-245G
No
TTP-246M series
TTP-246M, TTP-246G, TTP-344M
No
TTP-248M series
TTP-248M
No
TDP-643R Plus
TDP-643R Plus
No
TTP-243 Plus series
TTP-243 Plus, TTP-243E Plus, TTP-342 Plus
No
TTP-244ME Plus
TTP-244ME Plus, TTP-342M Plus
No
TTP-244 series
TTP-244
No
Alpha-3R series
Alpha-3R
Yes
TTP-243 Pro series
TTP-243 Pro, TTP-243E Pro, TTP-342 Pro
Yes
TTP-244ME Pro
TTP-244ME Pro, TTP-342M Pro
Yes
TTP/TDP-245 Plus
series
TTP-245 Plus, TTP-343 Plus, TDP-245 Plus
Yes
TTP-244 Plus series
TTP-244 Plus
Yes
TTP-245C series
TTp-245C, TTP-343C, TTP-244CE
Yes
TTP/TDP-247 series
TTP-247, TTP-345, TDP-244, TDP-247, TDP-345
Yes
TTP/TDP-225 series
TTP-225, TTP-323, TDP-225, TDP-225W
Yes
TA200 series
TA200, TA300
Yes
TTP-2410M series
TTP-2410M, TTP-346M, TTP-644M
Yes
TTP-246MPlus series
TTP-246M Plus, TTP-344M Plus
Yes
TTP-384M series
TTP-384M
Yes
TTP-268M series
TTP-268M, TTP-366M
Yes
TTP-2410M Pro
series
TTP-2410M Pro, TTP-346M Pro, TTP-644M Pro
Yes
TTP-246M Pro series
TTP-246M Pro, TTP-344M Pro
Yes
ME240 series
ME240, ME340
Yes
Printer Model List
TSC AUTO ID Technology Co., Ltd. IX Copyright 2013 All Rights Reserved.
Page 13
SIZE m,n
English system (inch)
SIZE m mm,n mm
Metric system (mm)
SIZE m dot,n dot
Dot measurement
This command has been supported since V6.27 EZ and later firmware.
Parameter
Description
M
Label width (inch/ mm/ dot)
N
Label length (inch/ mm/ dot)
Note :
200 DPI : 1 mm = 8 dots
300 DPI : 1mm = 12 dots
For metric and dot systems, there must be a space between parameter and “mm” or “dot”.
Sample Code
English system (inch):
SIZE 3.5,3.00
Metric system (mm):
SIZE 100 mm,100 mm
Result
Setup and System Commands
SIZE
Description
This command defines the label width and length.
Syntax
Example
See Also
GAP, BLINE
TSC AUTO ID Technology Co., Ltd. 1 Copyright 2013 All Rights Reserved.
Page 14
GAP m,n
English system (inch)
GAP m mm,n mm
Metric system (mm)
GAP m dot,n dot
Dot measurement
This command has been supported since V6.27 EZ and later firmware.
Parameter
Description
M
The gap distance between two labels
0 ≤ m ≤1 (inch), 0 ≤ m ≤ 25.4 (mm)
N
The offset distance of the gap
n ≤ label length (inch or mm)
0, 0
Continuous label
Note :
200 DPI : 1 mm = 8 dots
300 DPI : 1mm = 12 dots
For metric and dot systems, there must be a space between parameter and mm.
When the sensor type is changed from “Black Mark” to “GAP”, please send the “GAP”
command to the printer first.
GAP
Description
Defines the gap distance between two labels.
Syntax
TSC AUTO ID Technology Co., Ltd. 2 Copyright 2013 All Rights Reserved.
Page 15
Sample Code
Result
Normal gap
English system (inch):
GAP 0.12,0
Metric system (mm):
GAP 3 mm,0 mm
Continuous label:
GAP 0,0
Normal gap
Special gap
English system (inch)
GAP 0.30,0.10
Metric system (mm)
GAP 7.62 mm,2.54 mm
Special gap
Example
See Also
SIZE, BLINE
TSC AUTO ID Technology Co., Ltd. 3 Copyright 2013 All Rights Reserved.
Page 16
Parameter
Description
X
Paper length (in dots)
Y
Gap length (in dots)
Note:
If the x, y parameters are ignored then the printer will calibrate and determine the paper length
and gap size automatically.
GAPDETECT
Description
This command feeds the paper through the gap sensor in an effort to determine the paper and gap
sizes, respectively. This command references the user’s approximate measurements. If the
measurements conflict with the actual size, the GAPDETECT command will not work properly. This
calibration method can be applied to the labels with pre-printed logos or texts.
Syntax
GAPDETECT [x,y]
See Also
GAP, SIZE, BLINEDETECT, AUTODETECT
TSC AUTO ID Technology Co., Ltd. 4 Copyright 2013 All Rights Reserved.
Page 17
Parameter
Description
x
Paper length (in dots)
y
Gap length (in dots)
Note:
If the x, y parameters are ignored then the printer will calibrate and determine the paper length
and gap size automatically.
BLINEDETECT
Description
This command feeds the paper through the black mark sensor in an effort to determine the paper and
black mark sizes, respectively. This command references the user’s approximate measurements. If the
measurements conflict with the actual size, the BLINEDETECT command will not work properly. This
calibration method can be applied to the labels with pre-printed logos or texts.
Syntax
BLINEDETECT [x,y]
See Also
GAP, SIZE, GAPDETECT, AUTODETECT
TSC AUTO ID Technology Co., Ltd. 5 Copyright 2013 All Rights Reserved.
Page 18
Parameter
Description
x
Paper length (in dots)
y
Gap length (in dots)
Note:
If the x, y parameters are ignored then the printer will calibrate and determine the paper
length and gap/black mark size automatically.
When using this command, the printer will detect the label by the proper sensor type so
please don’t set the command GAP or BLINE in your program.
It is supported in firmware V6.86 EZ or later.
AUTODETECT
Description
This command feeds the paper through the gap/black mark sensor in an effort to determine the paper
and gap/black mark sizes, respectively. This command references the user’s approximate
measurements. If the measurements conflict with the actual size, the AUTODETECT command will not
work properly. This calibration method can be applied to the labels with pre-printed logos or texts.
Syntax
AUTODETECT [x,y]
See Also
GAP, SIZE, GAPDETECT, BLINEDETECT
TSC AUTO ID Technology Co., Ltd. 6 Copyright 2013 All Rights Reserved.
Page 19
BLINE m,n
English system (inch)
BLINE m mm,n mm
Metric system (mm)
BLINE m dot,n dot
Dot measurement
This command has been supported since V6.27 EZ and later firmware.
Parameter
Description
m
The height of black line either in inch or mm
0 ≤ m ≤ 1 (inch), 0 ≤ m ≤ 25.4 (mm)
n
The extra label feeding length
0 ≤ n ≤ label length
0,0
Continuous label
Note:
For metric system, there must be a space between parameter and mm.
When the sensor type is changed from “GAP” to “Black Mark”, please send the “BLINE”
command to the printer first.
200 DPI : 1 mm = 8 dots
300 DPI : 1mm = 12 dots
Sample Code
English system (inch):
BLINE 0.20,0.50
Metric system (mm):
BLINE 5.08 mm,12.7 mm
BLINE
Description
This command sets the height of the black line and the user-defined extra label feeding length each
form feed takes.
Syntax
Example
See Also
SIZE, GAP
TSC AUTO ID Technology Co., Ltd. 7 Copyright 2013 All Rights Reserved.
Page 20
OFFSET m
English system (inch)
OFFSET m mm
Metric system (mm)
OFFSET m dot,n dot
Dot measurement
This command has been supported since V6.27 EZ and later firmware.
Parameter
Description
m
The offset distance (inch or mm)
-1 ≤ m ≤ 1 (inch)
CAUTION:
Impropriety offset value may cause paper jam.
For metric system, there must be a space between parameter and mm.
200 DPI : 1 mm = 8 dots
300 DPI : 1mm = 12 dots
Sample Code
English system (inch):
OFFSET 0.5
Metric system (mm):
OFFSET 12.7 mm
OFFSET
Description
This command defines the selective, extra label feeding length each form feed takes, which, especially
in peel-off mode and cutter mode, is used to adjust label stop position, so as for label to register at
proper places for the intended purposes. The printer back tracks the extra feeding length before the
next run of printing.
Syntax
Example
See Also
SIZE, GAP, SET PEEL, SET CUTTER
TSC AUTO ID Technology Co., Ltd. 8 Copyright 2013 All Rights Reserved.
Page 21
Parameter
Description
n
Printing speed in inch per second
Model / IPS
1
1.5 2 2.5 3 3.5 4 5 6 8
10
12
TTP-243 series
V V V
TTP-243 Plus series
V V V TTP-244ME series
V V V V
TTP-244ME Plus series
V V V V TTP-244 series
V V V
TTP-244CE series
V V V V
TTP-245 series
V V V V V
TTP-245C series
V V V V V V
TDP-245 series
V V V V V TTP-246M series
V V V V V
TTP-246M Plus series
V V V V V V TTP-248M series
V V V V
TTP-2410M series
V V V V
V
TDP-643 Plus series
V V V TDP-643R Plus series
V V V
TTP-342 series
V V V TTP-342 Plus series
V V V
TTP-342M series
V V V TTP-342M Plus series
V V V
TTP-343 series
V V V TTP-343C series
V V V V
TTP-344M series
V V V TTP-344M Plus series
V V V V
TTP-346M series
V V V V
TTP-384M series
V V V TTP-644M series
V V V
M23 series
V V V V V TDP-225 series
V V V V V
TTP-225 series
V V V V V
Sample code
SPEED 10
SPEED
Description
This command defines the print speed.
Syntax
SPEED n
Example
See Also
DENSITY
TSC AUTO ID Technology Co., Ltd. 9 Copyright 2013 All Rights Reserved.
Page 22
Parameter
Description
n
0~15
0: specifies the lightest level
15: specifies the darkest level
Note:
Default DENSITY setting is 8.
Sample code
DENSITY 7
DENSITY
Description
This command sets the printing darkness.
Syntax
DENSITY n
Example
TSC AUTO ID Technology Co., Ltd. 10 Copyright 2013 All Rights Reserved.
Page 23
Parameter
Description
n
0 or 1. Please refer to the illustrations below
m
0: Print normal image
1: Print mirror image
Model
Support
DIRECTION
MIRROR
TTP-243 series V
TTP-243 Plus series V V
TTP-244ME series V
TTP-244ME Plus series
V
V
TTP-244 series V V
TTP-244CE series V V
TTP-245 series V V
TTP-245C series V V
TDP-245 series V V
TTP-246M series V V
TTP-248M series V
TTP-2410M series V V
TDP-643 Plus series V
TDP-643R Plus series V V
TTP-342 series V
TTP-342 Plus series V V
TTP-342M series V
TTP-342M Plus series V V
DIRECTION and Mirror Image
Description
This command defines the printout direction and mirror image. This will be stored in the printer
memory.
Syntax
DIRECTION n[,m]
TSC AUTO ID Technology Co., Ltd. 11 Copyright 2013 All Rights Reserved.
Page 24
TTP-343 series V V
TTP-343C series V V
TTP-344M series V V
TTP-346M series V V
TTP-384M series V V
TTP-644M series V V
M23 series
V
V
Sample code
DIRECTION 0
DIRECTION 0,1
Example
See Also
REFERENCE
TSC AUTO ID Technology Co., Ltd. 12 Copyright 2013 All Rights Reserved.
Page 25
Parameter
Description
x
Horizontal coordinate (in dots)
y
Vertical coordinate (in dots)
Note:
200 DPI: 1 mm = 8 dots
300 DPI: 1 mm = 12 dots
Sample code
REFERENCE 10,10
REFERENCE
Description
This command defines the reference point of the label. The reference (origin) point varies with the
print direction, as shown:
Syntax
REFERENCE x, y
Example
See Also
DIRECTION
TSC AUTO ID Technology Co., Ltd. 13 Copyright 2013 All Rights Reserved.
Page 26
Parameter
Description
n
The maximum value is 1 inch. For 200 dpi printers, the range is –203 to 203; for
300 dpi printers, the range is –300 to 300. The unit is dot.
Model
Support
TTP-243 series
TTP-243 Plus series
V
TTP-244ME series
TTP-244ME Plus series
V
TTP-244 series
V
TTP-244CE series
V
TTP-245 series
V
TTP-245C series
V
TDP-245 series
V
TTP-246M series
V
TTP-248M series
TTP-2410M series
V
TDP-643 Plus series
TDP-643R Plus series
V
TTP-342 series
TTP-342 Plus series
V
TTP-342M series
TTP-342M Plus series
V
TTP-343 series
V
TTP-343C series
V
TTP-344M series
V
TTP-346M series
V
TTP-384M series
V
TTP-644M series
V
M23 series
SHIFT
Description
This command moves the label’s vertical position. A positive value moves the label further from the
printing direction; a negative value moves the label towards the printing direction. For a visual
representation, see next page.
Syntax
SHIFT n
TSC AUTO ID Technology Co., Ltd. 14 Copyright 2013 All Rights Reserved.
Page 27
Sample Code
SIZE 4,2.5
GAP 2 mm,0
DIRECTION 0
SHIFT 36
OFFSET 0
CLS
TEXT 400,200,"3",0,1,1,"DIRECTION 0"
TEXT 400,250,"3",0,1,1,"SHIFT 36"
BOX 10,0,780,490,8
PRINT 3,1
Result
Example
See Also
OFFSET, REFERENCE
TSC AUTO ID Technology Co., Ltd. 15 Copyright 2013 All Rights Reserved.
Page 28
Parameter
Description
n
001: USA
002: Canadian-French
003: Spanish (Latin America)
031: Dutch
032: Belgian
033: French (France)
034: Spanish (Spain)
036: Hungarian
038: Yugoslavian
039: Italian
041: Switzerland
042: Slovak
044: United Kingdom
045: Danish
046: Swedish
047: Norwegian
048: Polish
049: German
055: Brazil
061: English (International)
351: Portuguese
358: Finnish
Sample Code
COUNTRY 001
COUNTRY
Description
This command orients the keyboard for use in different countriesvia defining special characters on the
KP-200 series portable LCD keyboard (option).
Syntax
COUNTRY n
Example
See Also
CODEPAGE,~!I
TSC AUTO ID Technology Co., Ltd. 16 Copyright 2013 All Rights Reserved.
Page 29
Parameter
Description
n
Name or number of code page, which can be divided into 7-bit code
page and 8-bit code page.
7-bit code page
8-bit code page
Windows code page
ISO code page
n
Name n Name
n
Name
n
Name
USA
USA
437
United States
1250
Central Europe
8859-1
Latin 1
BRI
British
737
Greek
1251
Cyrillic
8859-2
Latin 2
GER
German
850
Multilingual
1252
Latin I
8859-3
Latin 3
FRE
French
851
Greek 1
1253
Greek
8859-4
Baltic
DAN
Danish
852
Slavic
1254
Turkish
8859-5
Cyrillic
ITA
Italian
855
Cyrillic
1255
Hebrew
8859-6
Arabic
SPA
Spanish
857
Turkish
1256
Arabic
8859-7
Greek
SWE
Swedish
860
Portuguese
1257
Baltic
8859-8
Hebrew
SWI
Swiss
861
Icelandic
1258
Vietnam
8859-9
Turkish
862
Hebrew
932
Japanese
Shift-JIS
8859-10
Latin 6
863
Canadian/French
936
Simplified
Chinese GBK
8859-15
Latin 9
864
Arabic
949
Korean
865
Nordic
950
Traditional
Chinese Big5
866
Russian
UTF-8
UTF 8
869
Greek 2
Note:
DATA LENGTH determines 7-bit or 8-bit communications parameter.
Download the COUR.TTF into printer by DiagTool
CODEPAGE
Description
This command defines the code page of international character set.
Syntax
CODEPAGE n
Example
TSC AUTO ID Technology Co., Ltd. 17 Copyright 2013 All Rights Reserved.
Page 30
Sample Code
DOWNLOAD "TEST.BAS"
str1$ = ""
J = 0
y = 50
CODEPAGE 1252
SIZE 4,3
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"COUR.TTF",0,12,12,"CODEPAGE 1252"
FOR I=32 TO 255
str1$=str1$+CHR$(I) + " "
J=J+1
IF J=16 THEN GOSUB drawTEXT
NEXT
PRINT 1
END
drawTEXT:
TEXT 10,y,"COUR.TTF",0,12,12,str1$
str1$=""
J=0
y=y+40
RETURN
EOP
TEST
Result
See Also
COUNTRY, ~!I
TSC AUTO ID Technology Co., Ltd. 18 Copyright 2013 All Rights Reserved.
Page 31
Parameter
Description
None
N/A
Note:
This command must be placed after SIZE command.
Sample code
CLS
CLS
Description
This command clears the image buffer.
Syntax
CLS
Example
See Also
SIZE, GAP, BLINE
TSC AUTO ID Technology Co., Ltd. 19 Copyright 2013 All Rights Reserved.
Page 32
Parameter
Description
n
unit: dot
1 ≤ n ≤ 9999
Note:
200 DPI: 1 mm = 8 dots
300 DPI: 1 mm = 12 dots
Sample code
FEED 40
FEED
Description
This command feeds label with the specified length. The length is specified by dot.
Syntax
FEED n
Example
See Also
BACKFEED, SIZE, GAP, BLINE, HOME, FORMFEED
TSC AUTO ID Technology Co., Ltd. 20 Copyright 2013 All Rights Reserved.
Page 33
BACKUP n
TSPL printers only
BACKFEED n
TSPL2 printers only
Parameter
Description
n
unit: dot
1 ≤ n ≤ 9999
Model
Support
BACKUP
BACKFEED
TTP-243 series
V
TTP-243 Plus series
V
V
TTP-244ME series
V
TTP-244ME Plus series
V
V
TTP-244 series
V
V
TTP-244CE series
TTP-245 series
V
TTP-245C series
V
TDP-245 series
V
TTP-246M series
V
TTP-248M series
V
TTP-2410M series
V
V
TDP-643 Plus series
V
TDP-643R Plus series
V
V
TTP-342 series
V
TTP-342 Plus series
V
V
TTP-342M series
V
TTP-342M Plus series
V
V
TTP-343 series
V
TTP-343C series
V
TTP-344M series
V
TTP-346M series
V
V
TTP-384M series
V
V
TTP-644M series
V
V
M23 series V
Note:
200 DPI: 1 mm = 8 dots
300 DPI: 1 mm = 12 dots
CAUTION:
Impropriety back feed value may cause paper jam or wrinkle.
Sample code
TSPL printers
BACKUP 40
TSPL2 printers
BACKFEED 40
BACKFEED & BACKUP
Description
This command feeds the label in reverse. The length is specified by dot.
Syntax
Example
TSC AUTO ID Technology Co., Ltd. 21 Copyright 2013 All Rights Reserved.
Page 34
See Also
FEED, SIZE, GAP, BLINE, HOME, FORMFEED
TSC AUTO ID Technology Co., Ltd. 22 Copyright 2013 All Rights Reserved.
Page 35
Parameter
Description
None
N/A
Note:
This command must be placed after SIZE command.
Sample code
SIZE 4,2.5
GAP 2 mm,0
DIRECTION 1
FORMFEED
CLS
TEXT 25,25,"3",0,1,1,"FORMFEED COMMAND TEST"
PRINT 1,1
Result
Paper feed direction
FORMFEED
Description
This command feeds label to the beginning of next label.
Syntax
FORMFEED
Example
See Also
FEED, SIZE, GAP, BLINE, HOME, BACKFEED
TSC AUTO ID Technology Co., Ltd. 23 Copyright 2013 All Rights Reserved.
Page 36
Parameter
Description
None
N/A
Model
HOME
Back Label
Feed Label
TTP-243 series V
TTP-243 Plus series
V
TTP-244ME series
V
TTP-244ME Plus series
V
TTP-244 series V
TTP-244CE series
V
TTP-245 series V
TTP-245C series
V
TDP-245 series V
TTP-246M series
V
TTP-248M series
V
TTP-2410M series
V
TDP-643 Plus series
V
TDP-643R Plus series
V
TTP-342 series V
TTP-342 Plus series
V
TTP-342M series
V
TTP-342M Plus series
V
TTP-343 series V
TTP-343C series
V
TTP-344M series
V
TTP-346M series
V
TTP-384M series
V
TTP-644M series
V
M23 series V
Sample code
SIZE 4,2.5
GAP 2 mm,0
SET COUNTER @0+1
@0="000001"
HOME
CLS
BOX 1,1,360,65,12
TEXT 25,25,"3",0,1,1,"HOME COMMAND TEST"
TEXT 25,80,"3",0,1,1,@0
PRINT 3,1
HOME
Description
This command will feed label until the internal sensor has determined the origin. Size and gap of the
label should be defined before using this command.
Syntax
HOME
Example
See Also
FEED, SIZE, GAP, BLINE, FORMFEED
TSC AUTO ID Technology Co., Ltd. 24 Copyright 2013 All Rights Reserved.
Page 37
Parameter
Description
m
Specifies how many sets of labels will be printed.
1 ≤ m ≤ 999999999
n
Specifies how many copies should be printed for each particular label set.
1 ≤ n ≤ 999999999
Sample code
SIZE 50 mm,25 mm
GAP 3 mm,0
DIRECTION 1
SET COUNTER @1 1
@1="0001"
CLS
TEXT 10,10,"3",0,1,1,@1
PRINT 3,2
Result
Paper feed direction
1 set, 2 copies
PRINT
Description
This command prints the label format currently stored in the image buffer.
Syntax
PRINT m[,n]
Example
See Also
SET COUNTER, INPUT, DOWNLOAD
TSC AUTO ID Technology Co., Ltd. 25 Copyright 2013 All Rights Reserved.
This command controls the sound frequency of the beeper. There are 10 levels of sounds. The timing
control can be set by the "interval" parameter.
Syntax
SOUND level,interval
Example
TSC AUTO ID Technology Co., Ltd. 26 Copyright 2013 All Rights Reserved.
Page 39
Parameter
Description
None
N/A
Sample code
SIZE 3,3
GAP 0,0
CLS
BOX 0,0,866,866,5
TEXT 100,100,"5",0,1,1,"FEED & CUT"
TEXT 100,200,"5",0,1,1,"300 DPI"
PRINT 1,1
FEED 260
CUT
CUT
Description
This command activates the cutter to immediately cut the labels without back feeding the label.
Syntax
CUT
Example
See Also
SET CUTTER, SET BACK, SET PARTITAL_CUTTER
TSC AUTO ID Technology Co., Ltd. 27 Copyright 2013 All Rights Reserved.
Page 40
LIMITFEED n[,minpaper,maxgap]
English system (inch)
LIMITFEED n mm[,minpaper
mm,maxgap mm]
Metric system (mm)
LIMITFEED n dot[,minpaper
dot,maxgap dot]
Dot measurement
This command has been supported since V6.34 EZ.
Parameter
Description
N
The maximum length for sensor detecting
Minpaper
The minimum length of paper
Maxgap
The maximum length of gap
Note:
The setting will remain resident in memory.
For metric system, there must be a space between parameter n and mm.
The default value is 10 inches when printer initializes.
Since V6.76 EZ, the default value for TDP-225 series printer is 14 inches when printer
initializes.
The setting of parameters “mimpaper” and “maxgap” are using for calibrating the
preprinted label. This parameter has been supported since V6.98.7 EZ.
Sample code
English system (inch)
LIMITFEED 12
LIMITFEED
Description
If the gap sensor is not set to a suitable sensitivity while feeding labels, the printer will not be able to
locate the correct position of the gap. This command stops label feeding and makes the red LED flash if
the printer does not locate gap after feeding the length of one label plus one preset value.
Syntax
Example
TSC AUTO ID Technology Co., Ltd. 28 Copyright 2013 All Rights Reserved.
Page 41
Parameter
Description
page
omitted: Print a self-test page with whole printer information.
PATTERN: Print a pattern to check the status of print head heat line.
ETHERNET: Print a self-test page with Ethernet settings.
WLAN: Print a self-test page with Wi-Fi settings.
RS232: Print a self-test page with RS-232 settings.
SYSTEM: Print a self-test page with printer settings.
Z: Print a self-test page with emulated language settings.
Sample code
Result
SELFTEST
SELFTEST
Description
At this command, the printer will print out the printer information.
Syntax
SELFTEST [page]
Example
TSC AUTO ID Technology Co., Ltd. 29 Copyright 2013 All Rights Reserved.
Page 42
SELFTEST PATTERN
SELFTEST ETHERNET
SELFTEST WLAN
SELFTEST RS232
SELFTEST SYSTEM
SELFTEST PRINTER
SELFTEST Z
TSC AUTO ID Technology Co., Ltd. 30 Copyright 2013 All Rights Reserved.
Page 43
Sample Code
SIZE 4,0.2
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"3",0,1,1,"Two labels are printed without stop."
PRINT 1
PRINT 1
SIZE 4,0.2
GAP 0,0
CLS
TEXT 10,10,"3",0,1,1,"Printer stops before next printing."
PRINT 1
EOJ
PRINT 1
Result
Paper feed direction
without stop
EOJ
Description
Let the printer wait until process of commands (before EOJ) be finished then go on the next command.
Syntax
EOJ
Note:
This command has been supported since V6.39 EZ and later firmware.
Example
TSC AUTO ID Technology Co., Ltd. 31 Copyright 2013 All Rights Reserved.
Page 44
Parameter
Description
ms
The specific period of time. Unit is millisecond. 1000 ms = 1 second.
Note:
This command has been supported since V6.34 EZ and later firmware.
Sample Code
SIZE 4,0.7
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"3",0,1,1,"The delay time between two labels is 3 seconds."
TEXT 10,60,"3",0,1,1,"Now second:"+@SECOND
PRINT 1
DELAY 3000
PRINT 1
Result
DELAY
Description
Let the printer wait specific period of time then go on next command.
Syntax
DELAY ms
Example
TSC AUTO ID Technology Co., Ltd. 32 Copyright 2013 All Rights Reserved.
Page 45
Parameter
Description
IMAGE
Show the image in printer’s image buffer on LCD panel.
OFF
Disable this function.
Note:
This command has been supported since V6.39 EZ and later firmware.
This command only can be performed on the printer with LCD display.
Sample code
CLS
TEXT 1,10,"1",0,1,1,"Image on LCD"
TEXT 1,30,"1",0,1,1,"1234567890"
DISPLAY IMAGE
DELAY 5000
DISPLAY OFF
Result
DISPLAY
Description
This command can show the image, which is in printer’s image buffer, on LCD panel.
Syntax
DISPLAY IMAGE/OFF
Example
TSC AUTO ID Technology Co., Ltd. 33 Copyright 2013 All Rights Reserved.
Page 46
Parameter
Description
x
The upper left corner x-coordinate (in dots)
y
The upper left corner y-coordinate (in dots)
width
Bar width (in dots)
height
Bar height (in dots)
Note:
200 DPI: 1 mm = 8 dots
300 DPI: 1 mm = 12 dots
Recommended max. bar height is 12 mm at 4” width. Bar height over 12 mm may damage
the power supply and affect the print quality.
Max. print ratio is different for each printer model. Desktop and industrial printer print
ratio is limited to 20% and 30% respectively.
Sample code
SIZE 50 mm,25 mm
GAP 3 mm,0
DIRECTION 1
CLS
BAR 80,80,300,100
PRINT 1,1
Result
80
80
100
300
Label Formatting Commands
BAR
Description
This command draws a bar on the label format.
Syntax
BAR x,y,width,height
Example
See Also
BOX
TSC AUTO ID Technology Co., Ltd. 34 Copyright 2013 All Rights Reserved.
Page 47
Code Type
Description
Narrow : Width
Max. data length
1:1
1:2
1:3
2:5
3:7
128
Code 128, switching code subset automatically.
V 128M
Code 128, switching code subset manually.
V
EAN128
EAN128, switching code subset automatically.
V 25
Interleaved 2 of 5.
V V V
Length is even
25C
Interleaved 2 of 5 with check digit.
V V V
Length is odd
39
Code 39, switching standard and full ASCII mode
automatically.
V V V
39C
Code 39 with check digit.
V V V 93
Code 93.
V
EAN13
EAN 13.
V
12
EAN13+2
EAN 13 with 2 digits add-on.
V
14
EAN13+5
EAN 13 with 5 digits add-on.
V
17
EAN8
EAN 8. V
7
EAN8+2
EAN 8 with 2 digits add-on.
V
9
EAN8+5
EAN 8 with 5 digits add-on.
V
12
CODA
Codabar.
V V V
POST
Postnet.
V
5, 9, 11
UPCA
UPC-A. V
11
UPCA+2
UPC-A with 2 digits add-on.
V
13
UPA+5
UPC-A with 5 digits add-on.
V
16
UPCE
UPC-E. V
6
UPCE+2
UPC-E with 2 digits add-on.
V 8 UPE+5
UPC-E with 5 digits add-on.
V
11
MSI
MSI. V V V
MSIC
MSI with check digit.
V V V
PLESSEY
PLESSEY.
V V V CPOST
China post.
V
ITF14
ITF14. V V V
13
EAN14
EAN14. V
13
11
Code 11.
V V V
TELEPEN
Telepen. *Since V6.89EZ.
V V V TELEPENN
Telepen number. *Since V6.89EZ.
V V V
PLANET
Planet. *Since V6.89EZ.
V CODE49
Code 49. *Since V6.89EZ.
V
DPI
Deutsche Post Identcode. *Since V6.91EZ.
V V V
11
DPL
Deutsche Post Leitcode. *Since V6.91EZ.
V V V
13
LOGMARS
A special use of Code 39. *Since V6.88EZ.
V V V
BARCODE
Description
This command prints 1D barcodes. The available barcodes are listed below:
TSC AUTO ID Technology Co., Ltd. 35 Copyright 2013 All Rights Reserved.
Page 48
Parameter
Description
X
Specify the x-coordinate bar code on the label
Y
Specify the y-coordinate bar code on the label
code type
128
Code 128, switching code subset A, B, C automatically
128M
Code 128, switching code subset A, B, C manually
Control code
A B C
096
FNC3
FNC3
NONE
097
FNC2
FNC2
NONE
098
SHIFT
SHIFT
NONE
099
CODE C
CODE C
NONE
100
CODE B
FNC4
CODE B
101
FNC4
CODE A
CODE A
102
FNC1
FNC1
FNC1
103
Start (CODE A)
104
Start (CODE B)
105
Start (CODE C)
Use “!” as a starting character for the control code followed by three control codes. If the start subset
is not set, the default starting subset is B.
EAN128
Code 128, switching code subset A, B, C automatically
25
Interleaved 2 of 5
25C
Interleaved 2 of 5 with check digits
39
Code 39 full ASCII for TSPL2 printers
Code 39 standard for TSPL printers
Auto switch full ASCII and standard code 39 for PLUS models
39C
Code 39 full ASCII with check digit for TSPL2 printers
Code 39 standard with check digit for TSPL printers
Auto switch full ASCII and standard code 39 for PLUS models
Note:
Since V5.10EZ, \[R] means carriage return character 0x0D and \[L] means line feed character
0x0A.
TSC AUTO ID Technology Co., Ltd. 38 Copyright 2013 All Rights Reserved.
Page 51
Barcode Type
Model
128
EAN128
25
25C
39 for TSPL2
39 for TSPL
39 for PLUS
39C for
39C for TSPL
39C for PLUS
39S
93
EAN13
EAN13+2
EAN13+5
EAN 8
EAN 8+2
EAN 8+5
CODA
POST
UPCA
UPCA+2
UPCA+5
UPCE
UPCE+2
UPCE+5
CPOST
MSI
MSIC
PLESSY
ITF14
EAN14
11
TTP-243 series
V V V V V
V
V V V V V V V V V V V V V V V V
TTP-243 Plus series
V V V V
V
V V V V V V V V V V V V V V V V V V V V V V V
TTP-244ME series
V V V V V
V
V V V V V V V V V V V V V V V V
TTP-244ME Plus series
V V V V
V
V V V V V V V V V V V V V V V V V V V V V V V
TTP-244 series
V V V V
V
V V V V V V V V V V V V V V V V V V V V V V V
TTP-244CE series
V V V V
V
V V V V V V V V V V V V V V V V V V V V V V V
TTP-245 series
V V V V V
V
V V V V V V V V V V V V V V V V V V V V V V
V
TTP-245C series
V V V V V
V
V V V V V V V V V V V V V V V V V V V V V V V TDP-245 series
V V V V V
V
V V V V V V V V V V V V V V V V V V V V V V
V
TTP-246M series
V V V V V
V
V V V V V V V V V V V V V V V V V V V V V V
V
TTP-248M series
V V V V V
V
V V V V V V V V V V V V V V V V V V
V V V
TTP-2410M series
V V V V
V
V V V V V V V V V V V V V V V V V V V V V V V
TDP-643 Plus series
V V V V V
V
V V V V V V V V V V V V V V V V
TDP-643R Plus series
V V V V
V
V V V V V V V V V V V V V V V V V V V V V V V
TTP-342 series
V V V V V
V
V V V V V V V V V V V V V V V V
TTP-342 Plus series
V V V V
V
V V V V V V V V V V V V V V V V V V V V V V V
TTP-342M series
V V V V V
V
V V V V V V V V V V V V V V V V
TTP-342M Plus series
V V V V
V
V V V V V V V V V V V V V V V V V V V V V V V
TTP-343 series
V V V V V
V
V V V V V V V V V V V V V V V V V V V V V V V TTP-343C series
V V V V V
V
V V V V V V V V V V V V V V V V V V V V V V
V
TTP-344M series
V V V V V
V
V V V V V V V V V V V V V V V V V V V V V V
V
TTP-346M series
V V V V
V
V V V V V V V V V V V V V V V V V V V V V V V
TTP-384M series
V V V V
V
V V V V V V V V V V V V V V V V V V V V V V V
TTP-644M series
V V V V
V
V V V V V V V V V V V V V V V V V V V V V V V
M23 series
V V V V V
V
V V V V V V V V V V V V V V V V V V V V V V
V
Value
128A
128B
128C
Value
128A
128B
128C
Value
128A
128B
128C
0
space
space
00
36 D D
36
72
BS h 72 1 ! ! 01
37 E E
37
73
HT i 73
2 " "
02
38 F F
38
74
LF j 74
3 # #
03
39 G G
39
75
VT k 75 4 $ $ 04
40 H H
40
76
FF l 76
5 % %
05
41 I I
41
77
CR m 77
6 & &
06
42 J J
42
78
SO n 78
7 ' '
07
43 K K
43
79
SI o 79 8 ( ( 08
44 L L
44
80
DLE p 80
9 ) )
09
45 M M
45
81
DC1 q 81
10 * *
10
46 N N
46
82
DC2 r 82
11 + +
11
47 O O
47
83
DC3 s 83
12 , ,
12
48 P P
48
84
DC4 t 84
13 - -
13
49 Q Q
49
85
NAK u 85
14 . .
14
50 R R
50
86
SYN v 86
15 / /
15
51 S S
51
87
ETB w 87
16 0 0
16
52 T T
52
88
CAN x 88
17 1 1
17
53 U U
53
89
EM y 89
18 2 2
18
54 V V
54
90
SUB z 90
19 3 3
19
55 W W
55
91
ESC { 91
20 4 4
20
56 X X
56
92
FS | 92
21 5 5
21
57 Y Y
57
93
GS } 93
22 6 6
22
58 Z Z
58
94
RS ~ 94
23 7 7
23
59 [ [
59
95
US
DEL
95
24 8 8
24
60 \ \
60
96
FNC 3
FNC 3
96
25 9 9
25
61 ] ]
61
97
FNC 2
FNC 2
97
26 : :
26
62 ^ ^
62
98
Shift B
Shift A
98
27 ; ;
27
63 _ _
63
99
Code C
Code C
99
28
<
<
28
64
NUL ` 64
100
Code B
FNC4
Code B
29 = =
29
65
SOH a 65
101
FNC 4
Code A
Code A
30
>
>
30
66
STX b 66
102
FNC 1
FNC 1
FNC 1
31 ? ?
31
67
ETX c 67
103
Start Code A
32 @ @
32
68
EOT d 68
104
Start Code B
33 A A
33
69
ENQ e 69
105
Start Code C
34 B B
34
70
ACK f 70
35 C C
35
71
BEL g 71
Supported table
Character set for CODE 128
TSC AUTO ID Technology Co., Ltd. 39 Copyright 2013 All Rights Reserved.
Page 52
Sample Code
Result
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"2",0,1,1,"Human readable alignment"
BARCODE 10,50,"128",100,1,0,2,2,"left"
BARCODE 310,50,"128",100,2,0,2,2,"center"
BARCODE 610,50,"128",100,3,0,2,2,"right"
PRINT 1
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"2",0,1,1,"Code 128, switch code subset
automatically."
BARCODE 10,50,"128",100,1,0,2,2,"123456abcd123456"
PRINT 1
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"2",0,1,1,"Code 128, switch code subset manually."
BARCODE 10,50,"128M",100,1,0,2,2,"!104!096ABCD!101EFGH"
PRINT 1
Note:
The above example of code 128M encoded with CODE B start
character. The next character will be the code 128 function
character FNC3 which is then followed by the ABCD characters
and EFGH characters encoded as CODE A subset.
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"2",0,1,1,"TELEPEN"
BARCODE 10,50,"TELEPEN",100,1,0,2,6,"abcd1234ABCD"
PRINT 1
SIZE 4,4
GAP 0,0
DIRECTION 1
CLS
TEXT 400,26,"2",0,1,1,2,"TELEPEN Number"
BARCODE 400,50,"TELEPENN",60,2,0,2,6,2,"1234567890"
TEXT 400,136,"2",0,1,1,2,"Code 11"
BARCODE 400,160,"11",60,2,0,2,6,2,"1234567890"
TEXT 400,246,"2",0,1,1,2,"PLANET"
BARCODE 400,270,"PLANET",60,2,0,2,2,2,"12345678901"
TEXT 400,356,"2",0,1,1,2,"Deutsche Post Identcode."
BARCODE 400,380,"DPI",60,2,0,2,6,2,"12345678901"
TEXT 400,466,"2",0,1,1,2,"Deutsche Post Leitcode."
BARCODE 400,490,"DPL",60,2,0,2,6,2,"123456789012"
TEXT 400,576,"2",0,1,1,2,"Code 49"
BARCODE 400,600,"CODE49",60,2,0,2,2,2,"1234567890"
PRINT 1
Example
TSC AUTO ID Technology Co., Ltd. 40 Copyright 2013 All Rights Reserved.
Height of Code39 in dots (Default is 40)
Width of narrow element of Code39 in dots (Default is 2)
Width of wide element of Code39 in dots (Default is 4)
Width of cell of MicroPDF417 in dots (Default is 2)
Height of cell of MicroPDF417 in dots (Default is 4)
ECI number
Must be 6 digits which is used to generate Code39
Serial number & additional data
Alphanumeric is for Micro-PDF417
Note:
Comma (") is necessary between ECI number and Serial number & additional data.
This command has been supported since V6.89 EZ and later firmware.
Sample Code
SIZE 4,1.2
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"3",0,1,1,"TLC39 code"
TLC39 10,50,0,"123456,SN00000001,00601,01501"
TLC39 310,50,0,80,3,6,3,4,"123456,SN00000001,00601,01501"
PRINT 1
Result
TLC39
Description
This command draws TLC39, TCIF Linked Bar Code 3 of 9, barcode.
Syntax
TLC39 x,y,rotation,[height,]narrow,]wide,]cellwidth,]cellheight,]"ECI number,Serial number &
additional data"
Example
TSC AUTO ID Technology Co., Ltd. 41 Copyright 2013 All Rights Reserved.
Page 54
Parameter
Description
X
Specify the x-coordinate
Y
Specify the y-coordinate
width
Image width (in bytes)
height
Image height (in dots)
mode
Graphic modes listed below:
0: OVERWRITE
1: OR
2: XOR
bitmap data
Bitmap data
X size 2 bytes
Y size 16 dots
1-byte
2-byte
BITMAP
Description
This command draws bitmap images (as opposed to BMP graphic files).
Syntax
BITMAP X,Y,width,height,mode,bitmap data…
Example
TSC AUTO ID Technology Co., Ltd. 42 Copyright 2013 All Rights Reserved.
TSC AUTO ID Technology Co., Ltd. 43 Copyright 2013 All Rights Reserved.
Page 56
Parameter
Description
x
Specify x-coordinate of upper left corner (in dots)
y
Specify y-coordinate of upper left corner (in dots)
x_end
Specify x-coordinate of lower right corner (in dots)
y_end
Specify y-coordinate of lower right corner (in dots)
line thickness
Line thickness (in dots)
radius
Optional. Specify the round corner. Default is 0.
*Since V5.28 EZ
Note:
200 DPI: 1 mm = 8 dots
300 DPI: 1 mm = 12 dots
Recommended max. thickness of box is 12 mm at 4” width. Thickness of box larger than 12
mm may damage the power supply and affect the print quality. Max. print ratio is different
for each printer model. Desktop and industrial printer print ratio is limited to 20% and 30%
respectively.
The height of individual row equals to row height x module width (Default is
8)
module width
Width of narrow element of CODABLOCK in dots (Default is 2)
content
content of CODABLOCK bar code
Note:
This command has been supported since V6.89 EZ and later firmware.
Sample Code
SIZE 4,1.5
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"3",0,1,1,"Codablock F"
CODABLOCK 10,50,0,"We stand behind our products with one of the most comprehensive support programs in the Auto-ID
industry."
PRINT 1
CLS
TEXT 10,10,"3",0,1,1,"Codablock F"
CODABLOCK 10,50,0,16,1,"We stand behind our products with one of the most comprehensive support programs in the Auto-ID
industry."
PRINT 1
Note:
This command has been supported since V6.89 EZ and later firmware.
Sample code
SIZE 4,3
GAP 0,0
DIRECTION 1
CLS
DMATRIX 10,110,400,400,"DMATRIX EXAMPLE 1"
DMATRIX 310,110,400,400,x6,"DMATRIX EXAMPLE 2"
DMATRIX 10,310,400,400,x8,18,18,"DMATRIX EXAMPLE 3"
PRINT 1,1
Result
DMATRIX
Description
This command defines a DataMatrix 2D bar code. Currently, only ECC200 error correction is supported.
For mode 2 or 3,
If country is 840, the postal code is in
99999,9999 format.
For other countries, the code is up to
6 alphanumeric characters.
MAXICODE x,y,mode,[Lm,]"content"
For mode 4,5,6,
AIM special format is supported, see
page 23 in the spec.
Mode 6 is not supported in TSPL2
printer firmware.
Parameter
Description
x
X-coordinate of the starting point (in dot)
y
Y-coordinate of the starting point (in dot)
mode
2,3,4,5
class
Class of service, 3-digit number (for mode 2,3)
country
Country code, 3-digit number (for mode 2,3)
post
Post code (for mode 2,3)
Mode 2(USA): 5-digit + 4-digit number
Mode 3(Canada): 6 alphanumeric post code included by double quotes.
Lm
Expression length (double quote is ignored) , 1m138, (this parameter is
just for mode 4 and 5)
content
Content of 2D Maxicode
Note:
If parameter Lm is used, double quotes (") are unnecessary.
Sample code
SIZE 4,2
GAP 0,0
DIRECTION 1
CLS
REM *****Mode 2 For USA*****
MAXICODE 110,100,2,300,840,06810,7317,"DEMO 2 FOR USA MAXICODE"
TEXT 100,50,"3",0,1,1,"Mode 2 For USA"
PRINT 1,1
MAXICODE
Description
This command defines a 2D Maxicode.
Syntax
Example
TSC AUTO ID Technology Co., Ltd. 50 Copyright 2013 All Rights Reserved.
Page 63
REM *****Mode 3 For Canada*****
CLS
MAXICODE 110,100,3,300,863,"107317","DEMO 3 FOR CANADA MAXICODE"
TEXT 100,50,"3",0,1,1,"Mode 3 For CANADA"
PRINT 1,1
REM *****MODE4*****
CLS
MAXICODE 110,100,4,"DEMO 4 FOR MAXICODE"
MAXICODE 600,100,4,L19,DEMO 4 FOR MAXICODE
TEXT 100,50,"3",0,1,1,"Mode 4 FOR MAXICODE"
PRINT 1,1
REM *****MODE 5*****
CLS
MAXICODE 110,100,5,"DEMO 5 FOR MAXICODE"
MAXICODE 600,100,5,L19,DEMO 5 FOR MAXICODE
TEXT 100,50,"3",0,1,1,"DEMO 5 FOR MAXICODE"
PRINT 1
Result
TSC AUTO ID Technology Co., Ltd. 51 Copyright 2013 All Rights Reserved.
P Data compression method
0: Auto encoding
1: Binary mode
E Error correction level (Range: 0~8)
M Center pattern in barcode area
0: The pattern will print upper left justified the area
1: The pattern is printed middle of area
Ux,y,c
Human readable
x: Human readable characters in the specified x-coordinate
y: Human readable characters in the specified y-coordinate
c: Maximum characters of human readable character per line
W Module width in dot (Range: 2~9)
H Bar height in dot (Range: 4~99)
R Maximum number of rows
C Maximum number of columns
T Truncation
0: Not truncated
1: Truncated
Lm
Expression length, 1m2048 (without " for content)
content
Content of PDF417 2D bar code
Note:
If parameter Lm is used, double quotes (") are unnecessary for content.
PDF417
Description
This command defines a PDF417 2D bar code.
Syntax
PDF417 x,y,width,height,rotate,[option],"content"
TSC AUTO ID Technology Co., Ltd. 52 Copyright 2013 All Rights Reserved.
Page 65
Sample code
Result
SIZE 4,1
GAP 0,0
DIRECTION 1
REM *****WITHOUR OPTIONS*****
CLS
PDF417 50,50,400,200,0,"Without Options"
PRINT 1,1
SIZE 4,1.5
GAP 0,0
DIRECTION 1
REM *****OPTION:E3*****
CLS
PDF417 50,50,400,200,0,E3,"Error correction level:3"
PRINT 1,1
REM *****OPTION:E4*****
CLS
PDF417 50,50,400,200,0,E4,"Error correction level:4"
PRINT 1,1
REM *****OPTION:E4 W4 H4*****
CLS
PDF417 50,50,600,600,0,E4,W4,H4,"Error correction level:4 module
width 4 dots bar height 4 dots"
PRINT 1,1
SIZE 4,1.5
GAP 0,0
DIRECTION 1
REM *****OPTION:E4 W4 H4 R40 C4 T1*****
CLS
PDF417 50,50,800,800,0,E4,W4,H4,R40,C4,T1,"Error correction
level:4
Module Width 4 dots
Bar Height 4 dots
Maximum Number of Rows:5 Rows
Maximum number of columns:90 Cols
Truncation:1"
PRINT 1,1
Example
TSC AUTO ID Technology Co., Ltd. 53 Copyright 2013 All Rights Reserved.
Page 66
SIZE 4,2.5
GAP 0,0
DIRECTION 1
REM *****OPTION:P1 E4 M1
U50,300,50,W4,H4,R60,C4,T0,L297*****
CLS
PDF417
50,50,900,600,0,P1,E4,M1,U50,300,50,W4,H4,R60,C4,
T0,L297,Data compression method: P1
Error correction level: E4
Center pattern in barcode area: M1
Human Readable: Yes: U50,300,50
Module Width 4 dots: W4
Bar Height 4 dots: H4
Maximum Number of Rows: 60 Rows: R60
Maximum number of columns: 4 Cols: C4
Truncation:1: T0
Expression length:297: L297
PRINT 1,1
TSC AUTO ID Technology Co., Ltd. 54 Copyright 2013 All Rights Reserved.
Error control (& symbol size/type) parameter
0 : default error correction level
1 to 99 : minimum error correction percentage
101 to 104 : 1 to 4-layer Compact symbol
201 to 232 : 1 to 32-layer Full-Range symbol
300 : a simple Aztec "Rune"
flg
0 : input message is straight bytes
1 : input uses "<Esc>n" for FLG(n), "<Esc><Esc>" for "<Esc>"
menu
Menu symbol (0 : no, 1 : yes), default is 0
multi
Number of symbols (1 to 26), default is 6
rev
Output to be reversed (0 : no, 1 : yes), default is 0
bytes
Length of content
content
Content of AZTEC 2D bar code
Note:
If parameter bytes is used, double quotes (") are unnecessary.
Optional. Number of columns. Once the parameter is set, the printer will
calculate the proper rows for the barcode base on the content
automatically.
0: Auto mode.
1: Column is 1 and the calculated suitable rows will be 11, 14, 17, 20, 24,
and 28.
2: Column is 2 and the calculated suitable rows will be 8, 11, 14, 17, 20, 23
and 26.
3: Column is 3 and the calculated suitable rows will be 6, 8, 10, 12, 15, 20,
26, 32, 38 and 44.
4: Column is 4 and the calculated suitable rows will be 4, 6, 8, 10, 12, 15,
20, 26, 32, 38 and 44.
content
Content of Micro PDF 417 bar code
Note:
This command has been supported since V6.61 EZ and later firmware.
TSC AUTO ID Technology Co., Ltd. 56 Copyright 2013 All Rights Reserved.
Page 69
Parameter
Description
x
The x-coordinate of the BMP format image
y
The y-coordinate of the BMP format image
filename
The downloaded BMP filename
bpp
Optional. Bits per pixel of grayscale graphic. Default is 1. *Since V6.91EZ.
1: 1-bit (monochrome) graphic
8: 8-bit (256-color) graphic
contrast
Optional. Contrast of grayscale graphic. Default is 80. Suggested range is
from 60 to 100. *Since V6.91EZ.
Model
PUTBMP Command Supported
TTP-243 series
TTP-243 Plus series
V
TTP-244ME series
TTP-244ME Plus series
V
TTP-244 series
V
TTP-244CE series
V
TTP-245 series
V
TTP-245C series
V
TDP-245 series
V
TTP-246M series
V
TTP-248M series
TTP-2410M series
V
TDP-643 Plus
TDP-643R Plus
V
TTP-342 series
TTP-342 Plus series
V
TTP-342M series
TTP-342M Plus series
V
TTP-343 series
V
TTP-343C series
V
TTP-344M series
V
TTP-346M series
V
TTP-384M series
V
TTP-644M series
V
M23 series
V
PUTBMP
Description
This command prints BMP format images. The grayscale printing is for direct thermal mode only.
Support 1-bit (monochrome) and 8-bit (256-color) BMP graphic only.
Syntax
PUTBMP x,y,"filename"[, bpp][, contract]
TSC AUTO ID Technology Co., Ltd. 57 Copyright 2013 All Rights Reserved.
TSC AUTO ID Technology Co., Ltd. 68 Copyright 2013 All Rights Reserved.
Page 81
200 DPI: 1 mm = 8 dots
300 DPI: 1 mm = 12 dots
Recommended max. height of reversed black area is 12 mm at 4” width. Height of reversed
area that is larger than 12 mm may damage the power supply and affect the print quality.
Max. print ratio is different for each printer model. Desktop and industrial printer print ratio
is limited to 20% and 30% respectively.
This command has been supported since V6.56 EZ and later firmware.
Sample code
Result
SIZE 100 mm,100 mm
GAP 0,0
DIRECTION 1
CLS
RSS 300,300,"RSS14",0,2,2,"1234567890|ABCDEFG"
RSS 300,300,"RSS14T",90,2,2,"1234567890|ABCDEFG"
RSS
300,300,"RSS14S",180,2,2,"1234567890|ABCDEFG"
RSS
300,300,"RSS14SO",270,2,2,"1234567890|ABCDEFG"
PRINT 1,1
SIZE 100 mm,100 mm
GAP 0,0
DIRECTION 1
CLS
RSS 300,300,"RSSLIM",0,2,2,"1234567890|ABCDEFG"
RSS
300,300,"RSSEXP",90,2,2,22,"1234567890|ABCDEFG"
RSS 300,300,"UPCA",180,2,2,"1234567890|ABCDEFG"
RSS 300,300,"UPCE",270,2,2,"000|ABCDEFG"
PRINT 1,1
SIZE 100 mm,100 mm
GAP 0,0
DIRECTION 1
CLS
RSS 300,300,"EAN13",0,2,2,"123456789012|ABCDEFG"
RSS 300,300,"EAN8",90,2,2,"1234567|ABCDEFG"
RSS
300,300,"UCC128CCA",180,2,2,25,"1234567890|ABCDEFG"
RSS
300,300,"UCC128CCC",270,2,2,25,"1234567890|ABCDEFG"
PRINT 1,1
Example of UPCE mode
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
REM UPCE Rule 1:00abc0000hij = abhijc, where c = 0-2
RSS 10,10,"UPCE",0,2,2,"001200000456|ABCDEFG"
RSS 210,10,"UPCE",0,2,2,"001210000456|ABCDEFG"
Example
TSC AUTO ID Technology Co., Ltd. 69 Copyright 2013 All Rights Reserved.
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
REM UPCE Rule 2: 00abc00000ij = abcij3
RSS 10,10,"UPCE",0,2,2,"001230000045|ABCDEFG"
PRINT 1
SIZE 4,1
CLS
REM UPCE Rule 3: 00abcd00000j = abcdj4
RSS 10,10,"UPCE",0,2,2,"001234000005|ABCDEFG"
PRINT 1
SIZE 4,1
GAP 0,0
DIRECTION 1
CLS
REM UPCE Rule 4: 00abcde0000j = abcdej where j = 5-9
RSS 10,10,"UPCE",0,2,2,"001234500005|ABCDEFG"
RSS 160,10,"UPCE",0,2,2,"001234500006|ABCDEFG"
RSS 310,10,"UPCE",0,2,2,"001234500007|ABCDEFG"
RSS 460,10,"UPCE",0,2,2,"001234500008|ABCDEFG"
RSS 610,10,"UPCE",0,2,2,"001234500009|ABCDEFG"
PRINT 1
Example of barcode height of EAN8 EAN13 UPCA and UPCE.
SIZE 4,2
GAP 0,0
DIRECTION 1
CLS
RSS 10,10,"EAN8",0,1,1,"1234567|ABCDEFG"
RSS 210,10,"EAN8",0,2,1,"1234567|ABCDEFG"
RSS 410,10,"EAN8",0,3,1,"1234567|ABCDEFG"
PRINT 1
SIZE 4,2
GAP 0,0
DIRECTION 1
CLS
RSS 10,10,"EAN13",0,1,1,"123456789012|ABCDEFG"
RSS 210,10,"EAN13",0,2,1,"123456789012|ABCDEFG"
RSS 410,10,"EAN13",0,3,1,"123456789012|ABCDEFG"
PRINT 1
SIZE 4,2
GAP 0,0
DIRECTION 1
CLS
RSS 10,10,"UPCA",0,1,1,"12345678901|ABCDEFG"
RSS 210,10,"UPCA",0,2,1,"12345678901|ABCDEFG"
RSS 410,10,"UPCA",0,3,1,"12345678901|ABCDEFG"
TSC AUTO ID Technology Co., Ltd. 70 Copyright 2013 All Rights Reserved.
Page 83
PRINT 1
SIZE 4,2
GAP 0,0
DIRECTION 1
CLS
RSS 10,10,"UPCE",0,1,1,"001200000456|ABCDEFG"
RSS 210,10,"UPCE",0,2,1,"001210000456|ABCDEFG"
RSS 410,10,"UPCE",0,3,1,"001220000456|ABCDEFG"
PRINT 1
TSC AUTO ID Technology Co., Ltd. 71 Copyright 2013 All Rights Reserved.
Page 84
Parameter
Description
x_start
The x-coordinate of the starting point (in dots)
y_start
The y-coordinate of the starting point (in dots)
x_width
X-axis region width (in dots)
y_height
Y-axis region height (in dots)
Note:
200 DPI: 1 mm = 8 dots
300 DPI: 1 mm = 12 dots
Recommended max. height of reversed black area is 12mm at 4” width. Height of reversed
area that is larger than 12 mm may damage the power supply and affect the print quality.
Max. print ratio is different for each printer model. Desktop and industrial printer print ratio
is limited to 20% and 30% respectively.
Sample code
SIZE 4,2.5
GAP 0,0
DIRECTION 1
CLS
TEXT 100,100,"3",0,1,1,"REVERSE"
REVERSE 90,90,128,40
PRINT 1,1
Result
REVERSE
Description
This command reverses a region in image buffer.
Syntax
REVERSE x_start,y_start,x_width,y_height
Example
TSC AUTO ID Technology Co., Ltd. 72 Copyright 2013 All Rights Reserved.
Page 85
Parameter
Description
x
The x-coordinate of the text
y
The y-coordinate of the text
font
Font name
0
Monotye CG Triumvirate Bold Condensed, font
width and height is stretchable
1
8 x 12 fixed pitch dot font
2
12 x 20 fixed pitch dot font
3
16 x 24 fixed pitch dot font
4
24 x 32 fixed pitch dot font
5
32 x 48 dot fixed pitch font
6
14 x 19 dot fixed pitch font OCR-B
7
21 x 27 dot fixed pitch font OCR-B
8
14 x25 dot fixed pitch font OCR-A
ROMAN.TTF
Monotye CG Triumvirate Bold Condensed, font
width and height proportion is fixed.
Following fonts were supported since V6.80 EZ.
1.EFT
EPL2 font 1
2.EFT
EPL2 font 2
3.EFT
EPL2 font 3
4.EFT
EPL2 font 4
5.EFT
EPL2 font 5
A.FNT
ZPL2 font A
B.FNT
ZPL2 font B
D.FNT
ZPL2 font D
E8.FNT
ZPL2 font E8
F.FNT
ZPL2 font F
G.FNT
ZPL2 font G
H8.FNT
ZPL2 font H8
GS.FNT
ZPL2 font GS
rotation
The rotation angle of text
0 : No rotation
90 : degrees, in clockwise direction
180 : degrees, in clockwise direction
270 : degrees, in clockwise direction
x-multiplication
Horizontal multiplication, up to 10x
Available factors: 1~10
For "ROMAN.TTF" true type font, this parameter is ignored.
For font "0", this parameter is used to specify the width (point) of true type
font. 1 point=1/72 inch.
TEXT
Description
This command prints text on label.
Syntax
TEXT x,y,"font",rotation,x-multiplication,y-multiplication,[alignment,]"content"
TSC AUTO ID Technology Co., Ltd. 73 Copyright 2013 All Rights Reserved.
Page 86
y-multiplication
Vertical multiplication, up to 10x
Available factors: 1~10
For true type font, this parameter is used to specify the height (point) of
true type font. 1 point=1/72 inch.
For *.TTF font, x-multiplication and y-multiplication support floating value.
(V6.91 EZ)
alignment
Optional. Specify the alignment of text. (V6.73 EZ)
0 : Default (Left)
1 : Left
2 : Center
3 : Right
content
Content of text string
Note:
The internal font (font #1~#5) pitch between TSPL and TSPL2 is different.
Font "0" and "ROMAN.TTF" internal True Type Fonts are available in TSPL2 language
printers, but not TSPL language printers.
If there is any double quote (") within the text, please change it to \["].
If font "0" is used, the font width and font height is stretchable by x-multiplication and
y-multiplication parameter. It is expressed by pt (point). 1 point=1/72inch.
EPL2 and ZPL2 are emulating for Eltron
®
and Zebra® languages.
MODEL
Font Type
0 1 2 3 4 5 6 7 8
ROMAN.TTF
TTP-243 series
V V V V V TTP-243 Plus series
V V V V V TTP-244ME series
V V V V V TTP-244ME Plus series
V V V V V
TTP-244 series
V V V V V V V V V
V
TTP-244CE series
V V V V V V V V V V TTP-245 series
V V V V V V V V V V TTP-245C series
V V V V V V V V V V TDP-245 series
V V V V V V V V V V TTP-246M series
V V V V V V V V V V TTP-248M series
V V V V V V V V TTP-2410M series
V V V V V V V V V V TDP-643 Plus
V V V V V TDP-643R Plus
V V V V V TTP-342 series
V V V V V TTP-342 Plus series
V V V V V TTP-342M series
V V V V V TTP-342M Plus series
V V V V V TTP-343 series
V V V V V V V V V
V
TTP-343C series
V V V V V V V V V V TTP-344M series
V V V V V V V V V
V
TTP-346M series
V V V V V V V V V V TTP-384M series
V V V V V V V V V V TTP-644M series
V V V V V V V V V V M23 V V V V V V V V V V
TSC AUTO ID Technology Co., Ltd. 74 Copyright 2013 All Rights Reserved.
Page 87
Sample Code
SIZE 4,3
GAP 0,0
DIRECTION 1
CLS
TEXT 10,10,"0",0,12,12,"TSPL 2"
TEXT 10,40,"0",0,8,8,"align left"
BAR 0,70,800,4
TEXT 10,110,"0",0,12,12,"FONT 0"
TEXT 10,160,"1",0,1,1,"FONT 1"
TEXT 10,210,"2",0,1,1,"FONT 2"
TEXT 10,260,"3",0,1,1,0,"FONT 3"
TEXT 10,310,"4",0,1,1,0,"FONT 4"
TEXT 10,360,"5",0,1,1,0,"FONT 5"
TEXT 10,410,"6",0,1,1,1,"FONT 6"
TEXT 10,460,"7",0,1,1,1,"FONT 7"
TEXT 10,510,"8",0,1,1,1,"FONT 8"
TEXT 10,560,"ROMAN.TTF",0,12,12,"FONT ROMAN.TTF"
TEXT 400,10,"0",0,12,12,2,"EPL 2"
TEXT 400,40,"0",0,8,8,2,"align center"
TEXT 400,110,"1.EFT",0,1,1,2,"FONT 1"
TEXT 400,160,"2.EFT",0,1,1,2,"FONT 2"
TEXT 400,210,"3.EFT",0,1,1,2,"FONT 3"
TEXT 400,260,"4.EFT",0,1,1,2,"FONT 4"
TEXT 400,310,"5.EFT",0,1,1,2,"FONT 5"
TEXT 800,10,"0",0,12,12,3,"ZPL 2"
TEXT 800,40,"0",0,8,8,3,"align right"
TEXT 800,110,"A.FNT",0,1,1,3,"FONT A"
TEXT 800,160,"B.FNT",0,1,1,3,"FONT B"
TEXT 800,210,"D.FNT",0,1,1,3,"FONT D"
TEXT 800,260,"E8.FNT",0,1,1,3,"FONT E8"
TEXT 800,310,"F.FNT",0,1,1,3,"FONT F"
TEXT 800,360,"G.FNT",0,1,1,3,"FONT G"
TEXT 800,410,"H8.FNT",0,1,1,3,"FONT H8"
TEXT 800,460,"GS.FNT",0,1,1,3,"ABCDEF"
PRINT 1
Result
Example
TSC AUTO ID Technology Co., Ltd. 75 Copyright 2013 All Rights Reserved.
Page 88
Parameter
Description
x
The x-coordinate of the text
y
The y-coordinate of the text
width
The width of block for the paragraph in dots
height
The height of block for the paragraph in dots
font
Font name
0
Monotye CG Triumvirate Bold Condensed, font
width and height is stretchable
1
8 x 12 fixed pitch dot font
2
12 x 20 fixed pitch dot font
3
16 x 24 fixed pitch dot font
4
24 x 32 fixed pitch dot font
5
32 x 48 dot fixed pitch font
6
14 x 19 dot fixed pitch font OCR-B
7
21 x 27 dot fixed pitch font OCR-B
8
14 x25 dot fixed pitch font OCR-A
ROMAN.TTF
Monotye CG Triumvirate Bold Condensed, font
width and height proportion is fixed.
Following fonts were supported since V6.80 EZ.
1.EFT
EPL2 font 1
2.EFT
EPL2 font 2
3.EFT
EPL2 font 3
4.EFT
EPL2 font 4
5.EFT
EPL2 font 5
A.FNT
ZPL2 font A
B.FNT
ZPL2 font B
D.FNT
ZPL2 font D
E8.FNT
ZPL2 font E8
F.FNT
ZPL2 font F
G.FNT
ZPL2 font G
H8.FNT
ZPL2 font H8
GS.FNT
ZPL2 font GS
rotation
The rotation angle of text
0 : No rotation
90 : degrees, in clockwise direction
180 : degrees, in clockwise direction
270 : degrees, in clockwise direction
x-multiplication
Horizontal multiplication, up to 10x
Available factors: 1~10
For "ROMAN.TTF" true type font, this parameter is ignored.
TSC AUTO ID Technology Co., Ltd. 76 Copyright 2013 All Rights Reserved.
Page 89
For font "0", this parameter is used to specify the width (point) of true type
font. 1 point=1/72 inch.
y-multiplication
Vertical multiplication, up to 10x
Available factors: 1~10
For true type font, this parameter is used to specify the height (point) of
true type font. 1 point=1/72 inch.
For *.TTF font, x-multiplication and y-multiplication support floating value.
(V6.91 EZ)
space
Add or delete the space between lines in dot.
alignment
Text alignment. (V6.73 EZ)
0 : default (Left)
1 : Left
2 : Center
3 : Right
content
Data in block. The maximum data length is 4092 bytes.
Note:
The internal font (font #1~#5) pitch between TSPL and TSPL2 is different.
Font “0” and “ROMAN.TTF” internal True Type Fonts are available in TSPL2 language
printers, but not TSPL language printers.
If there is any double quote (") within the text, please change it to \["].
If font "0" is used, the font width and font height is stretchable by x-multiplication and
y-multiplication parameter. It is expressed by pt (point). 1 point=1/72inch.
\[R] means carriage return character 0x0D.
\[L] means line feed character 0x0A.
This command has been supported since V6.91 EZ and later firmware.
EPL2 and ZPL2 are for emulating Eltron
®
and Zebra® languages.
Sample Code
SIZE 4,0.5
GAP 0,0
DIRECTION 1
CLS
BOX 10,10,800,100,2
BLOCK 15,15,790,90,"0",0,8,8,"We stand behind our products with one of the most comprehensive
support programs in the Auto-ID industry."
PRINT 1
CLS
BOX 10,10,800,100,2
BLOCK 15,15,790,90,"0",0,8,8,20,2,"We stand behind our products with one of the most
comprehensive support programs in the Auto-ID industry."
PRINT 1
Result
Example
TSC AUTO ID Technology Co., Ltd. 77 Copyright 2013 All Rights Reserved.
Page 90
Hex Receive
Printer Status
00
Normal
01
Head opened
02
Paper Jam
03
Paper Jam and head opened
04
Out of paper
05
Out of paper and head opened
08
Out of ribbon
09
Out of ribbon and head opened
0A
Out of ribbon and paper jam
0B
Out of ribbon, paper jam and head opened
0C
Out of ribbon and out of paper
0D
Out of ribbon, out of paper and head opened
10
Pause
20
Printing
80
Other error
Status Polling and Immediate Commands
These commands support RS-232, USB and Ethernet.
<ESC>!?
Description
This command obtains the printer status at any time, even in the event of printer error. An inquiry
request is solicited by sending an <ESC> (ASCII 27, escape character) as the beginning control character
to the printer. A one byte character is returned, flagging the printer status. A 0 signifies the printer is
ready to print labels.
Syntax
<ESC>!?
See Also
<ESC>!S
TSC AUTO ID Technology Co., Ltd. 78 Copyright 2013 All Rights Reserved.
Page 91
<ESC>!C
Description
This command restarts the printer and omits to run AUTO.BAS. The beginning of the command is an
ESCAPE character (ASCII 27).
Syntax
<ESC>!C
Note:
When printer receives this command, printer will restart itself no matter AUTO.BAS exists or not.
This command has been supported since V5.23 EZ and later firmware.
See Also
<ESC>!Q
TSC AUTO ID Technology Co., Ltd. 79 Copyright 2013 All Rights Reserved.
Page 92
<ESC>!D
Description
This command is used to disable immediate command, ex. <ESC>!R <RSC>!? <ESC>!C and so on, which
is starting by <ESC>!. The beginning of the command is an ESCAPE character (ASCII 27).
Syntax
<ESC>!D
Note:
This command has been supported since V6.61 EZ and later firmware.
See Also
~!D
TSC AUTO ID Technology Co., Ltd. 80 Copyright 2013 All Rights Reserved.
Page 93
<ESC>!O
Description
This command is using to cancel the PAUSE status of printer. The beginning of the command is an
ESCAPE character (ASCII 27).
Syntax
<ESC>!O
Note:
This command has been supported since V6.93 EZ and later firmware.
See Also
<ESC>!P
TSC AUTO ID Technology Co., Ltd. 81 Copyright 2013 All Rights Reserved.
Page 94
<ESC>!P
Description
This command is using to PAUSE the printer. The beginning of the command is an ESCAPE character
(ASCII 27).
Syntax
<ESC>!P
Note:
This command has been supported since V6.93 EZ and later firmware.
See Also
<ESC>!O
TSC AUTO ID Technology Co., Ltd. 82 Copyright 2013 All Rights Reserved.
Page 95
<ESC>!Q
Description
This command restarts the printer and omits to run AUTO.BAS. The beginning of the command is an
ESCAPE character (ASCII 27).
Syntax
<ESC>!Q
Note:
If there is no AUTO.BAS inside the printer, the printer will not restart itself.
This command has been supported since V6.72 EZ and later firmware.
See Also
<ESC>!C
.
TSC AUTO ID Technology Co., Ltd. 83 Copyright 2013 All Rights Reserved.
Page 96
<ESC>!R
Description
This command resets the printer. The beginning of the command is an ESCAPE character (ASCII 27).
The files downloaded in memory will be deleted. This command cannot be sent in dump mode.
Syntax
<ESC>!R
See Also
<ESC>!?
TSC AUTO ID Technology Co., Ltd. 84 Copyright 2013 All Rights Reserved.
Page 97
Status Byte #1: message
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Hex
ASCII
Char
Meaning
0 1 0 0 0 0 0 0 40
64
@
Normal
0 1 1 0 0 0 0 0 60
96
`
Pause
0 1 0 0 0 0 1 0 42
66 B Backing label
0 1 0 0 0 0 1 1 43
67
C
Cutting
0 1 0 0 0 1 0 1 45
69 E Printer error
0 1 0 0 0 1 1 0 46
70
F
Form feed
0 1 0 0 1 0 1 1 4B
75 K Waiting to press print key
0 1 0 0 1 1 0 0 4C
76 L Waiting to take label
0 1 0 1 0 0 0 0 50
80 P Printing batch
0 1 0 1 0 1 1 1 57
87
W
Imaging
Status Byte #2: warning
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Hex
ASCII
Char
Meaning
0 1 0 0 0 0 0 0 40
64
@
Normal
0 1 0 0 0 0 0 1 41
65
A
Reversed
0 1 0 0 0 0 1 0 42
66
B
Reversed
0 1 0 0 0 1 0 0 44
68
D
Reversed
0 1 0 0 1 0 0 0 48
72 H Receive buffer bull
0 1 1 0 0 0 0 0 60
96
`
Reversed
Status Byte #3: error
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Hex
ASCII
Char
Meaning
0 1 0 0 0 0 0 0 40
64
@
Normal
0 1 0 0 0 0 0 1 41
65 A Print head overheat
0 1 0 0 0 0 1 0 42
66 B Stepping motor overheat
0 1 0 0 1 0 0 0 48
72
H
Cutter jam
0 1 0 1 0 0 0 0 50
80 P Insufficient memory
Status Byte #4: error
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Hex
ASCII
Char
Meaning
0 1 0 0 0 0 0 0 40
64
@
Normal
0 1 0 0 0 0 0 1 41
65 A Paper empty
0 1 0 0 0 0 1 0 42
66
B
Paper jam
0 1 0 0 0 1 0 0 44
68 D Ribbon empty
0 1 0 0 1 0 0 0 48
72 H Ribbon jam
0 1 1 0 0 0 0 0 60
96 ` Print head open
<ESC>!S
Description
This command obtains the printer status at any time, even in the event of printer error. An inquiry
request is solicited by sending an <ESC> (ASCII 27, escape character) as the beginning control character
to the printer. 8 bytes will be returned, flagging the printer status.
Syntax
<ESC>!S
Note:
This command has been supported since V6.29 EZ and later firmware.
Response Format
<STX>[4-byte status]<ETX><CR><LF>
TSC AUTO ID Technology Co., Ltd. 85 Copyright 2013 All Rights Reserved.
Page 98
Test <ESC>!S by CommTool via RS-232 port.
Result
Item
Meaning
1
The start character of returned value.
2
The 4-byte status in Hex.
3
The end characters of returned value.
4
4-byte status in characters.
@@@@: The printer is normal for use.
F@@@: The printer is feeding label.
`@@@: Printer is in PAUSE mode.
B@@@: The printer is backing label.
E@@B: Printer is in error “Paper Jam”.
E@@b: Printer is in error “Paper Jam” & “Head
open”.
Hex Data 1B 21 53
means <ESC>!S.
The values return
from printer in Hex.
The values return
from printer in
Click to send Hex
1b 21 53 to query
1 2 3
4
Example
See Also
<ESC>!?
TSC AUTO ID Technology Co., Ltd. 86 Copyright 2013 All Rights Reserved.
Page 99
<ESC>!F
Description
This command is using to feed a label. This function is the same as to press the FEED button. The
beginning of the command is an ESCAPE character (ASCII 27).
Syntax
<ESC>!F
Note:
This command has been supported since V7.00 EZ and later firmware.
TSC AUTO ID Technology Co., Ltd. 87 Copyright 2013 All Rights Reserved.
Page 100
<ESC>!.
Description
This command can cancel all printing files. The beginning of the command is an ESCAPE character
(ASCII 27).
Syntax
<ESC>!.
Note:
This command has been supported since V7.00 EZ and later firmware.
TSC AUTO ID Technology Co., Ltd. 88 Copyright 2013 All Rights Reserved.
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.