Hide thumbs Also See for LB-1000:

Advertisement

Quick Links

Advertisement

Table of Contents
loading

Summary of Contents for Bematech LB-1000

  • Page 2 Bematech S.A. was negligent regarding the design or manufacture of the product. Bematech S.A. shall not be liable against any damages or problems arising from the use of any options or any consumable products other than those designated as original Bematech S.A. products or approved products by Bematech S.A.
  • Page 3: Table Of Contents

    About the manual ..............................V Who should read this manual? ..........................V Other Publications Related ............................. V Document Conventions ............................VI Object Position Calculation ........................... VII Printer Models List ..............................IX Setup and System Commands ..........................1 SIZE ................................1 GAP ................................
  • Page 4 Status Polling Commands (RS-232) ........................62 <ESC>!? ..............................62 <ESC>!R ..............................63 ~!@ ................................64 ~!A ................................65 ~!C ................................66 ~!D ................................67 ~!F ................................68 ~!I ................................69 ~!T ................................70 Message Translation Protocols ..........................71 ~# ................................71 Commands for Windows Driver ..........................
  • Page 5 INSTR ( ) ............................... 116 TRIM$( ) ..............................117 LTRIM$( ) .............................. 118 RTRIM$( ) ............................. 119 VAL( ) ..............................120 BEEP ..............................121 NOW$( ) ..............................122 FORMAT$( ) ............................123 Device Reconfiguration Commands ........................125 SET COUNTER ............................ 125 SET CUTTER ............................
  • Page 6 This manual provides instructions on how to program Bematech’s LB-1000 Label Printer. This manual was developed either for technical and common users, in order to provide instructions on how to program the equipment. User Manual Service Manual (exclusive for Technical Assistance) http://www.bematech.com.br...
  • Page 7 This manual uses the following typographic conventions. Convention Description [expression list] Items inside square brackets are optional, expression maximum length 2*1024 bytes; <ESC> ESCAPE (ASCII 27), control code of status polling command returns printer status immediately. (ASCII 126), control code of status polling command, returns the printer status only when the printer is ready.
  • Page 8 DIRECTION 0 Label origin (0,0) aper feed direction DIRECTION 0 TEXT 56,24,”3”,0,1,1,”ABC” 203 DPI, 1mm=8 dots 300 DPI, 1mm=12 dots...
  • Page 9 Label origin (0,0) ! " # Paper feed direction DIRECTION 1 TEXT 56,24,”3”,0,1,1,”ABC”...
  • Page 10 Series Models LB-1000 1. BASIC 2. ADVANCED...
  • Page 11 For metric and dot systems, there must be a space between parameter and “mm” or “dot”. Max. width 72mm 104mm 106mm 108mm 219.5mm LB-1000 Example (1) English system (inch) SIZE 3.5, 3.00 (2) Metric system (mm) SIZE 100 mm, 100 mm...
  • Page 12 See Also GAP, BLINE...
  • Page 13 Description This command sets the distance between two labels. Syntax English system (inch) GAP m,n Metric system (mm) GAP m mm,n mm Parameter Description The gap distance between two labels 0 m 1 (inch), 0 m 25.4 (mm) The offset distance of the gap n label length (inch or mm) Continuous label.
  • Page 14: Size

    English system (inch) GAP 0.30, 0.10 Metric system (mm) GAP 7.62 mm, 2.54 mm See Also SIZE, BLINE...
  • Page 15: Gap

    Description This command feeds the paper through the gap sensor in an effort to determine the paper and gap sizes, respectively. This command references the user’s approximate measurements. If the measurements conflict with the actual size, the GAPDETECT command will not work properly. This calibration method can be applied to the labels with pre-printed logos or texts.
  • Page 16: Blinedetect

    * $ " Description This command feeds the paper through the black mark sensor in an effort to determine the paper and black mark sizes, respectively. This command references the user’s approximate measurements. If the measurements conflict with the actual size, the BLINEDETECT command will not work properly. This calibration method can be applied to the labels with pre-printed logos or texts.
  • Page 17: Autodetect

    + ! ! ! Description This command feeds the paper through the gap/black mark sensor in an effort to determine the paper and gap/black mark sizes, respectively. This command references the user’s approximate measurements. If the measurements conflict with the actual size, the AUTODETECT command will not work properly.
  • Page 18: Bline 0.20,0.50

    * $ " Description This command sets the height of the black line and the user-defined extra label feeding length each form feed takes. Syntax English system (inch) BLINE m,n Metric system (mm) BLINE m mm,n mm Parameter Description The height of black line either in inch or mm. 0 m 1 (inch), 0 m 25.4 (mm) The extra label feeding length.
  • Page 19: Offset 0.5

    Description This command defines the selective, extra label feeding length each form feed takes, which, especially in peel-off mode and cutter mode, is used to adjust label stop position, so as for label to register at proper places for the intended purposes. The printer back tracks the extra feeding length before the next run of printing.
  • Page 20: Speed 10

    Description This command defines the print speed. Syntax SPEED n Parameter Description printing speed in inch per second Model / IPS LB-1000 Example SPEED 10 See Also DENSITY...
  • Page 21 " % ! , Description 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...
  • Page 22: Direction And M Irror I Mage

    ! " Description 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.
  • Page 23: Direction M I

    Support Model DIRECTION MIRROR LB-1000 Example DIRECTION 0 DIRECTION 0,1 See Also REFERENCE...
  • Page 24 " Description This command defines the reference point of the label. The reference (origin) point varies with the print direction, as shown: Syntax REFERENCE x, y Parameter Description 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...
  • Page 25: Shift 30

    The maximum value is 1 inch. For 200 dpi printers, the range is –203 to 203; for 300 dpi printers, the range is –300 to 300. The unit is dot. Model Support LB-1000 Example SIZE 4,2.5 GAP 2 mm,0 DIRECTION 0...
  • Page 26 BOX 10,0,780,490,8 PRINT 3,1 See Also OFFSET, REFERENCE...
  • Page 27: Country 001

    + " ! , Description This command orients the keyboard for use in different countries via defining special characters on the KP-200 series portable LCD keyboard (option). Syntax COUNTRY n Parameter Description 001: USA 002: Canadian-French 003: Spanish (Latin America) 031: Dutch 032: Belgian 033: French (France)
  • Page 28 Description This command defines the code page of international character set. Syntax CODEPAGE n Parameter Description Name or number of code page, which can be divided into 7-bit code page and 8-bit code page. 7-bit code page name USA: USA BRI: British GER: German FRE: French...
  • Page 29: Codepage 437

    7-bit Codepage 8-bit Codepage Windows Codepage Model 1250 1252 1253 1254 LB-1000 Example CODEPAGE 437 See Also COUNTRY, SET COM1, ~!I...
  • Page 30: 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...
  • Page 31: Feed 40

    Description This command feeds label with the specified length. The length is specified by dot. Syntax FEED n Parameter Description unit: dot 1 n 9999 Note: 200 DPI: 1 mm = 8 dots 300 DPI: 1 mm = 12 dots Example FEED 40 See Also...
  • Page 32 200 DPI : 1 mm = 8 dots 300 DPI : 1 mm = 12 dots Support Model BACKUP BACKFEED LB-1000 CAUTION: Impropriety back feed value may cause paper jam or wrinkle. Example BACKUP 40 BACKFEED 40 See Also FEED, SIZE, GAP, BLINE, HOME, FORMFEED...
  • Page 33: Formfeed

    Description This command feeds label to the beginning of next label. Syntax FORMFEED Parameter Description None Example 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 COUNTER @0 +1 @0="000001"...
  • Page 34: Home

    Syntax HOME Parameter Description None HOME Model Back Label Feed Label LB-1000 Example 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 COUNTER @0 +1 @0="000001"...
  • Page 35: Print

    " ! Description This command prints the label format currently stored in the image buffer. Syntax PRINT m [,n] Parameter Description Specifies how many sets of labels will be printed. 1 m 999999999 If m=-1, printer will print the last label content for n copies. Specifies how many copies should be printed for each particular label set.
  • Page 36: Sound

    % + " Description This command controls the sound frequency of the beeper. There are 10 levels of sounds. The timing control can be set by the "interval" parameter. Syntax SOUND level, interval Parameter Description level Sound level: 0~9 interval Sound interval: 1~4095 Example SOUND 5,200...
  • Page 37: Cut

    Description This command activates the cutter to immediately cut the labels without back feeding the label. Syntax Parameter Description None Example SIZE 3,3 GAP 0 mm,0 DIRECTION 0 REFERENCE 0,0 OFFSET 0.00 mm SET CUTTER OFF SET TEAR OFF BOX 0,0,866,866,5 TEXT 100,100,"5",0,1,1,"FEED &...
  • Page 38: Limitfeed

    Description If the gap sensor is not set to a suitable sensitivity while feeding labels, the printer will not be able to locate the correct position of the gap. This command stops label feeding and makes the red LED flash if the printer does not locate gap after feeding the length of one label plus one preset value.
  • Page 39: Selftest

    % $ ! %! Description At this command, the printer will print out the printer information. Syntax SELFTEST Model Support LB-1000 Example SELFTEST...
  • Page 40 Description This command draws a bar on the label format. Syntax BAR x, y, width, height Parameter Description The upper left corner x-coordinate (in dots) The upper left corner y-coordinate (in dots) width Bar width (in dots) height Bar height (in dots) Note: 200 DPI: 1 mm = 8 dots 300 DPI: 1 mm = 12 dots...
  • Page 41: Barcode

    Description This command prints 1D barcodes. 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...
  • Page 42 Syntax BARCODE X, Y, “code type”, height, human readable, rotation, narrow, wide, “code” Parameter Description Specify the x-coordinate of the bar code on the label Specify the y-coordinate of the bar code on the label code type Code 128, switching code subset A, B, C automatically 128M Code 128, switching code subset A, B, C manually.
  • Page 43 UPCE UPC-E UPCE+2 UPC-E with 2 digits add-on UPCE+5 UPC-E with 5 digits add-on CPOST China post code MSI code MSIC MSI with check digit PLESSEY PLESSEY code ITF14 ITF 14 code EAN14 EAN 14 code Code 11 height Bar code height (in dots) human readable 0: not readable 1: human readable rotation...
  • Page 44 ITF14 EAN14 code number the maximum number of digits of bar code content Maximum bar code Barcode type length 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...
  • Page 45 EAN14 ITF14 PLESSY MSIC 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 EAN13 EAN128...
  • Page 46 Description This command draws bitmap images (as opposed to BMP graphic files). Syntax BITMAP X, Y, width, height, mode, bitmap data… Parameter Description Specify the x-coordinate Specify the y-coordinate width Image width (in bytes) height Image height (in dots) mode Graphic modes listed below: 0: OVERWRITE 1: OR...
  • Page 47: Bitmap

    Binary Hexadecimal Hexadecimal (Y- axis) Binary 00000000 00000000 00000000 00000000 00000000 00000000 00000111 11111111 00000011 11111111 00010001 11111111 00011000 11111111 00011100 01111111 00011110 00111111 00011111 00011111 00011111 10001111 00011111 11000111 00011111 11100011 00011111 11110111 00011111 11111111 00011111 11111111 SIZE 4,2 GAP 0,0 BITMAP 200,200,2,16,0, -?????
  • Page 48 Description This command draws rectangles on the label. Syntax BOX X_start, Y_start, X_end, Y_end, line thickness Parameter Description X_start Specify x-coordinate of upper left corner (in dots) Y_start Specify y-coordinate of upper left corner (in dots) X_end Specify x-coordinate of lower right corner (in dots) Y_end Specify y-coordinate of lower right corner (in dots) line thickness...
  • Page 49: Circle

    Description This command draws a circle on the label. Syntax CIRCLE X_start, Y_start, diameter, circle thickness Parameter Description X_start Specify x-coordinate of upper left corner (in dots) Y_start Specify y-coordinate of upper left corner (in dots) diameter Specify the diameter of the circle (in dots) thickness Thickness of the circle (in dots) Example...
  • Page 50: Dmatrix

    Description This command is used to define the DataMatrix 2D bar code. Currently, only ECC200 error correction is supported. Syntax DMATRIX x, y, width, height, [xm,row,col], expression Parameter Description Horizontal start position (in dots) Vertical start position (in dots) width The expected width of barcode area (in dots) height The expected height of barcode area (in dots)
  • Page 51: Erase

    Description This command clears a specified region in the image buffer. Syntax ERASE X_start, Y_start, X_width, Y_height Parameter Description X_start The x-coordinate of the starting point (in dots) Y_start The y-coordinate of the starting point (in dots) X_width The region width in x-axis direction (in dots) Y_height The region height in y-axis direction (in dots) Example...
  • Page 52: Maxicode

    Description This command defines a 2D Maxicode. Syntax MAXICODE x, y, mode, [class, country, post, Lm,] "message" For mode 2 or 3: MAXICODE 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.
  • Page 53 REM *****Mode 3 For Canada***** MAXICODE 110,100,3,300,863,"107317","DEMO 3 FOR CANADA MAXICODE" TEXT 100,520,"3",0,2,2,"Mode 3 For CANADA" PRINT 1,1 REM *****MODE4***** MAXICODE 110,100,4,"DEMO 4 FOR MAXICODE" 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"...
  • Page 54: Pdf417

    2 # 3 Description This command defines a PDF417 2D barcode. Syntax PDF417 x, y, width, height, rotate, [option], expression Parameter Description X-coordinate of starting point (in dots) Y-coordinate of starting point (in dots) width Expected width (in dots) height Expected height (in dots) rotate Rotation counterclockwise.
  • Page 55 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"...
  • Page 56 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...
  • Page 57 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***** PDF417 50,50,900,600,0,P0,E4,M0,W6,H6,R60,C4,T0,L283, Data compression method: Error correction level: E4 Center pattern in barcode area: M0 Human Readable: No...
  • Page 58: Aztec

    Description This command is used to define the AZTEC 2D bar code. Supported by V6.60EZ. Syntax AZTEC x,y,rotate,[size,]ecp,]flg,]menu,]multi,]rev,]"content" Parameter Description Horizontal start position (in dots) Vertical start position (in dots) rotate Rotation No rotation 90: 90 degrees 180: 180 degrees 270: 270 degrees size Element module size (1 to 20), default is 6...
  • Page 59 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...
  • Page 60: Putbmp

    This command prints BMP format images. Syntax PUTBMP X, Y, "filename" Parameter Description The x-coordinate of the BMP format image The y-coordinate of the BMP format image filename The downloaded BMP filename. Model PUTBMP Command Supported LB-1000 Example See Also DOWNLOAD, BITMAP, PUTPCX...
  • Page 61: Putpcx

    PUTPCX X, Y, "filename" Parameter Description The x-coordinate of the PCX image The y-coordinate of the PCX image filename The downloaded PCX filename. Case sensitive Support Model 2 – color PCX 256 – color PCX LB-1000 Example See Also DOWNLOAD, BITMAP, PUTPCX...
  • Page 62: Qrcode

    Description This command prints QR code. Syntax QRCODE X, Y, ECC Level, cell width, mode, rotation, [model, mask,]"Data string" Parameter Description The upper left corner x-coordinate of the QR code The upper left corner y-coordinate of the QR code ECC level Error correction recovery level : 7% : 15%...
  • Page 63 *If "!" is in the data string and follows by "N", "A", "B", "K" then it will be switched to specified encodable character set. Model QR Code LB-1000 Example 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"...
  • Page 64 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 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 DEMO d.
  • Page 65 QRCODE 310,310,H,4,M,0,"K !B0002<Enter> !AABC!B0010<Enter> abc<Enter> 123" PRINT 1,1 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" 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"...
  • Page 66 Description This command is used to draw a RSS bar code on the label format Syntax RSS x,y,"sym",rotate,pixMult,sepHt,"content" RSS x,y,"RSSEXP",rotate,pixMult,sepHt,segWidth,"content" RSS x,y,"UCC128CCA",rotate,pixMult,sepHt,linHeight,"content" RSS x,y,"UCC128CCC",rotate,pixMult,sepHt,linHeight,"content" Parameter Description X-coordinate Y-coordinate Symbology type: RSS14: RSS14 RSS14T: RSS14 Truncated RSS14S: RSS14 Stacked RSS14SO: RSS14 Stacked Omnidirectional RSSLIM: RSS Limited RSSEXP: RSS Expanded UPCA: UPC-A...
  • Page 67 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.
  • Page 68 PRINT 1 SIZE 4,1 00abcd00000j REM UPCE Rule 3: = abcdj4 RSS 10,10,"UPCE",0,2,2,"001234000005|ABCDEFG" PRINT 1 SIZE 4,1 00abcde0000j REM UPCE Rule 4: = abcdej where j = 5-9 RSS 10,10,"UPCE",0,2,2,"001234500005|ABCDEFG" RSS 160,10,"UPCE",0,2,2,"001234500006|ABCDEFG" RSS 310,10,"UPCE",0,2,2,"001234500007|ABCDEFG" RSS 460,10,"UPCE",0,2,2,"001234500008|ABCDEFG" RSS 610,10,"UPCE",0,2,2,"001234500009|ABCDEFG" PRINT 1 Example of barcode height of EAN8 EAN13 UPCA and UPCE.
  • Page 69: Reverse

    Description This command reverses a region in image buffer. Syntax REVERSE X_start, Y_start, X_width, Y_height Parameter Description X_start The x-coordinate of the starting point (in dots) Y_start The y-coordinate of the starting point (in dots) X_width X-axis region width (in dots) Y_height Y-axis region height (in dots) Note:...
  • Page 70: Text

    ! 1! Description This command prints text on label Syntax TEXT X, Y, "font", rotation, x-multiplication, y-multiplication, "content" Parameter Description The x-coordinate of the text 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...
  • Page 71 Font Type MODEL ROMAN.TTF LB-1000 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...
  • Page 72: Esc

    6 % 78 9 8 : ; % < = Description This command obtains the printer status at any time, even in the event of printer error. An inquiry request is solicited by sending an <ESC> (ASCII 27, escape character) as the beginning control character to the printer.
  • Page 73 ; % < = Description This command resets the printer. The beginning of the command is an ESCAPE character (ASCII 27). The files downloaded in memory will be deleted. This command cannot be sent in dump mode. Syntax <ESC>!R Parameter Description See Also <ESC>!?
  • Page 74 > = ? Description 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...
  • Page 75 > = Description 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...
  • Page 76 > = Description This command inquires the presence of Real Time Clock. One byte is return from the printer, indicating whether or not the RTC is installed. This command is only for the firmware before V6.xx. Syntax Parameter Description None Return value Description RTC is not installed.
  • Page 77 > = Description This command enters the printer into DUMP mode. In DUMP mode, the printer outputs code directly without interpretation. Syntax Parameter Description None Example...
  • Page 78 > = Description This command inquires all about files resident in the printer memory, and fonts installed in the memory module. 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...
  • Page 79 > = Description The command inquires the code page and country setting of the printer. Syntax Parameter Description None The returned information is given in the following format: code page, country code ex: 8 bit: 437, 001 7 bit: USA, 001 Regarding the code pages and country codes supported by the printer, please refer to the CODEPAGE and COUNTRY command respectively.
  • Page 80 > = ! Description This command inquires the model name and number of the printer. This information is returned in ASCII characters. Syntax Parameter Description None Printer Type Returned String LB-1000 LB-1000 Example See Also ~!I, ~!F...
  • Page 81: Download

    > @ Description The beginning identifier (~#) of the prompt message is sent from the printer to the KP-200 portable keyboard. The ending identifier is ~&. @0 following the ending identifier ~& is used to instruct keyboard to display the prompt in the first line of LCD display.
  • Page 82 Description 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...
  • Page 83 Description 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...
  • Page 84 = " Description This command prints a specified number of labels. Syntax !Nnnn Parameter Description Specifies the number of copies to be printed. Example !N001...
  • Page 85 The detailed descriptions regarding the download syntax for different files are as follows: Maximum numbers of file saved in DRAM: 50 files for LB-1000 language printers. Maximum numbers of file saved in Flash memory: 256 files for LB-1000 language desktop printers Maximum numbers of file saved in Model DRAM FLASH Ext.
  • Page 86 Support Model DOWNLOAD DOWNLOAD DOWNLOAD MOVE "filename" F,"filename" E,"filename" LB-1000 Example The example program listed below will download to printer SDRAM. DOWNLOAD "EXAMPLE.BAS" SIZE 4,4 GAP 0,0 DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF...
  • Page 87 TEXT 100,100,"3",0,1,1,"EXAMPLE PROGRAM" PRINT 1 Note: When writing a download program, “ DOWNLOAD” header must be placed in the beginning of file, and “ EOP” must be placed at the end of program. To run the program, call the main filename without BAS extension or use RUN command to start the download program.
  • Page 88 Description End of program. To declare the start and end of BASIC language commands used in a program, DOWNLOAD "FILENAME.BAS " must be added in the first line of the program, and "EOP " statement at the last line of program. Syntax Example DOWNLOAD "DEMO.BAS"...
  • Page 89: Files

    Description This command prints out the total memory size, available memory size and files lists (or lists the files through RS-232) in the printer memory (both FLASH memory and DRAM). Syntax FILES Example Follow the steps below to print out (or list through RS-232) files saved in printer memory using the DOS environment through serial port or parallel port connection.
  • Page 90: Kill

    Support Model KILL "*" KILL "*" KILL F,"*" KILL E,"*" MOVE LB-1000 Syntax KILL [n],”FILENAME” Parameter Description 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.
  • Page 91 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...
  • Page 92: Move

    Description This command moves downloaded files from DRAM to FLASH memory. Syntax MOVE Parameter Description See Also DOWNLOAD, EOP...
  • Page 93: Run

    This command executes a program resident in the printer memory This command is available for TSPL2 language printers only. Syntax RUN "FILENAME.BAS" Model Support LB-1000 Example C:\>COPY CON LPT1<ENTER> RUN "DEMO.BAS "<ENTER> <CTRL><Z><ENTER> C:\> Note: <ENTER> stands for PC keyboard "ENTER " key. <CTRL><Z> means to hold PC keyboard “...
  • Page 94: Abs( )

    *% 6 : Description This function returns the absolute value of an integer, floating point or variable. Syntax ABS (VARIABLE) Example DOWNLOAD "TEST.BAS" SIZE 4,4 GAP 0,0 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...
  • Page 95: Asc( )

    % 6 : Description This function returns the ASCII code of the character. Syntax ASC ("A") Example DOWNLOAD "TEST.BAS" 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$()
  • Page 96: Chr$( )

    . C 6 : Description This function returns the character with the specified ASCII code. Syntax CHR$(n) Parameter Description The ASCII code Example DOWNLOAD "TEST.BAS" SIZE 4,4 GAP 0,0 DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF A=65 WORD$=CHR$(A)
  • Page 97: End

    " Description This command states the end of program. Syntax Example DOWNLOAD "DEMO.BAS" SIZE 4,2 GAP 0,0 DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF 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...
  • Page 98: Eof( )

    Description This function is used to detect an opened download file to see whether it has reached the end of file. Syntax EOF (File Handle) Parameter Description File handle Either 0 or 1. Return value Description None-zero End of file Not end of file Example DOWNLOAD "DATA",16,COMPUTER...
  • Page 99 This command opens a downloaded file and establishes the file handle. Up to two file handles are supported, thus only up to two files can be opened simultaneously. The file to be opened should be downloaded prior to using this command. When opening a file, the firmware will search automatically to see if the file exists in the on board flash memory or extended memory card.
  • Page 100 DENSITY 8 SPEED 4 DIRECTION 0 Y=100 GOSUB OpenData :Start TEXT 10,10,"3",0,1,1,"*****OPEN COMMAND TEST*****" ITEM$="" READ 0,ITEM$,P,Q 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$(Q)+"="+STR$(P*Q) Y=Y+100 PRINT 1 Y=100 IF EOF(0)=1 THEN GOSUB OpenData IF EOF(0)=0 THEN GOTO Start :OpenData IF I=1 THEN OPEN "DATA1",0 IF I=2 THEN OPEN "DATA2",0 SEEK 0,0 IF I>2 THEN END...
  • Page 101: Write

    Description This command writes data to a downloaded data file. Two files can be open simultaneously, by virtue of printer support for two file handles. 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$()
  • Page 102: Read

    Description This command reads data from downloaded data file. Syntax READ file handle, variables Parameter Description file handle 0 or 1 variables string, integer or float point variable Example DOWNLOAD "DATA1",20,COMPUTER 2000 DOWNLOAD "DATA2",16,Mouse DOWNLOAD "DEMO.BAS" SIZE 3,1 GAP 0,0 DENSITY 8 SPEED 4 DIRECTION 0...
  • Page 103 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$()
  • Page 104: Seek

    Description This command shifts the specified file pointer to a certain position. Syntax SEEK file handle, offset Parameter Description file handle 0 or 1 offset the offset characters which are shifted to a new position Example DOWNLOAD "DATA",12,1234567890 DOWNLOAD "TEST.BAS" SIZE 3,1 GAP 0,0 DENSITY 8...
  • Page 105: Lof( )

    $ 6 : Description This function returns the size of the specified file. Syntax LOF ("FILENAME") Parameter Description FILENAME The file downloaded in the printer memory. Example DOWNLOAD "DATA1",10,1234567890 DOWNLOAD "DATA2",15,ABCDEFGHIJKLMNO DOWNLOAD "LofTest.BAS" SIZE 3,3 GAP 0.08,0 DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF...
  • Page 106: Fread$( )

    C 6 : Description This function reads a specified number of bytes of data from a file. Syntax FREAD$ (file handle, byte) Parameter Description file handle Either 0 or 1 byte Number of bytes to be read Example DOWNLOAD "DATA1",10,1234567890 DOWNLOAD "DATA2",15,ABCDEFGHIJKLMNO DOWNLOAD "OPEN2.BAS"...
  • Page 107: For...next Loop

    D " 1! $ Description Loop is used to execute one or more lines of program repetitively. A loop counter value specifies the number of executions. Nested loops are allowed (up to 39 nested loops) in this printer. Jumping out in the middle of the FOR…...
  • Page 108 Use IF… THEN block to execute one or more statements conditionally. Either a single-line syntax or multiple-line “block” syntax can be used: Support MODEL single-line form multiple-line form LB-1000 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)
  • Page 109 GAP 0.12,0 SPEED 4 DENSITY 8 DIRECTION 1 REFERENCE 0,0 OFFSET 0.00 SET CUTTER OFF SET PEEL OFF FOR I=1 TO 100 IF I-INT(I/1)*1=0 THEN A=A+I IF I-INT(I/2)*2=1 THEN B=B+I ELSE C=C+I IF I-INT(I/3)*3=0 THEN D=D+I ENDIF IF I-INT(I/5)*5=0 THEN E=E+I ELSE F=F+I...
  • Page 110 TEXT 100,310,"3",0,1,1,"(5) 5+10+15+...+100="+STR$(E) 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 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF A=50 C$=""...
  • Page 111 Limitations: The total numbers of nested IF …THEN …ELSE statement in a program cannot exceed The total numbers of nested IF …THEN …ELSE, FOR…NEXT, GOSUB RETURN program cannot exceed 40 loops. See Also DOWNLOAD, EOP...
  • Page 112: Gosub

    ) % + *D ! + " Description This command will branch to a subroutine, executing statements until “RETURN” is reached. Syntax GOSUB LABEL statement :LABEL statement RETURN Parameter Description LABEL Beginning of the subroutine. The maximum length of the label is 8 characters.
  • Page 113 Description This command is used to branch to a specified label. The label cannot exceed 8 characters in length. Syntax GOTO LABEL :LABEL Parameter Description LABEL Beginning of the point. The maximum length of the label is 8 characters. Example DOWNLOAD "GOTO1.BAS"...
  • Page 114: Inp$( )

    " C 6 : Description One byte is received from a serial port through this function. Syntax INP$(n) Parameter Description 1: com1 port in printer Example DOWNLOAD "DEMO.BAS" SIZE 3,3 GAP 0,0 DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF T$=""...
  • Page 115: Input

    " + ! Description This command receives data through serial port. This command is used with portable keyboard KP-200. Syntax INPUT ["Prompt string", number of digits], variables The comma also can be replaced by semicolon, such as: INPUT ["Prompt string"; number of digits]; variables Parameter Description Prompt string...
  • Page 116: Rem

    Description Comment. Prefix is “REM”, which will be ignored by the printer. Syntax Example REM ******************************** REM This is a demonstration program* REM ******************************** DOWNLOAD "REMARK.BAS" SIZE 3,3 GAP 0.08,0 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"...
  • Page 117 Description This command sends data through the printer serial port. Syntax OUT "prompt", variable Parameter Description prompt Prompt which is shown on LCD screen. variable The output message. Example 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...
  • Page 118: Getkey()

    0 is returned if PAUSE key is pressed and 1 is returned if FEED key is pressed. Syntax GETKEY() Model PAUSE FEED LB-1000 Example DOWNLOAD "DEMO4.BAS" SIZE 4,4 GAP 0,0 :START A=GETKEY() IF A=0 THEN GOTO PAUSEB...
  • Page 119 " ! 6 : Description This function truncates a floating point number. Syntax INT (n) Parameter Description positive or negative integer, floating point number or mathematical expression. Example DOWNLOAD "DEMO.BAS" SIZE 4,2 GAP 0,0 DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET PEEL OFF...
  • Page 120: Left$( )

    $ ! C 6 : Description This function returns the specified number of characters down from the initial character of a string. Syntax LEFT$ (X$, n) Parameter Description The string to be processed The number of characters to be returned Example DOWNLOAD "STR1.BAS"...
  • Page 121: Len( )

    $ " 6 : Description This function returns the length of a string. Syntax LEN (string) Parameter Description string The string whose length is to be measured. . Example DOWNLOAD "DEMO.BAS" 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."...
  • Page 122 C 6 : Description This function retrieves the specified number of characters down from the mth character of a string. Syntax MID$(string, m, n) Parameter Description string The string to be processed. The beginning of m characters in the string. 1 <= m <= string length The number of characters to return.
  • Page 123: Right$( )

    ) . ! C 6 : Description This function returns a specified number of characters up from the end of a string. Syntax RIGHT$ (X$, n) Parameter Description The string to be processed The number of characters to be returned from the right side (end) of the string Example DOWNLOAD "DEMO.BAS"...
  • Page 124 % ! C 6 : Description This function converts a specified value or expression into corresponding string of characters. Syntax STR$ (n) Parameter Description 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...
  • Page 125 Description Returns -1, 0, or 1, based on the result of a string comparison. Syntax STRCOMP (str1$, str2$ [, comp] ) Parameter Description str1$ Required. Any valid string expression. str2$ Required. Any valid string expression. comp Optional. Specifies the type of string comparison. 0: Binary comparison.
  • Page 126: Strcomp()

    " % ! 6 : Description Returns an integer specifying the start position of the first occurrence of one string within another. Syntax INSTR ([start,] str1$, str2$) Parameter Description start Optional. Numeric expression that sets the starting position for each search.
  • Page 127 ! C 6 : Description Removes both leading and trailing blank spaces or specific characters from a string. Syntax TRIM$ (str$ [, list$]) Parameter Description str$ The string that will be trimmed. list$ Optional. The characters that will be removed. Example DOWNLOAD "DEMO.BAS"...
  • Page 128: Trim$( )

    $ ! C 6 : Description Removes leading blank space from a string. Syntax LTRIM$ (str$ [, list$]) Parameter Description str$ The string that will be trimmed. list$ Optional. The characters that will be removed. Example DOWNLOAD "DEMO.BAS" data1$=" 1234567 " data2$="a1234567a"...
  • Page 129: Ltrim$( )

    ! C 6 : Description Removes trailing blank space from a string. Syntax RTRIM$ (str$ [, list$]) Parameter Description str$ The string that will be trimmed. list$ Optional. The characters that will be removed. Example DOWNLOAD "DEMO.BAS" data1$=" 1234567 " data2$="a1234567a"...
  • Page 130 5 $ 6 : Description This function converts numeric characters into corresponding integer or floating point number. Syntax VAL ("numeric character") Parameter Description numeric character "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."...
  • Page 131: Beep

    Description This command issues a beep sound on portable keyboard. Printer sends the string 0x07 to KP-200 portable keyboard. Syntax BEEP Parameter Description None 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$...
  • Page 132: Now$( )

    " C 6 : Description Returns the current date and time according to the setting of your printer. Syntax NOW$( ) Parameter Description None Note: It is supported in firmware V6.81EZ or later. Example DOWNLOAD "DEMO.BAS" SIZE 4,4 GAP 0,0 DENSITY 8 SPEED 6 DIRECTION 0...
  • Page 133: Format$( )

    ! C 6 : Description Returns the current date and time according to the setting of your printer. Syntax FORMAT$(expression [, style$] ) Parameter Description expression Required. Any valid expression. style$ Optional. A valid named or user-defined format string expression. Predefined date/time format Description General Date...
  • Page 134 Example SIZE 800 dot, 1900 dot GAP 0,0 TEXT 10,10,"3",0,1,1,"General Date:" + FORMAT$(NOW$(), "General Date") TEXT 10,60,"3",0,1,1,"Long Date:" + FORMAT$(NOW$(), "Long Date") TEXT 10,110,"3",0,1,1,"Medium Date:" + FORMAT$(NOW$(), "Medium Date") TEXT 10,160,"3",0,1,1,"Short Date:" + FORMAT$(NOW$(), "Short Date") TEXT 10,210,"3",0,1,1,"Long Time:" + FORMAT$(NOW$(), "Long Time") TEXT 10,260,"3",0,1,1,"Medium Time:"...
  • Page 135: Set Counter

    % ! + " ! Description Counters can be a real counter or a variable. This setting sets the counter number in the program and its increments. There are three different types of counters: digit (0~9~0), lower case letter (a~z~a) or upper case letter (A~Z~A).
  • Page 136: Set Cutter 2

    % ! + ! ! Description This setting activates or deactivates the cutter and defines how many printed labels is to be cut at one time. This setting will be saved in printer memory after turning off the power. Syntax SET CUTTER OFF/BATCH/pieces Parameter Description...
  • Page 137 BATCH Set printer to cut label at the end of printing job. Pieces Set number of printing labels per cut. 0<= pieces <=65535 Model Support LB-1000 Example REM **SET PARTIAL_CUTTER FUNCTION OFF EXAMPLE PROGRAM** SIZE 3,1 GAP 0,0 DENSITY 8...
  • Page 138 OFFSET, PRINT, SET CUTTER...
  • Page 139: Set Back

    Description This setting is used after SET CUTTER function. This function prevents label backfeeding after a cut. Syntax SET BACK OFF/ON Model Support LB-1000 Parameter Description Disable back function. Enable back function. Example REM **SET BACK FUNCTION OFF EXAMPLE PROGRAM**...
  • Page 140 Parameter Description Enable KEYn function Disable KEYn function Model KEY0 KEY1 KEY2 KEY3 KEY4 KEY5 KEY6 LB-1000 PAUSE FEED Example DOWNLOAD "DEMO.BAS" SIZE 3,1 GAP 0,0 DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0,0 SET CUTTER OFF SET KEY1 OFF...
  • Page 141 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...
  • Page 142 Enable LEDn function Disable LEDn function The default function of LED1, LED2 and LED3 id as listed below: Model LED1 LED2 LED3 LED2 & LED3 LB-1000 GREEN GREEN ORANGE Example DOWNLOAD "DEMO4.BAS" SET LED1 OFF SET LED2 OFF SET LED3 OFF...
  • Page 144: Set Peel

    % ! $ Description This setting is used to enable/disable the self-peeling function. The default setting for this function is off. When this function is set on, the printer stops after each label printing, and does not print the next label until the peeled label is taken away.
  • Page 145 The label gap will NOT stop at the tear off position after print. The beginning of label will be aligned to print head. SUPPORT MODEL SET TEAR SET STRIPER LB-1000 Example REM ***TEAR FUNCTION ON*** SIZE 3,3 GAP 0.08,0 DENSITY 8...
  • Page 146: Set Gap

    % ! ) Description This setting sets the gap sensor emission sensitivity. The printer initiates automatic gap sensor calibration when the PAUSE key is held down while powering up. This function may cease to work if the thickness of the backing paper and that of label with backing paper are not of appreciable difference to the sensor, or when there are pre-printed marks or patterns on the label.
  • Page 147 Troubleshooting: Press the FEED key to test. Does printer stop at the same position on each label without error light blinking? 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 SIZE, GAP, BLINE...
  • Page 148: Set Head

    This setting will be saved in printer memory. This command is only available for BPL2 printers. Syntax SET HEAD ON /OFF Parameter Description Turn on the “HEAD OPEN” sensor Turn off the “HEAD OPEN” sensor Model Support LB-1000 Example SET HEAD ON SET HEAD OFF...
  • Page 149: Set Ribbon

    % ! ** " Description This setting is used to enable/disable ribbon sensor detection. (Thermal Transfer Printing/Thermal Direct Printing) Printer will detect the presence of a ribbon to determine using either direct thermal or thermal transfer printing upon printer startup. This setting will NOT be saved in printer memory. Syntax SET RIBBON ON /OFF Parameter...
  • Page 150: Set Com1

    Description This setting defines communication parameters for printer serial port. Syntax SET COM1 baud, parity, data, stop Parameter Description baud Baud rate, available baud rates are as listed : 24: 2400 bps 48: 4800 bps 96: 9600 bps 19: 19200 bps 38: 38400 bps 57: 57600 bps 115: 115200 bps...
  • Page 151 AUTO Enable this function <num> Numbers of labels will be printed if FEED button is pressed. This command is only available for TSPL2 printers. Model Support LB-1000 Example Execute: SIZE 4,2.5 GAP 0.12,0 SET PRINTKEY ON SET COUNTER @0 1 @0="0001"...
  • Page 152: Set Printkey 5

    Syntax Receive “PRINT m” Print Out 1.) PRINT 2 Label 1~2 SET PRINTKEY 5 2.) Press FEED key Label 3~7 Syntax Receive “PRINT m,n” Print Out 1.) PRINT 1,2 Label 1, Label 1 SET PRINTKEY 5 2.) Press FEED key Label 2~6 Syntax Receive “PRINT –1,n”...
  • Page 153: Set Reprint

    " ! Description This command will disable/enable a reprinting attempt subsequent to a "no paper", "no ribbon" or "carriage open" error. Syntax SET REPRINT OFF/ON Parameter Description Disable this function Enable this function Model Support LB-1000 Example SET REPRINT ON...
  • Page 154: Peel

    Description This command obtains the status of the peel-off sensor. This attribute is read only. Syntax PEEL Return Value Description Paper is not on top of peel sensor Paper is on top of peel sensor Example DOWNLOAD "DEMO.BAS" SIZE 4,1 GAP 0,0 SPEED 4 DENSITY 8...
  • Page 155 Description m=1, LED1 m=2, LED2 m=3, LED3 0: turn off LED 1: light on LED Model LED1 LED2 LED3 LED2 & LED3 LB-1000 GREEN GREEN ORANGE Example DOWNLOAD "DEMO.BAS" SIZE 3,3 GAP 0.12,0 SPEED 4 DENSITY 8 DIRECTION 1 REFERENCE 0,0...
  • Page 156 Description This command reads the status of KEY1 ,KEY2 and KEY3. Model KEY0 KEY1 KEY2 KEY3 KEY4 KEY5 KEY6 LB-1000 PAUSE FEED Syntax KEYm = n Return Value KEY1 (MENU) 0: released 1: pressed KEY2 (PAUDE) 0: released 1: pressed...
  • Page 157: Label

    ? $ * $ Description This variable counts how many pieces of labels have been printed. This attribute cannot be initialized if the printer is reset, but will be retained if the printer power is turned off. Syntax Write attribute: @LABEL=n or @LABEL=“n” Read attribute: A=LABEL or A$=STR$(LABEL) Parameter Description...
  • Page 158: Year

    Description This variable reads/writes the year data via the Real Time Clock (RTC). Four-digit year formats are supported by RTC. Syntax Write attribute: YEAR = 02 Read attribute: A = YEAR Range: 00~50 = 2000~2050; 51~99 = 1951~1999 Example DOWNLOAD "SetYear.BAS" REM *****Set Year Parameter to RTC***** YEAR=05 SetYear...
  • Page 159: Month

    " ! . Description This variable reads/writes the month data via the Real Time Clock (RTC). Two-digit (01~12) month formats are supported by RTC. Syntax Write attribute: MONTH = 01 Read attribute: A = MONTH Range: 01~12 Example DOWNLOAD "SetMonth.BAS" REM *****Set Month Parameter to RTC***** MONTH=05 SetMonth...
  • Page 160: Date

    Description This variable reads/writes the date data via the Real Time Clock (RTC). Two-digit (01~31) date formats are supported by RTC. Syntax Write attribute: DATE = 12 Read attribute: A = DATE Range: 01~31 Example DOWNLOAD "SetDate.BAS" REM *****Set Date Parameter to RTC***** DATE=30 SetDate DOWNLOAD "DEMO.BAS"...
  • Page 161: Week

    Description This variable reads/writes the day of the week data via the Real Time Clock (RTC), which is represented by one single digit (1~7). Syntax Write attribute: WEEK = 3 Read attribute: A = WEEK Range: 1(Sunday)~7(Saturday) Example DOWNLOAD "SetWeek.BAS" REM *****Set Week Parameter to RTC***** WEEK=6 SetWeek...
  • Page 162: Hour

    Description This variable reads/writes the hour data via the Real Time Clock (RTC). The 24-hour-day system (00~23) is supported by RTC. Syntax Write attribute: HOUR = 12 Read attribute: A = HOUR Range: 00~23 Example DOWNLOAD "SetHour.BAS" REM *****Set Hour Parameter to RTC***** HOUR=11 SetHour DOWNLOAD "DEMO.BAS"...
  • Page 163: Minute

    " + ! Description This variable reads/writes the minute data via the Real Time Clock (RTC). Two-digits (00~59) minute format is supported by RTC. Syntax Write attribute: MINUTE = 12 Read attribute: A = MINUTE Range: 00~59 Example DOWNLOAD "SetMinute.BAS" REM *****Set Minute Parameter to RTC***** MINUTE=59 SetMinute...
  • Page 164: Second

    " Description This variable reads/writes the second data via the Real Time Clock (RTC). Two-digits (00~59) second format is supported by RTC. Syntax Write attribute: SECOND = 12 Read attribute: A = SECOND Range: 00~59 Example DOWNLOAD "SetSecond.BAS" REM *****Set Second Parameter to RTC***** SECOND=59 SetSecond DOWNLOAD "DEMO.BAS"...
  • Page 165: Year

    RTC. @YEAR global variable can be accessed directly without using BASIC language functions. Syntax Write attribute: @YEAR = "01" Read attribute: @YEAR Range: 00~99 Model Support LB-1000 Example REM *****Set @YEAR***** @YEAR="05" REM *****Print***** SIZE 3,3 GAP 0.08,0 DENSITY 8...
  • Page 166: Month

    RTC. @MONTH global variable can be accessed directly without using BASIC language functions. Syntax Write attribute: @MONTH = "01" Read attribute: @MONTH Range: 01~12 Model Support LB-1000 Example REM *****Set @MONTH***** @MONTH="12" REM *****Print***** SIZE 3,3 GAP 0.08,0 DENSITY 8...
  • Page 167: Date

    RTC. @DATE global variable can be accessed directly without using BASIC language functions. Syntax Write attribute: @DATE = "12" Read attribute: @DATE Range: 01~31 Model Support LB-1000 Example REM *****Set @DATE***** @DATE="31" REM *****Print***** SIZE 3,3 GAP 0.08,0 DENSITY 8...
  • Page 168: Day

    (1~7). @DAY global variable can be accessed directly without using BASIC language functions. Syntax Write attribute: @DAY = "3" Read attribute: @DAY Range: 1(Sunday)~7(Saturday) Model Support LB-1000 Example REM *****Set @DAY***** @DAY="5" REM *****Print***** SIZE 3,3 GAP 0.08,0 DENSITY 8...
  • Page 169: Hour

    (00~23) is supported by RTC. @HOUR global variable can be accessed directly without using BASIC language functions. Syntax Write attribute: @HOUR = "12" Read attribute: @HOUR Range: 00~23 Model Support LB-1000 Example REM *****Set @HOUR***** @HOUR="23" REM *****Print***** SIZE 3,3 GAP 0.08,0 DENSITY 8...
  • Page 170: Minute

    RTC. @MINUTE global variable can be accessed directly without using BASIC language functions. Syntax Write attribute: @MINUTE = "12" Read attribute: @MINUTE Range: 00~59 Model Support LB-1000 Example REM *****Set @MINUTE***** @MINUTE="59" REM *****Print***** SIZE 3,3 GAP 0.08,0 DENSITY 8...
  • Page 171 RTC. @SECOND global variable can be accessed directly without using BASIC language functions. Syntax Write attribute: @SECOND = "12" Read attribute: @SECOND Range: 00~59 Model Support LB-1000 Example REM *****Set @SECOND***** @SECOND = "59" REM *****Print***** SIZE 3,3 GAP 0,0 DENSITY 8...

Table of Contents