Руководство по программированию tspl2

TSC TTP-243 series Programming Manual

  • Contents

  • Table of Contents

  • Bookmarks

Quick Links

TSPL/TSPL2 Programming Language

TSC BAR CODE PRINTER SERIES

PROGRAMMING

MANUAL

loading

Related Manuals for TSC TTP-243 series

Summary of Contents for TSC TTP-243 series

  • Page 1
    TSPL/TSPL2 Programming Language TSC BAR CODE PRINTER SERIES PROGRAMMING MANUAL…
  • Page 2
    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.
  • Page 3: Table Of Contents

    QRCODE …………………………59 RSS …………………………..64 REVERSE…………………………68 TEXT ………………………….. 69 Status Polling Commands (RS-232) ……………… 71 <ESC>!? …………………………71 <ESC>!R …………………………72 ~!@ …………………………… 73 ~!A …………………………..74 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 4
    STR$( ) …………………………132 STRCOMP ( ) ……………………….133 INSTR ( ) …………………………134 TRIM$( ) …………………………135 LTRIM$( ) …………………………. 136 RTRIM$( ) ………………………… 137 VAL( )…………………………138 BEEP …………………………139 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 5
    HOUR …………………………179 MINUTE …………………………180 SECOND …………………………181 @YEAR …………………………182 @MONTH ……………………….. 184 @DATE …………………………186 @DAY …………………………188 @HOUR …………………………190 @MINUTE ……………………….. 192 @SECOND ……………………….. 194 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 6: Document Conventions

    (ASCII 0) supported in the expression, except the 2D bar code commands. Note: 203 DPI: 1 mm = 8 dots Arial font in bold and italic type is used for note. TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 7: Object Position Calculation

    Object Position Calculation DIRECTION 0 X=7mm Label origin (0,0) Y=3mm Paper feed direction DIRECTION 0 TEXT 56,24,”3”,0,1,1,”ABC” 203 DPI, 1mm=8 dots 300 DPI, 1mm=12 dots TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 8
    Label origin (0,0) DIRECTION 1 Y=3mm Y X=7mm Paper feed direction DIRECTION 1 TEXT 56,24,”3”,0,1,1,”ABC” TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 9: Printer Models List

    32. TTP-345 TTP-343C series 33. TTP-343C TTP-344M series 34. TTP-344M 35. TTP-344M Plus TTP-346M series 36. TTP-346M TTP-384M series 37. TTP-384M TTP-644M series 38. TTP-644M M23 series 39. M23 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 10
    TSC AUTO ID Technology Co., Ltd. VIII Copyright 2009 All Rights Reserved.
  • Page 11: Setup And System Commands

    TTP-244CE series TTP-245 series TTP-245C series TDP-245 series TTP-246M series TTP-248M series TTP-2410M series TDP-643 Plus series TDP-643R Plus series TTP-342 series TTP-342 Plus series TTP-342M series TTP-342M Plus series TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 12
    TTP-384M series TTP-644M series TTP-247 TTP-345 M23 series Example (1) English system (inch) SIZE 3.5, 3.00 (2) Metric system (mm) SIZE 100 mm, 100 mm See Also GAP, BLINE TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 13: Gap

    Ex: In DOS mode, C:\>copy con lpt1 <Enter> GAP 2 mm,0 <Enter> <Ctrl>+<Z> <Enter> Example Normal gap English system (inch) GAP 0.12,0 Metric system (mm) GAP 3 mm,0 Continuous label GAP 0,0 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 14
    Special gap English system (inch) GAP 0.30, 0.10 Metric system (mm) GAP 7.62 mm, 2.54 mm See Also SIZE, BLINE TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 15: Gapdetect

    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. See Also GAP, SIZE, BLINEDETECT, AUTODETECT TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 16: Blinedetect

    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. See Also GAP, SIZE, GAPDETECT, AUTODETECT TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 17: Autodetect

    GAP or BLINE in your program. (3). It is supported in firmware V6.86EZ or later. See Also GAP, SIZE, GAPDETECT, BLINEDETECT TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 18: Bline

    Ex : In DOS mode, C :\>copy con lpt1 <Enter> BLINE 2 mm,0 <Enter> <Ctrl>+<Z> <Enter> Example English system (inch) BLINE 0.20,0.50 Metric system (mm) BLINE 5.08 mm,12.7 mm TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 19
    See Also SIZE, GAP TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 20: Offset

    The offset distance (inch or mm). -1 ≤ m ≤ 1(inch) CAUTION: Impropriety offset value may cause paper jam. Example English system (inch) OFFSET 0.5 Metric system (mm) OFFSET 12.7 mm See Also SIZE, GAP, SET PEEL, SET CUTTER TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 21: Speed

    TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-344M Plus series TTP-346M series TTP-384M series TTP-644M series M23 series Example SPEED 10 See Also TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 22
    DENSITY TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 23: Density

    This command sets the printing darkness. Syntax DENSITY n Parameter Description 0~15 0: specifies the lightest level 15: specifies the darkest level Note: Default DENSITY setting is 8 Example DENSITY 7 See Also DENSITY TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 24: Direction And Mirror Image

    This command defines the printout direction and mirror image. This will be stored in the printer memory. Syntax DIRECTION n[,m] Parameter Description 0 or 1. Please refer to the illustrations below: 0: Print normal image. 1: Print mirror image. TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 25
    TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series Example DIRECTION 0 DIRECTION 0,1 See Also REFERENCE TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 26: Reference

    Horizontal coordinate (in dots) Vertical coordinate (in dots) Note: 200 DPI: 1 mm = 8 dots 300 DPI: 1 mm = 12 dots Example REFERENCE 10,10 See Also DIRECTION TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 27: Shift

    TDP-643 Plus series TDP-643R Plus series TTP-342 series TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 28
    Example SIZE 4,2.5 GAP 2 mm,0 DIRECTION 0 SHIFT 30 OFFSET 0 TEXT 400,200,»3″,0,1,1,»DIRECTION 0″ TEXT 400,250,»3″,0,1,1,»SHIFT 30″ BOX 10,0,780,490,8 PRINT 3,1 See Also OFFSET, REFERENCE TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 29: Country

    044: United Kingdom 045: Danish 046: Swedish 047: Norwegian 048: Polish 049: German 055: Brazil 061: English (International) 351: Portuguese 358: Finnish Example COUNTRY 001 See Also CODEPAGE, ~!I TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 30: Codepage

    1250: Central Europe (TSPL2 printers only) 1252: Latin I (TSPL2 printers only) 1253: Greek (TSPL2 printers only) 1254: Turkish (TSPL2 printers only) Note: DATA LENGTH determines 7-bit or 8-bit communications parameter. TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 31
    TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-344M Plus series TTP-346M series TTP-384M series TTP-644M series M23 series Example CODEPAGE 437 See Also COUNTRY, SET COM1, ~!I TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 32: Cls

     CLS Description This command clears the image buffer. Syntax Parameter Description None Note: This command must be placed after SIZE command. Example See Also SIZE, GAP, BLINE TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 33: Feed

    1 ≤ n ≤ 9999 Note: 200 DPI: 1 mm = 8 dots 300 DPI: 1 mm = 12 dots Example FEED 40 See Also BACKFEED, SIZE, GAP, BLINE, HOME, FORMFEED TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 34: Backfeed & Backup

    TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series CAUTION: Impropriety back feed value may cause paper jam or wrinkle. TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 35
    Example BACKUP 40 BACKFEED 40 See Also FEED, SIZE, GAP, BLINE, HOME, FORMFEED TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 36: Formfeed

    SET PEEL OFF SET CUTTER OFF SET COUNTER @0 +1 @0=»000001″ FORMFEED BOX 1,1,360,65,12 TEXT 25,25, «3»,0,1,1,»FORMFEED COMMAND TEST» TEXT 25,80,»3″,0,1,1,@0 PRINT 3,1 See Also FEED, SIZE, GAP, BLINE, HOME, BACKFEED TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 37: Home

    TDP-643 Plus series TDP-643R Plus series TTP-342 series TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 38
    SET PEEL OFF SET CUTTER OFF SET COUNTER @0 +1 @0=»000001″ HOME 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 See Also FEED, SIZE, GAP, BLINE, FORMFEED TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 39: Print

    1 ≤ n ≤ 999999999 Example SIZE 60 mm, 20 mm SET COUNTER @1 1 @1=»0001″ TEXT 10,10,»3″,0,1,1,@1 PRINT 3,2 PRINT –1,2 See Also SET COUNTER, INPUT, DOWNLOAD TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 40: Sound

    Sound level: 0~9 interval Sound interval: 1~4095 Example SOUND 5,200 SOUND 3,200 SOUND 3,200 SOUND 4,200 SOUND 2,200 SOUND 2,200 SOUND 1,200 SOUND 2,200 SOUND 3,200 SOUND 4,200 SOUND 5,200 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 41: Cut

    OFFSET 0.00 mm SET CUTTER OFF SET TEAR OFF 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 See Also SET CUTTER, SET BACK, SET PARTITAL_CUTTER TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 42: Limitfeed

    The setting will remain resident in memory. The default value is 10 inches when printer initializes. For metric system, there must be a space between parameter n and mm. TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 43: Selftest

    TDP-643R Plus series TTP-342 series TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series Example SELFTEST TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 44: Label Formatting Commands

    20% and 30% respectively. Example SIZE 4,2.5 GAP 0,0 SPEED 6 DENSITY 8 DIRECTION 0 BAR 100, 100, 300, 200 PRINT 1,1 See Also TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 45: Barcode

     UPC-A with 5 digits add-on  UPC-E  UPC-E with 2 digits add-on  UPC-E with 5 digits add-on  MSI  PLESSEY  China POST  ITF14  EAN14  CODE 11 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 46
    EAN13+2 EAN 13 with 2 digits add-on EAN13+5 EAN 13 with 5 digits add-on EAN8 EAN 8 EAN8+2 EAN 8 with 2 digits add-on EAN8+5 EAN 8 with 5 digits add-on CODA Codabar POST Postnet TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 47
    : wide narrow : wide narrow : wide narrow : wide narrow : wide EAN128 EAN13 EAN13+2 EAN13+5 EAN 8 EAN 8+2 EAN 8+5 CODA POST UPCA UPCA+2 UPCA+5 UPCE TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 48
    EAN128 EAN13 EAN13+2 EAN13+5 EAN 8 EAN 8+2 EAN 8+5 CODA POST 5,9,11 UPCA UPCA+2 UPCA+5 UPCE UPCE+2 UPCE+5 CPOST MSIC PLESSY ITF14 EAN14 CODE 11 Example TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 49
    M23 series X X X X X X X X X X X X X X X X X X X X X X X X X X X X TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 50: Bitmap

    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 Example TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 51
    8F 1F C7 1F E3 1F E7 1F FF 1F FF 0D 0A 50 PRINT 1,1 52 49 4E 54 20 31 2C 31 0D 0A See Also PUTBMP, PUTPCX TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 52: Box

    Max. print ratio is different for each printer model. Desktop and industrial printer print ratio is limited to 20% and 30% respectively. Example SIZE 4,2.5 GAP 0,0 SPEED 6 DENSITY 8 DIRECTION 0 BOX 100,100,200,200,5 PRINT 1,1 See Also TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 53: Circle

    Specify the diameter of the circle (in dots) thickness Thickness of the circle (in dots) Example SIZE 80 mm, 30 mm GAP 0,0 DIRECTION 1 BAR 250,20,100,1 BAR 250,20,1,100 CIRCLE 250,20,100,1 PRINT 1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 54: Dmatrix

    SPEED 4 DENSITY 8 DIRECTION 0 REFERENCE 0,0 OFFSET 0.00 SET CUTTER OFF SET TEAR ON 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 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 55: Erase

    The region height in y-axis direction (in dots) Example SIZE 4,2.5 GAP 0,0 SPEED 6 DENSITY 8 DIRECTION 0 BAR 100, 100, 300, 300 ERASE 150,150,200,200 PRINT 1,1 See Also TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 56: Maxicode

    4 and 5.) message Barcode content Example SIZE 4,2 GAP 0,0 SPEED 4 DENSITY 8 OFFSET 0.00 REFERENCE 0,0 SET CUTTER OFF SET TEAR ON REM *****Mode 2 For USA***** TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 57
    MAXICODE 600,100,4,19,DEMO 4 FOR MAXICODE TEXT 100,520,»3″,0,2,2,»Mode 4 FOR MAXICODE» PRINT 1,1 REM *****MODE 5***** MAXICODE 110,100,5,»DEMO 5 FOR MAXICODE» MAXICODE 600,100,5,19,DEMO 5 FOR MAXICODE TEXT 100,520,»3″,0,2,2,»DEMO 5 FOR MAXICODE» PRINT 1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 58: Pdf417

    Module width in dot. Range: 2~9 Bar height in dot. Range: 4~99 Maximum number of rows Maximum number of columns Truncation. 0: Not truncated 1: Truncated Lm Expression length (without double quote), 1m2048 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 59
    4 dots» PRINT 1,1 REM *****OPTION:E4 W4 H4 R25***** PDF417 50,50,600,600,0,E4,W4,H4,R25,»Error correction level:4 Module Width 4 dots Bar Height 4 dots Maximum Number of Rows: 25 Rows » PRINT 1,1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 60
    Maximum Number of Rows: 40 Rows Maximum number of columns: 4 Cols Truncation:0 Expression length:167 PRINT 1,1 REM *****OPTION:E4 W4 H4 R40 C4 T1 L169***** PDF417 50,50,900,900,0,E4,W4,H4,R40,C4,T1,L169,Error correction level:4 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 61
    Center pattern in barcode area: M1 Human Readable: Yes: U100,300,10 Module Width 6 dots: W6 Bar Height 6 dots: H6 Maximum Number of Rows: 60 Rows: R60 Maximum number of columns: 4 Cols: C4 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 62
    Truncation:1: T1 Expression length:297: L297 PRINT 1,1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 63: Aztec

    Output to be reversed (0 : no, 1 : yes), default is 0 content Barcode content Example SIZE 3,3 GAP 0,0 SPEED 4 DENSITY 8 DIRECTION 0 REFERENCE 0,0 OFFSET 0.00 SET CUTTER OFF SET TEAR ON AZTEC 200,10,0,»ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789″ PRINT 1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 64
    AZTEC 200,10,0,4,»ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789″ PRINT 1 AZTEC 200,10,0,4,1,»ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789″ PRINT 1 AZTEC 200,10,0,4,1,0,»ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789″ PRINT 1 AZTEC 200,10,0,4,1,0,0,»ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789″ PRINT 1 AZTEC 200,10,0,4,1,0,0,1,»ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789″ PRINT 1 AZTEC 200,10,0,4,1,0,0,1,1,»ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789″ PRINT 1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 65: Putbmp

    TTP-2410M series TDP-643 Plus TDP-643R Plus TTP-342 series TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 66
    Example See Also DOWNLOAD, BITMAP, PUTPCX TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 67: Putpcx

    TTP-2410M series TDP-643 Plus TDP-643R Plus TTP-342 series TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 68
    Example See Also DOWNLOAD, BITMAP, PUTPCX TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 69: Qrcode

    1 Shift Coded Representation for detail. Data characters per symbol (for maximum symbol size): Model 1 (Version 14-L) Model 2 (Version 40-L) 1). Numeric data: 1,167 characters 7,089 characters TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 70
    TTP-2410M series TDP-643 Plus TDP-643R Plus TTP-342 series TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 71
    GAP 0.12,0 QRCODE 10,10,H,4,A,0,»ABCabc123″ QRCODE 160,160,H,4,A,0,»123ABCabc» QRCODE 310,310,H,4,A,0,»印表機 ABCabc123″ PRINT 1,1 b. Data string including <Enter> character (0Dh, 0Ah) SIZE 4,2.5 GAP 0.12,0 QRCODE 10,10,H,4,A,0,»ABC<Enter> abc<Enter> 123″ QRCODE 160,160,H,4,A,0,»123<Enter> TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 72
    QRCODE 310,310,H,4,M,0,»K 印表機!AABC!B0006abc123″ PRINT 1,1 b. Data string including <Enter> character, <Enter> is an 8-bit byte data SIZE 4,2.5 CAP 0.12,0 QRCODE 10,10,H,4,M,0,»AABC!B0007<Enter> abc<Enter> !N123″ QRCODE 160,160,H,4,M,0,»N123!B0002<Enter> !AABC!B0005<Enter> abc» TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 73
    QRCODE 310,310,H,4,M,0,»K 印表機!AABC!B0014abc123″+»1234″+»abcd» PRINT 1,1 d. Data string including double quote (“) character, please use \[«] instead of SIZE 4,2.5 CAP 0.12,0 QRCODE 10,10,H,4,M,0,»AABC!B0005\[«]abc\[«]!N123» QRCODE 160,160,H,4,M,0,»N123!B0001\[«]!AABC!B0004\[«]abc» QRCODE 310,310,H,4,M,0,»B0001\[«]!K 印表機!B0010\[«]ABCabc123» PRINT 1,1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 74: Rss

    UCC/EAN-128 height in (1 to 500 valid) content Barcode content or string expression Content of UPCE must be: *00abc0000hij = abhijc, where c = 0-2 *00abc00000ij = abcij3 *00abcd00000j = abcdj4 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 75
    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 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» TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 76
    PRINT 1 SIZE 4,3 GAP 0,0 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,3 GAP 0,0 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» PRINT 1 SIZE 4,3 GAP 0,0 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 77
    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. Copyright 2009 All Rights Reserved.
  • Page 78: Reverse

    Max. print ratio is different for each printer model. Desktop and industrial printer print ratio is limited to 20% and 30% respectively. Example SIZE 4,2.5 GAP 0,0 SPEED 6 DENSITY 8 DIRECTION 0 TEXT 100,100,»3″,0,1,1,»REVERSE» REVERSE 90,90,128,40 PRINT 1,1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 79: Text

    (3). If there is any double quote («) within the text, please change it to \[«]. (4). If font «0» is used, the font width and font height is stretchable by TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 80
    TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series Example SIZE 3,2 GAP 0,0 TEXT 100,100,»5″,0,1,1,»\[«]DEMO FOR TEXT\[«]» TEXT 100,200,»ROMAN.TTF»,0,1,20,»\[«]True Type Font Test Print\[«]» PRINT 1,1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 81: Status Polling Commands (Rs-232)

    Out of ribbon, paper jam and head opened Out of ribbon and out of paper Out of ribbon, out of paper and head opened Pause Printing Other error See Also <ESC>!R TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 82: Esc>!R

    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 Parameter Description See Also <ESC>!? TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 83
    This command inquires the mileage of the printer. The integer part of mileage is returned (the decimal part of mileage is not return). to the PC in ASCII characters. The ending character of mileage is 0x0D. Syntax Parameter Description None Example TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 84
    This command inquires the free memory of the printer. The number of bytes of free memory is returned in decimal digits, with 0x0d as ending code of PC. Syntax Parameter Description None Example See Also FILES TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 85
    Description None Return value Description RTC is not installed. RTC is installed. Example See Also YEAR, MONTH, DATE, WEEK, HOUR, MINUTE, SECOND, @YEAR, @MONTH, @DATE, @DAY, @HOUR, @MINUTE, @SECOND TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 86
     ~!D Description This command enters the printer into DUMP mode. In DUMP mode, the printer outputs code directly without interpretation. Syntax Parameter Description None Example TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 87
    The filename are returned in ASCII characters. Each file name ends with 0x0D. The ending character is 0x1A. Entering this command multiple times will cycle through the files resident on memory. Syntax Parameter Description None Example See Also FILES TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 88
    7 bit: USA, 001 Regarding the code pages and country codes supported by the printer, please refer to the CODEPAGE and COUNTRY command respectively. Example See Also COUNTRY, CODEPAGE TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 89
    TTP-342 TTP/TDP 342 TTP-342 Plus TTP342MP TTP-342M TTP/TDP 342M TTP-342M Plus TTP342MP TTP-344M TTP344M TTP-344M Plus TTP344MP TTP-346M TTP346M TTP-346M TTP346M TTP-384M TTP384M TTP-644M TTP644M TTP-343 TTP343 TTP-343C TTP343C TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 90
    Example See Also ~!I, ~!F TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 91: Message Translation Protocols

    If @0 or @1 are not present, prompt string will be displayed in first line of LCD and input data will be displayed in second line of LCD. Syntax ~#Prompt~&[@0] ~#Prompt~&[@1] Parameter Description None Example DOWNLOAD «A.BAS» OUT «~#KP-200~&@0» OUT «~#Testing~&@1» See Also INPUT, OUT TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 92: Commands For Windows Driver

    This command stores bitmap image data in the memory. Behind the nnn is the bitmap data. Syntax !Bnnn Parameter Description The number of bytes of image data sent from PC to printer, expressed in 3 decimal digits. Example !B100 See Also BITMAP TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 93
    This command prints bitmap data at the specified position (in y-direction). Syntax !Jnnnn Parameter Description nnnn Print image at the specified position in y-direction. The position is expressed in 4 decimal digits. Example !J0100 See Also FEED TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 94
     !N Description This command prints a specified number of labels. Syntax !Nnnn Parameter Description Specifies the number of copies to be printed. Example !N001 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 95: File Management Commands

    TTP-245 Plus card capacity TDP-245 Depends on SD TDP-245 Plus card capacity TTP-245G TDP-245G TTP-246M TTP-246G Depends on SD TTP-246M Plus card capacity TTP-248M Depends on SD TTP-2410M card capacity TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 96
    Download files to DRAM only. If you would like to save the files from DRAM to Flash memory before turning off power, issue the MOVE command to printer. TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 97
    No Battery is used to back up files in DRAM. which will be lost in the event printer power is lost. Support Model DOWNLOAD DOWNLOAD DOWNLOAD MOVE «filename» F,»filename» E,»filename» TTP-243 series TTP-243 Plus series TTP-244ME series TTP-244ME Plus series TTP-244 series TTP-244CE series TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 98
    To run the program, call the main filename without BAS extension or use RUN command to start the download program. Example: Call the main filename C:\>COPY CON LPT1<ENTER> EXAMPLE<ENTER> TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 99
    DOWNLOAD «DATA»,20,COMPUTER<Enter> 2001<Enter> 21<Enter> Note: <ENTER> stands for keyboard “ENTER” key. In the above example, please press “ENTER” key instead of typing <ENTER> See Also EOP, RUN, PUTBMP, PUTPCX, INPUT TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 100: Eop

    DOWNLOAD «DEMO.BAS» SIZE 4,4 GAP 0,0 DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF TEXT 100,100,»3″,0,1,1,»DEMO PROGRAM» PRINT 1 See Also DOWNLOAD, EOP, INPUT TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 101: Files

    C:\>COPY CON LPT1<ENTER> FILES<ENTER> <CTRL><Z><ENTER> Note: <ENTER> stands for PC keyboard “ENTER” key. <CTRL><Z> means to hold keyboard “CTRL” key then press the PC keyboard <Z> key. See Also ~!F, KILL TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 102: Kill

    Specify the memory location that files will be deleted. n is ignored: Kill files saved in DRAM. F: Kill files from main board flash memory. E: Kill files from expansion memory module. TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 103
    C:\>COPY CON LPT1<ENTER> FILES<ENTER> <CTRL><Z><ENTER> Note: <ENTER> stands for PC keyboard “ENTER” key. <CTRL><Z> means to hold keyboard “CTRL” key then press the PC keyboard <Z> key See Also ~!F, FILES TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 104: Move

     MOVE Description This command moves downloaded files from DRAM to FLASH memory. Syntax MOVE Parameter Description See Also DOWNLOAD, EOP TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 105: Run

    RUN «DEMO.BAS «<ENTER> <CTRL><Z><ENTER> C:\> Note: <ENTER> stands for PC keyboard «ENTER » key. <CTRL><Z> means to hold PC keyboard “CTRL” key then press the PC keyboard <Z> key TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 106
    See Also DOWNLOAD, EOP TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 107: Basic Commands And Functions

    DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF A=ABS(-100) B=ABS(-50.98) C=-99.99 TEXT 100,100,»3″,0,1,1,STR$(A) TEXT 100,150,»3″,0,1,1,STR$(B) TEXT 100,200,»3″,0,1,1,STR$(ABS(C)) PRINT 1 See Also DOWNLOAD, EOP TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 108: Asc( )

    SIZE 4,4 GAP 0,0 DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF CODE1=ASC(«A «) TEXT 100,100, «3»,0,1,1,STR$(CODE1) PRINT 1 See Also DOWNLOAD, EOP, STR$() TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 109: Chr$( )

    GAP 0,0 DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF A=65 WORD$=CHR$(A) TEXT 100,100, «3»,0,1,1,WORD$ PRINT 1 See Also DOWNLOAD, EOP, STR$(), ASC$() TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 110: End

    SET PEEL OFF TEXT 200,60,»4″,0,1,1,»END COMMAND TEST» X=300 Y=200 X1=500 Y1=400 GOSUB DR_LINE PRINT 1 :DR_LINE FOR I=1 TO 100 STEP 10 BOX X+I,Y+I,X1-I,Y1-I,5 NEXT RETURN DEMO See Also DOWNLOAD, EOP TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 111: Eof( )

    SET CUTTER OFF SET PEEL OFF OPEN «DATA»,0 SEEK 0,0 Y=110 TEXT 10,10,»3″,0,1,1,»*****EOF TEST*****» Temp$=»» READ 0,ITEM$,P TEXT 10,Y,»2″,0,1,1,ITEM$+»$»+STR$(P)+»[EOF(0)=»+STR$(EOF(0))+»]» BARCODE 10,Y+25,»39″,40,1,0,2,4,»PRICE-«+STR$(P) Y=Y+100 IF EOF(0)=0 THEN GOTO A PRINT 1 DEMO TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 112
    See Also DOWNLOAD, EOP, OPEN, READ, SEEK TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 113: Open

    MOUSE KEYBOARD DOWNLOAD «DATA2»,56,Computer 3000 Mouse Keyboard Save the above contents of data under the file name of «DATA». Follow the steps below to download data to the printer TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 114
    Saving the above contents of data under the file name of «DEMO». Follow the steps below to download data to the printer <under MS-DOS mode>: C:\>COPY DEMO/B LPT1 Execute DEMO.BAS in printer: C:\>COPY CON LPT1 DEMO <Ctrl><Z> TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 115
    The above example instructs the printer to open the file «DATA1» and «DATA2» with same file handle of 0, and read items from the file. See Also DOWNLOAD, EOP, READ, EOF, LOF, SEEK, FREAD$() TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 116: Write

    Syntax WRITE file handle, variables Parameter Description file handle 0 or 1 variables string, integer or float point variable See Also READ, DOWNLOAD, EOP, OPEN, EOF, LOF, SEEK, FREAD$() TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 117: Read

    SET CUTTER OFF SET PEEL OFF Y=100 OPEN «DATA1»,0 OPEN «DATA2″,1 SEEK 0,0 SEEK 1,0 :Start TEXT 10,10,»3″,0,1,1,»*****READ COMMAND TEST*****» TEXT 10,50,»3″,0,1,1,»OPEN-READ DATA»+STR$(I+1) ITEM$=»» READ I,ITEM$,P,Q TEXT 10,Y,»2″,0,1,1,ITEM$+»$»+STR$(P) BARCODE 10,Y+25,»39″,40,1,0,2,4,»PRICE*»+STR$(Q)+»=»+STR$(P*Q) Y=Y+100 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 118
    PRINT 1 Y=100 IF I<=1 THEN IF EOF(I)=1 THEN I=I+1 GOTO Start ELSE GOTO Start ENDIF ELSE ENDIF DEMO See Also DOWNLOAD, EOP, OPEN, EOF, LOF, SEEK, FREAD$() TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 119: Seek

    TEXT 100,60,»3″,0,1,1,»SHIFT 4 CHARACTERS» TEXT 100,110,»3″,0,1,1,Num$ BAR 100,140,300,4 SEEK 0,0 READ 0,Num$ TEXT 100,160,»3″,0,1,1,»SHIFT 0 CHARACTERS» TEXT 100,210,»3″,0,1,1,Num$ PRINT 1 TEST See Also DOWNLOAD, EOP, OPEN, READ, EOF, LOF, FREAD$() TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 120: Lof( )

    OPEN «DATA2″,1 TEXT 10,20,»4″,0,1,1,»LOF() FUNCTION TEST» J=LOF(«DATA1») K=LOF(«DATA2″) TEXT 10,140,»3»,0,1,1,»DATA1 IS: «+STR$(J)+» Bytes» TEXT 10,200,»3″,0,1,1,»DATA2 IS: «+STR$(K)+» Bytes» PRINT 1 LofTest See Also DOWNLOAD, EOP, OPEN, READ, EOF, SEEK, FREAD$() TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 121: Fread$( )

    OPEN «DATA1»,0 OPEN «DATA2″,1 SEEK 0,0 SEEK 1,0 Y$=FREAD$(0,6) Z$=FREAD$(1,6) TEXT 10,260,»3»,0,1,1,»FREAD$(0,6) IS: «+Y$ TEXT 10,320,»3»,0,1,1,»FREAD$(1,6) IS: «+Z$ PRINT 1 See Also DOWNLOAD, EOP, OPEN, READ, EOF, LOF(), SEEK TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 122: For

    FOR I=110 TO 10 STEP -10 TEXT 300,10+(ABS(I-110))*3,»3″,0,1,1,STR$(I) NEXT FOR I=1 TO 5 STEP 0.5 IF I-INT(I)=0 THEN Y=10+60*(I-1) ELSE Y=Y+30 TEXT 400,Y,»3″,0,1,1,STR$(I) NEXT PRINT 1 TEST See Also DOWNLOAD, EOP TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 123
    TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 124: If…then…else…endif Loop

    TTP-644M series M23 series Syntax IF condition THEN statement Note the single-line form of IF …THEN does not use an ENDIF statement. IF condition THEN (TSPL2 printers only) Statements ENDIF TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 125
    Only one statement is available in Example DOWNLOAD «DEMO.BAS» SIZE 3,3 GAP 0.12,0 SPEED 4 DENSITY 8 DIRECTION 1 REFERENCE 0,0 OFFSET 0.00 SET CUTTER OFF SET PEEL OFF TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 126
    TEXT 100,360,»3″,0,1,1,» (1)-(5)=»+STR$(F) TEXT 100,410,»3″,0,1,1,»(6) 7+14+21+…+98=»+STR$(G) TEXT 100,460,»3″,0,1,1,»(7) 17+34+51+…+85=»+STR$(H) TEXT 100,510,»3″,0,1,1,»(8) 27+54+…+81=»+STR$(J) TEXT 100,560,»3″,0,1,1,»(9) 37+74=»+STR$(K) TEXT 100,610,»3″,0,1,1,» (1)-(6)-(7)-(8)-(9)=»+STR$(L) PRINT 1,1 DOWNLOAD «IFTHEN.BAS» SIZE 4,4 GAP 0,0 DENSITY 8 SPEED 3 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 127
    The total numbers of nested IF …THEN …ELSE statement in a program cannot exceed 40. The total numbers of nested IF …THEN …ELSE, FOR…NEXT, GOSUB RETURN program cannot exceed 40 loops. See Also DOWNLOAD, EOP TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 128: Gosub

    DIRECTION 0 TEXT 10,10,»3″,0,1,1,»GOSUB & RETURN COMMAND TEST» GOSUB DR_BOX PRINT 1 :DR_BOX FOR I=21 TO 81 STEP 10 BOX 80+I,80+I,80+300-I,80+300-I,5 NEXT RETURN GOSUB1 See Also DOWNLOAD, EOP, END, GOTO TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 129: Goto

    SET PEEL OFF TOTAL=0 :START IF A<100 THEN GOTO SUM ELSE GOTO PRTOUT ENDIF :SUM A=A+1 TOTAL=TOTAL+A GOTO START :PRTOUT B$=»THE SUMMATION OF 1..100 IS «+STR$(TOTAL) TEXT 10,100,»3»,0,1,1,B$ PRINT 1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 130
    See Also DOWNLOAD, EOP, END, GOSUB…RETURN TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 131: Inp$( )

    REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF T$=»» FOR I=1 TO 5 T$=T$+INP$(1) NEXT TEXT 100,100,»4″,0,1,1,»INP$(1)=»+T$ PRINT 1 DEMO 12345 See Also DOWNLOAD, EOP, END, INPUT, GOSUB…RETURN, GOTO TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 132: Input

    SET PEEL OFF :START INPUT «CODE 39 :»,C39$ INPUT «EAN 13:»,12,E13$ A$=»» TEXT 20,50,»3″,0,1,1,»INPUT and KP-200 Test» BARCODE 20,100,»39″,48,1,0,2,5,C39$ BARCODE 20,200,»EAN13″,48,1,0,4,4,E13$ PRINT 1 GOTO START See Also DOWNLOAD, EOP, END, GOTO TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 133: Rem

    DENSITY 8 SPEED 4 DIRECTION 1 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF TEXT 50,50,»3″,0,1,1,»REMARK DEMO PROGRAM» REM TEXT 50,100,»3″,0,1,1,»REMARK DEMO PROGRAM» PRINT 1,1 See Also DOWNLOAD, EOP, END TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 134: Out

    DOWNLOAD «DEMO.BAS» SIZE 3,3 GAP 0.08,0 DENSITY 8 SPEED 4 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF PRICE$=»123456″ OUT «PRICE:»,PRICE$ See Also DOWNLOAD, EOP, END, ~#…~& TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 135: Getkey( )

    IF A=0 THEN GOTO PAUSEB IF A=1 THEN GOTO FEEDB :PAUSEB TEXT 50,10,»4″,0,1,1,»PAUSE key is pressed !» PRINT 1 GOTO START :FEEDB TEXT 50,10,»4″,0,1,1,»FEED key is pressed !» PRINT 1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 136
    See Also DOWNLOAD, EOP, END, GOTO TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 137: Int( )

    REM **** To round up or down**** N=INT(Num+0.5) IF N>Num THEN TEXT 50,100,»3″,0,1,1,»To round up= «+STR$(N) ELSE TEXT 50,100,»3»,0,1,1,»To round down= «+STR$(N) ENDIF PRINT 1 See Also DOWNLOAD, EOP, END, ABS(), ASC(), STR$() TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 138: Left$( )

    SET CUTTER OFF DIRECTION 0 REFERENCE 0,0 A$=»BARCODE PRINTER DEMO PRINTING» C$=LEFT$(A$,10) TEXT 10,10,»3″,0,1,1,A$ TEXT 10,100,»3″,0,1,1,»10 LEFT 10 CHARS: «+C$ PRINT 1 See Also DOWNLOAD, EOP, END, RIGHT$(), MID$(), LEN(), STR$() TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 139: Len( )

    SIZE 3.00,3.00 GAP 0.08,0.00 SPEED 4.0 DENSITY 8 SET CUTTER OFF DIRECTION 0 REFERENCE 0,0 A$=»TSC Auto ID Technology Co., Ltd.» B=LEN(A$) TEXT 10,10,»3″,0,1,1,A$ TEXT 10,50,»3″,0,1,1,»STRING LENGTH=»+STR$(B) PRINT 1 See Also DOWNLOAD, EOP, END, LEFT$(), LEN(), RIGHT$(), MID$(), STR$(), VAL() TSC AUTO ID Technology Co., Ltd.

  • Page 140: Mid$( )

    SIZE 3.00,3.00 GAP 0.08,0.00 SPEED 4.0 DENSITY 8 SET CUTTER OFF DIRECTION 0 REFERENCE 0,0 A$=»TSC Auto ID Technology Co., Ltd.» E$=MID$(A$,11,10) TEXT 10,10,»3″,0,1,1,A$ TEXT 10,200,»3″,0,1,1,»10 MIDDLE CHARS: «+E$ PRINT 1 See Also DOWNLOAD, EOP, END, LEFT$(), LEN(), RIGHT$(), STR$(), VAL() TSC AUTO ID Technology Co., Ltd.

  • Page 141: Right$( )

    SIZE 3.00,3.00 GAP 0.08,0.00 SPEED 4.0 DENSITY 8 SET CUTTER OFF DIRECTION 0 REFERENCE 0,0 A$=»TSC Auto ID Technology Co., Ltd.» D$=RIGHT$(A$,10) TEXT 10,10,»3″,0,1,1,A$ TEXT 10,150,»3″,0,1,1,»10 RIGHT CHARS: «+D$ PRINT 1 See Also DOWNLOAD, EOP, END, LEFT$(), LEN(), MID$(), STR$(), VAL() TSC AUTO ID Technology Co., Ltd.

  • Page 142: Str$( )

    An integer, floating point number or mathematical expression Example DOWNLOAD «DEMO.BAS» SIZE 3.00,3.00 GAP 0,0.00 SPEED 4.0 DENSITY 8 SET CUTTER OFF DIRECTION 0 REFERENCE 0,0 A$=»TSC Auto ID Technology Co., Ltd.» F=100 G=500 H$=STR$(F+G) TEXT 10,10,»3″,0,1,1,A$ TEXT 10,60,»3″,0,1,1,»F=»+STR$(F) TEXT 10,110,»3″,0,1,1,»G=»+STR$(G) TEXT 10,160,»3″,0,1,1,»F+G=»+H$ PRINT 1 DEMO…

  • Page 143: Strcomp ( )

    TEXT 100,60,»3″,0,1,1,STR$(result1) + «:» + STR1$ +» and «+ STR2$ + » sort equally» TEXT 100,110,»3″,0,1,1,STR$(result3) + «:» + STR2$ + » sorts after » + STR1$ PRINT 1 TEST See Also INSTR() TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 144: Instr ( )

    = searchfor$+» in «+string$+ » after » + STR$(starpos) + » is » + STR$(temp2) SIZE 4,1 GAP 0,0 TEXT 10,10,»3″,0,1,1,str1$ TEXT 10,60,»3″,0,1,1,str2$ PRINT 1 DEMO See Also STRCOMP() TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 145: Trim$( )

    SIZE 4,1.5 GAP 0,0 TEXT 50,025,»2″,0,1,1,LTRIM$(data1$) TEXT 50,050,»2″,0,1,1,TRIM$(data1$) TEXT 50,075,»2″,0,1,1,RTRIM$(data1$) TEXT 50,100,»2″,0,1,1,LTRIM$(data2$,»a») TEXT 50,125,»2″,0,1,1,TRIM$(data2$,»a») TEXT 50,150,»2″,0,1,1,RTRIM$(data2$,»a») TEXT 50,175,»2″,0,1,1,LTRIM$(data3$,»[<>]») TEXT 50,200,»2″,0,1,1,TRIM$(data3$,»[<>]») TEXT 50,225,»2″,0,1,1,RTRIM$(data3$,»[<>]») PRINT 1 DEMO See Also LTRIM$(), RTRIM$() TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 146: Ltrim$( )

    SIZE 4,1.5 GAP 0,0 TEXT 50,025,»2″,0,1,1,LTRIM$(data1$) TEXT 50,050,»2″,0,1,1,TRIM$(data1$) TEXT 50,075,»2″,0,1,1,RTRIM$(data1$) TEXT 50,100,»2″,0,1,1,LTRIM$(data2$,»a») TEXT 50,125,»2″,0,1,1,TRIM$(data2$,»a») TEXT 50,150,»2″,0,1,1,RTRIM$(data2$,»a») TEXT 50,175,»2″,0,1,1,LTRIM$(data3$,»[<>]») TEXT 50,200,»2″,0,1,1,TRIM$(data3$,»[<>]») TEXT 50,225,»2″,0,1,1,RTRIM$(data3$,»[<>]») PRINT 1 DEMO See Also TRIM$(), RTRIM$() TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 147: Rtrim$( )

    SIZE 4,1.5 GAP 0,0 TEXT 50,025,»2″,0,1,1,LTRIM$(data1$) TEXT 50,050,»2″,0,1,1,TRIM$(data1$) TEXT 50,075,»2″,0,1,1,RTRIM$(data1$) TEXT 50,100,»2″,0,1,1,LTRIM$(data2$,»a») TEXT 50,125,»2″,0,1,1,TRIM$(data2$,»a») TEXT 50,150,»2″,0,1,1,RTRIM$(data2$,»a») TEXT 50,175,»2″,0,1,1,LTRIM$(data3$,»[<>]») TEXT 50,200,»2″,0,1,1,TRIM$(data3$,»[<>]») TEXT 50,225,»2″,0,1,1,RTRIM$(data3$,»[<>]») PRINT 1 DEMO See Also TRIM$(), LTRIM$() TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 148: Val( )

    «0~9», «.» Example DOWNLOAD «DEMO.BAS» SIZE 3.00,3.00 GAP 0.00,0.00 SPEED 4.0 DENSITY 8 SET CUTTER OFF DIRECTION 0 REFERENCE 0,0 A$=»TSC Auto ID Technology Co., Ltd.» F$=»100″ G$=»500″ H=VAL(F$)+VAL(G$) I$=STR$(H) TEXT 10,10,»3″,0,1,1,A$ TEXT 10,60,»3″,0,1,1,»F=»+F$ TEXT 10,110,»3″,0,1,1,»G=»+G$ TEXT 10,160,»3″,0,1,1,»F+G=»+I$ PRINT 1…

  • Page 149: Beep

    Example DOWNLOAD «DEMO.BAS» SIZE 4,4 GAP 0,0 DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF BEEP INPUT «Text1 =»,TEXT1$ TEXT 100,100,»3″,0,1,1,TEXT1$ PRINT 1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 150: Now$( )

    DOWNLOAD «DEMO.BAS» SIZE 4,4 GAP 0,0 DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF TEXT 100,100,»3″,0,1,1,»Now is » + NOW$( ) PRINT 1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 151: Format$( )

    Display a lowercase A with any hour before noon; display a lowercase P with any hour between noon and 11:59 P.M. AMPM can be either uppercase or lowercase, but the case of the string displayed matches the string AMPM as defined by your system settings. TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 152
    TEXT 10,1660,»3″,0,1,1,»A/P:» + FORMAT$(NOW$(), «A/P») TEXT 10,1710,»3″,0,1,1,»a/p:» + FORMAT$(NOW$(), «a/p») TEXT 10,1760,»3″,0,1,1,»AMPM:» + FORMAT$(NOW$(), «AMPM») TEXT 10,1810,»3″,0,1,1,»\:» + FORMAT$(NOW$(), «To\da\y i\s ddddd») TEXT 10,1860,»3″,0,1,1,»string:» + FORMAT$(NOW$(), «To\da\y i\s ddddd») PRINT 1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 153
    TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 154: Device Reconfiguration Commands

    DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET COUNTER @1 1 @1=»00001″ SET COUNTER @2 5 @2=»AB000001″ TEXT 50,50,»3″,0,1,1,@1 BARCODE 50,100,»39″,48,1,0,2,4,@2 PRINT 2,1 See Also PRINT, TEXT, BARCODE TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 155: Set Cutter

    SET CUTTER 1 TEXT 50,50,»3″,0,1,1,»SET CUTTER 1″ PRINT 3,2 REM ***This program cuts 2 label*** SET CUTTER 2 TEXT 50,50,»3″,0,1,1,»SET CUTTER 2″ PRINT 3,2 See Also OFFSET, PRINT, SET PARTIAL_CUTTER TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 156
    TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 157: Set Partial_Cutter

    TTP-2410M series TDP-643 Plus TDP-643R Plus TTP-342 series TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 158
    SET PARTIAL_CUTTER 1 TEXT 50,50,»3″,0,1,1,»SET PARTIAL_CUTTER 1″ PRINT 3,2 REM ***This program cuts 2 label*** SET PARTIAL_CUTTER 2 TEXT 50,50,»3″,0,1,1,»SET PARTIAL_CUTTER 2″ PRINT 3,2 See Also OFFSET, PRINT, SET CUTTER TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 159: Set Back

    TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series Parameter Description Disable back function. Enable back function. Example REM **SET BACK FUNCTION OFF EXAMPLE PROGRAM** SIZE 3,1 GAP 0,0 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 160
    SET CUTTER 1 SET BACK OFF TEXT 50,50,»3″,0,1,1,»SET BACK OFF» PRINT 3 SET CUTTER 1 SET BACK ON TEXT 50,50,»3″,0,1,1,»SET BACK ON» PRINT 3 See Also OFFSET, PRINT, SET CUTTER TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 161: Set Key1, Set Key2, Set Key3

    FEED DOWN SELECT TTP-644M series MENU PAUSE FEED DOWN SELECT M23 series FEED LEFT RIGHT *For TTP-246M Plus and TTP-344M Plus, there are 6 buttons on the control panel. TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 162
    TEXT 100,10,»3″,0,1,1,»KEY3 (FEED key) is pressed!!» TEXT 100,60,»3″,0,1,1,»End of test» PRINT 1,1 SET KEY1 ON SET KEY2 ON SET KEY3 ON ENDIF GOTO START DEMO See Also OFFEST, PRINT TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 163: Set Led1, Set Led2, Set Led3

    TTP-342M Plus series POWER ONLINE ERROR TTP-343 series GREEN GREEN ORANGE TTP-343C series GREEN GREEN ORANGE TTP-344M series POWER ONLINE ERROR TTP-346M series POWER ONLINE ERROR TTP-384M series POWER ONLINE ERROR TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 164
    FOR I=1 TO 100 LED1=0 LED2=0 LED3=0 IF I-INT(I/2)*2=0 THEN LED1=1 ELSEIF I-INT(I/3)*3=0 THEN LED2=1 ELSE LED3=1 ENDIF NEXT LED1=1 LED2=1 LED3=0 SET LED1 ON SET LED2 ON SET LED3 ON DEMO4 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 165: Set Peel

    REM ***SELF-PEELING FUNCTION ON*** SIZE 4,4 GAP 0,0 DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL ON TEXT 50,100,»3″,0,1,1,»SELF-PEELING FUNCTION TEST» PRINT 5 See Also OFFEST, PRINT TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 166: Set Tear & Set Striper

    TTP-2410M series TDP-643 Plus series TDP-643R Plus series TTP-342 series TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 167
    DENSITY 8 SPEED 4 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF SET TEAR ON TEXT 50,100,»3″,0,1,1,»TEAR FUNCTION TEST» PRINT 1 See Also SET PEEL, SET CUTTER TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 168: Set Gap

    TTP-244CE series 0~31 TTP-244ME series 0~15 ON/OFF TTP-244ME Plus series 0~255 ON/OFF TTP-245/343 series 0~63 0~63 TTP-245 Plus/343 Plus series 0~15 0~15 TTP-245C/343C series 0~31 TDP-245 series 0~63 0~63 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 169
    If not, adjust the setting to a larger number. When adjusting this setting, begin from 0 and then on to higher values incrementally. See Also TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 170
    SIZE, GAP, BLINE TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 171: Set Head

    TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series Example SET HEAD ON SET HEAD OFF TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 172: Set Ribbon

    REM ***Direct printing**** SIZE 4,4 GAP 0,0 DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF SET RIBBON OFF BARCODE 100,100,»39″,48,1,0,2,5,»CODE 39″ PRINT 1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 173: Set Com1

    C:\>COPY CON LPT1<ENTER> SET COM1 19,N,8,1<ENTER> <CTRL><Z><ENTER> C:\> Note: <ENTER> stands for PC keyboard “ENTER” key. <CTRL><Z> means to hold keyboard “CTRL” key then press the PC keyboard <Z> key. TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 174: Set Printkey

    TTP-248M series TTP-2410M series TDP-643 Plus TDP-643R Plus TTP-342 series TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 175
    2.) Press FEED key Label 2~6 Syntax Receive “PRINT –1,n” Print Out 1.) PRINT -1,2 Label 1, Label 1 SET PRINTKEY 5 2.) Press FEED key Label 1, Label 1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 176: Set Reprint

    TDP-643R Plus TTP-342 series TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series Example SET REPRINT ON TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 177: Peel

    TEXT 10,10,»3″,0,1,1,»PEEL Function Test!! » PRINT 1,1 LED1=0 IF PEEL=1 THEN LED3=1 GOTO B ELSE TEXT 10,10,»3″,0,1,1,»The label is removed from the PEEL sensor!!» PRINT 1,1 GOTO START ENDIF DEMO TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 178
    TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 179: Led1, Led2, Led3

    GREEN ORANGE TTP-343C series GREEN GREEN ORANGE TTP-344M series POWER ONLINE ERROR TTP-346M series POWER ONLINE ERROR TTP-384M series POWER ONLINE ERROR TTP-644M series POWER ONLINE ERROR M23 series TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 180
    SIZE 3,3 GAP 0.12,0 SPEED 4 DENSITY 8 DIRECTION 1 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF SET LED1 OFF SET LED2 OFF SET LED3 OFF LED1=0 LED2=1 LED3=0 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 181: Key1, Key2, Key3

    * For TTP-246M Plus and TTP-344M Plus, there are 6 button on the control panel. Syntax KEYm = n Return Value KEY1 (MENU) 0: released 1: pressed KEY2 (PAUDE) 0: released 1: pressed KEY3 (FEED) 0: released 1: pressed TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 182
    DENSITY 8 DIRECTION 1 REFERENCE 0,0 SET LED1 OFF SET KEY1 OFF LED1=0 :START IF KEY1=1 THEN LED1=1 TEXT 100,10,»3″,0,1,1,»KEY FUNCTION TEST» PRINT 1,1 ELSE LED1=0 ENDIF GOTO START DEMO TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 183: Printer Global Variables

    ENDIF TEXT 10,250,»3″,0,1,1,»*****Statement 1*****» A=LABEL IF A>1000 THEN TEXT 10,300,»3″,0,1,1,»A>1000″ ELSE TEXT 10,300,»3″,0,1,1,»A<1000″ ENDIF TEXT 10,350,»3″,0,1,1,»*****Statement 3*****» A$=STR$(LABEL) IF VAL(A$)>1000 THEN TEXT 10,400,»3″,0,1,1,»VAL(A$)>1000″ ELSE TEXT 10,400,»3″,0,1,1,»VAL(A$)<1000″ ENDIF PRINT 1,1 TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 184
    TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 185: Year

    SET PEEL OFF REM *****Read YEAR parameter form RTC***** YEAR$=STR$(YEAR) Y=YEAR REM *****Print***** TEXT 10,10,»5″,0,1,1,»YEAR1=»+YEAR$ TEXT 10,110,»5″,0,1,1,»YEAR2=»+STR$(Y) TEXT 10,210,»5″,0,1,1,»YEAR3=»+STR$(YEAR) PRINT 1 DEMO See Also ~!C, MONTH, DATE, DAY, HOUR, MINUTE, SECOND TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 186: Month

    SET PEEL OFF REM *****Read Month parameter form RTC***** MONTH$=STR$(MONTH) M=MONTH REM *****Print***** TEXT 10,10,»5″,0,1,1,»MONTH1=»+MONTH$ TEXT 10,110,»5″,0,1,1,»MONTH2=»+STR$(M) TEXT 10,210,»5″,0,1,1,»MONTH3=»+STR$(MONTH) PRINT 1 DEMO See Also ~!C, MONTH, DATE, DAY, HOUR, MINUTE, SECOND TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 187: Date

    SET PEEL OFF REM *****Read Date parameter form RTC***** DATE$=STR$(DATE) D=DATE REM *****Print***** TEXT 10,10,»5″,0,1,1,»DATE1=»+DATE$ TEXT 10,110,»5″,0,1,1,»DATE2=»+STR$(D) TEXT 10,210,»5″,0,1,1,»DATE3=»+STR$(DATE) PRINT 1 DEMO See Also ~!C, MONTH, DATE, DAY, HOUR, MINUTE, SECOND TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 188: Week

    SET PEEL OFF REM *****Read Week parameter form RTC***** WEEK$=STR$(WEEK) W=WEEK REM *****Print***** TEXT 10,10,»5″,0,1,1,»WEEK1=»+WEEK$ TEXT 10,110,»5″,0,1,1,»WEEK2=»+STR$(W) TEXT 10,210,»5″,0,1,1,»WEEK3=»+STR$(WEEK) PRINT 1 DEMO See Also ~!C, MONTH, DATE, DAY, HOUR, MINUTE, SECOND TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 189: Hour

    SET PEEL OFF REM *****Read Hour parameter form RTC***** HOUR$=STR$(HOUR) H=HOUR REM *****Print***** TEXT 10,10,»5″,0,1,1,»HOUR1=»+HOUR$ TEXT 10,110,»5″,0,1,1,»HOUR2=»+STR$(H) TEXT 10,210,»5″,0,1,1,»HOUR3=»+STR$(HOUR) PRINT 1 DEMO See Also ~!C, MONTH, DATE, DAY, HOUR, MINUTE, SECOND TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 190: Minute

    SET PEEL OFF REM *****Read Minute parameter form RTC***** MINUTE$=STR$(MINUTE) MIN=MINUTE REM *****Print***** TEXT 10,10,»5″,0,1,1,»MINUTE1=»+MINUTE$ TEXT 10,110,»5″,0,1,1,»MINUTE2=»+STR$(MIN) TEXT 10,210,»5″,0,1,1,»MINUTE3=»+STR$(MINUTE) PRINT 1 DEMO See Also ~!C, MONTH, DATE, DAY, HOUR, MINUTE, SECOND TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 191: Second

    SET PEEL OFF REM *****Read Second parameter form RTC***** SECOND$=STR$(SECOND) SEC=SECOND REM *****Print***** TEXT 10,10,»5″,0,1,1,»SECOND1=»+SECOND$ TEXT 10,110,»5″,0,1,1,»SECOND2=»+STR$(SEC) TEXT 10,210,»5″,0,1,1,»SECOND3=»+STR$(SECOND) PRINT 1 DEMO See Also ~!C, MONTH, DATE, DAY, HOUR, MINUTE, SECOND TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 192: Year

    TTP-342 series TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series Example REM *****Set @YEAR***** @YEAR=»05″ TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 193
    DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF TEXT 10,10,»5″,0,1,1,»@YEAR» TEXT 310,10,»5″,0,1,1,@YEAR PRINT 1 See Also ~!C, @MONTH, @DATE, @DAY, @HOUR, @MINUTE, @SECOND TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 194: Month

    TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series Example REM *****Set @MONTH***** @MONTH=»12″ REM *****Print***** TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 195
    DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF TEXT 10,10,»5″,0,1,1,»@MONTH» TEXT 310,10,»5″,0,1,1,@MONTH PRINT 1 See Also ~!C, @YEAR, @DATE, @DAY, @HOUR, @MINUTE, @SECOND TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 196: Date

    TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series Example REM *****Set @DATE***** @DATE=»31″ REM *****Print***** TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 197
    DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF TEXT 10,10,»5″,0,1,1,»@DATE» TEXT 310,10,»5″,0,1,1,@DATE PRINT 1 See Also ~!C, @YEAR, @MONTH, @DAY, @HOUR, @MINUTE, @SECOND TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 198: Day

    TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series Example REM *****Set @DAY***** @DAY=»5″ REM *****Print***** TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 199
    DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF TEXT 10,10,»5″,0,1,1,»@DAY» TEXT 310,10,»5″,0,1,1,@DAY PRINT 1 See Also ~!C, @YEAR, @MONTH, @DATE, @HOUR, @MINUTE, @SECOND TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 200: Hour

    TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series Example REM *****Set @HOUR***** @HOUR=»23″ REM *****Print***** TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 201
    DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF TEXT 10,10,»5″,0,1,1,»@HOUR» TEXT 310,10,»5″,0,1,1,@HOUR PRINT 1 See Also ~!C, @YEAR, @MONTH, @DATE, @DAY, @MINUTE, @SECOND TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 202: Minute

    TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series Example REM *****Set @MINUTE***** @MINUTE=»59″ REM *****Print***** TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 203
    DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF TEXT 10,10,»5″,0,1,1,»@MINUTE» TEXT 310,10,»5″,0,1,1,@MINUTE PRINT 1 See Also ~!C, @YEAR, @MONTH, @DATE, @DAY, @HOUR, @SECOND TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 204: Second

    TTP-342 Plus series TTP-342M series TTP-342M Plus series TTP-343 series TTP-343C series TTP-344M series TTP-346M series TTP-384M series TTP-644M series M23 series Example REM *****Set @SECOND***** @SECOND = «59» REM *****Print***** TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.

  • Page 205
    DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF TEXT 10,10,»5″,0,1,1,»@SECOND» TEXT 310,10,»5″,0,1,1,@SECOND PRINT 1 See Also ~!C, @YEAR, @MONTH, @DATE, @DAY, @HOUR, @MINUTE TSC AUTO ID Technology Co., Ltd. Copyright 2009 All Rights Reserved.
  • Page 206
    9F., No.95, Minquan Rd., Xindian Dist., No.35, Sec. 2, Ligong 1st Rd., Wujie Township, New Taipei City 23141, Taiwan (R.O.C.) Yilan County 26841, Taiwan (R.O.C.) TEL: +886-2-2218-6789 TEL: +886-3-990-6677 FAX: +886-2-2218-5678 FAX: +886-3-990-5577 Web site: www.tscprinters.com E-mail: printer_sales@tscprinters.com TSC Auto ID Technology Co., Ltd. tech_support@tscprinters.com…

Character LCD

No direct access to the Character LCD’s port is needed as the software Selecting the Include ASCII to Number Conversion Routines option adds several API.
Infineon Component Character LCD (CharLCD) V . Software Module Datasheets v EN ?fileId= ac c c d d da d e a d d

Working with Strings in S7-SCL

In a string all characters of the ASCII-Code can be used. A string can even contain The variable „Text2“ will have the default length of 254 characters.
S SCL String Parameterzuweisung e

TMS320C620x/C642x McBSP: UART (Rev. C)

can be configured to receive and transmit data that is understandable to a UART. The ASCII character is expanded into 16-bit UART transmission word. */.

Macro Reference

If the macro is too long use bookmarks to manage and read the code with ease. ASCII. Single character must be enclosed in single … unsigned short c.
Chapter Macro Reference

ZPL Emulation Command Reference

4 серп. 2008 р. Once you have issued an ^LH command the setting is retained until … ¥data = structured ASCII data that defines each character in the font.
Citizen ZPL Command Ref

CS50

ASCII Encoding Standard. In order to represent characters as numbers a character encod- Lowercase letters also have numerical representations in ASCII.
ascii

kecs102.pdf

8 квіт. 2019 р. discovery could have been made.” –Albert Einstein. C 2 … of ASCII and the values 0–128 have the same character as in ASCII.
kecs

