EcLine EC-3150 Programming Manual

EcLine EC-3150 Programming Manual

Barcode thermal printer

Advertisement

Quick Links

EC-3150
Barcode Thermal Printer
Programming Manual

Advertisement

Table of Contents
loading

Summary of Contents for EcLine EC-3150

  • Page 1 EC-3150 Barcode Thermal Printer Programming Manual...
  • Page 2: Table Of Contents

    32. ~!A ..................................35 ~!C ..................................35 33. ~!D ..................................36 34. ~!F ..................................36 35. ~!I ..................................37 36. ~!T ..................................37 File Management Commands ............................38 37. DOWNLOAD ...............................38 38. EOP ..................................40 39. FILES ..................................41 40. KILL ..................................41 41. MOVE ...................................43 EC-3150 THERMAL BARCODE PRINTER...
  • Page 3 69. SET TEAR & SET STRIPPER ..........................74 70. SET HEAD ................................75 71. SET RIBBON ................................75 72. SET COM1 ................................76 73. SET PRINTKEY ..............................77 74. SET REPRINT ..............................79 75. PEEL ..................................79 76. KEY1, KEY2 ................................80 Printer Global Variables ..............................81 77. @LABEL ................................81 EC-3150 THERMAL BARCODE PRINTER...
  • Page 4 (ASCII 34), beginning and ending of expression CR, LF (ASCII 13), (ASCII 10) is placed at the end of command line. Note: 200 DPI: 1 mm = 8 dots Times New Roman font in bold and italic type is used for note. EC-3150 THERMAL BARCODE PRINTER...
  • Page 5: Setup And System Commands

    Note: 200 DPI: 1 mm = 8 dots For metric system, there must be a space between parameter and “mm”. Example English system (inch) SIZE 3.5, 3.00 (2) Metric system (mm) SIZE 100 mm, 100 mm See Also GAP, BLINE EC-3150 THERMAL BARCODE PRINTER...
  • Page 6: Gap

    GAP 0.12,0 (2) Metric system (mm) GAP 3 mm,0 (3) Continuous label GAP 0,0 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 EC-3150 THERMAL BARCODE PRINTER...
  • Page 7: Bline

    Ex: In DOS mode, C:\>copy con lpt1 <Enter> BLINE 2 mm,0 <Enter> <Ctrl>+<Z> <Enter> Example (1) English system (inch) Bline 0.20, 0.50 (2) Metric system (mm) Bline5.08mm, 127mm (3) Continuous label GAP 0,0 See Also SIZE, GAP EC-3150 THERMAL BARCODE PRINTER...
  • Page 8: Offset

    Description 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 EC-3150 THERMAL BARCODE PRINTER...
  • Page 9: Speed

    See Also DENSITY 6. DENSITY Description This command designates the level of darkness of printing. Syntax DENSITY n Parameter Description 0~15 0, specifies the lightest level 15, specifies the darkest level Example DENSITY 7 See Also DENSITY EC-3150 THERMAL BARCODE PRINTER...
  • Page 10: Direction And Mirror Image

    This command defines the printout direction and mirror image. And this will be memorized in EEPROM. Syntax DIRECTION n[,m] Parameter Description 0 or 1. Please refer to the illustrations below: 0: Print normal image. 1: Print mirror image. Example DIRECTION 0[,0] See Also REFERENCE EC-3150 THERMAL BARCODE PRINTER...
  • Page 11 Syntax REFERENCE x, y Parameter Description Horizontal coordinate, with “dot” as the unit. Vertical coordinate, with “dot” as the unit. Note: 200 DPI: 1 mm = 8 dots Example REFERENCE 10,10 See Also DIRECTION EC-3150 THERMAL BARCODE PRINTER...
  • Page 12: Shift

    The maximum value is 1 inch. For 200 dpi printers, the range is –203 to 203; The unit is dot. SIZE 3,2.5 GAP 2 mm,0 DIRECTION 0 SHIFT 0 OFFSET 0 TEXT 400,200,"3",0,1,1,"DIRECTION 0" TEXT 400,250,"3",0,1,1,"SHIFT 0" BOX 10,0,780,490,8 PRINT 3,1 See Also OFFSET, REFERENCE EC-3150 THERMAL BARCODE PRINTER...
  • Page 13: Codepage

    857: Turkish Windows code page 1250: Central Europe 1252: Latin I 1253: Greek 1254: Turkish Note: 8-bit code page is determined by the communication parameter of DATA LENGTH Example CODEPAGE 437 See Also SET COM1, ~!I EC-3150 THERMAL BARCODE PRINTER...
  • Page 14: Cls

    This command feeds label with the specified length. The length is specified by dot. Syntax FEED n Parameter Description unit: dot 1 ≤ n ≤ 9999 Example FEED 40 Note: 200 DPI: 1 mm = 8 dots See Also BACKFEED, SIZE, GAP, HOME, FORMFEED EC-3150 THERMAL BARCODE PRINTER...
  • Page 15: Backfeed & Backup

    1 ≤ n ≤ 9999 Example BACKUP 40 BACKFEED 40 CAUTION: Impropriety back feed value may cause paper jam or wrinkle. Note: 200 DPI: 1 mm = 8 dots See Also FEED, SIZE, GAP, HOME, FORMFEED EC-3150 THERMAL BARCODE PRINTER...
  • Page 16: Formfeed

    SPEED 4 DENSITY 7 DIRECTION 0 OFFSET 0.00 REFERENCE 0,0 SET PEEL 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, , HOME, BACKFEED EC-3150 THERMAL BARCODE PRINTER...
  • Page 17: Home

    GAP 2 mm,0 SPEED 4 DENSITY 7 DIRECTION 0 OFFSET 0.00 REFERENCE 0,0 SET PEEL 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, FORMFEED EC-3150 THERMAL BARCODE PRINTER...
  • Page 18: Print

    Specifies how many copies should be printed for each set of label. 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, DOWNLOAD EC-3150 THERMAL BARCODE PRINTER...
  • Page 19: Sound

    Syntax SOUND level,interval Parameter Description level 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 EC-3150 THERMAL BARCODE PRINTER...
  • Page 20: Limitfeed

    The default value is 10 inches when printer initializes. For metric system, there must be a space between parameter n and mm. 19. SELFTEST Description At this command, the printer will print out the printer information on the label. Syntax SELFTEST Example SELFTEST EC-3150 THERMAL BARCODE PRINTER...
  • Page 21: Label Formatting Commands

    Max. print ratio is different for each printer model. Desktop and industrial printer print ratio is limited to 20% and 30% respectively. Example SIZE 3,2.5 GAP 0,0 SPEED 6 DENSITY 8 DIRECTION 0 BAR 100, 100, 300, 200 PRINT 1,1 See Also EC-3150 THERMAL BARCODE PRINTER...
  • Page 22: Barcode

    Specify the x-coordinate of the bar code on label Specify the y-coordinate of the bar code on label code type Code 128, switching code subset A, B, C automatically 128M Code 128, switching code subset A, B, C manually. EC-3150 THERMAL BARCODE PRINTER...
  • Page 23 ➢ MSIC ➢ PLESSEY PLESSEY code ➢ ITF 14 ITF 14 code ➢ EAN 14 EAN 14 code ➢ height bar code height expressed by dot ➢ human readable 0: human not readable 1: human readable EC-3150 THERMAL BARCODE PRINTER...
  • Page 24 : wide narrow : wide narrow : wide narrow : wide narrow : wide 1:1 1:2 1:3 2:5 3:7 EAN128 EAN13 EAN13+2 EAN13+5 EAN8 EAN8+2 EAN8+5 CODA POST UPCA UPCA+2 UPCA+5 UPCE UPCE+2 UPCE+5 CPOST MSIC PLESSY ITF14 EAN14 EC-3150 THERMAL BARCODE PRINTER...
  • Page 25 (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. EC-3150 THERMAL BARCODE PRINTER...
  • Page 26: Bitmap

    Specify the x-coordinate of the bitmap image Specify the y-coordinate of the bitmap image width The width of the image in bytes height The height of the image in dot mode Graphic mode is listed below: OVERWRITE bitmap data The bitmap data EC-3150 THERMAL BARCODE PRINTER...
  • Page 27 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 3,2 GAP 0,0 BITMAP 200,200,2,16,0, PRINT 1,1 See Also PUTBMP, PUTPCX EC-3150 THERMAL BARCODE PRINTER...
  • Page 28: 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 3,2.5 GAP 0,0 SPEED 6 DENSITY 8 DIRECTION 0 BOX 100,100,200,200,5 PRINT 1,1 See Also EC-3150 THERMAL BARCODE PRINTER...
  • Page 29: Erase

    The region width in x-axis direction in dot Y_height The region height in y-axis direction in dot Example SIZE 3,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 EC-3150 THERMAL BARCODE PRINTER...
  • Page 30: Putbmp

    This command is used to print BMP format image. 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. DOWNLOAD, BITMAP, PUTPCX EC-3150 THERMAL BARCODE PRINTER...
  • Page 31: Putpcx

    Description This command is used to print PCX format image. Syntax 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 EC-3150 THERMAL BARCODE PRINTER...
  • Page 32: Qrcode

    If the first character of the barcode content is "K", the subsequent data is "Japanese Kanji". "!" Is used to convert data "N", "A", "B", "K" and so on When you convert with "!", You can convert the data type to a set of barcode content. EC-3150 THERMAL BARCODE PRINTER...
  • Page 33 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,"barcode printer ABCabc123"+"1234"+"abcd" PRINT 1,1 EOP DEMO When the content contains double quotation marks ("), replace it with \ ["] SIZE 4,2.5 CAP 0.12,0 QRCODE 10,10,H,4,A,0,"ABC\["]abc\["]123" EC-3150 THERMAL BARCODE PRINTER...
  • Page 34 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 barcode printer!AABC!B0014abc123"+"1234"+"abcd" PRINT 1,1 When the content contains double quotation marks ("), replace it with \ ["] 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 barcode printer!B0010\["]ABCabc123" PRINT 1,1 EC-3150 THERMAL BARCODE PRINTER...
  • Page 35: 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 3,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, REVERSE EC-3150 THERMAL BARCODE PRINTER...
  • Page 36: Text

    If there is any double quote (“) within the text, please change it to \[“]. If font “0” is used, the font width and font height is stretchable by x multiplication and y-multiplication parameter. It is expressed by pt (point). 1 point=1/72inch. EC-3150 THERMAL BARCODE PRINTER...
  • Page 37: Status Polling Commands (Rs-232)

    Printer Status Normal Head opened Paper Jam Paper Jam and head opened Out of paper Out of paper and head opened Out of ribbon Out of ribbon and head opened Out of ribbon and paper jam EC-3150 THERMAL BARCODE PRINTER...
  • Page 38: Esc>!R

    The beginning of the command is an ESCAPE character (ASCII 27). The files downloaded in memory will be deleted. Syntax <ESC>!R Parameter Description See Also <ESC>!? EC-3150 THERMAL BARCODE PRINTER...
  • Page 39 0x0d as ending code of PC. Syntax Parameter Description Example See Also FILES Description Through the serial port back to the printer whether to install RTC Syntax Return value Description RTC is not installed RTC installed Example EC-3150 THERMAL BARCODE PRINTER...
  • Page 40 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. Syntax Parameter Description None Example See Also FILES EC-3150 THERMAL BARCODE PRINTER...
  • Page 41 Example See Also CODEPAGE 36. ~!T Description This command is used to inquire the model name and number of the printer. They are returned in ASCII characters. Syntax Parameter Description None Example See Also ~!I, ~!F EC-3150 THERMAL BARCODE PRINTER...
  • Page 42: File Management Commands

    (2) Filename format must be in 8.3 format. (3) If memory is not specified, all files will be downloaded to (4) DRAM. No Battery is used to backup DRAM. The downloaded files in DRAM will be lost in case turns off printer power. EC-3150 THERMAL BARCODE PRINTER...
  • Page 43 To run the program, you can call the main filename without BAS extension or use RUN command to start the download program. Example: 1. Call the main filename C:\>COPY CON LPT1<ENTER> EXAMPLE<ENTER> <CTRL><Z> C:\> EC-3150 THERMAL BARCODE PRINTER...
  • Page 44: Eop

    “EOP” statement at the last line of program. Syntax Example DOWNLOAD “DEMO.BAS” SIZE 3,4 GAP 0,0 DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET PEEL OFF TEXT 100,100,”3”,0,1,1,”DEMO PROGRAM” PRINT 1 See Also DOWNLOAD, EOP, EC-3150 THERMAL BARCODE PRINTER...
  • Page 45: Files

    C:\>COPY CON COM1<ENTER> FILES<ENTER> <CTRL><Z><ENTER> C:\> C:\>COPY CON LPT1<ENTER> FILES<ENTER> <CTRL><Z><ENTER> Note: <ENTER> stands for PC keyboard “ENTER” key. <CTRL><Z> means to hold PC keyboard “CTRL” key then press the PC keyboard <Z> key. See Also ~!F, KILL EC-3150 THERMAL BARCODE PRINTER...
  • Page 46 KILL “DEMO.BAS” <ENTER> <CTRL><Z><ENTER> C:\>COPY CON LPT1<ENTER> FILES<ENTER> <CTRL><Z><ENTER> Note: <ENTER> stands for PC keyboard “ENTER” key. <CTRL><Z> means to hold PC keyboard “CTRL” key then press the PC keyboard <Z> key See Also ~!F, FILES EC-3150 THERMAL BARCODE PRINTER...
  • Page 47: Move

    RUN “FILENAME.BAS” 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 “CTRL” key then press the PC keyboard <Z> key See Also DOWNLOAD, EOP EC-3150 THERMAL BARCODE PRINTER...
  • Page 48: Basic Commands And Functions

    ABS (-99.99) ABS (VARIABLE) Example DOWNLOAD “TEST.BAS” SIZE 3,4 GAP 0,0 DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0,0 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 EC-3150 THERMAL BARCODE PRINTER...
  • Page 49: Asc( )

    This function returns the ASCII code of the character. Syntax ASC (“A”) Example DOWNLOAD “TEST.BAS” SIZE 3,4 GAP 0,0 DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0,0 SET PEEL OFF CODE1=ASC(“A”) TEXT 100,100,”3”,0,1,1,STR$(CODE1) PRINT 1 See Also DOWNLOAD, EOP, STR$() EC-3150 THERMAL BARCODE PRINTER...
  • Page 50: Chr$( )

    CHR$(n) Parameter Description The ASCII code Example DOWNLOAD “TEST.BAS” SIZE 3,4 GAP 0,0 DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0,0 SET PEEL OFF A=65 WORD$=CHR$(A) TEXT 100,100,”3”,0,1,1,WORD$ PRINT 1 See Also DOWNLOAD, EOP, STR$(), ASC$() EC-3150 THERMAL BARCODE PRINTER...
  • Page 51: End

    DIRECTION 0 REFERENCE 0,0 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 END :DR_LINE FOR I=1 TO 100 STEP 10 BOX X+I,Y+I,X1-I,Y1-I,5 NEXT RETURN EOP DEMO See Also DOWNLOAD, EOP EC-3150 THERMAL BARCODE PRINTER...
  • Page 52: Eof( )

    REFERENCE 0,0 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 See Also DOWNLOAD, EOP, OPEN, READ, SEEK EC-3150 THERMAL BARCODE PRINTER...
  • Page 53: Open

    Saving the above contents of data under the file name of “DATA”. Follow the steps below to download data to the printer C:\>COPY DATA/B LPT1 contains: If a file by name of “DEMO.BAS is to be downloaded, the file format DOWNLOAD "DEMO.BAS" SIZE 3,1 GAP 0,0 EC-3150 THERMAL BARCODE PRINTER...
  • Page 54 DEMO <Ctrl><Z> 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$() EC-3150 THERMAL BARCODE PRINTER...
  • Page 55: Read

    Example DOWNLOAD "DATA1",20,COMPUTER 2000 12 DOWNLOAD "DATA2",16,Mouse 900 93 DOWNLOAD "DEMO.BAS" SIZE 3,1 GAP 0,0 DENSITY 8 SPEED 4 DIRECTION 0 REFERENCE 0,0 SET PEEL OFF Y=100 OPEN "DATA1",0 OPEN "DATA2",1 SEEK 0,0 SEEK 1,0 :Start EC-3150 THERMAL BARCODE PRINTER...
  • Page 56: Seek

    This command is used to shift 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 the beginning of a new position EC-3150 THERMAL BARCODE PRINTER...
  • Page 57 TEXT 100,10,"3",0,1,1,"SEEK COMMAND TEST" BAR 100,40,300,4 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$() EC-3150 THERMAL BARCODE PRINTER...
  • Page 58: Lof( )

    REFERENCE 0,0 SET PEEL OFF OPEN "DATA1",0 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$() EC-3150 THERMAL BARCODE PRINTER...
  • Page 59: Fread$( )

    DIRECTION 0 REFERENCE 0,0 SET PEEL OFF Y$="" Z$="" OPEN "DATA1",0 OPEN "DATA2",1 SEEK 0,0 SEEK 1,0 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 EC-3150 THERMAL BARCODE PRINTER...
  • Page 60: For

    FOR I=1 TO 1000 STEP 100 TEXT 200,10+((I-1)/10)*3,"3",0,1,1,STR$(I) NEXT 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 LOOP See Also DOWNLOAD, EOP EC-3150 THERMAL BARCODE PRINTER...
  • Page 61 255 characters. Parameter Description condition Available relational operator: <, >, =, <=, >= statement 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 EC-3150 THERMAL BARCODE PRINTER...
  • Page 62 TEXT 100,110,"3",0,1,1,"(1) 1+2+3+...+100="+STR$(A) TEXT 100,160,"3",0,1,1,"(2) 1+3+5+...+99="+STR$(B) TEXT 100,210,"3",0,1,1,"(3) 2+4+6+...+100="+STR$(C) TEXT 100,260,"3",0,1,1,"(4) 3+6+9+...+99="+STR$(D) 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” EC-3150 THERMAL BARCODE PRINTER...
  • Page 63 The total numbers of nested IF …THEN …ELSE statement in a program cannot exceed than 40. The total numbers of nested IF …THEN …ELSE, FOR…NEXT, GOSUB RETURN in a program cannot exceed than 40 loops. See Also DOWNLOAD, EOP EC-3150 THERMAL BARCODE PRINTER...
  • Page 64: Gosub

    GAP 0,0 DENSITY 8 SPEED 4 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 EOP GOSUB1 See Also DOWNLOAD, EOP, END, GOTO EC-3150 THERMAL BARCODE PRINTER...
  • Page 65: 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 See Also DOWNLOAD, EOP, END, GOSUB…RETURN EC-3150 THERMAL BARCODE PRINTER...
  • Page 66: 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 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 EC-3150 THERMAL BARCODE PRINTER...
  • Page 67: Int()

    SET PEEL OFF REM **** To round up or down**** INPUT "Number:",Num 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$() EC-3150 THERMAL BARCODE PRINTER...
  • Page 68: Left$()

    SIZE 3.00,3.00 GAP 0.08,0.00 SPEED 4.0 DENSITY 8 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$() EC-3150 THERMAL BARCODE PRINTER...
  • Page 69: Len()

    DOWNLOAD "DEMO.BAS" SIZE 3.00,3.00 GAP 0.08,0.00 SPEED 4.0 DENSITY 8 DIRECTION 0 REFERENCE 0,0 A$="TAIWAN SEMICONDUCTOR 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() EC-3150 THERMAL BARCODE PRINTER...
  • Page 70: Mid$()

    SIZE 3.00,3.00 GAP 0.08,0.00 SPEED 4.0 DENSITY 8 DIRECTION 0 REFERENCE 0,0 A$="TAIWAN SEMICONDUCTOR 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() EC-3150 THERMAL BARCODE PRINTER...
  • Page 71: Right$()

    SIZE 3.00,3.00 GAP 0.08,0.00 SPEED 4.0 DENSITY 8 DIRECTION 0 REFERENCE 0,0 A$="TAIWAN SEMICONDUCTOR 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() EC-3150 THERMAL BARCODE PRINTER...
  • Page 72: Str$()

    SPEED 4.0 DENSITY 8 DIRECTION 0 REFERENCE 0,0 A$="TAIWAN SEMICONDUCTOR 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 See Also DOWNLOAD, EOP, END, LEFT$(), LEN(), RIGHT$(), MID$(), VAL() EC-3150 THERMAL BARCODE PRINTER...
  • Page 73: Val()

    SPEED 4.0 DENSITY 8 DIRECTION 0 REFERENCE 0,0 A$="TAIWAN SEMICONDUCTOR 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 DEMO See Also DOWNLOAD, EOP, END, LEFT$(), LEN(), RIGHT$(), MID$(), STR$() EC-3150 THERMAL BARCODE PRINTER...
  • Page 74: Beep

    This command is used to issue a beep sound on portable keyboard. Syntax BEEP Parameter Description None Example DOWNLOAD “DEMO.BAS” SIZE 3,4 GAP 0,0 DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET PEEL OFF BEEP INPUT “Text1 =”,TEXT1$ TEXT 100,100,”3”,0,1,1,TEXT1$ PRINT 1 EC-3150 THERMAL BARCODE PRINTER...
  • Page 75: Device Reconfiguration Commands

    Initial string. String length is 101 bytes Example SIZE 3,3 GAP 0,0 DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 COUNTER @1 1 @1="00001" 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 EC-3150 THERMAL BARCODE PRINTER...
  • Page 76: Set Key1, Set Key2

    SET KEY2 OFF KEY1=0 KEY2=0 :START IF KEY1=1 THEN TEXT 100,10,”3”,0,1,1,”KEY1 (FEED key) is pressed!!” PRINT 1,1 ELSEIF KEY2=1 THEN TEXT 100,10,”3”,0,1,1,”KEY2 (PAUSE key) is pressed!!” TEXT 100,60,”3”,0,1,1,”End of test” PRINT 1,1 SET KEY1 ON SET KEY2 ON EC-3150 THERMAL BARCODE PRINTER...
  • Page 77: Set Peel

    Enable the self-peeling function Disable the self-peeing function Example REM ***SELF-PEELING FUNCTION ON*** SIZE 3,4 GAP 0,0 DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0,0 SET PEEL ON TEXT 50,100,"3",0,1,1,"SELF-PEELING FUNCTION TEST" PRINT 5 See Also OFFEST, PRINT EC-3150 THERMAL BARCODE PRINTER...
  • Page 78: Set Tear & Set Stripper

    The beginning of label will be aligned to print head. Example REM ***TEAR FUNCTION ON*** SIZE 3,3 GAP 0.08,0 DENSITY 8 SPEED 4 DIRECTION 0 REFERENCE 0,0 SET PEEL OFF SET TEAR ON TEXT 50,100,"3",0,1,1,"TEAR FUNCTION TEST" PRINT 1 See Also SET PEEL EC-3150 THERMAL BARCODE PRINTER...
  • Page 79: Set Head

    This setting is not stored in the printer. This method is only applicable to heat transfer machines Syntax SET RIBBON ON /OFF Parameter Description Thermal transfer Thermal Direct Example ***Direct printing**** SIZE GAP 0,0 DENSITY 8 SPEED DIRECTION 0 REFERENCE SET PEEL OFF SET RIBBON OFF BARCODE 100,100,"39",48,1,0,2,5,"CODE 39” PRINT 1 EC-3150 THERMAL BARCODE PRINTER...
  • Page 80: Set Com1

    The parallel port is used to setup the printer serial port in this example by MS-DOS mode. 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 PC keyboard “CTRL” key then press PC keyboard <Z> key. EC-3150 THERMAL BARCODE PRINTER...
  • Page 81: Set Printkey

    Enable this function AUTO Enable this function <num> Numbers of labels will be printed if FEED button is pressed. Example Execute: SIZE 3,2.5 GAP 0.12,0 SET PRINTKEY ON SET COUNTER @0 1 @0="0001" TEXT 10,10,"5",0,1,1,@0 PRINT 1 EC-3150 THERMAL BARCODE PRINTER...
  • Page 82 Label 1, Label 1 SET PRINTKEY 5 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 EC-3150 THERMAL BARCODE PRINTER...
  • Page 83: Set Reprint

    Paper is not on top of peel sensor Paper is on top of peel sensor Example DOWNLOAD “DEMO19.BAS” SIZE 4,4 GAP 0,0 DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0,0 SET PEEL OFF SET LED1 OFF IF PEEL=1 THEN LED1=1 EC-3150 THERMAL BARCODE PRINTER...
  • Page 84: Key1, Key2

    0: released 1: pressed Example DOWNLOAD "DEMO.BAS" SIZE 3,1 GAP 0,0 SPEED 4 DENSITY 8 DIRECTION 1 REFERENCE 0,0 SET KEY1 OFF :START IF KEY1=1 THEN TEXT 100,10,"3",0,1,1,"KEY FUNCTION TEST" PRINT 1,1 GOTO START EOP DEMO EC-3150 THERMAL BARCODE PRINTER...
  • Page 85: Printer Global Variables

    IF LABEL>1000 THEN TEXT 10,200,"3",0,1,1,"LABEL>1000" ELSE TEXT 10,200,"3",0,1,1,"LABEL<1000" 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 EC-3150 THERMAL BARCODE PRINTER...

Table of Contents