TSC TTP-244ME, TTP-243, TTP-243M, TDP-643 plus, TTP-342M Programming Manual

...
TSPL/TSPL2 Programming Language
PROGRAMMING MANUAL
TSC BAR CODE PRINTER SERIES
Date
Content
Editor
2007/07/13
Revise some typos
Phil
2007/12/25
Revise FREAD$() example
Camille
2008/04/10
Add update history list
Camille
2009/01/17
Add GAPDETECT command
Ken
2009/05/18
Add CIRCLE command
Phil
2009/06/24
Add RSS command
Phil
2010/07/06
Revise bar command section
Camille
2010/10/25
Revise some sections
Camille
2011/01/06
Add CODE 11 barcode
Ernest
2011/01/06
Add AZTEC barcode
Ernest
2011/01/06
Revise sensor intension table in SET GAP command
Ernest
2011/01/10
Add BLINEDETECT command
Ernest
2011/01/10
Add AUTODETECT command
Ernest
2011/01/10
Add BASIC function FORMAT$()
Ernest
2011/01/10
Add BASIC function NOW$()
Ernest
2011/01/10
Add BASIC function TRIM$()
Ernest
2011/01/10
Add BASIC function LTRIM$()
Ernest
2011/01/10
Add BASIC function RTRIM$()
Ernest
2010/01/10
Add BASIC function STRCOMP()
Ernest
2010/01/10
Add BASIC function INSTR()
Ernest
2011/01/25
Modify TSC address
Camille
2011/03/04
Revise, TTP-248M doesn't support mirror function
Ernest
2011/03/04
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
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
TABLE OF CONTENTS
How to Ready ......................................................................................................................................... V
Document Conventions.......................................................................................................................... VI
Object Position Calculation ................................................................................................................... VII
Printer Model List .................................................................................................................................. IX
Setup and System Commands ................................................................................................................. 1
SIZE ....................................................................................................................................................... 1
GAP ...................................................................................................................................................... 2
GAPDETECT .......................................................................................................................................... 4
BLINEDETECT ........................................................................................................................................ 5
AUTODETECT ........................................................................................................................................ 6
BLINE .................................................................................................................................................... 7
OFFSET ................................................................................................................................................. 8
SPEED ................................................................................................................................................... 9
DENSITY .............................................................................................................................................. 10
DIRECTION AND MIRROR IMAGE ............................................................................................................. 11
REFERENCE ......................................................................................................................................... 13
SHIFT .................................................................................................................................................. 14
COUNTRY ........................................................................................................................................... 16
CODEPAGE .......................................................................................................................................... 17
CLS ...................................................................................................................................................... 19
FEED ................................................................................................................................................... 20
BACKFEED & BACKUP ......................................................................................................................... 21
FORMFEED ......................................................................................................................................... 23
HOME ................................................................................................................................................. 24
PRINT ................................................................................................................................................. 25
SOUND ............................................................................................................................................... 26
CUT ..................................................................................................................................................... 27
LIMITFEED .......................................................................................................................................... 28
SELFTEST ............................................................................................................................................ 29
EOJ ..................................................................................................................................................... 31
DELAY ................................................................................................................................................. 32
DISPLAY .............................................................................................................................................. 33
Label Formatting Commands ................................................................................................................ 34
BAR ..................................................................................................................................................... 34
BARCODE ............................................................................................................................................ 35
TLC39 ................................................................................................................................................. 41
BITMAP .............................................................................................................................................. 42
BOX .................................................................................................................................................... 44
CIRCLE ................................................................................................................................................ 45
ELLIPSE ............................................................................................................................................... 46
CODABLOCK F MODE ............................................................................................................................ 47
DMATRIX ............................................................................................................................................ 48
ERASE ................................................................................................................................................. 49
MAXICODE ......................................................................................................................................... 50
PDF417 ............................................................................................................................................... 52
AZTEC ................................................................................................................................................. 55
MPDF417 ........................................................................................................................................... 56
PUTBMP ............................................................................................................................................. 57
PUTPCX .............................................................................................................................................. 60
QRCODE ............................................................................................................................................. 63
RSS ..................................................................................................................................................... 68
REVERSE ............................................................................................................................................. 72
TEXT ................................................................................................................................................... 73
TSC AUTO ID Technology Co., Ltd. I Copyright 2013 All Rights Reserved.
BLOCK ................................................................................................................................................. 76
Status Polling and Immediate Commands ............................................................................................. 78
<ESC>!? ................................................................................................................................................... 78
<ESC>!C ................................................................................................................................................... 79
<ESC>!D .................................................................................................................................................. 80
<ESC>!O .................................................................................................................................................. 81
<ESC>!P ................................................................................................................................................... 82
<ESC>!Q .................................................................................................................................................. 83
<ESC>!R ................................................................................................................................................... 84
<ESC>!S ................................................................................................................................................... 85
<ESC>!F ................................................................................................................................................... 87
<ESC>!. .................................................................................................................................................... 88
~!@ ......................................................................................................................................................... 89
~!A .......................................................................................................................................................... 90
~!C ........................................................................................................................................................... 91
~!D .......................................................................................................................................................... 92
~!E ........................................................................................................................................................... 93
~!F ........................................................................................................................................................... 94
~!I ............................................................................................................................................................ 95
~!T ........................................................................................................................................................... 96
Message Translation Protocols .............................................................................................................. 97
~# ............................................................................................................................................................ 97
Commands for Windows Driver ............................................................................................................ 98
!B............................................................................................................................................................. 98
!J ............................................................................................................................................................. 99
!N .......................................................................................................................................................... 100
File Management Commands ............................................................................................................. 101
DOWNLOAD ..................................................................................................................................... 101
EOP ................................................................................................................................................... 105
FILES ................................................................................................................................................. 106
KILL ................................................................................................................................................... 107
MOVE ............................................................................................................................................... 109
RUN .................................................................................................................................................. 110
BASIC Commands and Functions ......................................................................................................... 112
ABS( ) ................................................................................................................................................ 112
ASC( ) ................................................................................................................................................ 113
CHR$( ) ............................................................................................................................................. 114
XOR$( ) ............................................................................................................................................. 115
END .................................................................................................................................................. 116
EOF( ) ................................................................................................................................................ 117
OPEN ................................................................................................................................................ 118
CLOSE ............................................................................................................................................... 120
WRITE ............................................................................................................................................... 121
READ ................................................................................................................................................ 122
SEEK ................................................................................................................................................. 123
LOF( ) ................................................................................................................................................ 124
LOC( ) ................................................................................................................................................ 125
FREAD$( ) ......................................................................................................................................... 126
PUT ................................................................................................................................................... 127
GET ................................................................................................................................................... 128
COPY................................................................................................................................................. 129
FOR…NEXT LOOP .............................................................................................................................. 130
WHILE…WEND ................................................................................................................................. 131
DO…LOOP ........................................................................................................................................ 132
IF…THEN…ELSE…ENDIF LOOP ........................................................................................................ 135
TSC AUTO ID Technology Co., Ltd. II Copyright 2013 All Rights Reserved.
GOSUB…RETURN.............................................................................................................................. 139
GOTO ................................................................................................................................................ 140
INP$( ) .............................................................................................................................................. 141
INP( ) ................................................................................................................................................ 142
LOB( ) ................................................................................................................................................ 143
INPUT ............................................................................................................................................... 144
PREINPUT ......................................................................................................................................... 145
POSTINPUT ....................................................................................................................................... 146
SET FILTER ON/OFF ........................................................................................................................... 147
REM .................................................................................................................................................. 148
OUT .................................................................................................................................................. 149
OUTR ................................................................................................................................................ 150
GETKEY( ) .......................................................................................................................................... 151
INT( ) ................................................................................................................................................. 152
LEFT$( ) ............................................................................................................................................. 153
LEN( ) ................................................................................................................................................ 154
MID$( ) ............................................................................................................................................. 155
RIGHT$( ) .......................................................................................................................................... 156
STR$( ) .............................................................................................................................................. 157
STRCOMP ( ) ..................................................................................................................................... 158
INSTR ( ) ............................................................................................................................................ 159
TRIM$( ) ............................................................................................................................................ 160
LTRIM$( ) .......................................................................................................................................... 161
RTRIM$( ) ......................................................................................................................................... 162
TEXTPIXEL( ) ..................................................................................................................................... 163
BARCODEPIXEL( ) .............................................................................................................................. 164
VAL( ) ................................................................................................................................................ 165
BEEP ................................................................................................................................................. 166
NOW$( ) ........................................................................................................................................... 167
NOW................................................................................................................................................. 168
FORMAT$( ) ...................................................................................................................................... 169
DATEADD() ....................................................................................................................................... 171
Device Reconfiguration Commands ..................................................................................................... 173
SET COUNTER ................................................................................................................................... 173
SET CUTTER ...................................................................................................................................... 174
SET PARTIAL_CUTTER ....................................................................................................................... 175
SET BACK .......................................................................................................................................... 177
SET KEY1, SET KEY2, SET KEY3 ........................................................................................................... 179
SET LED1, SET LED2, SET LED3 .......................................................................................................... 181
SET PEEL ........................................................................................................................................... 183
SET TEAR & SET STRIPER ................................................................................................................... 184
SET GAP ............................................................................................................................................ 186
SET BLINE ......................................................................................................................................... 188
SET HEAD .......................................................................................................................................... 189
SET RIBBON ...................................................................................................................................... 190
SET ENCODER ................................................................................................................................... 191
SET RIBBONEND ............................................................................................................................... 192
SET COM1 ......................................................................................................................................... 193
SET PRINTKEY ................................................................................................................................... 194
SET REPRINT ..................................................................................................................................... 196
SET FEED_LEN .................................................................................................................................. 197
GETSENSOR() ................................................................................................................................... 198
GETSETTING$() ................................................................................................................................. 200
SET USBHOST KEYBOARD/SCANNER ................................................................................................ 203
SET AUTORUN .................................................................................................................................. 204
PEEL .................................................................................................................................................. 205
TSC AUTO ID Technology Co., Ltd. III Copyright 2013 All Rights Reserved.
LED1, LED2, LED3 .............................................................................................................................. 206
KEY1, KEY2, KEY3 .............................................................................................................................. 208
Printer Global Variables ...................................................................................................................... 210
@LABEL ................................................................................................................................................. 210
YEAR ................................................................................................................................................. 211
MONTH ............................................................................................................................................ 212
DATE ................................................................................................................................................. 213
WEEK ................................................................................................................................................ 214
HOUR ............................................................................................................................................... 215
MINUTE ............................................................................................................................................ 216
SECOND ............................................................................................................................................ 217
@YEAR .................................................................................................................................................. 218
@MONTH ............................................................................................................................................. 219
@DATE .................................................................................................................................................. 220
@DAY .................................................................................................................................................... 221
@HOUR ................................................................................................................................................. 222
@MINUTE ............................................................................................................................................. 223
@SECOND ............................................................................................................................................. 224
_MODEL$ .............................................................................................................................................. 225
_SERIAL$ ............................................................................................................................................... 226
_VERSION$ ............................................................................................................................................ 227
External Wi-Fi Module Setting Commands .......................................................................................... 228
WLAN OFF ........................................................................................................................................ 228
WLAN SSID ....................................................................................................................................... 229
WLAN WPA ....................................................................................................................................... 230
WLAN WEP ....................................................................................................................................... 231
WLAN DHCP ..................................................................................................................................... 232
WLAN IP ........................................................................................................................................... 233
WLAN PORT ...................................................................................................................................... 234
WLAN MODE .................................................................................................................................... 235
Internal Ethernet Setting Commands .................................................................................................. 236
NET DHCP ......................................................................................................................................... 236
NET IP ............................................................................................................................................... 237
NET PORT ......................................................................................................................................... 238
NET NAME ........................................................................................................................................ 239
TSC AUTO ID Technology Co., Ltd. IV Copyright 2013 All Rights Reserved.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 dont 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 countries via 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.
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.
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.
Loading...
+ 222 hidden pages