background image

 

   

                          THERMAL    BARCODE    PRINTER SERIES 

15   

17. 

SOUND 

 
Description 

This command is used to control the sound frequency of the beeper. There 
are 10 levels of sounds. The timing control the sound can be set by the 

interval

 parameter.     

 

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 

 

 

Содержание GP-2120T

Страница 1: ...THERMAL BARCODE PRINTER SERIES i THE BARCODE PRINTER SERIES PROGRAMMING MANUAL GP 2120T GP 3120T GP 3150T ...

Страница 2: ...FEED 10 13 BACKFEED 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 PUTPCX 27 27 REVERSE 28 28 TEXT 29 Status Polling Commands RS 232 30 29 ESC 30 30 ESC R 31 31 32 32 A 32 33 D 33 34 F 33 35 I 34 36 T 34 File Management Commands 35 37 DOWNLOAD 35 38 EO...

Страница 3: ...53 54 IF THEN ELSE ENDIF LOOP 54 55 GOSUB RETURN 57 56 GOTO 58 57 REM 59 58 INT 60 59 LEFT 61 60 LEN 62 61 MID 63 62 RIGHT 64 63 STR 65 64 VAL 66 65 BEEP 67 Device Reconfiguration Commands 68 66 SET COUNTER 68 67 SET KEY1 SET KEY2 69 68 SET PEEL 70 69 SET TEAR SET STRIPPER 71 70 SET HEAD 71 71 SET COM1 72 72 SET PRINTKEY 73 73 SET REPRINT 75 74 PEEL 75 75 KEY1 KEY2 76 Printer Global Variables 77 7...

Страница 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 printer is ready Space ASCII 32 characters will be ignored in the command line ASCII 34 beginning and ending of expression CR LF ASCII 13 ASCII 10 is placed at the end of command line Note 203 DPI 1 m...

Страница 5: ...Syntax 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 203 DPI 1 mm 8 dots For metric system there must be a space between parameter and mm Example 1 English system inch SIZE 3 5 3 00 2 Metric system mm SIZE 76 mm 100 mm See Also GAP ...

Страница 6: ...e Syntax CASHDRAWER m t1 t2 Parameter Description m Connector pin m 1 2 t1 0 t1 255 t2 0 t2 255 m Connector pin 1 Drawer kick out connector pin2 2 Drawer kick out connector pin5 The pulse ON time is t1 x 2 ms and the OFF time is t2 x 2ms if t2 t1 the OFF time is t1 x 2 ms ...

Страница 7: ...length inch or mm 0 0 Continuous label Note For metric system there must be a space between parameter and mm When the sensor type is changed from Black Mark to GAP please send the GAP command to the printer first Ex In DOS mode C copy con lpt1 Enter GAP 2 mm 0 Enter Ctrl Z Enter Example Normal gap 1 English system inch GAP 0 12 0 2 Metric system mm GAP 3 mm 0 3 Continuous label GAP 0 0 Special gap...

Страница 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 m mm Parameter Description m The offset distance inch or mm 1 m 1 inch CAUTION Impropriety offset value may cause paper jam Example 1 English system inch OFFSET 0 5 2 Metric system mm OFFSET 12 7 mm S...

Страница 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 Description n 0 15 0 specifies the lightest level 15 specifies the darkest level Example DENSITY 7 See Also DENSITY ...

Страница 10: ...intout 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 normal image 1 Print mirror image Example DIRECTION 0 0 See Also REFERENCE DIRECTION 0 0 DIRECTION 1 0 DIRECTION 0 1 DIRECTION 1 1 ...

Страница 11: ...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 with dot as the unit Note 203 DPI 1 mm 8 dots Example REFERENCE 10 10 See Also DIRECTION y x y x Direction 0 ...

Страница 12: ...s 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 203 DPI printers the range is 203 to 203 The unit is dot Example SIZE 3 2 5 GAP 2 mm 0 DIRECTION 0 SHIFT 0 OFFSET 0 CLS TEXT 400 200 3 0 1 1 DIRECTION 0 TEXT 400 250 3 0 1 1 SHIFT 0 BOX 10 0 600 490 8 PRINT 3 1 See Also...

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

Страница 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 FEED n Parameter Description n unit dot 1 n 9999 Example FEED 40 Note 203 DPI 1 mm 8 dots See Also BACKFEED SIZE GAP HOME FORMFEED ...

Страница 15: ... label with the specified length The length is specified by dot Syntax BACKFEED n Parameter Description n unit dot 1 n 9999 Example BACKFEED 40 CAUTION Impropriety back feed value may cause paper jam or wrinkle Note 203 DPI 1 mm 8 dots See Also FEED SIZE GAP HOME FORMFEED ...

Страница 16: ...el 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 400 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 ...

Страница 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 OFFSET 0 00 REFERENCE 0 0 SET PEEL OFF SET COUNTER 0 1 0 000001 HOME CLS BOX 1 1 400 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 ...

Страница 18: ...r 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 of label 1 n 999999999 Example SIZE 60 mm 20 mm SET COUNTER 1 1 1 0001 CLS TEXT 10 10 3 0 1 1 1 PRINT 3 2 PRINT 1 2 See Also SET COUNTER DOWNLOAD ...

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

Страница 20: ...t 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 setting will remain resident in memory The default value is 10 inches when printer initializes For metric system there must be a space between parameter n and mm 19 SELFTEST Description At this command ...

Страница 21: ...ordinate in dot width The width of bar in dot height The height of bar in dot Note 203 DPI 1 mm 8 dots Recommended max bar height is 12mm at 3 width Bar height over than 12 mm may damage the power supply and affect the print quality Max print ratio is different for each printer model Desktop and industrial printer print ratio is limited to 20 and 30 respectively Example SIZE 3 2 5 GAP 0 0 SPEED 6 ...

Страница 22: ...gits add on n EAN 8 n EAN 8 with 2 digits add on n EAN 8 with 5 digits add on n Codabar n Postnet n UPC A n UPC A with 2 digits add on n UPC A with 5 digits add on n UPC E n UPC E with 2 digits add on n UPC E with 5 digits add on n MSI n PLESSEY n China POST n ITF14 n EAN14 Syntax BARCODE X Y code type height human readable rotation narrow wide code Parameter Description x Specify the x coordinate...

Страница 23: ...13 with 2 digits add on Ø EAN 13 5 EAN 13 with 5 digits add on Ø EAN 8 EAN 8 Ø EAN 8 2 EAN 8 with 2 digits add on Ø EAN 8 5 EAN 8 with 5 digits add on Ø CODA Codabar Ø POST Postnet Ø UPCA UPC A Ø UPCA 2 UPC A with 2 digits add on Ø UPCA 5 UPC A with 5 digits add on Ø 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 MSI code Ø MSIC Ø P...

Страница 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 N A EAN8 2 8x N A N A N A N A EAN8 5 8x N A N A N A N A CODA N A 10x 10x 5x N A POST 1x N A N A N A N A UPCA 8x N A N A N A N A UPCA 2 8x N A N A N A N A UPCA 5 8x N A N A N A N A UPCE 8x N A N A N ...

Страница 25: ...haracter 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 Barcode type Maximum bar Code length Barcode type Maximum bar Code length 128 POST 5 9 11 EAN128 UPCA _ 11 25 UPCA 2 13 25C __ UPCA 5 16 39 UPCE 6 39C UPCE 2 8 93 UPCE 5 11 EAN13 12 CPOST _ EAN13 2 14 MSI _ EAN13 5 17 MSIC _ EAN8 7 PLES...

Страница 26: ...yntax 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 height The height of the image in dot mode Graphic mode is listed below 0 OVERWRITE 1 OR 2 XOR bitmap data The bitmap data ...

Страница 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 1F 11000111 C7 C 00011111 1F 11100011 E3 D 00011111 1F 11110111 F7 E 00011111 1F 11111111 FF F 00011111 1F 11111111 FF Ex SIZE 3 2 GAP 0 0 CLS BITMAP 200 200 2 16 0 PRINT 1 1 See Also PUTBMP PUTPCX ...

Страница 28: ...ght corner in dot Y_end Specify y coordinate of lower right corner in dot line thickness Line thickness of the box in dot Note 203 DPI 1 mm 8 dots Recommended max thickness of box is 12mm at 3 width Thickness of box that is larger than 12 mm may damage the power supply and affect the print quality Max print ratio is different for each printer model Desktop and industrial printer print ratio is lim...

Страница 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 region height in y axis direction in dot Example SIZE 3 2 5 GAP 0 0 SPEED 6 DENSITY 8 DIRECTION 0 CLS BAR 100 100 300 300 ERASE 150 150 200 200 PRINT 1 1 See Also CLS ...

Страница 30: ...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 The downloaded BMP filename Example See Also DOWNLOAD BITMAP PUTPCX ...

Страница 31: ...his 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 downloaded PCX filename Case sensitive Example See Also DOWNLOAD BITMAP PUTPCX ...

Страница 32: ...direction in dot Y_height The region height in y axis direction in dot Note 203 DPI 1 mm 8 dots Recommended max height of reversed black area is 12mm at 3 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 ...

Страница 33: ...TST24 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 180 degrees in clockwise direction 270 270 degrees in clockwise direction X multiplication Horizontal multiplication up to 10x Available factors 1 10 width point of true type font 1 point 1 72 inch Y...

Страница 34: ... is returned of which one bit is used to flag the printer s current readiness status If 0 is returned the printer is ready to print labels Bit Status 0 Head opened 1 Paper jam 2 Out of paper 3 Out of ribbon 4 Pause 5 Printing 6 Cover opened option 7 Environment Temperature over range option Hex Receive Printer Status 00 Normal 01 Head opened 02 Paper Jam 03 Paper Jam and head opened 04 Out of pape...

Страница 35: ...ommand is used to reset the printer It can be sent at any time as long as the printer is powered on and not in the dump mode The beginning of the command is an ESCAPE character ASCII 27 The files downloaded in memory will be deleted Syntax ESC R Parameter Description N A N A See Also ESC ...

Страница 36: ...ot return It is returned to PC in ASCII characters The ending character of mileage 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 digits with 0x0d as ending code of PC Syntax A Parameter Description N A N A Example A See Also FILES ...

Страница 37: ...n 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 Each file name ends with 0x0D The ending character is 0x1A Syntax F Parameter Description None N A Example F See Also FILES ...

Страница 38: ...age 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 Description This command is used to inquire the model name and number of the printer They are returned in ASCII characters Syntax T Parameter Description None N A Example T See Also I F ...

Страница 39: ...S To disable the auto execution 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 ignored Download files to DRAM only If you would like to save the files from DRAM to Flash memory before turning off power you can issue MOVE command to printer to move the files...

Страница 40: ...te 1 For text data file CR carriage return 0x0D and LF Line Feed 0x0A 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 power Example The program listed below will download to printer SDRAM DOWNLOAD EXAMPLE BAS SIZE 3 4 GAP 0 0 DENSITY 8 SPEED 6 DIRECTION 0...

Страница 41: ...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 DOWNLOAD FILENAME BAS must be added in the first line of the program and EOP statement at the last line of program Syntax EOP Example DOWNLOAD DEMO BAS SIZE 3 4 GAP 0 0 DENSITY 8 SPEED 6 DIRECTION 0 R...

Страница 42: ... 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 connection C MODE COM1 96 N 8 1 ENTER C COPY CON COM1 ENTER FILES ENTER CTRL Z ENTER C Or C COPY CON LPT1 ENTER FILES ENTER CTRL Z ENTER Note ENTER stands for PC keyboard ENTER key CTRL Z means to hold PC...

Страница 43: ...ll 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 in the printer memory or use the FILES command to print the downloaded file list in printer Follow the steps below to delete files in the printer memory via parallel port connection C COPY CON LPT1 E...

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

Страница 45: ...an 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 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 EOP See Also DOWNLOAD EOP ...

Страница 46: ...n 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 1 1 STR CODE1 PRINT 1 EOP See Also DOWNLOAD EOP STR ...

Страница 47: ...haracter 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 65 WORD CHR A TEXT 100 100 3 0 1 1 WORD PRINT 1 EOP See Also DOWNLOAD EOP STR ASC ...

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

Страница 49: ... 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 SEEK 0 0 Y 110 TEXT 10 10 3 0 1 1 EOF TEST A 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 EOP DEMO...

Страница 50: ...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 300 100 DOWNLOAD DATA2 56 Computer 3000 32 Mouse 900 93 Keyboard 700 700 Saving the above contents of data under the file name of DATA Follow the steps below to download data to the printer C COPY DA...

Страница 51: ...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 DEMO Follow the steps below to download data to the printer under MS DOS mode C COPY DEMO B LPT1 Execute DEMO BAS in printer C COPY CON LPT1 DEMO Ctrl Z The above example instructs the printer to open...

Страница 52: ...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 SIZE 3 1 GAP 0 0 DENSITY 8 SPEED 4 DIRECTION 0 REFERENCE 0 0 SET PEEL OFF I 0 Y 100 OPEN DATA1 0 OPEN DATA2 1 SEEK 0 0 SEEK 1 0 Start CLS ...

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

Страница 54: ... 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 READ 0 Num TEXT 100 160 3 0 1 1 SHIFT 0 CHARACTERS TEXT 100 210 3 0 1 1 Num PRINT 1 EOP TEST See Also DOWNLOAD EOP OPEN READ EOF LOF FREAD ...

Страница 55: ...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 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 EOP LofTest See Also DOWNLOAD EOP OPEN READ EOF SEEK F...

Страница 56: ...ither 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 SET PEEL OFF CLS 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 EOP See Also DOWNLOAD EOP OPEN READ EOF LOF SEEK ...

Страница 57: ...ent 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 floating point positive or negative Example DOWNLOAD LOOP BAS SIZE 3 3 GAP 0 08 0 DENSITY 8 SPEED 4 DIRECTION 1 CLS FOR I 1 TO 10 STEP 1 TEXT 100 10 30 I 1 3 0 1 1 STR I NEXT FOR I 1 TO 1000 STEP 10...

Страница 58: ...dition 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 block n ENDIF The syntax of IF THEN ELSE requires that the command be typed in one single line in less than 255 characters Parameter Description condition Available relational operator statement Only ...

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

Страница 60: ... 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 executed If there are block of statements in IF THEN ELSE ENDIF must be used at the end of the IF THEN ELSE statement Limitations The total numbers of nested IF THEN ELSE statement in a program can no...

Страница 61: ...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 SIZE 3 3 GAP 0 0 DENSITY 8 SPEED 4 DIRECTION 0 CLS TEXT 10 10 3 0 1 1 GOSUB RETURN COMMAND TEST GOSUB DR_BOX PRINT 1 END DR_BOX FOR I 21 TO 81 STEP 10 BOX 80 I 80 I 80 300 I 80 300 I 5 NEXT RETURN EOP GO...

Страница 62: ...BEL 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 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 END EOP See Also DOWNLOAD EOP END GOSUB RETURN ...

Страница 63: ... 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 REMARK DEMO PROGRAM REM TEXT 50 100 3 0 1 1 REMARK DEMO PROGRAM PRINT 1 1 EOP See Also DOWNLOAD EOP END ...

Страница 64: ...ative 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 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 EOP See Also DOWNLOAD EOP END ABS ASC STR ...

Страница 65: ...EFT 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 CLS 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 EOP See Also DOWNLOAD EOP END RIGHT MID LEN STR ...

Страница 66: ...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 DIRECTION 0 REFERENCE 0 0 CLS 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 EOP See Also DOWNLOAD EOP END LEFT LEN RIGHT MID STR VAL ...

Страница 67: ...tring 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 DENSITY 8 DIRECTION 0 REFERENCE 0 0 CLS 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 EOP See Also DOWNLOAD EOP END LEFT LEN RIGHT STR...

Страница 68: ...ion 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 REFERENCE 0 0 CLS 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 EOP See Also DOWNLOAD EOP END LEFT LEN MID STR VAL ...

Страница 69: ... 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 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 EOP DEMO See Also DOWNLOAD EOP END LEFT LEN RIGHT MID VAL ...

Страница 70: ...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 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 EOP DEMO See Also DOWNLOAD EOP END LEFT LEN RIGHT MID STR ...

Страница 71: ...mand 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 CLS BEEP INPUT Text1 TEXT1 TEXT 100 100 3 0 1 1 TEXT1 PRINT 1 EOP ...

Страница 72: ...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 the counter is used as a fixed variable please set the increment to 0 Expression Initial string String length is 101 bytes Example SIZE 3 3 GAP 0 0 DENSITY 8 SPEED 6 DIRECTION 0 REFERENCE 0 0 SET COUN...

Страница 73: ...OFF SET KEY2 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 even if the printer is power off Example DOWNLOAD DEMO BAS SIZE 3 1 GAP 0 0 DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0 0 SET KEY1 OFF SET KEY2 OFF KEY1 0 KEY2 0 CLS START IF KEY1 1 THEN CL...

Страница 74: ...r stops after 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 Description ON Enable the self peeling function OFF 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 PEE...

Страница 75: ...FF The label gap will NOT stop at the tear off position after print 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 CLS TEXT 50 100 3 0 1 1 TEAR FUNCTION TEST PRINT 1 See Also SET PEEL 70 SET HEAD Description This setting is used to enable disable head open sensor If head open...

Страница 76: ...te available baud rates are as listed 24 2400 bps 48 4800 bps 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 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 ...

Страница 77: ...t 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 function ON 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 C...

Страница 78: ...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 PRINTKEY 5 1 PRINT 2 Label 1 2 2 Press FEED key Label 3 7 Syntax Receive PRINT m n Print Out SET PRINTKEY 5 1 PRINT 1 2 Label 1 Label 1 2 Press FEED key Label 2 6 Syntax Receive PRINT 1 n Print Out SET PRI...

Страница 79: ...FF Disable this function ON Enable this function Example SET REPRINT ON 74 PEEL Description This command is used to obtain status of the peel off sensor Its attribute is read only Syntax PEEL Parameter Description 0 Paper is not on top of peel sensor 1 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 C...

Страница 80: ... 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 KEY1 OFF START IF KEY1 1 THEN CLS TEXT 100 10 3 0 1 1 KEY FUNCTION TEST PRINT 1 1 GOTO START EOP DEMO ...

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

Отзывы: