Document Conventions 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, which returns the printer status immediately, no matter the printer is standby status or busy.
Page 5
System setup commands SIZE Description This command defines the label width and length. Syntax (1) English system (inch) SIZE m, n (2) Metric system (mm) SIZE m mm, n mm Parameter Description Label width (inch or mm) Label length (inch or mm) Note: 200 DPI: 1 mm = 8 dots 300DPI: 1mm=12dots...
Page 6
GAP Description Define the gap distance between two labels Syntax (1). English system (inch) GAP m, n (2) Metric system (mm) GAP m mm, n mm Parameter Description The gap distance between two labels(inch or mm) 0 ≤ m ≤ 1 (inch), 0 ≤ m ≤ 25.4 (mm) The offset distance of the gap(inch or mm) [ ]n ≤...
Page 7
BLINE Description Define black mark distance and extra label feeding length after printing Syntax (1) English system (inch) BLINE m, n (2) Metric system (mm) BLINE m mm, n mm Parameter Description The distance between two black marks 0.1 ≤ m ≤ 1 (inch), 2.54 ≤ m ≤ 25.4 (mm) Extra label feeding length (inch or mm) 0 ≤n ≤label length (inch or mm) Continuous label.
Page 8
OFFSET Description This command defines the selective, extra label feeding length, especially when you use peeler or cutter function, this could be used to adjust the label stop position, the extra feeding length or less feeding length could be backward pulled to adjust when the second label is printed.
Page 9
SPEED Description This command defines the print speed. Syntax SPEED n Parameter Description printing speed in inch per second 3120TN 3120TL 3150TIN 1524D 9035T 9025T 9026T 1124T 1125T 1235T Example SPEED 4 See Also DENSITY DENSITY Description This command designates the level of darkness of printing. Syntax DENSITY n Parameter...
Page 10
DIRECTION Description This command defines the printout direction, and this will be memorized in EEPROM. Syntax DIRECTION n Parameter Description 0 or 1. Please refer to the illustrations below: Example DIRECTION 0[,0] See Also REFERENCE...
Page 11
REFERENCE 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, with “dot” as the unit. Vertical coordinate, with “dot” as the unit. Note: 200 DPI: 1 mm = 8 dots 300DPI: 1 mm = 12 dots...
Page 12
SHIFT Description This command can be used to fine-tune the entire label up or down from its current position. The position relates to the top edge of the label. A negative value moves the entire label away from the top of the label; a positive value moves the entire label to the top of label.
Page 13
CODE PAGE 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 8-bit code page further. 8-bit code page number 437: United States 850: Multilingual 852: Slavic 860: Portuguese...
Page 14
FEED 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 Example FEED 40 Note: 203 DPI: 1 mm = 8 dots 300DPI: 1mm = 12 dots See Also BACKFEED, SIZE, GAP, BLINE, HOME, FORMFEED...
FORM FEED 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 COUNTER @0 +1 @0="000001"...
Page 16
HOME Description It is not expected the first label will be printed on the right position when the printer power is turned on. This command will feed label to the beginning of next label .The size and gap of the label should be setup in advance. Syntax HOME Parameter...
Page 17
PRINT Description This command prints the label format 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.
Page 18
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...
Page 19
LIMITFEED Description When feeding labels, if the gap sensor is not set to a suitable sensitivity, the printer will not be able to locate the correct position of the gap. This command is used stop label feeding and make the red LED flash if the printer does not locate gap after feeding the length of one label plus one preset value.
Page 20
Label Formatting Commands 1. BAR Description This command is used to draw a line or a bar on the label format. Syntax BAR x, y, width, height Parameter Description The upper left corner x-coordinate in dot The upper left corner y-coordinate in dot width The width of bar in dot height...
Page 21
2. BARCODE Description This command is used to print 1D barcodes on label form. The available bar codes are listed below: Code 128 (Automatically switch character set) Code 128M (Manually switch character set) EAN 128 (Automatically switch character set) ...
Page 22
Control code FNC3 FNC3 NONE FNC2 FNC2 NONE SHIFT SHIFT NONE CODE C NONE CODE C CODE B FNC4 CODE B FNC4 CODE A CODE A FNC1 FNC1 FNC1 Start (CODE A) Start (CODE B) Start (CODE C) Use “!” as a starting character for the control code followed by three control codes.
Page 23
rotation Rotate bar code clockwise in degrees non rotation rotate 90 degrees clockwise rotate 180 degrees clockwise rotate 270 degrees clockwise narrow width of narrow element in dot wide width of wide element in dot narrow : wide narrow : wide narrow : wide narrow : wide narrow : wide...
Page 24
Code number the maximum number of digits of bar code content Maximum bar Maximum bar Barcode type Barcode type Code length Code length — POST 5,9,11 UPCA — EAN128 — UPCA + 2 UPCA + 5 — — UPCE — UPCE +2 —...
Page 25
3. BITMAP Description This command is used to draw bitmap images (Not BMP graphic file). Syntax BITMAP X, Y, width, height, mode, bitmap data… Parameter Description 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...
Page 27
4. BOX Description This command is used to draw 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 dot Y_start Specify y-coordinate of upper left corner in dot X_end Specify x-coordinate of lower right corner in dot Y_end...
Page 28
5. ERASE Description This command is used to clear a specified region in image buffer. Syntax ERASE X_start, Y_start, X_width, Y_height 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...
Page 29
6. PUTBMP Description 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. Note: Suggest to use only black and white color BMP file. Example See Also DOWNLOAD, BITMAP, PUTPCX...
Page 30
7. 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 Example See Also DOWNLOAD, BITMAP, PUTPCX...
Page 31
8. QRCODE Description: This command prints QR code. Syntax QRCODE x,y,ECC Level,cell width,mode,rotation,[model,mask,]"content" 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 L : 7% M : 15% Q : 25% H : 30%...
Page 32
Data characters per symbol (for maximum symbol size): Model 1 (Version 14-L) Model 2 (Version 40-L) 1). Numeric data: 1,167 characters 7,089 characters 2). Alphanumeric data: 707 characters 4,296 characters 3). 8-bit byte data: 486 characters 2,953 characters 4). Kanji data: 299 characters 1,817 characters Manual mode...
Page 33
(1) Example of generating QRCODE in Auto mode: a. General data string SIZE 4,2.5 GAP 0.12,0 QRCODE 10,10,H,4,A,0,"ABCabc123" QRCODE 160,160,H,4,A,0,"123ABCabc" QRCODE 310,310,H,4,A,0,"打印机 ABCabc123" PRINT 1,1 b. The string including <Enter>(i.e.: 0Dh, 0Ah) SIZE 4,2.5 GAP 0.12,0 QRCODE 10,10,H,4,A,0,"ABC<Enter> abc<Enter> 123" QRCODE 160,160,H,4,A,0,"123<Enter>...
Page 34
(2) Example of generating QRCODE in Manual mode: a. a. General data string SIZE 4,2.5 CAP 0.12,0 QRCODE 10,10,H,4,M,0,"AABC!B0003abc!N123" QRCODE 160,160,H,4,M,0,"N123!AABC!B0003abc" QRCODE 310,310,H,4,M,0,"K 打印机!AABC!B0006abc123" PRINT 1,1 b. The string including <Enter>(i.e.: 0Dh, 0Ah), <Enter> shall be 8-bit byte data SIZE 4,2.5 CAP 0.12,0 QRCODE 10,10,H,4,M,0,"AABC!B0007<Enter>...
Page 35
9. REVERSE Description This command is used to reverse 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 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...
Page 36
TEXT Description This command is used to print 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 8 x 12 fixed pitch dot font 12 x 20 fixed pitch dot font 16 x 24 fixed pitch dot font 24 x 32 fixed pitch dot font...
Page 37
Example 1. 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 Example 2 : DOWNLOAD F,"test.BAS" SPEED 4 DENSITY 8 SET PEEL OFF DIRECTION 0 SIZE 1.000,0.800 GAP 0.12,0.00 OFFSET 0.000 REFERENCE 0,0 :START INPUT "Description",A$ Again:...
Page 38
X=101-((WWidth+SWidth)/2) ELSEIF F$="3" THEN REM *****When Font3, the space between every single word is XM-1 dots***** WWidth=Z*(XM*16) SWidth=Z*(XM-1) X=101-((WWidth+SWidth)/2) ELSEIF F$="4" THEN REM *****When Font4, the space between every single word is XM-1 dots***** WWidth=Z*(XM*24) SWidth=Z*(XM-1) X=101-((WWidth+SWidth)/2) ELSEIF F$="5" THEN REM *****When Font5, the space between every single word is XM*4 dots***** WWidth=Z*(XM*32) SWidth=Z*(XM*4)
Page 39
Status Polling Commands (RS232) <ESC>!? Description This command is used to obtain the printer status through serial port. An inquiry request is solicited by sending an <ESC> [ASCII 27(Hex1B), escape character] as the beginning control character to the printer. It can be sent any time, even in the event of printer error. One byte character is returned, of which one bit is used to flag the printer’s current readiness status.
Page 40
Description This command is used to inquire the mileage of the printer. The integer part of mileage is returned (the decimal part of mileage is not returned). It is returned to PC in ASCII characters. The ending character of mileage is 0x0D 0x0A. Syntax Parameter Description...
Page 41
Description This command is used to check and return if RTC is installed or not. Syntax Parameter Description RTC not installed RTC installed Example Description This command is used to enter DUMP mode. Syntax Parameter Description None Example Description This command is used to inquire about files resident in the printer memory and fonts installed in the memory module.
Page 42
Description The command is used to inquire the code page setting of the printer. The returned information through RS-232 is given in the following format: 8 bit: 437, 001 Regarding to the information returned by the printer, please refer to CODEPAGE command. Syntax Parameter Description...
Page 43
File Management Commands DOWNLOAD Description “DOWNLOAD” is a header of the file that is to be saved in the printer's Memory(DRAM). The downloaded files can be divided to two categories: program file data file (including text data file, PCX graphic files and bitmap font file). Syntax 1.
Page 44
2. Download a data file DOWNLOAD [n,]“FILENAME”, DATA SIZE, DATA CONTENT…where Parameter Description Specify the memory location to save the download files. ignored Download files to DRAM only. If you would like to n is save the files from DRAM to Flash memory before turning off power, you can issue MOVE command to printer to move the files from DRAM to Flash memory.
Page 45
2. Use Run command to start the program C:\>COPY CON LPT1<ENTER> RUN “EXAMPLE.BAS”<ENTER> <CTRL><Z> C:\> Below is an example of downloading data file. DOWNLOAD “DATA”,20,COMPUTER<Enter> 2001<Enter> 21<Enter> Note: <ENTER> stands for keyboard “ENTER” key. In the above example, please press “ENTER” key instead of typing <ENTER> in the above example.
Page 46
FILES Description This command prints out the filenames (or lists the files through RS-232) that remained in the printer memory (both FLASH memory and DRAM). The total memory size and available memory size are printed out or lists as well. Syntax FILES Example...
Page 47
KILL Description This command deletes a file in the printer memory. The wild card (*) will delete all files resident in specified DRAM or FLASH memory. Syntax KILL [n],”FILENAME” Parameter Description Specify the memory location that files will be deleted. n is ignored Kill files saved in DRAM.
Page 48
MOVE Description This command is used to move downloaded files from DRAM to the FLASH memory. Syntax MOVE Parameter Description See Also DOWNLOAD, EOP Description This command is used to execute a program that resident in printer memory Syntax RUN “FILENAME.BAS” Example C:\>COPY CON LPT1<ENTER>...
Page 49
BASIC Commands and Functions ABS( ) Description This function returns the absolute value of an integer, floating point or variable. Syntax ABS (-100) ABS (-99.99) ABS (VARIABLE) Example DOWNLOAD “TEST.BAS” SIZE 4,4 GAP 0,0 DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0,0 SET PEEL OFF A=ABS(-100)
Page 50
ASC( ) Description 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$()
Page 51
CHR$( ) Description This function returns the character that has the specified ASCII code. Syntax 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...
Page 52
Description This command states the ending of program. Syntax Example DOWNLOAD "DEMO.BAS" SIZE 3,2 GAP 0,0 DENSITY 8 SPEED 6 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 :DR_LINE FOR I=1 TO 100 STEP 10 BOX X+I,Y+I,X1-I,Y1-I,5 NEXT...
Page 53
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 Parameter Description None-zero End of file Not end of file Example DOWNLOAD "DATA",16,COMPUTER...
Page 54
OPEN Description This command is used to open a downloaded file and establish the file handle. Up to 2 files can be opened at the same time. The file to be opened should be downloaded prior to using this command. Syntax OPEN “Filename”, File handle Parameter...
Page 55
DENSITY 8 SPEED 4 DIRECTION 0 REFERENCE 0,0 SET PEEL OFF 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...
Page 56
READ Description This command is used to read data from downloaded data file Syntax READ file handle, variables Parameter Description File handle 0 or 1. string, integer or float point variable variables Example DOWNLOAD "DATA1",20,COMPUTER 2000 DOWNLOAD "DATA2",16,Mouse DOWNLOAD "DEMO.BAS" SIZE 3,1 GAP 0,0 DENSITY 8...
Page 57
Y=100 IF I<=1 THEN IF EOF(I)=1 THEN I=I+1 GOTO Start ELSE GOTO Start ENDIF ELSE ENDIF DEMO See Also DOWNLOAD, EOP, OPEN, EOF, LOF, SEEK, FREAD$() SEEK Description This command is used to shift the specified file pointer to a certain position. Syntax SEEK file handle, offset Parameter...
Page 58
Example DOWNLOAD "DATA",12,1234567890 DOWNLOAD "TEST.BAS" SIZE 3,1 GAP 0,0 DENSITY 8 SPEED 3 DIRECTION 1 REFERENCE 0,0 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"...
Page 59
LOF( ) 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 PEEL OFF...
Page 60
FREAD$( ) Description This function reads a specified number of bytes of data from a file. Syntax FREAD$ (file handle, byte) Parameter Description Either 0 or 1 file handle byte Number of bytes to be read Example DOWNLOAD "DATA1",10,1234567890 DOWNLOAD "DATA2",15,ABCDEFGHIJKLMNO DOWNLOAD "OPEN2.BAS"...
Page 61
FOR…NEXT LOOP Description Loop is used to execute one or more lines of program repetitively. Before anything, a value should be assigned the loop counter to specify the execution times. Nested loop is allowed (up to 39 nested loops) in this printer. Jumping out in the middle of the FOR…NEXT loop is prohibited because it is not a good programming skill .
Page 62
IF…THEN…ELSE…ENDIF Description Use IF…THEN block to execute one or more statements conditionally. You can use either a single-line syntax or multiple-line “block” syntax: Syntax IF condition THEN statement Notice: the single-line form of IF …THEN does not use an ENDIF statement.
Page 63
SIZE 3,3 GAP 0.12,0 SPEED 4 DENSITY 8 DIRECTION 1 REFERENCE 0,0 OFFSET 0.00 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 ENDIF...
Page 64
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 3,4 GAP 0,0 DENSITY 8 SPEED 3 DIRECTION 0 REFERENCE 0,0 SET PEEL OFF A=50 C$="" D$="" IF A>100 THEN GOTO L1 ELSE A=A+10 C$=STR$(A)+" IS SMALLER THAN 100" TEXT 100,10,"4",0,1,1,C$ PRINT 1 A=A+B...
Page 65
GOSUB…RETURN Description Branch to and return from a subroutine. Branch to the specified label and execute subroutines until “RETURN” is reached and then go back to the statement following the GOSUB statement. Syntax GOSUB LABEL statement :LABEL statement RETURN Parameter Description LABEL Beginning of the subroutine.
Page 66
GOTO 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 None Example DOWNLOAD "GOTO1.BAS" SIZE 3,3 GAP 0.08,0 DENSITY 8 SPEED 4 DIRECTION 1 REFERENCE 0,0 SET PEEL OFF TOTAL=0...
Page 67
Description Comment. Prefix is “REM” that 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 PEEL OFF TEXT 50,50,"3",0,1,1,"REMARK DEMO PROGRAM"...
Page 68
INT( ) Description This function is used to truncate a floating point number. Syntax INT (n) Parameter Description n can be positive or negative 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...
Page 69
LEFT$( ) 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" SIZE 3.00,3.00 GAP 0.08,0.00 SPEED 4.0...
Page 70
LEN( ) 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 DIRECTION 0 REFERENCE 0,0 A$="TAIWAN SEMICONDUCTOR CO., LTD"...
Page 71
MID$( ) Description This function is used to get 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 mth characters in the string. 1 <= m <= string length The number of characters to return.
Page 72
RIGHT$( ) Description This function returns the 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 73
STR$( ) 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 DIRECTION 0 REFERENCE 0,0 A$="TAIWAN SEMICONDUCTOR CO., LTD"...
Page 74
VAL( ) Description This function is used to convert numeric character into corresponding integer or floating point number. Syntax VAL (“numeric character”) Parameter Description “0~9”, “.” numeric character Example DOWNLOAD "DEMO.BAS" SIZE 3.00,3.00 GAP 0.00,0.00 SPEED 4.0 DENSITY 8 DIRECTION 0 REFERENCE 0,0 A$="TAIWAN SEMICONDUCTOR CO., LTD"...
Page 75
BEEP Description 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...
Page 76
Device Reconfiguration Commands SET COUNTER Description Counter can be a real counter or a variable. This setting sets the counter number in program and their increments. There are three different kind of counters: digit (0~9~0), lower case letter (a~z~a) and upper case letter (A~Z~A). Syntax SET COUNTER @n step @n = “Expression”...
Page 77
SET KEY1, SET KEY2 Description This setting is used to enable/disable the KEY1/KEY2 function. The default function of KEY1 is “FEED” key, KEY2 is “PAUSE” key .Before setting KEY1 /KEY2 function otherwise, please disable KEY1/KEY2 first. The setting will remain resident in the printer even when the printer is power off.
Page 78
SET KEY1 ON SET KEY2 ON ENDIF GOTO START DEMO See Also OFFEST, PRINT 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 79
SET TEAR & SET STRIPPER Description This command is used to enable/disable feeding label to gap/black mark position for tearing off. This setting will be saved in printer memory when turning off the power. Syntax SET TEAR ON/OFF Parameter Description The label gap will stop at the tear off position after print.
Page 80
Parameter Description Turn on the “HEAD OPEN” sensor Turn off the “HEAD OPEN” sensor Example SET HEAD ON SET HEAD OFF SET COM1 Description This setting defines communication parameters for printer serial port. Syntax SET COM1 baud, parity, data, stop Parameter Description baud...
Page 81
SET PRINTKEY Description This command will print one label and feed label gap to tear bar position for tearing away. Press FEED button to print the next label or batch of labels. If label content includes serial text or barcode, it will change the serial number accordingly.
Page 82
Execute: Receive “PRINT m” Syntax Print Out 1.) PRINT 2 Label 1~2 SET PRINTKEY ON or SET PRINTKEY AUTO 2.) Press FEED key Label 3~4 Receive “PRINT m,n” Syntax Print Out 1.) PRINT 1,2 Label 1, Label 1 SET PRINTKEY ON or SET PRINTKEY AUTO 2.) Press FEED key Label 2, Label 2...
Page 83
SET REPRINT Description This command will disable/enable reprint the label when the “no paper” or “no ribbon” or “carriage open” error is occurred. Syntax SET REPRINT OFF/ON Parameter Description Disable this function Enable this function Example SET REPRINT ON PEEL Description This command is used to obtain status of the peel-off sensor.
Page 84
KEY1, KEY2 Description This command is used to read the status of KEY1 ,KEY2 . Syntax KEYm=n 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...
Page 85
Printer Global Variables @LABEL Description This variable is used to count how many pieces of labels have been printed. It can’t be initialized if the printer is reset. It will be memorized if the printer power is turned off. Syntax Write attribute: @LABEL=n or @LABEL=”n”...
Need help?
Do you have a question about the GP-3120TL and is the answer not in the manual?
Questions and answers