115450

TSPL/TSPL2 Programming Language PROGRAMMING MANUAL

TSPL/TSPL2 Programming Language

PROGRAMMING MANUAL

TSC BAR CODE PRINTER SERIES

TSC AUTO ID Technology Co., Ltd. I Copyright 2014 All Rights Reserved.

TABLE OF CONTENTS

How to Read ………………………………………………………………………………………………………………………… VI

Document Conventions…………………………………………………………………………………………………………. VII

Object Position Calculation …………………………………………………………………………………………………… VIII

Printer Model List

………………………………………………………………………………………………………………….. X

Setup and System Commands ………………………………………………………………………………………………….. 1

SIZE ……………………………………………………………………………………………………………………………………. 1

GAP …………………………………………………………………………………………………………………………………… 2

GAPDETECT ………………………………………………………………………………………………………………………… 4

BLINEDETECT ………………………………………………………………………………………………………………………. 5

AUTODETECT ………………………………………………………………………………………………………………………. 6

BLINE …………………………………………………………………………………………………………………………………. 7

OFFSET ………………………………………………………………………………………………………………………………. 8

SPEED ………………………………………………………………………………………………………………………………… 9

DENSITY ……………………………………………………………………………………………………………………………. 11

DIRECTION AND MIRROR IMAGE ………………………………………………………………………………………………. 12

REFERENCE ……………………………………………………………………………………………………………………….. 13

SHIFT ……………………………………………………………………………………………………………………………….. 14

COUNTRY …………………………………………………………………………………………………………………………. 15

CODEPAGE ………………………………………………………………………………………………………………………… 16

CLS …………………………………………………………………………………………………………………………………… 18

FEED ………………………………………………………………………………………………………………………………… 19

BACKFEED & BACKUP …………………………………………………………………………………………………………. 20

FORMFEED ……………………………………………………………………………………………………………………….. 21

HOME ………………………………………………………………………………………………………………………………. 22

PRINT ………………………………………………………………………………………………………………………………. 23

SOUND …………………………………………………………………………………………………………………………….. 24

CUT ………………………………………………………………………………………………………………………………….. 25

LIMITFEED ………………………………………………………………………………………………………………………… 26

SELFTEST ………………………………………………………………………………………………………………………….. 27

EOJ ………………………………………………………………………………………………………………………………….. 29

DELAY ………………………………………………………………………………………………………………………………. 30

DISPLAY ……………………………………………………………………………………………………………………………. 31

INITIALPRINTER …………………………………………………………………………………………………………………. 33

MENU ………………………………………………………………………………………………………………………………. 34

Label Formatting Commands …………………………………………………………………………………………………. 36

BAR ………………………………………………………………………………………………………………………………….. 36

BARCODE ………………………………………………………………………………………………………………………….. 37

TLC39 ………………………………………………………………………………………………………………………………. 43

BITMAP ……………………………………………………………………………………………………………………………. 44

BOX …………………………………………………………………………………………………………………………………. 46

CIRCLE ……………………………………………………………………………………………………………………………… 47

ELLIPSE …………………………………………………………………………………………………………………………….. 48

CODABLOCK F MODE ……………………………………………………………………………………………………………. 49

DMATRIX ………………………………………………………………………………………………………………………….. 50

ERASE ………………………………………………………………………………………………………………………………. 52

MAXICODE ……………………………………………………………………………………………………………………….. 53

PDF417 …………………………………………………………………………………………………………………………….. 55

AZTEC ………………………………………………………………………………………………………………………………. 58

MPDF417 …………………………………………………………………………………………………………………………. 59

PUTBMP …………………………………………………………………………………………………………………………… 60

PUTPCX ……………………………………………………………………………………………………………………………. 62

QRCODE …………………………………………………………………………………………………………………………… 64

RSS ………………………………………………………………………………………………………………………………….. 70

TSC AUTO ID Technology Co., Ltd. II Copyright 2014 All Rights Reserved.

REVERSE …………………………………………………………………………………………………………………………… 74

DIAGONAL ………………………………………………………………………………………………………………………… 75

TEXT ………………………………………………………………………………………………………………………………… 76

BLOCK ………………………………………………………………………………………………………………………………. 80

Status Polling and Immediate Commands ………………………………………………………………………………… 83

!? ………………………………………………………………………………………………………………………………… 83

!C ………………………………………………………………………………………………………………………………… 84

!D ……………………………………………………………………………………………………………………………….. 85

!O ……………………………………………………………………………………………………………………………….. 86

!P ………………………………………………………………………………………………………………………………… 87

!Q ……………………………………………………………………………………………………………………………….. 88

!R ………………………………………………………………………………………………………………………………… 89

!S ………………………………………………………………………………………………………………………………… 90

!F ………………………………………………………………………………………………………………………………… 92

!. …………………………………………………………………………………………………………………………………. 93

~!@ ……………………………………………………………………………………………………………………………………… 94

~!A ………………………………………………………………………………………………………………………………………. 95

~!C ……………………………………………………………………………………………………………………………………….. 96

~!D ………………………………………………………………………………………………………………………………………. 97

~!E ……………………………………………………………………………………………………………………………………….. 98

~!F ……………………………………………………………………………………………………………………………………….. 99

~!I ………………………………………………………………………………………………………………………………………. 100

~!T ……………………………………………………………………………………………………………………………………… 101

Y……………………………………………………………………………………………………………………………….. 102

Z ……………………………………………………………………………………………………………………………….. 103

Message Translation Protocols ……………………………………………………………………………………………… 104

~# ………………………………………………………………………………………………………………………………………. 104

Commands for Windows Driver ……………………………………………………………………………………………. 105

!B……………………………………………………………………………………………………………………………………….. 105

!J ……………………………………………………………………………………………………………………………………….. 106

!N ………………………………………………………………………………………………………………………………………. 107

File Management Commands ………………………………………………………………………………………………. 108

DOWNLOAD ……………………………………………………………………………………………………………………. 108

EOP ………………………………………………………………………………………………………………………………… 111

FILES ………………………………………………………………………………………………………………………………. 112

KILL ………………………………………………………………………………………………………………………………… 113

MOVE …………………………………………………………………………………………………………………………….. 115

RUN ……………………………………………………………………………………………………………………………….. 116

BASIC Commands and Functions …………………………………………………………………………………………… 117

ABS( ) ……………………………………………………………………………………………………………………………… 117

ASC( ) ……………………………………………………………………………………………………………………………… 118

CHR$( ) …………………………………………………………………………………………………………………………… 119

XOR$( ) …………………………………………………………………………………………………………………………… 120

END ……………………………………………………………………………………………………………………………….. 121

EOF( ) ……………………………………………………………………………………………………………………………… 122

OPEN ……………………………………………………………………………………………………………………………… 123

CLOSE …………………………………………………………………………………………………………………………….. 124

WRITE …………………………………………………………………………………………………………………………….. 125

READ ……………………………………………………………………………………………………………………………… 126

SEEK ………………………………………………………………………………………………………………………………. 127

LOF( ) ……………………………………………………………………………………………………………………………… 128

LOC( ) ……………………………………………………………………………………………………………………………… 129

FREAD$( ) ……………………………………………………………………………………………………………………….. 130

PUT ………………………………………………………………………………………………………………………………… 131

GET ………………………………………………………………………………………………………………………………… 132

TSC AUTO ID Technology Co., Ltd. III Copyright 2014 All Rights Reserved.

COPY………………………………………………………………………………………………………………………………. 133

FOR…NEXT LOOP ……………………………………………………………………………………………………………… 134

WHILE…WEND ………………………………………………………………………………………………………………… 135

DO…LOOP ………………………………………………………………………………………………………………………. 136

IF…THEN…ELSE…ENDIF LOOP ………………………………………………………………………………………….. 139

GOSUB…RETURN……………………………………………………………………………………………………………… 142

GOTO ……………………………………………………………………………………………………………………………… 143

INP$( ) ……………………………………………………………………………………………………………………………. 144

INP( ) ……………………………………………………………………………………………………………………………… 145

LOB( ) ……………………………………………………………………………………………………………………………… 146

INPUT …………………………………………………………………………………………………………………………….. 147

PREINPUT ……………………………………………………………………………………………………………………….. 148

POSTINPUT ……………………………………………………………………………………………………………………… 149

SET FILTER ON/OFF …………………………………………………………………………………………………………… 150

REM ……………………………………………………………………………………………………………………………….. 151

OUT ……………………………………………………………………………………………………………………………….. 152

OUTR ……………………………………………………………………………………………………………………………… 153

GETKEY( ) ………………………………………………………………………………………………………………………… 154

INT( ) ………………………………………………………………………………………………………………………………. 155

LEFT$( ) …………………………………………………………………………………………………………………………… 156

LEN( ) ……………………………………………………………………………………………………………………………… 157

MID$( ) …………………………………………………………………………………………………………………………… 158

RIGHT$( ) ………………………………………………………………………………………………………………………… 159

STR$( ) ……………………………………………………………………………………………………………………………. 160

TSPL/TSPL2 Programming Language

PROGRAMMING MANUAL

TSC BAR CODE PRINTER SERIES

TSC AUTO ID Technology Co., Ltd. I Copyright 2014 All Rights Reserved.

TABLE OF CONTENTS

How to Read ………………………………………………………………………………………………………………………… VI

Document Conventions…………………………………………………………………………………………………………. VII

Object Position Calculation …………………………………………………………………………………………………… VIII

Printer Model List

………………………………………………………………………………………………………………….. X

Setup and System Commands ………………………………………………………………………………………………….. 1

SIZE ……………………………………………………………………………………………………………………………………. 1

GAP …………………………………………………………………………………………………………………………………… 2

GAPDETECT ………………………………………………………………………………………………………………………… 4

BLINEDETECT ………………………………………………………………………………………………………………………. 5

AUTODETECT ………………………………………………………………………………………………………………………. 6

BLINE …………………………………………………………………………………………………………………………………. 7

OFFSET ………………………………………………………………………………………………………………………………. 8

SPEED ………………………………………………………………………………………………………………………………… 9

DENSITY ……………………………………………………………………………………………………………………………. 11

DIRECTION AND MIRROR IMAGE ………………………………………………………………………………………………. 12

REFERENCE ……………………………………………………………………………………………………………………….. 13

SHIFT ……………………………………………………………………………………………………………………………….. 14

COUNTRY …………………………………………………………………………………………………………………………. 15

CODEPAGE ………………………………………………………………………………………………………………………… 16

CLS …………………………………………………………………………………………………………………………………… 18

FEED ………………………………………………………………………………………………………………………………… 19

BACKFEED & BACKUP …………………………………………………………………………………………………………. 20

FORMFEED ……………………………………………………………………………………………………………………….. 21

HOME ………………………………………………………………………………………………………………………………. 22

PRINT ………………………………………………………………………………………………………………………………. 23

SOUND …………………………………………………………………………………………………………………………….. 24

CUT ………………………………………………………………………………………………………………………………….. 25

LIMITFEED ………………………………………………………………………………………………………………………… 26

SELFTEST ………………………………………………………………………………………………………………………….. 27

EOJ ………………………………………………………………………………………………………………………………….. 29

DELAY ………………………………………………………………………………………………………………………………. 30

DISPLAY ……………………………………………………………………………………………………………………………. 31

INITIALPRINTER …………………………………………………………………………………………………………………. 33

MENU ………………………………………………………………………………………………………………………………. 34

Label Formatting Commands …………………………………………………………………………………………………. 36

BAR ………………………………………………………………………………………………………………………………….. 36

BARCODE ………………………………………………………………………………………………………………………….. 37

TLC39 ………………………………………………………………………………………………………………………………. 43

BITMAP ……………………………………………………………………………………………………………………………. 44

BOX …………………………………………………………………………………………………………………………………. 46

CIRCLE ……………………………………………………………………………………………………………………………… 47

ELLIPSE …………………………………………………………………………………………………………………………….. 48

CODABLOCK F MODE ……………………………………………………………………………………………………………. 49

DMATRIX ………………………………………………………………………………………………………………………….. 50

ERASE ………………………………………………………………………………………………………………………………. 52

MAXICODE ……………………………………………………………………………………………………………………….. 53

PDF417 …………………………………………………………………………………………………………………………….. 55

AZTEC ………………………………………………………………………………………………………………………………. 58

MPDF417 …………………………………………………………………………………………………………………………. 59

PUTBMP …………………………………………………………………………………………………………………………… 60

PUTPCX ……………………………………………………………………………………………………………………………. 62

QRCODE …………………………………………………………………………………………………………………………… 64

RSS ………………………………………………………………………………………………………………………………….. 70

TSC AUTO ID Technology Co., Ltd. II Copyright 2014 All Rights Reserved.

REVERSE …………………………………………………………………………………………………………………………… 74

DIAGONAL ………………………………………………………………………………………………………………………… 75

TEXT ………………………………………………………………………………………………………………………………… 76

BLOCK ………………………………………………………………………………………………………………………………. 80

Status Polling and Immediate Commands ………………………………………………………………………………… 83

!? ………………………………………………………………………………………………………………………………… 83

!C ………………………………………………………………………………………………………………………………… 84

!D ……………………………………………………………………………………………………………………………….. 85

!O ……………………………………………………………………………………………………………………………….. 86

!P ………………………………………………………………………………………………………………………………… 87

!Q ……………………………………………………………………………………………………………………………….. 88

!R ………………………………………………………………………………………………………………………………… 89

!S ………………………………………………………………………………………………………………………………… 90

!F ………………………………………………………………………………………………………………………………… 92

!. …………………………………………………………………………………………………………………………………. 93

~!@ ……………………………………………………………………………………………………………………………………… 94

~!A ………………………………………………………………………………………………………………………………………. 95

~!C ……………………………………………………………………………………………………………………………………….. 96

~!D ………………………………………………………………………………………………………………………………………. 97

~!E ……………………………………………………………………………………………………………………………………….. 98

~!F ……………………………………………………………………………………………………………………………………….. 99

~!I ………………………………………………………………………………………………………………………………………. 100

~!T ……………………………………………………………………………………………………………………………………… 101

Y……………………………………………………………………………………………………………………………….. 102

Z ……………………………………………………………………………………………………………………………….. 103

Message Translation Protocols ……………………………………………………………………………………………… 104

~# ………………………………………………………………………………………………………………………………………. 104

Commands for Windows Driver ……………………………………………………………………………………………. 105

!B……………………………………………………………………………………………………………………………………….. 105

!J ……………………………………………………………………………………………………………………………………….. 106

!N ………………………………………………………………………………………………………………………………………. 107

File Management Commands ………………………………………………………………………………………………. 108

DOWNLOAD ……………………………………………………………………………………………………………………. 108

EOP ………………………………………………………………………………………………………………………………… 111

FILES ………………………………………………………………………………………………………………………………. 112

KILL ………………………………………………………………………………………………………………………………… 113

MOVE …………………………………………………………………………………………………………………………….. 115

RUN ……………………………………………………………………………………………………………………………….. 116

BASIC Commands and Functions …………………………………………………………………………………………… 117

ABS( ) ……………………………………………………………………………………………………………………………… 117

ASC( ) ……………………………………………………………………………………………………………………………… 118

CHR$( ) …………………………………………………………………………………………………………………………… 119

XOR$( ) …………………………………………………………………………………………………………………………… 120

END ……………………………………………………………………………………………………………………………….. 121

EOF( ) ……………………………………………………………………………………………………………………………… 122

OPEN ……………………………………………………………………………………………………………………………… 123

CLOSE …………………………………………………………………………………………………………………………….. 124

WRITE …………………………………………………………………………………………………………………………….. 125

READ ……………………………………………………………………………………………………………………………… 126

SEEK ………………………………………………………………………………………………………………………………. 127

LOF( ) ……………………………………………………………………………………………………………………………… 128

LOC( ) ……………………………………………………………………………………………………………………………… 129

FREAD$( ) ……………………………………………………………………………………………………………………….. 130

PUT ………………………………………………………………………………………………………………………………… 131

GET ………………………………………………………………………………………………………………………………… 132

TSC AUTO ID Technology Co., Ltd. III Copyright 2014 All Rights Reserved.

COPY………………………………………………………………………………………………………………………………. 133

FOR…NEXT LOOP ……………………………………………………………………………………………………………… 134

WHILE…WEND ………………………………………………………………………………………………………………… 135

DO…LOOP ………………………………………………………………………………………………………………………. 136

IF…THEN…ELSE…ENDIF LOOP ………………………………………………………………………………………….. 139

GOSUB…RETURN……………………………………………………………………………………………………………… 142

GOTO ……………………………………………………………………………………………………………………………… 143

INP$( ) ……………………………………………………………………………………………………………………………. 144

INP( ) ……………………………………………………………………………………………………………………………… 145

LOB( ) ……………………………………………………………………………………………………………………………… 146

INPUT …………………………………………………………………………………………………………………………….. 147

PREINPUT ……………………………………………………………………………………………………………………….. 148

POSTINPUT ……………………………………………………………………………………………………………………… 149

SET FILTER ON/OFF …………………………………………………………………………………………………………… 150

REM ……………………………………………………………………………………………………………………………….. 151

OUT ……………………………………………………………………………………………………………………………….. 152

OUTR ……………………………………………………………………………………………………………………………… 153

GETKEY( ) ………………………………………………………………………………………………………………………… 154

INT( ) ………………………………………………………………………………………………………………………………. 155

LEFT$( ) …………………………………………………………………………………………………………………………… 156

LEN( ) ……………………………………………………………………………………………………………………………… 157

MID$( ) …………………………………………………………………………………………………………………………… 158

RIGHT$( ) ………………………………………………………………………………………………………………………… 159

STR$( ) ……………………………………………………………………………………………………………………………. 160

<strong>TSPL</strong>/<strong>TSPL</strong>2 Programming Language <strong>TSC</strong> BAR CODE PRINTER SERIES PROGRAMMING MANUAL

  • Page 2 and 3: Update History Date Content Editor
  • Page 4 and 5: ~!C ………………………….
  • Page 6 and 7: Document Conventions This manual us
  • Page 8 and 9: Label origin (0,0) Y X X=7mm Y=3mm
  • Page 10 and 11: TSC AUTO ID Technology Co., Ltd. VI
  • Page 12 and 13: TTP-343 series X TTP-343C series X
  • Page 14 and 15: Special gap English system (inch) G
  • Page 16 and 17: BLINEDETECT Description This comman
  • Page 18 and 19: BLINE Description This command sets
  • Page 20 and 21: OFFSET Description This command def
  • Page 22 and 23: DENSITY TSC AUTO ID Technology Co.,
  • Page 24 and 25: DIRECTION and Mirror Image Descript
  • Page 26 and 27: REFERENCE Description This command
  • Page 28 and 29: Example SIZE 4,2.5 GAP 2 mm,0 DIREC
  • Page 30 and 31: CODEPAGE Description This command d
  • Page 32 and 33: CLS Description This command clears
  • Page 34 and 35: BACKFEED & BACKUP Description This
  • Page 36 and 37: FORMFEED Description This command f
  • Page 38 and 39: Example SIZE 4,2.5 GAP 2 mm,0 SPEED
  • Page 40 and 41: SOUND Description This command cont
  • Page 42 and 43: LIMITFEED Description If the gap se
  • Page 44 and 45: Label Formatting Commands BAR Desc
  • Page 46 and 47: Syntax BARCODE X, Y, “code type
  • Page 48 and 49: UPCE+2 8x — — — — UPCE+5 8x — — — —
  • Page 50 and 51: BITMAP Description This command dra
  • Page 52 and 53:

    BOX Description This command draws

  • Page 54 and 55:

    DMATRIX Description This command is

  • Page 56 and 57:

    MAXICODE Description This command d

  • Page 58 and 59:

    PDF417 Description This command def

  • Page 60 and 61:

    REM *****OPTION:E4 W4 H4 R40 C3****

  • Page 62 and 63:

    Truncation:1: T1 Expression length:

  • Page 64 and 65:

    AZTEC 200,10,0,4,»ABCDEFGHIJKLMNOPQ

  • Page 66 and 67:

    Example See Also DOWNLOAD, BITMAP,

  • Page 68 and 69:

    Example See Also DOWNLOAD, BITMAP,

  • Page 70 and 71:

    2). Alphanumeric data: 707 characte

  • Page 72 and 73:

    ABC abc» QRCODE 310,310,H,4,A,0,»

  • Page 74 and 75:

    RSS Description This command is use

  • Page 76 and 77:

    RSS 410,10,»UPCE»,0,2,2,»0012200004

  • Page 78 and 79:

    REVERSE Description This command re

  • Page 80 and 81:

    x-multiplication and y-multiplicati

  • Page 82 and 83:

    !R Description This command resets

  • Page 84 and 85:

    ~!A Description This command inquir

  • Page 86 and 87:

    ~!D Description This command enters

  • Page 88 and 89:

    ~!I Description The command inquire

  • Page 90 and 91:

    Example ~!T See Also ~!I, ~!F M23 M

  • Page 92 and 93:

    Commands for Windows Driver !B Des

  • Page 94 and 95:

    !N Description This command prints

  • Page 96 and 97:

    TDP-643 Plus 50 50 — TDP-643R Plus

  • Page 98 and 99:

    TTP-245 series X X X X TTP-245C ser

  • Page 100 and 101:

    EOP Description End of program. To

  • Page 102 and 103:

    KILL Description This command delet

  • Page 104 and 105:

    MOVE Description This command moves

  • Page 106 and 107:

    See Also DOWNLOAD, EOP TSC AUTO ID

  • Page 108 and 109:

    ASC( ) Description This function re

  • Page 110 and 111:

    END Description This command states

  • Page 112 and 113:

    See Also DOWNLOAD, EOP, OPEN, READ,

  • Page 114 and 115:

    C:\>COPY DATA/B LPT1 If a file by t

  • Page 116 and 117:

    WRITE Description This command writ

  • Page 118 and 119:

    PRINT 1 Y=100 IF I

  • Page 120 and 121:

    LOF( ) Description This function re

  • Page 122 and 123:

    FOR…NEXT LOOP Description Loop is

  • Page 124 and 125:

    IF…THEN…ELSE…ENDIF LOOP Descr

  • Page 126 and 127:

    J=0 K=0 L=0 FOR I=1 TO 100 IF I-INT

  • Page 128 and 129:

    GOSUB…RETURN Description This com

  • Page 130 and 131:

    See Also DOWNLOAD, EOP, END, GOSUB

  • Page 132 and 133:

    INPUT Description This command rece

  • Page 134 and 135:

    OUT Description This command sends

  • Page 136 and 137:

    See Also DOWNLOAD, EOP, END, GOTO T

  • Page 138 and 139:

    LEFT$( ) Description This function

  • Page 140 and 141:

    MID$( ) Description This function r

  • Page 142 and 143:

    STR$( ) Description This function c

  • Page 144 and 145:

    INSTR ( ) Description Returns an in

  • Page 146 and 147:

    LTRIM$( ) Description Removes leadi

  • Page 148 and 149:

    VAL( ) Description This function co

  • Page 150 and 151:

    NOW$( ) Description Returns the cur

  • Page 152 and 153:

    \ Display the next character in the

  • Page 154 and 155:

    Device Reconfiguration Commands SE

  • Page 156 and 157:

    TSC AUTO ID Technology Co., Ltd. 14

  • Page 158 and 159:

    Example REM **SET PARTIAL_CUTTER FU

  • Page 160 and 161:

    DENSITY 8 SPEED 6 DIRECTION 1 REFER

  • Page 162 and 163:

    Example DOWNLOAD «DEMO.BAS» SIZE 3,

  • Page 164 and 165:

    TTP-644M series POWER ONLINE ERROR

  • Page 166 and 167:

    SET TEAR & SET STRIPER Description

  • Page 168 and 169:

    SET GAP Description This setting se

  • Page 170 and 171:

    SIZE, GAP, BLINE TSC AUTO ID Techno

  • Page 172 and 173:

    SET RIBBON Description This setting

  • Page 174 and 175:

    SET PRINTKEY Description This comma

  • Page 176 and 177:

    SET REPRINT Description This comman

  • Page 178 and 179:

    TSC AUTO ID Technology Co., Ltd. 16

  • Page 180 and 181:

    Note: For TTP-245/343/TDP-245 serie

  • Page 182 and 183:

    Example DOWNLOAD «DEMO.BAS» SIZE 3,

  • Page 184 and 185:

    TSC AUTO ID Technology Co., Ltd. 17

  • Page 186 and 187:

    MONTH Description This variable rea

  • Page 188 and 189:

    WEEK Description This variable read

  • Page 190 and 191:

    MINUTE Description This variable re

  • Page 192 and 193:

    @YEAR Description This variable rea

  • Page 194 and 195:

    @MONTH Description This variable re

  • Page 196 and 197:

    @DATE Description This variable rea

  • Page 198 and 199:

    @DAY Description This variable read

  • Page 200 and 201:

    @HOUR Description This variable rea

  • Page 202 and 203:

    @MINUTE Description This variable r

  • Page 204 and 205:

    @SECOND Description This variable r

  • Page 206:

    TSC Auto ID Technology Co., Ltd. Co

Как печатать этикетки с помощью TSPL и JavaScript

26 мая 2022 г.

Принтеры этикеток могут поддерживать такие языки программирования, как TSPL, ZPL, EPL и т. д. Сегодня мы рассмотрим язык TSPL. Мы можем создавать метки, используя команды TSPL, такие как «TEXT», «BARCODE» и «QRCODE». Например, если мы хотим напечатать этикетку с текстом и штрих-кодом, мы используем эти команды с их свойствами, такими как положение или размер, и отправляем эти команды на принтер этикеток через Bluetooth или последовательное соединение.

С левой стороны вы можете видеть команды TSPL и напечатанную этикетку с правой стороны. Вы можете найти все доступные команды [здесь] (http://www.kroyeuropedownload.com/English_User_Manuals/TSPL_TSPL2_Programming_Jan_2017.pdf), но давайте рассмотрим некоторые из них, чтобы понять, как использовать TSPL.

Координаты и размер в точках

Будь то ТЕКСТ, ШТРИХ-КОД или БИТМАП, как правило, координаты и размер указываются точками. Количество точек на дюйм зависит от разрешения принтера.

Например, если принтер

  • 203 DPI → означает, что в одном дюйме 203 точки, или в 1 мм 8 точек.

  • 300 точек на дюйм → означает, что на один дюйм приходится 300 точек, или на 1 мм приходится 11,8 точек.

В соответствии с этим, если мы хотим добавить штрих-код высотой 10 мм, а принтер имеет разрешение 203 DPI, то мы должны установить высоту 80 (10 мм x 8 = 80 точек).

Размер и зазор этикетки

Нам нужно сообщить принтеру размер этикетки следующим образом:

РАЗМЕР 4,1

Здесь мы сказали, что размер этикетки 4×1 дюйм.

Мы также можем установить его в метрической системе (мм):

РАЗМЕР 50 мм,25 мм

Мы можем установить зазор, который представляет собой расстояние между метками (GAP m,n).

РАЗРЫВ 0,0

Здесь зазор равен нулю дюймов, что означает, что это непрерывная этикетка.

Текст

Мы можем использовать команду TEXT для печати текста на этикетке. Мы можем указать положение, размер шрифта, поворот и так далее:

ТЕКСТ x,y,"шрифт",поворот,x-умножение,y-умножение,[выравнивание,] "содержимое"

| Параметр | Описание |

| х, у | x и y-координата |

| шрифт | Как правило, мы можем установить 1-8 (1-маленький, 2-больше… 8-самый большой) |

| вращение | 0, 90, 180, 270 по часовой стрелке |

| x и y-умножение | Масштабный коэффициент 1-10 |

| выравнивание | 1-левый, 2-центральный, 3-правый (опционально) |

| содержание | Текстовое содержимое |

| Примеры команд | Результат |

| ТЕКСТ 10,20,"1",0,1,1,"ШРИФТ 1"
ТЕКСТ 10,70,"2",0,1,1,"ШРИФТ 2"
ТЕКСТ 10,120,"3",0,1,1,0,"ШРИФТ 3" | |

Штрих-код

Мы можем добавить штрих-код на этикетку с помощью команды BARCODE:

ШТРИХКОД X,Y,”тип кода”,высота,удобочитаемый,поворот,узкий,широкий,[выравнивание,]”содержимое”

| Параметр | Описание |

| х, у | x и y-координата |

| тип кода | 128, EAN128, EAN13… |

| высота | Высота в точках |

| удобочитаемый | 0 — значение штрих-кода (текст) не видно
1 — текст выравнивается по левому краю
2 — выравнивается по центру
3 — выравнивается по правому краю |

| вращение | 0, 90, 180, 270 по часовой стрелке |

| узкий | Ширина узкого элемента в точках |

| широкий | Ширина широкого элемента в точках |

| выравнивание | 1-левый, 2-центральный, 3-правый (опционально) |

| содержание | Содержание штрих-кода |

Примеры команд:

ТЕКСТ 10,10, "2",0,1,1, "Человекочитаемое выравнивание"
ШТРИХКОД 10,50, "128",100,1,0,2,2,"левый" < br> ШТРИХКОД 310,50, "128",100,2,0,2,2,"центр"
ШТРИХКОД 610,50, "128",100,3,0,2,2," правильно"

Результат:

Команды PRINT и END

После создания этикетки нам нужно сообщить принтеру, что этикетка готова к печати. Для этого мы используем команду PRINT m[,n]:

| Команды | Описание |

| РАЗМЕР 50 мм,25 мм
CLS
ТЕКСТ 10,10, "2",0,1,1, "Текст 1"
ПЕЧАТЬ 1

> CLS
TEXT 10,10, "2",0,1,1, "Text 2"
PRINT 2
END | — Установить размер этикетки
— Очистить буфер
— Добавить текст
— Напечатать буфер дважды

— Очистить буфер
— Добавить текст
— Печать буфер один раз
— Конец программы |

Он печатает три этикетки; одна этикетка с «Текст 1» и две этикетки с «Текст 2».

Мы добавляем команду END в конце, чтобы сообщить принтеру, что мы закончили печать. Без этой команды принтер может не напечатать последнее изображение в буфере.

Печать с помощью JavaScript (Node.js)

Сгенерированные команды можно отправлять на принтер через последовательный порт или Bluetooth. Чтобы продемонстрировать это, я создал простой код, используя Node.js. Я использовал пакет «usb» для подключения и отправки команд (в Windows вам может потребоваться установить драйвер, чтобы узнать больше, посетите страницу пакета ).

«`javascript

const usb = требуется (‘usb’);

константа cmds = [

‘РАЗМЕР 48 мм, 25 мм’,

‘КЛС’,

‘ТЕКСТ 10,10,»4″,0,1,1,»HackerNoon»‘,

‘ШТРИХ-КОД 10,60,»128″,90,1,0,2,2,»altospos.com»‘,

‘ПЕЧАТЬ 1’,

‘КОНЕЦ’,

// вы можете получить все доступные устройства с помощью usb.getDeviceList()

let device = usb.findByIds(/vid/8137, /pid/8214);

устройство.открыть();

устройство.интерфейсы[0].claim();

const outEndpoint = device.interfaces[0].endpoints.find(e => e.direction === ‘out’);

outEndpoint.transferType = 2;

outEndpoint.transfer(Buffer.from(cmds.join(‘\r
‘)), (ошибка) => {

устройство.закрыть();

И результат:

Мне пришлось по крупицам собирать информацию о печати этикеток, когда я реализовывал эту функцию в проекте Alto’s POS & Inventory. Поэтому я написал эту статью в надежде, что она станет отправной точкой для кого-то в похожей ситуации.

Не было войны! ✋🏽


Оригинал

1 TSPL/TSPL2 Programming Language TAIWAN SEMICONDUCTOR BAR CODE PRINTER SERIES PROGRAMMING MANUAL

2

3 TABLE OF CONTENTS Document Conventions… I Setup and System Commands… 1 SIZE… 1 GAP… 3 BLINE… 5 OFFSET… 7 SPEED… 8 DENSITY… 9 DIRECTION and Mirror Image REFERENCE SHIFT COUNTRY CODEPAGE FEED BACKFEED & BACKUP FORMFEED HOME PRINT SOUND CUT LIMITFEED SELFTEST Label Formatting Commands BAR BARCODE BITMAP BO DMATRI ERASE MAICODE PDF PUTBMP PUTPC QRCODE REVERSE TET Status Polling Commands (RS-232) <ESC>!? <ESC>!R ~!@ ~!A ~!C ~!D ~!F… 65

4 ~!I…66 ~!T Message Translation Protocols ~# Commands for Windows Driver… 69!B… 69!J…70!N File Management Commands DOWNLOAD EOP FILES KILL MOVE RUN BASIC Commands and Functions ABS( ) ASC( ) CHR$( ) END EOF( ) OPEN READ SEEK LOF( ) FREAD$( ) FOR NET IF THEN ELSE ENDIF GOSUB RETURN GOTO INP$( ) INPUT REM OUT GETKEY( ) INT( ) LEFT$( ) LEN( ) MID$( ) RIGHT$( ) STR$( ) VAL( ) BEEP Device Reconfiguration Commands SET COUNTER SET CUTTER SET PARTIAL_CUTTER SET BACK SET KEY1, SET KEY2, SET KEY SET LED1, SET LED2, SET LED

5 SET PEEL SET TEAR & SET STRIP SET GAP SET HEAD SET RIBBON SET COM SET PRINTKEY SET REPRINT PEEL LED1, LED2, LED KEY1, KEY2, KEY Printer Global Variables YEAR MONTH DATE WEEK HOUR MINUTE SECOND

6 Document Conventions This manual uses the following typographic conventions. Convention [expression list] <ESC> Items inside square brackets are optional, expression maximum length 2*1024 bytes; ESCAPE (ASCII 27), control code of status polling command, which returns the printer status immediately, no matter the printer is ready or not. ~ (ASCII 126), control code of status polling command, which 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) is placed at the end of command line. NULL (ASCII 0) is not supported in the expression, except the 2D bar code commands. Note: 200 DPI: 1 mm = 8 dots Arial font in bold and italic type is used for note. TAIWAN SEMICONDUCTOR CO., LTD. I Copyright 2006 All Rights Reserved.

7 Setup and System Commands SIZE This command defines the label width and length. (1) English system (inch) SIZE m, n (2) Metric system (mm) SIZE m mm, n mm Parameter m n Label width (inch or mm) Label length (inch or mm) Note: 200 DPI: 1 mm = 8 dots 300 DPI: 1mm = 12 dots For metric system, there must be a space between parameter and mm. Max. width 72mm 104mm 106mm 108mm TTP-243 TTP-243E TTP-243 Plus TTP-243E Plus TTP-244ME TTP-244ME Plus TTP-244 TTP-245 TDP-245 TTP-245G TDP-245G TTP-246M TTP-246G TTP-248M TTP-342 TTP-342 Plus TTP-342M TTP-342M Plus TTP-343 TTP-344M TTP-346M TDP-643 Plus TDP-643R Plus TTP-2410M TAIWAN SEMICONDUCTOR CO., LTD. 1 Copyright 2006 All Rights Reserved.

8 M23 (1) English system (inch) SIZE 3.5, 3.00 (2) Metric system (mm) SIZE 100 mm, 100 mm See Also GAP, BLINE TAIWAN SEMICONDUCTOR CO., LTD. 2 Copyright 2006 All Rights Reserved.

9 GAP Define the gap distance between two labels (1). English system (inch) GAP m, n (2) Metric system (mm) GAP m mm, n mm Parameter 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: For metric system, 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. Ex: In DOS mode, C:\>copy con lpt1 <Enter> GAP 2 mm,0 <Enter> <Ctrl>+<Z> <Enter> Normal gap (1). English system (inch) GAP 0.12,0 (2) Metric system (mm) GAP 3 mm,0 (3). Continuous label GAP 0,0 TAIWAN SEMICONDUCTOR CO., LTD. 3 Copyright 2006 All Rights Reserved.

10 Special gap (1). English system (inch) GAP 0.30, 0.10 (2). Metric system (mm) GAP 7.62 mm, 2.54 mm See Also SIZE, BLINE TAIWAN SEMICONDUCTOR CO., LTD. 4 Copyright 2006 All Rights Reserved.

11 BLINE This command is used to set the height of the black line and the user-defined extra label feeding length each form feed takes. (1) English system (inch) BLINE m, n (2) Metric system (mm) BLINE m mm, n mm Parameter 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. Ex: In DOS mode, C:\>copy con lpt1 <Enter> BLINE 2 mm,0 <Enter> <Ctrl>+<Z> <Enter> (1) English system (inch) BLINE 0.20,0.50 (2) Metric system (mm) BLINE 5.08 mm,12.7 mm TAIWAN SEMICONDUCTOR CO., LTD. 5 Copyright 2006 All Rights Reserved.

12 See Also SIZE, GAP TAIWAN SEMICONDUCTOR CO., LTD. 6 Copyright 2006 All Rights Reserved.

13 OFFSET 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 backtracks the extra feeding length before the next run of printing. (1) English system (inch) OFFSET m (2) Metric system (mm) OFFSET m mm Parameter m The offset distance (inch or mm) -1 m 1(inch) CAUTION: Impropriety offset value may cause paper jam. (1) English system (inch) OFFSET 0.5 (2) Metric system (mm) OFFSET 12.7 mm See Also SIZE, GAP, SET PEEL, SET CUTTER TAIWAN SEMICONDUCTOR CO., LTD. 7 Copyright 2006 All Rights Reserved.

14 SPEED This command defines the print speed. SPEED n Parameter n printing speed in inch per second Model \ ips TTP-243 x x x TTP-243E x x x TTP-243 Plus x x x TTP-243E Plus x x x TTP-244ME x x x x TTP-244ME Plus x x x x TTP-342 x x x TTP-342 Plus x x x TTP-342M x x x TTP-342M Plus x x x TDP-643 Plus x x x TDP-643R Plus x x x TTP-2410M x x x x TTP-346M x x x TTP-248M x x x x TTP-246M x x x x x TTP-246G x x x x x TTP-344M x x x TTP-245 x x x x TDP-245 x x x x TTP-245G x x x x TDP-245G x x x x TTP-343 x x TTP-244 x x x M23 x x x x x SPEED 10 See Also DENSITY TAIWAN SEMICONDUCTOR CO., LTD. 8 Copyright 2006 All Rights Reserved.

15 DENSITY This command designates the level of darkness of printing. DENSITY n Parameter n 0~15 0, specifies the lightest level 15, specifies the darkest level DENSITY 7 See Also DENSITY TAIWAN SEMICONDUCTOR CO., LTD. 9 Copyright 2006 All Rights Reserved.

16 DIRECTION and Mirror Image This command defines the printout direction and mirror image. And this will be memorized in EEPROM. DIRECTION n[,m] Parameter n m 0 or 1. Please refer to the illustrations below: 0: Print normal image. 1: Print mirror image. TAIWAN SEMICONDUCTOR CO., LTD. 10 Copyright 2006 All Rights Reserved.

17 DIRECTION 0[,0] See Also REFERENCE Model Support DIRECTION MIRROR TTP-243 TTP-243E TTP-243 Plus TTP-243E Plus TTP-244ME TTP-244ME Plus TTP-244 TTP-245 TDP-245 TTP-245G TDP-245G TTP-246M TTP-246G TTP-248M TTP-342 TTP-342 Plus TTP-342M TTP-342M Plus TTP-343 TTP-344M TTP-346M TDP-643 Plus TDP-643R Plus TTP-2410M M23 TAIWAN SEMICONDUCTOR CO., LTD. 11 Copyright 2006 All Rights Reserved.

18 REFERENCE This command defines the reference point of the label. The reference (origin) point varies with the print direction, as shown: REFERENCE x, y Parameter x y Horizontal coordinate, with dot as the unit. Vertical coordinate, with dot as the unit. Note: 200 DPI: 1 mm = 8 dots 300 DPI: 1 mm = 12 dots REFERENCE 10,10 See Also DIRECTION TAIWAN SEMICONDUCTOR CO., LTD. 12 Copyright 2006 All Rights Reserved.

19 SHIFT This command can be used to fine-tune the entire label up or down from its current position. The position relates to the top edge of the label. A negative value moves the entire label away from the top of the label; a positive value moves the entire label to the top of label. SHIFT n Parameter 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 TTP-243 TTP-243E TTP-243 Plus TTP-243E Plus TTP-244ME TTP-244ME Plus TTP-244 TTP-245 TDP-245 TTP-245G TDP-245G TTP-246M TTP-246G TTP-248M TTP-342 TTP-342 Plus TTP-342M TTP-342M Plus TTP-343 TTP-344M TTP-346M TDP-643 Plus TDP-643R Plus TTP-2410M M23 SHIFT Command Supported TAIWAN SEMICONDUCTOR CO., LTD. 13 Copyright 2006 All Rights Reserved.

20 SIZE 4,2.5 GAP 2 mm,0 DIRECTION 0 SHIFT 0 OFFSET 0 TET 400,200,»3″,0,1,1,»DIRECTION 0″ TET 400,250,»3″,0,1,1,»SHIFT 0″ BO 10,0,780,490,8 PRINT 3,1 See Also OFFSET, REFERENCE TAIWAN SEMICONDUCTOR CO., LTD. 14 Copyright 2006 All Rights Reserved.

21 COUNTRY This command defines what special character to have on the KP-200 portable LCD keyboard (option) to orient the keyboard for use in different countries. COUNTRY n Parameter 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 COUNTRY 001 See Also CODEPAGE, ~!I TAIWAN SEMICONDUCTOR CO., LTD. 15 Copyright 2006 All Rights Reserved.

22 CODEPAGE This command defines the code page of international character set. CODEPAGE n Parameter n name or number of code page, which can be divided into 7-bit code page and 8-bit code page further. 7-bit code page name USA: USA BRI: British GER: German FRE: French DAN: Danish ITA: Italian SPA: Spanish SWE: Swedish SWI: Swiss 8-bit code page number 437: United States 850: Multilingual 852: Slavic 860: Portuguese 863: Canadian/French 865: Nordic 857: Turkish (TSPL2 printers only) Windows code page 1250: Central Europe (TSPL2 printers only) 1252: Latin I (TSPL2 printers only) 1253: Greek (TSPL2 printers only) 1254: Turkish (TSPL2 printers only) Note: Whether to use 7-bit or 8-bit code page is determined by the communication parameter of DATA LENGTH. TAIWAN SEMICONDUCTOR CO., LTD. 16 Copyright 2006 All Rights Reserved.

23 Model 7-bit Codepage 8-bit Codepage Windows Codepage USA BRI GER FRE DAN ITA SPA SWE SWI TTP-243 TTP-243E TTP-243 Plus TTP-243E Plus TTP-244ME TTP-244ME Plus TTP-244 TTP-245 TDP-245 TTP-245G TDP-245G TTP-246M TTP-246G TTP-248M TTP-342 TTP-342 Plus TTP-342M TTP-342M Plus TTP-343 TTP-344M TTP-346M TDP-643 Plus TDP-643R Plus TTP-2410M M23 CODEPAGE 437 See Also COUNTRY, SET COM1, ~!I TAIWAN SEMICONDUCTOR CO., LTD. 17 Copyright 2006 All Rights Reserved.

24 This command clears the image buffer. Parameter None N/A Note: This command must be placed after SIZE command. See Also SIZE, GAP, BLINE TAIWAN SEMICONDUCTOR CO., LTD. 18 Copyright 2006 All Rights Reserved.

25 FEED This command feeds label with the specified length. The length is specified by dot. FEED n Parameter n unit: dot 1 n 9999 FEED 40 Note: 200 DPI: 1 mm = 8 dots 300 DPI: 1 mm = 12 dots See Also BACKFEED, SIZE, GAP, BLINE, HOME, FORMFEED TAIWAN SEMICONDUCTOR CO., LTD. 19 Copyright 2006 All Rights Reserved.

26 BACKFEED & BACKUP To back feed label with the specified length. The length is specified by dot. BACKUP n BACKFEED n Parameter n (TSPL printers only) (TSPL2 printers only) unit: dot 1 n 9999 BACKUP 40 BACKFEED 40 Model Support BACKUP BACKFEED TTP-243 TTP-243E TTP-243 Plus TTP-243E Plus TTP-244ME TTP-244ME Plus TTP-244 TTP-245 TDP-245 TTP-245G TDP-245G TTP-246M TTP-246G TTP-248M TTP-342 TTP-342 Plus TTP-342M TTP-342M Plus TTP-343 TTP-344M TTP-346M TDP-643 Plus TDP-643R Plus TTP-2410M M23 TAIWAN SEMICONDUCTOR CO., LTD. 20 Copyright 2006 All Rights Reserved.

27 CAUTION: Impropriety back feed value may cause paper jam or wrinkle. Note: 200 DPI: 1 mm = 8 dots 300 DPI: 1 mm = 12 dots See Also FEED, SIZE, GAP, BLINE, HOME, FORMFEED TAIWAN SEMICONDUCTOR CO., LTD. 21 Copyright 2006 All Rights Reserved.

28 FORMFEED This command feeds label to the beginning of next label. FORMFEED Parameter None N/A SIZE 4,2.5 GAP 0 mm,0 SPEED 4 DENSITY 7 DIRECTION 0 OFFSET 0.00 REFERENCE 0,0 SET PEEL OFF SET CUTTER OFF SET FORMFEED BO 1,1,360,65,12 TET 25,25,»3″,0,1,1,»FORMFEED COMMAND TEST» TET 25,80,»3″,0,1,1,@0 PRINT 3,1 See Also FEED, SIZE, GAP, BLINE, HOME, BACKFEED TAIWAN SEMICONDUCTOR CO., LTD. 22 Copyright 2006 All Rights Reserved.

29 HOME It is not expected the first label will be printed on the right position when the printer power is turned on. This command will feed label to the beginning of next label (TSPL2) or back label to the beginning of current label (TSPL). The size and gap of the label should be setup in advance. HOME Parameter None N/A Model TTP-243 TTP-243E TTP-243 Plus TTP-243E Plus TTP-244ME TTP-244ME Plus TTP-244 TTP-245 TDP-245 TTP-245G TDP-245G TTP-246M TTP-246G TTP-248M TTP-342 TTP-342 Plus TTP-342M TTP-342M Plus TTP-343 TTP-344M TTP-346M TDP-643 Plus TDP-643R Plus TTP-2410M M23 HOME Back Label Feed Label TAIWAN SEMICONDUCTOR CO., LTD. 23 Copyright 2006 All Rights Reserved.

30 SIZE 4,2.5 GAP 2 mm,0 SPEED 4 DENSITY 7 DIRECTION 0 OFFSET 0.00 REFERENCE 0,0 SET PEEL OFF SET CUTTER OFF SET HOME BO 1,1,360,65,12 TET 25,25,»3″,0,1,1,»HOME COMMAND TEST» TET 25,80,»3″,0,1,1,@0 PRINT 3,1 See Also FEED, SIZE, GAP, BLINE, FORMFEED TAIWAN SEMICONDUCTOR CO., LTD. 24 Copyright 2006 All Rights Reserved.

31 PRINT This command prints the label format stored in the image buffer. PRINT m [,n] Parameter m Specifies how many sets of labels will be printed. 1 m If m=-1, printer will print the last label content for n copies. n Specifies how many copies should be printed for each set of label. 1 n SIZE 60 mm, 20 mm SET TET 10,10, 3,0,1,1,@1 PRINT 3,2 PRINT 1,2 See Also SET COUNTER, INPUT, DOWNLOAD TAIWAN SEMICONDUCTOR CO., LTD. 25 Copyright 2006 All Rights Reserved.

32 SOUND This command is used to control the sound frequency of the beeper. There are 10 levels of sounds. The timing control the sound can be set by the interval parameter. SOUND level,interval Parameter level Sound level: 0~9 interval Sound interval: 1~4095 SOUND 5,200 SOUND 3,200 SOUND 3,200 SOUND 4,200 SOUND 2,200 SOUND 2,200 SOUND 1,200 SOUND 2,200 SOUND 3,200 SOUND 4,200 SOUND 5,200 TAIWAN SEMICONDUCTOR CO., LTD. 26 Copyright 2006 All Rights Reserved.

33 CUT At this command, the printer will activate the cutter to cut the labels immediately without back feeding the label. CUT Parameter None N/A SIZE 3,3 GAP 0 mm,0 DIRECTION 0 REFERENCE 0,0 OFFSET 0.00 mm SET CUTTER OFF SET TEAR OFF BO 0,0,866,866,5 TET 100,100,»5″,0,1,1,»FEED & CUT» TET 100,200,»5″,0,1,1,»300 DPI» PRINT 1,1 FEED 260 CUT See Also SET CUTTER, SET BACK, SET PARTITAL_CUTTER TAIWAN SEMICONDUCTOR CO., LTD. 27 Copyright 2006 All Rights Reserved.

34 LIMITFEED When feeding labels, if the gap sensor is not set to a suitable sensitivity, the printer will not be able to locate the correct position of the gap. This command is used stop label feeding and make the red LED flash if the printer does not locate gap after feeding the length of one label plus one preset value. LIMITFEED n (inch, the English system) LIMITFEED n mm (mm, the metric system) Parameter n inch or mm Remark The setting will remain resident in memory. The default value is 10 inches when printer initializes. For metric system, there must be a space between parameter n and mm. TAIWAN SEMICONDUCTOR CO., LTD. 28 Copyright 2006 All Rights Reserved.

35 SELFTEST At this command, the printer will print out the printer information on the label. Model TTP-243 TTP-243E TTP-243 Plus TTP-243E Plus TTP-244ME TTP-244ME Plus TTP-244 TTP-245 TDP-245 TTP-245G TDP-245G TTP-246M TTP-246G TTP-248M TTP-342 TTP-342 Plus TTP-342M TTP-342M Plus TTP-343 TTP-344M TTP-346M TDP-643 Plus TDP-643R Plus TTP-2410M M23 Support SELFTEST SELFTEST TAIWAN SEMICONDUCTOR CO., LTD. 29 Copyright 2006 All Rights Reserved.

36 Label Formatting Commands BAR This command is used to draw a line or a bar on the label format. BAR x, y, width, height Parameter x y width height The upper left corner x-coordinate in dot The upper left corner y-coordinate in dot The width of bar in dot The height of bar in dot Note: 200 DPI: 1 mm = 8 dots 300 DPI: 1 mm = 12 dots Recommended max. bar height is 12mm at 4 width. Bar height over 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. SIZE 4,2.5 GAP 0,0 SPEED 6 DENSITY 8 DIRECTION 0 BAR 100, 100, 300, 200 PRINT 1,1 See Also BO TAIWAN SEMICONDUCTOR CO., LTD. 30 Copyright 2006 All Rights Reserved.

37 BARCODE This command is used to print 1D barcodes on label form. The available bar codes are listed below: Code 128 (switching code subset automatically) Code 128M (switching code subset manually) EAN 128 (switching code subset automatically) Interleaved 2 of 5 Interleaved 2 of 5 with check digit Code 39 standard Code 39 full ASCII Code 39 full ASCII with check digit Code 93 EAN 13 EAN 13 with 2 digits add-on EAN 13 with 5 digits add-on EAN 8 EAN 8 with 2 digits add-on EAN 8 with 5 digits add-on Codabar Postnet UPC-A UPC-A with 2 digits add-on UPC-A with 5 digits add-on UPC-E UPC-E with 2 digits add-on UPC-E with 5 digits add-on MSI PLESSEY China POST ITF14 EAN14 TAIWAN SEMICONDUCTOR CO., LTD. 31 Copyright 2006 All Rights Reserved.

38 BARCODE, Y, code type, height, human readable, rotation, narrow, wide, code Parameter Specify the x-coordinate of the bar code on label Y Specify the y-coordinate of the bar code on 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. printers 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 Code 39 standard with check digit for TSPL printers Auto switch full ASCII and standard code 39 for PLUS models. 39S Code 39 standard for TSPL2 printers 93 Code 93 EAN13 EAN 13 EAN13+2 EAN 13 with 2 digits add-on EAN13+5 EAN 13 with 5 digits add-on EAN8 EAN 8 TAIWAN SEMICONDUCTOR CO., LTD. 32 Copyright 2006 All Rights Reserved.

39 EAN8+2 EAN8+5 CODA POST UPCA UPCA+2 UPCA+5 UPCE UPCE+2 UPCE+5 CPOST MSI MSIC PLESSEY ITF14 EAN14 EAN 8 with 2 digits add-on EAN 8 with 5 digits add-on Codabar Postnet UPC-A UPC-A with 2 digits add-on UPC-A with 5 digits add-on UPC-E UPC-E with 2 digits add-on UPC-E with 5 digits add-on China post code MSI code PLESSEY code ITF 14 code EAN 14 code height bar code height expressed by dot human readable 0: human not readable 1: human readable rotation Rotate bar code clockwise in degrees 0 non rotation 90 rotate 90 degrees clockwise 180 rotate 180 degrees clockwise 270 rotate 270 degrees clockwise narrow width of narrow element in dot wide width of wide element in dot narrow : wide narrow : wide narrow : wide narrow : wide narrow : wide 1:1 1:2 1:3 2:5 3: x EAN128 10x x 10x 5x — 25C — 10x 10x 5x x 10x 5x — 39C — 10x 10x 5x x — — EAN13 8x EAN13+2 8x EAN13+5 8x EAN 8 8x EAN 8+2 8x EAN 8+5 8x CODA — 10x 10x 5x — POST 1x UPCA 8x UPCA+2 8x TAIWAN SEMICONDUCTOR CO., LTD. 33 Copyright 2006 All Rights Reserved.

40 UPCA+5 8x UPCE 8x UPCE+2 8x UPCE+5 8x CPOST x MSI x — — MSIC 10x — PLESSY x — — ITF14-10x 10x 5x — EAN code number the maximum number of digits of bar code content Barcode type Maximum bar code length EAN C C EAN13 12 EAN EAN EAN 8 7 EAN EAN CODA — POST 5,9,11 UPCA 11 UPCA+2 13 UPCA+5 16 UPCE 6 UPCE+2 8 UPCE+5 11 CPOST — MSI — MSIC PLESSY — ITF14 13 EAN14 13 BARCODE 100,100, 39,96,1,0,2,4, 1000 BARCODE 10,10, 128M,48,1,0,2,2,!104!096ABCD!101EFGH TAIWAN SEMICONDUCTOR CO., LTD. 34 Copyright 2006 All Rights Reserved.

41 Model Barcode Type (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.) EAN14 ITF14 PLESSY MSIC MSI CPOST UPCE+5 UPCE+2 UPCE UPCA+5 UPCA+2 UPCA POST CODA EAN 8+5 EAN 8+2 EAN 8 EAN13+5 EAN13+2 EAN S 39C for PLUS 39C for TSPL 39C for TSPL2 39 for PLUS 39 for TSPL 39 for TSPL2 25C 25 EAN TTP-243 TTP-243E TTP-243 Plus TTP-243E Plus TTP-244ME TTP-244ME Plus TTP-244 TTP-245 TDP-245 TTP-245G TDP-245G TTP-246M TTP-246G TTP-248M TTP-342 TTP-342 Plus TTP-342M TTP-342M Plus TTP-343 TTP-344M TTP-346M TDP-643 Plus TDP-643R Plus TTP-2410M M23 TAIWAN SEMICONDUCTOR CO., LTD. 35 Copyright 2006 All Rights Reserved.

42 BITMAP This command is used to draw bitmap images (Not BMP graphic file). BITMAP, Y, width, height, mode, bitmap data Parameter Y width height mode 0 OVERWRITE 1 OR 2 OR bitmap data The bitmap data Specify the x-coordinate of the bitmap image Specify the y-coordinate of the bitmap image The width of the image in bytes The height of the image in dot Graphic mode is listed below: TAIWAN SEMICONDUCTOR CO., LTD. 36 Copyright 2006 All Rights Reserved.

43 ROW L-Byte R-Byte (Y- axis) Binary Hexadecimal Binary Hexadecimal FF FF FF FF C F E F F F A F F B F C7 C F E3 D F F7 E F FF F F FF Ex: SIZE 4,2 GAP 0,0 BITMAP 200,200,2,16,0, -????? PRINT 1,1 Hexadecimal A C 32 0D 0A C 30 0D 0A 43 4C 53 0D 0A D C C 32 2C C 30 2C FF 03 FF 11 FF 18 FF 1C 7F 1E 3F 1F 1F 1F 8F 1F C7 1F E3 1F E7 1F FF 1F FF 0D 0A E C 31 0D 0A ASCII SIZE 4,2 GAP 0,0 BITMAP 200,200,2,16,0, -????? PRINT 1,1 See Also PUTBMP, PUTPC TAIWAN SEMICONDUCTOR CO., LTD. 37 Copyright 2006 All Rights Reserved.

44 BO This command is used to draw rectangles on the label. BO _start, Y_start, _end, Y_end, line thickness Parameter _start Y_start _end Y_end line thickness Specify x-coordinate of upper left corner in dot Specify y-coordinate of upper left corner in dot Specify x-coordinate of lower right corner in dot Specify y-coordinate of lower right corner in dot Line thickness of the box in dot Note: 200 DPI: 1 mm = 8 dots 300 DPI: 1 mm = 12 dots Recommended max. thickness of box is 12mm at 4 width. Thickness of box 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. SIZE 4,2.5 GAP 0,0 SPEED 6 DENSITY 8 DIRECTION 0 BO 100,100,200,200,5 PRINT 1,1 See Also BAR TAIWAN SEMICONDUCTOR CO., LTD. 38 Copyright 2006 All Rights Reserved.

45 DMATRI This command is used to define the DataMatrix 2D bar code. Currently, it supports ECC200 error correction only. DMATRI x, y, width, height, [xm,row,col], expression Parameter x Horizontal start position in dot y Vertical start position in dot width The expected width of barcode area in dot height The expected height of barcode area in dot xm Module size in dot row Symbol size of row,10 to 144 col Symbol size of col,10 to 144 SIZE 3,3 GAP 0,0 SPEED 4 DENSITY 8 DIRECTION 0 REFERENCE 0,0 OFFSET 0.00 SET CUTTER OFF SET TEAR ON DMATRI 10,110,400,400,»DMATRI EAMPLE 1″ DMATRI 310,110,400,400,x6,»DMATRI EAMPLE 2″ DMATRI 10,310,400,400,x8,18,18,»DMATRI EAMPLE 3″ PRINT 1,1 TAIWAN SEMICONDUCTOR CO., LTD. 39 Copyright 2006 All Rights Reserved.

46 ERASE This command is used to clear a specified region in image buffer. ERASE _start, Y_start, _width, Y_height Parameter _start Y_start _width Y_height The x-coordinate of the starting point in dot The y-coordinate of the starting point in dot The region width in x-axis direction in dot The region height in y-axis direction in dot SIZE 4,2.5 GAP 0,0 SPEED 6 DENSITY 8 DIRECTION 0 BAR 100, 100, 300, 300 ERASE 150,150,200,200 PRINT 1,1 See Also TAIWAN SEMICONDUCTOR CO., LTD. 40 Copyright 2006 All Rights Reserved.

47 MAICODE This command is used to define a 2D Maxicode. MAICODE x, y, mode, [class, country, post, Lm,] message For mode 2 or 3: MAICODE x, y, mode, class, country, postal code, low priority message» If country is 840, the postal code is in 99999,9999 format. For other countries, the code is up to 6 alphanumeric characters. For mode 4,5,6 MAICODE x, y, mode, [Lm], «message» * AIM special format is supported, see page 23 in the spec. Note: Mode 6 is not supported in TSPL2 printers firmware. Parameter x -coordinate of the staring 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 Mode3: (Canada) 6 alphanumeric post code included by double quotes. Lm Expression length (double quote is ignored), 1 m 138, (this parameter is just for mode 4 and 5.) message Barcode content SIZE 4,2 GAP 0,0 SPEED 4 DENSITY 8 OFFSET 0.00 REFERENCE 0,0 SET CUTTER OFF SET TEAR ON REM *****Mode 2 For USA***** TAIWAN SEMICONDUCTOR CO., LTD. 41 Copyright 2006 All Rights Reserved.

48 MAICODE 110,100,2,300,840,06810,7317,»DEMO 2 FOR USA MAICODE» TET 100,520,»3″,0,2,2,»Mode 2 For USA» PRINT 1,1 REM *****Mode 3 For Canada***** MAICODE 110,100,3,300,863,»107317″,»DEMO 3 FOR CANADA MAICODE» TET 100,520,»3″,0,2,2,»Mode 3 For CANADA» PRINT 1,1 REM *****MODE4***** MAICODE 110,100,4,»DEMO 4 FOR MAICODE» MAICODE 600,100,4,19,DEMO 4 FOR MAICODE TET 100,520,»3″,0,2,2,»Mode 4 FOR MAICODE» PRINT 1,1 REM *****MODE 5***** MAICODE 110,100,5,»DEMO 5 FOR MAICODE» MAICODE 600,100,5,19,DEMO 5 FOR MAICODE TET 100,520,»3″,0,2,2,»DEMO 5 FOR MAICODE» PRINT 1 TAIWAN SEMICONDUCTOR CO., LTD. 42 Copyright 2006 All Rights Reserved.

49 PDF417 This command is used to define a PDF417 2D barcode. PDF417 x, y, width, height, rotate, [option], expression Parameter x -coordinate of the starting point in dot y Y-coordinate of the starting point in dot width The expected width of barcode in dot height The expected height of barcode in dot rotate Rotation counterclockwise. 0: 0 degree 90: 90 degrees 180: 180 degrees 270: 270 degrees expression Barcode text or string expression to be printed on label. [option] P E M Ux,y,c W H R C T Lm Data compression method 0: Auto encoding 1: Binary mode Error correction level Range: 0~8 Center pattern in barcode area 0: The pattern will print upper left justified the area 1: The pattern is printed middle of area 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 Module width in dot Range: 2~9 Bar height in dot Range: 4~99 Maximum number of rows Maximum number of columns Truncation. 0: Not truncated 1: Truncated Expression length (without double quote), 1 m 2048 TAIWAN SEMICONDUCTOR CO., LTD. 43 Copyright 2006 All Rights Reserved.

50 SIZE 3,3 GAP 0.12,0 SPEED 6 DENSITY 8 DIRECTION 1 REFERENCE 0,0 REM *****WITHOUR OPTIONS***** PDF417 50,50,400,200,0,»Without Options» PRINT 1,1 REM *****OPTION:E4***** PDF417 50,50,400,200,0,E4,»Error correction level:4″ PRINT 1,1 REM *****OPTION:E4 W4***** PDF417 50,50,600,600,0,E4,W4,»Error correction level:4 module width 4 dots» PRINT 1,1 REM *****OPTION:E4 W4 H4***** PDF417 50,50,600,600,0,E4,W4,H4,»Error correction level:4 module width 4 dots bar height 4 dots» PRINT 1,1 REM *****OPTION:E4 W4 H4 R25***** PDF417 50,50,600,600,0,E4,W4,H4,R25,»Error correction level:4 Module Width 4 dots Bar Height 4 dots Maximum Number of Rows: 25 Rows » PRINT 1,1 REM *****OPTION:E4 W4 H4 R40 C3***** PDF417 50,50,600,600,0,E4,W4,H4,R40,C3,»Error correction level:4 Module Width 4 dots Bar Height 4 dots Maximum Number of Rows: 40 Rows TAIWAN SEMICONDUCTOR CO., LTD. 44 Copyright 2006 All Rights Reserved.

51 Maximum number of columns: 3 Cols » PRINT 1,1 REM *****OPTION:E4 W4 H4 R40 C4 T0***** PDF417 50,50,600,600,0,E4,W4,H4,R40,C4,T0,»Error correction level:4 Module Width 4 dots Bar Height 4 dots Maximum Number of Rows: 40 Rows Maximum number of columns: 4 Cols Truncation:0 » PRINT 1,1 REM *****OPTION:E4 W4 H4 R40 C4 T1***** PDF417 50,50,900,900,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 REM *****OPTION:E4 W4 H4 R40 C4 T0 L169***** PDF417 50,50,900,900,0,E4,W4,H4,R40,C4,T0,L169,Error correction level:4 Module Width 4 dots Bar Height 4 dots Maximum Number of Rows: 40 Rows Maximum number of columns: 4 Cols Truncation:0 Expression length:167 PRINT 1,1 REM *****OPTION:E4 W4 H4 R40 C4 T1 L169***** PDF417 50,50,900,900,0,E4,W4,H4,R40,C4,T1,L169,Error correction level:4 Module Width 4 dots Bar Height 4 dots Maximum Number of Rows: 40 Rows Maximum number of columns: 4 Cols Truncation:1 Expression length:169 PRINT 1,1 TAIWAN SEMICONDUCTOR CO., LTD. 45 Copyright 2006 All Rights Reserved.

52 REM *****OPTION:P0 E4 W4 H4 R40 C4 T1 L169***** PDF417 50,50,900,900,0,P0,E4,W4,H4,R40,C4,T1,L169,Error correction level:4 Module Width 4 dots Bar Height 4 dots Maximum Number of Rows: 40 Rows Maximum number of columns: 4 Cols Truncation:1 Expression length:169 PRINT 1,1 REM *****OPTION:P0 E4 M0 W6 H6 R60 C4 T0 L283***** SIZE 3,2 PDF417 50,50,900,600,0,P0,E4,M0,W6,H6,R60,C4,T0,L283,Data compression method: P0 Error correction level: E4 Center pattern in barcode area: M0 Human Readable: No Module Width 6 dots: W6 Bar Height 6 dots: H6 Maximum Number of Rows: 60 Rows: R60 Maximum number of columns: 4 Cols: C4 Truncation:0: T0 Expression length:283: L283 PRINT 1,1 REM *****OPTION:P1 E4 M1 U100,500,10 W4 H4 R60 C4 T1 L297***** PDF417 50,50,900,600,0,P1,E4,M1,U100,500,10,W6,H6,R60,C4,T1,L297,Data compression method: P1 Error correction level: E4 Center pattern in barcode area: M1 Human Readable: Yes: U100,300,10 Module Width 6 dots: W6 Bar Height 6 dots: H6 Maximum Number of Rows: 60 Rows: R60 Maximum number of columns: 4 Cols: C4 Truncation:1: T1 Expression length:297: L297 PRINT 1,1 TAIWAN SEMICONDUCTOR CO., LTD. 46 Copyright 2006 All Rights Reserved.

53 PUTBMP This command is used to print BMP format image. PUTBMP, Y, filename Parameter Y filename The x-coordinate of the BMP format image The y-coordinate of the BMP format image The downloaded BMP filename. Model TTP-243 TTP-243E TTP-243 Plus TTP-243E Plus TTP-244ME TTP-244ME Plus TTP-244 TTP-245 TDP-245 TTP-245G TDP-245G TTP-246M TTP-246G TTP-248M TTP-342 TTP-342 Plus TTP-342M TTP-342M Plus TTP-343 TTP-344M TTP-346M TDP-643 Plus TDP-643R Plus TTP-2410M M23 PUTBMP TAIWAN SEMICONDUCTOR CO., LTD. 47 Copyright 2006 All Rights Reserved.

54 See Also DOWNLOAD, BITMAP, PUTPC TAIWAN SEMICONDUCTOR CO., LTD. 48 Copyright 2006 All Rights Reserved.

55 PUTPC This command is used to print PC format image. TSPL language supports 2-color PC format graphics. TSPL2 language supports 256-color PC format graphics. Model PUTPC 2 color PC 256 color PC TTP-243 TTP-243E TTP-243 Plus TTP-243E Plus TTP-244ME TTP-244ME Plus TTP-244 TTP-245 TDP-245 TTP-245G TDP-245G TTP-246M TTP-246G TTP-248M TTP-342 TTP-342 Plus TTP-342M TTP-342M Plus TTP-343 TTP-344M TTP-346M TDP-643 Plus TDP-643R Plus TTP-2410M M23 PUTPC, Y, filename Parameter Y filename The x-coordinate of the PC image The y-coordinate of the PC image The downloaded PC filename. Case sensitive TAIWAN SEMICONDUCTOR CO., LTD. 49 Copyright 2006 All Rights Reserved.

56 See Also DOWNLOAD, BITMAP, PUTPC TAIWAN SEMICONDUCTOR CO., LTD. 50 Copyright 2006 All Rights Reserved.

57 QRCODE This command is used to print QR code Model TTP-243 TTP-243E TTP-243 Plus TTP-243E Plus TTP-244ME TTP-244ME Plus TTP-244 TTP-245 TDP-245 TTP-245G TDP-245G TTP-246M TTP-246G TTP-248M TTP-342 TTP-342 Plus TTP-342M TTP-342M Plus TTP-343 TTP-344M TTP-346M TDP-643 Plus TDP-643R Plus TTP-2410M M23 QR Code QRCODE, Y, ECC Level, cell width, mode, rotation, [model, mask,]»data string Parameter The upper left corner x-coordinate of the QR code Y The upper left corner y-coordinate of the QR code ECC level Error correction recovery level L 7% M 15% Q 25% H 30% cell width 1~10 TAIWAN SEMICONDUCTOR CO., LTD. 51 Copyright 2006 All Rights Reserved.

58 mode Auto / manual encode A Auto M Manual rotation 0 0 degree degree degree degree model 1 (default), original version 2 enhanced version mask 0~8, default is 7 Data string The encodable character set is described as below Encodable character set: 1). Numeric data: (digits 0~9) 2). Alphanumeric data (digits 0-9; upper case letters A-Z; nine other characters: space, $ % * + -. / : ); 3). 8-bit byte data (JIS 8-bit character set (Latin and Kana) in accordance with JIS 0201); 4). Kanji characters (Shift JIS values 8140 HE 9FFC HE and E040 HE EAA4 HE. These are values shifted from those of JIS Refer to JIS 0208 Annex 1 Shift Coded Representation for detail.). Data characters per symbol (for maximum symbol size): Model 1 (Version 14-L) Model 2 (Version 40-L) 1). Numeric data: 1,167 characters 7,089 characters 2). Alphanumeric data: 707 characters 4,296 characters 3). 8-bit byte data: 486 characters 2,953 characters 4). Kanji data: 299 characters 1,817 characters *If A is the first character in the data string, then the following data after A are Alphanumeric data. *If N is the first character in the data string, then the following data after N are numeric data. *If B is the first character in the data string, then the following 4 digits after B is used to specify numbers of data. After the 4 digits are the number of bytes of binary data to be encoded. *If K is the first character in the data string, then the following data after K is Kanji data. *If! is in the data string and follows by N, A, B, K then it will be switched to specified encodable character set. TAIWAN SEMICONDUCTOR CO., LTD. 52 Copyright 2006 All Rights Reserved.

59 Manual mode example: QRCODE 100,10,L,7,M,0,M1,S1,»ATHE FIRMWARE HAS BEEN UPDATED» (Where A: Alphanumeric data) QRCODE 100,10,M,7,M,0,M1,S2,»N123456″ (Where N: Numeric data) QRCODE 100,10,Q,7,M,0,M1,S3,»N123456!ATHE FIRMWARE HAS BEEN UPDATED» (Where N: Numeric data ;!:Transfer char ; A: Alphanumeric data) QRCODE 100,10,H,7,M,0,M1,S3,»B0012Product name» (where B: Binary data ; 0012: 12 bytes ) QRCODE 100,10,M,7,M,0,M1,S3,»K» (Where K: Kanji data) Auto mode example: QRCODE 100,10,M,7,A,0,»THE FIRMWARE HAS BEEN UPDATED» (1) Auto mode example a. General data string SIZE 4,2.5 GAP 0.12,0 QRCODE 10,10,H,4,A,0,»ABCabc123″ QRCODE 160,160,H,4,A,0,»123ABCabc» QRCODE 310,310,H,4,A,0,» 印表機 ABCabc123″ PRINT 1,1 b. Data string including <Enter> character (0Dh, 0Ah) SIZE 4,2.5 GAP 0.12,0 QRCODE 10,10,H,4,A,0,»ABC<Enter> abc<enter> 123″ QRCODE 160,160,H,4,A,0,»123<Enter> ABC<Enter> abc» QRCODE 310,310,H,4,A,0,» 印表機 <Enter> ABC<Enter> abc<enter> 123″ PRINT 1,1 c. Data string concatenation (Must be used with DOWNLOAD… EOP command) DOWNLOAD DEMO.BAS SIZE 4,2.5 CAP 0.12,0 TAIWAN SEMICONDUCTOR CO., LTD. 53 Copyright 2006 All Rights Reserved.

60 QRCODE 10,10,H,4,A,0,»ABCabc123″+STR$(1234) QRCODE 160,160,H,4,A,0,»123ABCabc»+»1234″ QRCODE 310,310,H,4,A,0,» 印表機 ABCabc123″+»1234″+»abcd» PRINT 1,1 EOP DEMO d. Data string including double quote ( ) character, please use \[«] instead of SIZE 4,2.5 CAP 0.12,0 QRCODE 10,10,H,4,A,0,»ABC\[«]abc\[«]123» QRCODE 160,160,H,4,A,0,»123\[«]ABC\[«]abc» QRCODE 310,310,H,4,A,0,»\[«] 印表機 \[«]ABCabc123″ PRINT 1,1 (3) Manual mode a. General data string: SIZE 4,2.5 CAP 0.12,0 QRCODE 10,10,H,4,M,0,»AABC!B0003abc!N123″ QRCODE 160,160,H,4,M,0,»N123!AABC!B0003abc» QRCODE 310,310,H,4,M,0,»K 印表機!AABC!B0006abc123″ PRINT 1,1 b. Data string including <Enter> character, <Enter> is an 8-bit byte data SIZE 4,2.5 CAP 0.12,0 QRCODE 10,10,H,4,M,0,»AABC!B0007<Enter> abc<enter>!n123″ QRCODE 160,160,H,4,M,0,»N123!B0002<Enter>!AABC!B0005<Enter> abc» QRCODE 310,310,H,4,M,0,»K 印表機!B0002<Enter>!AABC!B0010<Enter> abc<enter> 123″ PRINT 1,1 c. Data string concatenation (Must be used with DOWNLOAD… EOP command) DOWNLOAD A.BAS SIZE 4,2.5 CAP 0.12,0 QRCODE 10,10,H,4,M,0,»AABC!B0006abc123!N»+STR$(1234) QRCODE 160,160,H,4,M,0,»N123!AABC!B0007abc»+»1234″ TAIWAN SEMICONDUCTOR CO., LTD. 54 Copyright 2006 All Rights Reserved.

61 QRCODE 310,310,H,4,M,0,»K 印表機!AABC!B0014abc123″+»1234″+»abcd» PRINT 1,1 EOP A d. Data string including double quote ( ) character, please use \[«] instead of SIZE 4,2.5 CAP 0.12,0 QRCODE 10,10,H,4,M,0,»AABC!B0005\[«]abc\[«]!N123» QRCODE 160,160,H,4,M,0,»N123!B0001\[«]!AABC!B0004\[«]abc» QRCODE 310,310,H,4,M,0,»B0001\[«]!K 印表機!B0010\[«]ABCabc123» PRINT 1,1 TAIWAN SEMICONDUCTOR CO., LTD. 55 Copyright 2006 All Rights Reserved.

62 REVERSE This command is used to reverse a region in image buffer. REVERSE _start, Y_start, _width, Y_height Parameter _start Y_start _width Y_height The x-coordinate of the starting point in dot The y-coordinate of the starting point in dot The region width in x-axis direction in dot The region height in y-axis direction in dot 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. SIZE 4,2.5 GAP 0,0 SPEED 6 DENSITY 8 DIRECTION 0 TET 100,100,»3″,0,1,1,»REVERSE» REVERSE 90,90,128,40 PRINT 1,1 TAIWAN SEMICONDUCTOR CO., LTD. 56 Copyright 2006 All Rights Reserved.

63 TET This command is used to print text on label Note: (1). The internal font (font #1~#5) pitch between TSPL and TSPL2 is different. (2). Font 0 and ROMAN.TTF internal True Type Fonts are available in TSPL2 language printers. It is not available in TSPL language printers. TET, Y, font, rotation, x-multiplication, y-multiplication, content Parameter 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 Rotation The rotation angle of text 0 0 degree degrees, in clockwise direction degrees, in clockwise direction degrees, in clockwise direction -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. Y-multiplication: Vertical multiplication, up to 10x. Available factors: 1~10 TAIWAN SEMICONDUCTOR CO., LTD. 57 Copyright 2006 All Rights Reserved.

64 For true type font, this parameter is used to specify the height (point) of true type font. 1 point=1/72 inch. Note: 1. If there is any double quote ( ) within the text, please change it to \[ ]. 2. Font 0 and ROMAN.TTF internal True Type Fonts are available in TSPL2 language printers. 3. 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. MODEL Font Type ROMAN.TTF TTP-243 TTP-243E TTP-243 Plus TTP-243E Plus TTP-244ME TTP-244ME Plus TTP-244 TTP-245 TDP-245 TTP-245G TDP-245G TTP-246M TTP-246G TTP-248M TTP-342 TTP-342 Plus TTP-342M TTP-342M Plus TTP-343 TTP-344M TTP-346M TDP-643 Plus TDP-643R Plus TTP-2410M M23 SIZE 3,2 GAP 0,0 TET 100,100, 5,0,1,1, \[ ]DEMO FOR TET\[ ] TET 100,200, ROMAN.TTF,0,1,20, \[ ]True Type Font Test Print\[ ] PRINT 1,1 TAIWAN SEMICONDUCTOR CO., LTD. 58 Copyright 2006 All Rights Reserved.

65 Status Polling Commands (RS-232) <ESC>!? This command is used to obtain the printer status. An inquiry request is solicited by sending an <ESC> (ASCII 27, escape character) as the beginning control character to the printer. It can be sent any time, even in the event of printer error. One byte character is returned, of which one bit is used to flag the printer s current readiness status. If 0 is returned, the printer is ready to print labels. Bit Status 0 Head opened 1 Paper jam 2 Out of paper 3 Out of ribbon 4 Pause 5 Printing 6 Cover opened (option) 7 Environment Temperature over range (option) <ESC>!? See Also <ESC>!R 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 TAIWAN SEMICONDUCTOR CO., LTD. 59 Copyright 2006 All Rights Reserved.

66 <ESC>!R This command is used to reset the printer. It can be sent at any time as long as the printer is powered on and not in the dump mode. The beginning of the command is an ESCAPE character (ASCII 27). The files downloaded in memory will be deleted. <ESC>!R Parameter N/A N/A See Also <ESC>!? TAIWAN SEMICONDUCTOR CO., LTD. 60 Copyright 2006 All Rights Reserved.

67 This command is used to inquire the mileage of the printer. The integer part of mileage is returned (the decimal part of mileage is not return). It is returned to PC in ASCII characters. The ending character of mileage is 0x0D. Parameter None N/A TAIWAN SEMICONDUCTOR CO., LTD. 61 Copyright 2006 All Rights Reserved.

68 ~!A This command is used to inquire about the free memory of the printer. The number of bytes of free memory is returned in decimal digits, with 0x0d as ending code of PC. ~!A Parameter None N/A ~!A See Also FILES TAIWAN SEMICONDUCTOR CO., LTD. 62 Copyright 2006 All Rights Reserved.

69 ~!C This command is used to inquire the presence of Real Time Clock. One byte is return from the printer, indicating whether or not the RTC is installed. Return value 7 RTC is not installed. 7 RTC is installed. ~!C Parameter None N/A ~!C See Also YEAR, MONTH, DATE, WEEK, HOUR, @HOUR, TAIWAN SEMICONDUCTOR CO., LTD. 63 Copyright 2006 All Rights Reserved.

70 ~!D This command is used to enter DUMP mode. ~!D Parameter None N/A ~!D TAIWAN SEMICONDUCTOR CO., LTD. 64 Copyright 2006 All Rights Reserved.

71 ~!F This command is used to inquire about files resident in the printer memory and fonts installed in the memory module. The filename is returned in ASCII characters. Each file name ends with 0x0D. The ending character is 0x1A. ~!F Parameter None N/A ~!F See Also FILES TAIWAN SEMICONDUCTOR CO., LTD. 65 Copyright 2006 All Rights Reserved.

72 ~!I The command is used to inquire the code page and country setting of the printer. The returned information is given in the following format code page, country code ex: 8 bit: 437, bit: USA, 001 Regarding the code pages and country codes supported by the printer, please refer to the CODEPAGE and COUNTRY command respectively. ~!I Parameter None N/A ~!I See Also COUNTRY, CODEPAGE TAIWAN SEMICONDUCTOR CO., LTD. 66 Copyright 2006 All Rights Reserved.

73 ~!T This command is used to inquire the model name and number of the printer. They are returned in ASCII characters. Printer Type Returned String TTP-243 TTP/TDP 243 TTP-243E TTP/TDP 243E TTP-243 Plus TTP243P TTP-243E Plus TTP243EP TTP-244ME TTP/TDP 244ME TTP-244ME Plus TTP244MEP TTP-342 TTP/TDP 342 TTP-342 Plus TP342MP TTP-342M TTP/TDP 342M TTP-342M Plus TTP342MP TTP-643 Plus TDP 643 TTP-643R Plus TDP643P TTP-2410M TTP2410M TTP-346M TTP346M TTP-248M TTP248M TTP-246M TTP246M TTP-246G TTP246G TTP-344M TTP344M TTP-245 TTP245 TDP-245 TDP245 TTP-245G TTP245G TDP-245G TDP245G TTP-343 TTP343 TTP-244 TTP244 M23 M23 ~!T Parameter None N/A ~!T See Also ~!I, ~!F TAIWAN SEMICONDUCTOR CO., LTD. 67 Copyright 2006 All Rights Reserved.

74 Message Translation Protocols ~# The beginning identifier (~#) of the prompt message is sent from the printer to the KP-200 portable keyboard. The ending identifier is following the ending identifier ~& is used to instruct keyboard to display the prompt in the first line of LCD following the ending identifier ~& is used to instruct keyboard to display the prompt in the first line of LCD display. is ignored, prompt string will be displayed in first line of LCD and input data will be displayed in second line of LCD. Parameter None N/A DOWNLOAD «A.BAS» OUT OUT EOP A See Also INPUT, OUT TAIWAN SEMICONDUCTOR CO., LTD. 68 Copyright 2006 All Rights Reserved.

75 Commands for Windows Driver!B This command is used to store bitmap image data in the memory. Behind the nnn is the bitmap data.!bnnn Parameter nnn The number of bytes of image data sent from PC to printer,expressed in 3 decimal digits.!b100 See Also BITMAP TAIWAN SEMICONDUCTOR CO., LTD. 69 Copyright 2006 All Rights Reserved.

76 !J This command is used to print the bitmap data at the specified position (in y-direction).!jnnnn Parameter nnnn Print image at the specified position in y-direction. The position is expressed in 4 decimal digits.!j0100 See Also FEED TAIWAN SEMICONDUCTOR CO., LTD. 70 Copyright 2006 All Rights Reserved.

77 !N This command is used to print specified number of labels.!nnnn Parameter nnn Specifies the number of copies to be printed.!n001 TAIWAN SEMICONDUCTOR CO., LTD. 71 Copyright 2006 All Rights Reserved.

78 File Management Commands DOWNLOAD DOWNLOAD is a header of the file that is to be saved in the printer’s memory. The downloaded files can be divided to two categories: program file and data file (including text data file, PC graphic files and bitmap font file) The detailed descriptions regarding the download syntax for different files are shown below: Maximum numbers of file saved in DRAM: 50 files for TSPL/TSPL2 language printers. Maximum numbers of file saved in Flash memory: 50 files for TSPL language printers 256 files for TSPL2 language desktop printers (TTP/TDP-245 / TTP-343 / TTP-244) 256 files for TSPL2 language industrial printers (TTP-246M/344M) Model Maximum numbers of file saved in DRAM FLASH Ext. FLASH TTP TTP-243E TTP-243 Plus TTP-243E Plus TTP-244ME TTP-244ME Plus TTP TTP TDP TTP-245G TDP-245G TTP-246M TTP-246G TTP-248M TTP TTP-342 Plus TTP-342M TTP-342M Plus TTP TTP-344M TTP-346M TDP-643 Plus TDP-643R Plus TTP-2410M M TAIWAN SEMICONDUCTOR CO., LTD. 72 Copyright 2006 All Rights Reserved.

79 Printers will execute the program automatically when turning on power, if one of the downloaded programs is named AUTO.BAS. To disable the auto execution function, please follow the procedures below. For TTP-245/TTP-343/TDP-245 Hold the FEED key and power on the switch. The LED color will be changed as following pattern. Orange red (5 blinks) orange (5 blinks) green (5 blinks) solid green (for firmware version before V3.37) Orange red (5 blinks) orange (5 blinks) green (5 blinks) green and orange (5 blinks) red and orange (5 blinks) solid green (V3.37) Release the FEED key while LED becomes solid green then printer will not run AUTO.BAS. For TTP-246M/TTP-344M series Hold the FEED key and power on the switch. The ERROR LED will be on. And then, release the FEED key; AUTO.BAS will not be executed. Printer is ready to use. 1. Download a program file DOWNLOAD [n,] FILENAME.BAS Parameter n Specify the memory which is used to save the download files. n is ignored Download files to DRAM only. If you would like to save the files from DRAM to Flash memory before turning off power, you can issue MOVE command to printer to move the files from DRAM to Flash memory. F: Download files to main board flash memory. E: Download files to expansion memory module. FILENAME.BAS The filename resident in printer memory. Note: (1). The filename is case sensitive. (2). The extension of the program file must be.bas (3). Filename format must be in 8.3 format. (4). If memory is not specified, all files will be downloaded to DRAM. No Battery is used to backup DRAM. The downloaded files in DRAM will be lost in case turns off printer power. TAIWAN SEMICONDUCTOR CO., LTD. 73 Copyright 2006 All Rights Reserved.

Понравилась статья? Поделить с друзьями:
  • Проводка в своем доме своими руками пошаговая инструкция
  • Стиральная машина whirlpool fresh care инструкция по применению
  • Инструкция как пользоваться банкоматом сбербанка пошаговая инструкция видео
  • Ландышево валериановые капли инструкция по применению
  • Как зарегистрироваться на mos ru через госуслуги пошаговая инструкция