background image

 

 
 
 
 
 
 

EC-3150 

Barcode Thermal Printer 

 

Programming Manual 

 

 

Содержание EC-3150

Страница 1: ...EC 3150 Barcode Thermal Printer Programming Manual...

Страница 2: ...BACKUP 11 14 FORMFEED 12 15 HOME 13 16 PRINT 14 17 SOUND 15 18 LIMITFEED 16 19 SELFTEST 16 Label Formatting Commands 17 20 BAR 17 21 BARCODE 18 22 BITMAP 22 23 BOX 24 24 ERASE 25 25 PUTBMP 26 26 PUTPC...

Страница 3: ...ELSE ENDIF LOOP 57 55 GOSUB RETURN 60 56 GOTO 61 57 REM 62 58 INT 63 59 LEFT 64 60 LEN 65 61 MID 66 62 RIGHT 67 63 STR 68 64 VAL 69 65 BEEP 70 Device Reconfiguration Commands 71 66 SET COUNTER 71 67 S...

Страница 4: ...atus 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...

Страница 5: ...ax 1 English system inch SIZE m n 2 Metric system mm SIZE m mm n mm Parameter Description m Label width inch or mm n Label length inch or mm Note 200 DPI 1 mm 8 dots For metric system there must be a...

Страница 6: ...gth 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 prin...

Страница 7: ...m 25 4 mm n Extra feed paper length 0 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 GAP to Bl...

Страница 8: ...to register at proper places for the intended purposes The printer backtracks the extra feeding length before the next run of printing Syntax 1 English system inch OFFSET m 2 Metric system mm OFFSET...

Страница 9: ...meter Description n printing speed in inch per second Example SPEED 10 See Also DENSITY 6 DENSITY Description This command designates the level of darkness of printing Syntax DENSITY n Parameter Descr...

Страница 10: ...This command defines the printout direction and mirror image And this will be memorized in EEPROM Syntax DIRECTION n m Parameter Description n 0 or 1 Please refer to the illustrations below m 0 Print...

Страница 11: ...nce point of the label The reference origin point varies with the print direction as shown Syntax REFERENCE x y Parameter Description x Horizontal coordinate with dot as the unit y Vertical coordinate...

Страница 12: ...moves the entire label away from the top of the label a positive value moves the entire label to the top of label Syntax SHIFT n Parameter Description n The maximum value is 1 inch For 200 dpi printer...

Страница 13: ...code page which can be divided into 8 bit code page further 8 bit code page number 437 United States 850 Multilingual 852 Slavic 860 Portuguese 863 Canadian French 865 Nordic 857 Turkish Windows code...

Страница 14: ...e N A Note This command must be placed after SIZE command Example CLS See Also SIZE GAP 12 FEED Description This command feeds label with the specified length The length is specified by dot Syntax FEE...

Страница 15: ...with the specified length The length is specified by dot Syntax BACKUP n BACKFEED n Parameter Description n unit dot 1 n 9999 Example BACKUP 40 BACKFEED 40 CAUTION Impropriety back feed value may caus...

Страница 16: ...l Syntax FORMFEED Parameter Description None N A Example SIZE 3 2 5 GAP 0 mm 0 SPEED 4 DENSITY 7 DIRECTION 0 OFFSET 0 00 REFERENCE 0 0 SET PEEL OFF SET COUNTER 0 1 0 000001 FORMFEED CLS BOX 1 1 360 65...

Страница 17: ...label to the beginning of next label The size and gap of the label should be setup in advance Syntax HOME Parameter Description None N A Example SIZE 3 2 5 GAP 2 mm 0 SPEED 4 DENSITY 7 DIRECTION 0 OFF...

Страница 18: ...Description m 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 n Specifies how many copies should be printed for each set...

Страница 19: ...e 10 levels of sounds The timing control the sound can be set by the interval parameter Syntax SOUND level interval Parameter Description level Sound level 0 9 interval Sound interval 1 4095 Example S...

Страница 20: ...locate gap after feeding the length of one label plus one preset value Syntax LIMITFEED n inch the English system LIMITFEED n mm mm the metric system Parameter Description n inch or mm Remark The set...

Страница 21: ...rdinate in dot width The width of bar in dot height The height of bar in dot Note 200 DPI 1 mm 8 dots Recommended max bar height is 12mm at 3 width Bar height over than 12 mm may damage the power supp...

Страница 22: ...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 dig...

Страница 23: ...d standard code 39 for PLUS models 39C Code 39 full ASCII with check digit Code 39 standard with check digit Auto switch full ASCII and standard code 39 for PLUS models 39S Code 39 standard 93 Code 93...

Страница 24: ...10x 5x N A 25C N A 10x 10x 5x N A 39 N A 10x 10x 5x N A 39C N A 10x 10x 5x N A 93 N A N A 10x N A N A EAN13 8x N A N A N A N A EAN13 2 8x N A N A N A N A EAN13 5 8x N A N A N A N A EAN8 8x N A N A N A...

Страница 25: ...C UPCE 2 8 93 UPCE 5 11 EAN13 12 CPOST EAN13 2 14 MSI EAN13 5 17 MSIC EAN8 7 PLESSY EAN8 2 9 ITF14 13 EAN8 5 12 EAN14 13 CODA Example BARCODE 100 100 39 96 1 0 2 4 1000 BARCODE 10 10 128M 48 1 0 2 2 1...

Страница 26: ...ntax BITMAP X Y width height mode bitmap data Parameter Description x Specify the x coordinate of the bitmap image y Specify the y coordinate of the bitmap image width The width of the image in bytes...

Страница 27: ...11 FF 4 00000011 03 11111111 FF 5 00010001 11 11111111 FF 6 00011000 18 11111111 FF 7 00011100 1C 01111111 7F 8 00011110 1E 00111111 3F 9 00011111 1F 00011111 1F A 00011111 1F 10001111 8F B 00011111 1...

Страница 28: ...ht corner in dot Y_end Specify y coordinate of lower right corner in dot line thickness Line thickness of the box in dot Note 200 DPI 1 mm 8 dots Recommended max thickness of box is 12mm at 3 width Th...

Страница 29: ...ht Parameter Description X_start The x coordinate of the starting point in dot Y_start The y coordinate of the starting point in dot X_width The region width in x axis direction in dot Y_height The re...

Страница 30: ...ription This command is used to print BMP format image Syntax PUTBMP X Y filename Parameter Description x The x coordinate of the BMP format image y The y coordinate of the BMP format image filename T...

Страница 31: ...PUTPCX Description This command is used to print PCX format image Syntax PUTPCX X Y filename Parameter Description X The x coordinate of the PCX image y The y coordinate of the PCX image filename The...

Страница 32: ...atches JIS X 0201 4 Japanese characters Shift JIS values 8140HEX 9FFCHEX and E040HEX EAA4 HEX These are values shifted from those of JIS X 0208 Refer to JIS X 0208Annex 1 Shift Coded Representation fo...

Страница 33: ...matic generation of QRCODE a General data string SIZE 4 2 5 GAP 0 12 0 CLS QRCODE 10 10 H 4 A 0 ABCabc123 QRCODE 160 160 H 4 A 0 123ABCabc QRCODE 310 310 H 4 A 0 barcode printer ABCabc123 PRINT 1 1 b...

Страница 34: ...r 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 barcode printer B0002 Enter AABC B0010 Enter abc Enter 123 PRINT 1 1 c Data concatenation must be...

Страница 35: ...direction in dot Y_height The region height in y axis direction in dot Note 200 DPI 1 mm 8 dots Recommended max height of reversed black area is 12mm at 3 width Height of reversed area that is larger...

Страница 36: ...ST24 BF2 Traditional Chinese 24 x 24 font TSS24 BF2 Simplified Chinese 24 x 24 font GB K Korean 24 x 24 font KS Rotation The rotation angle of text 0 0 degree 90 90 degrees in clockwise direction 180...

Страница 37: ...n 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 pr...

Страница 38: ...0 Pause 20 Printing Syntax ESC See Also ESC R ESC R Description 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 b...

Страница 39: ...is 0x0D Syntax Parameter Description N A N A Example 32 A Description This command is used to inquire about the free memory of the printer The number of bytes of free memory is returned in decimal di...

Страница 40: ...None N A Example D 34 F Description 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 Ea...

Страница 41: ...ge code ex 8 bit 437 001 Regarding the code pages supported by the printer please refer to the CODEPAGE command respectively Syntax I Parameter Description None N A Example I See Also CODEPAGE 36 T De...

Страница 42: ...xecution function please follow the procedures below Syntax 1 Download a program file DOWNLOAD n FILENAME BAS Parameter Description n Specify the memory which is used to save the download files n is i...

Страница 43: ...x0A is the separator of data 2 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 pow...

Страница 44: ...s ENTER key instead of typing ENTER in the above example See Also EOP RUN PUTBMP PUTPCX 38 EOP Description End of program To declare the start and end of BASIC language commands used in a program the...

Страница 45: ...well Syntax FILES Example Follow the steps below to print out or lists the files through RS 232 the files that are saved in printer memory in DOS environment through serial port or parallel port conne...

Страница 46: ...l delete the file in DRAM Syntax example 1 KILL FILENAME 2 KILL PCX 3 KILL 4 KILL F FILENAME 5 KILL E PCX Example Users can use printer SELFTEST utility to list printer configurations and files saved...

Страница 47: ...iption N A N A See Also DOWNLOAD EOP 42 RUN Description This command is used to execute a program that resident in printer memory Syntax RUN FILENAME BAS Example C COPY CON LPT1 ENTER RUN DEMO BAS ENT...

Страница 48: ...n integer floating point or variable Syntax ABS 100 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 CLS A ABS 100 B ABS 50 98...

Страница 49: ...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 CLS CODE1 ASC A TEXT 100 100 3 0...

Страница 50: ...aracter that has the specified ASCII code Syntax CHR n Parameter Description n 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 CLS A...

Страница 51: ...tax END Example DOWNLOAD DEMO BAS SIZE 3 2 GAP 0 0 DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0 0 SET PEEL OFF CLS TEXT 200 60 4 0 1 1 END COMMAND TEST X 300 Y 200 X1 500 Y1 400 GOSUB DR_LINE PRINT 1 END...

Страница 52: ...Description None zero End of file 0 Not end of file Example DOWNLOAD DATA 16 COMPUTER 2000 DOWNLOAD DEMO BAS SIZE 3 3 GAP 0 0 0 DENSITY 8 SPEED 4 DIRECTION 0 REFERENCE 0 0 SET PEEL OFF CLS OPEN DATA 0...

Страница 53: ...e downloaded in the printer memory File handle Either 0 or 1 Example If a file by the name of DATA is to be downloaded The file format contains DOWNLOAD DATA1 56 COMPUTER 2000 12 MOUSE 500 13 KEYBOARD...

Страница 54: ...nData IF EOF 0 0 THEN GOTO Start END OpenData IF I 1 THEN OPEN DATA1 0 IF I 2 THEN OPEN DATA2 0 SEEK 0 0 IF I 2 THEN END I I 1 RETURN EOP DEMO Saving the above contents of data under the file name of...

Страница 55: ...ndle variables Parameter Description File handle 0 or 1 variables string integer or float point variable Example DOWNLOAD DATA1 20 COMPUTER 2000 12 DOWNLOAD DATA2 16 Mouse 900 93 DOWNLOAD DEMO BAS SIZ...

Страница 56: ...Y Y 100 PRINT 1 Y 100 IF I 1 THEN IF EOF I 1 THEN I I 1 GOTO Start ELSE GOTO Start ENDIF ELSE END ENDIF EOP DEMO See Also DOWNLOAD EOP OPEN EOF LOF SEEK FREAD 50 SEEK Description This command is used...

Страница 57: ...REFERENCE 0 0 CLS OPEN DATA 0 SEEK 0 4 READ 0 Num 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 REA...

Страница 58: ...ple 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 PEEL OFF CLS OPEN DATA1 0 OPEN DATA2 1 TEXT...

Страница 59: ...ther 0 or 1 byte Number of bytes to be read Example DOWNLOAD DATA1 10 1234567890 DOWNLOAD DATA2 15 ABCDEFGHIJKLMNO DOWNLOAD OPEN2 BAS SIZE 3 3 GAP 0 08 0 DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0 0 SE...

Страница 60: ...nt start end NEXT Parameter Description Variable The variable name is up to 8 characters start Can be integer or floating point numbers end Can be integer of floating point numbers increment nteger or...

Страница 61: ...ition THEN Statements ENDIF Or IF condition THEN Statements ELSE Statements ENDIF Or IF condition 1 THEN Statement block 1 ELSEIF condition 2 THEN Statement block 2 ELSEIF condition n THEN Statement b...

Страница 62: ...T I 27 27 0 THEN J J I ELSEIF I INT I 37 37 0 THEN K K I ELSE L L I ENDIF NEXT 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...

Страница 63: ...s nonzero the statement following THEN will be executed If the result of the expression is zero and the statement following the ELSE present it will be executed Otherwise the next line of statement is...

Страница 64: ...tatement Syntax GOSUB LABEL statement END LABEL statement RETURN Parameter Description LABEL Beginning of the subroutine The maximum length of the label is 8 characters Example DOWNLOAD GOSUB1 BAS SIZ...

Страница 65: ...EL LABEL Parameter Description None N A Example DOWNLOAD GOTO1 BAS SIZE 3 3 GAP 0 08 0 DENSITY 8 SPEED 4 DIRECTION 1 REFERENCE 0 0 SET PEEL OFF CLS A 0 TOTAL 0 START IF A 100 THEN GOTO SUM ELSE GOTO P...

Страница 66: ...the printer Syntax REM 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 PEEL OFF CLS TEXT 50 50 3 0 1 1 REMA...

Страница 67: ...tive integer floating point number or mathematical expression Example DOWNLOAD DEMO BAS SIZE 3 2 GAP 0 0 DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0 0 SET PEEL OFF CLS REM To round up or down INPUT Numb...

Страница 68: ...FT X n Parameter Description X The string to be processed n The number of characters to be returned Example DOWNLOAD STR1 BAS SIZE 3 00 3 00 GAP 0 08 0 00 SPEED 4 0 DENSITY 8 DIRECTION 0 REFERENCE 0 0...

Страница 69: ...escription 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 DIRECTION 0 REFERENCE 0 0 CLS A TAIWAN SEMICONDUCTOR CO LTD B LEN...

Страница 70: ...ring The string to be processed m The beginning of mth characters in the string 1 m string length n The number of characters to return Example DOWNLOAD DEMO BAS SIZE 3 00 3 00 GAP 0 08 0 00 SPEED 4 0...

Страница 71: ...on X The string to be processed n The number of characters to be returned from the right side end of the string Example DOWNLOAD DEMO BAS SIZE 3 00 3 00 GAP 0 08 0 00 SPEED 4 0 DENSITY 8 DIRECTION 0 R...

Страница 72: ...n 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 DIRECTION 0 REFERENCE 0 0 CLS A TAIWAN SEMICONDUCTOR CO LTD F 100...

Страница 73: ...racter 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 DIRECTION 0 REFERENCE 0 0 CLS A TAIWAN SEMICONDUCTOR CO LTD F 100 G 500 H...

Страница 74: ...and is used to issue a beep sound on portable keyboard Syntax BEEP Parameter Description None N A Example DOWNLOAD DEMO BAS SIZE 3 4 GAP 0 0 DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0 0 SET PEEL OFF CL...

Страница 75: ...tep n Expression Parameter Description n n counter number There are 51 counters available 0 50 in the printer step The increment of the counter can be positive or negative 999999999 step 999999999 If...

Страница 76: ...ON OFF Parameter Description ON Enable KEY1 as FEED function Enable KEY2 as PAUSE function OFF Disable KEY1 as FEED function Disable KEY2 as PAUSE function Note The setting will remain in the printer...

Страница 77: ...each label printing and does not print the next label until the peeled label is taken away This setting will be saved in printer memory when turning off the power Syntax SET PEEL ON OFF Parameter Des...

Страница 78: ...the power Syntax SET TEAR ON OFF Parameter Description ON The label gap will stop at the tear off position after print OFF The label gap will NOT stop at the tear off position after print The beginni...

Страница 79: ...ption Set the on off RIBBON sensor ie to switch the Thermal transfer Thermal Direct Usually when the printer is powered on Ribbon sensor will automatically detect whether the printer has been installe...

Страница 80: ...96 9600 bps 19 19200 bps Parity Parity check N None parity check E Even parity check O Odd parity check data Data bit 8 8 bits data 7 7 bits data stop Stop bit 1 1 stop bit 2 2 stop bits Example The...

Страница 81: ...includes serial text or barcode it will change the serial number accordingly This setting will be saved in printer memory Syntax SET PRINTEKY OFF ON AUTO num Parameter Description OFF Disable this fu...

Страница 82: ...FEED key Label 2 Label 2 Syntax Receive PRINT 1 n Print Out SET PRINTKEY ON or SET PRINTKEY AUTO 1 PRINT 1 2 Label 1 Label 1 2 Press FEED key Label 1 Label 1 Syntax Receive PRINT m Print Out SET PRINT...

Страница 83: ...FF Disable this function ON Enable this function Example SET REPRINT ON 75 PEEL Description This command is used to obtain status of the peel off sensor Its attribute is read only Syntax PEEL Paramete...

Страница 84: ...of KEY1 KEY2 Syntax KEYm n Key Return Value KEY1 FEED 0 released 1 pressed KEY2 PAUSE 0 released 1 pressed Example DOWNLOAD DEMO BAS SIZE 3 1 GAP 0 0 SPEED 4 DENSITY 8 DIRECTION 1 REFERENCE 0 0 SET KE...

Страница 85: ...Number of labels printed 0 n 999999999 Example DOWNLOAD DEMO BAS SIZE 3 2 5 GAP 2 mm 0 SPEED 6 DENSITY 12 CLS TEXT 10 50 3 0 1 1 LABEL TEXT 10 100 3 0 1 1 LABEL STR LABEL TEXT 10 150 3 0 1 1 Statement...

Отзывы: