GPRINTER GP-3120TN, GP-9035T, GP-3120TL, GP-9034T, GP-3150TIN Program Manual

...
PROGRAM MANUAL
Direct thermal barcode printer & Thermal transfer label printer
GP-3120TN GP-9035T GP-3120TL GP-9034T GP-3150TIN GP-9026T GP-1524D GP-9025T GP-1625D GP-1125T GP-1225D GP-1124T GP-1124D GP-1225T
2016.12.10
Table of contents
Document convention System setup commands
SIZE .......................................................................................................................................... 5
GAP ............................................................................................................................................
BLINE .........................................................................................................................................
OFFSET .....................................................................................................................................
SPEED .......................................................................................................................................
DENSITY ....................................................................................................................................
DIRECTION ................................................................................................................................
REFERENCE .............................................................................................................................
SHIFT .........................................................................................................................................
CODEPAGE ...............................................................................................................................
CLS ............................................................................................................................................
FEED ..........................................................................................................................................
BACKFEED&BACKUP .............................................................................................................
FORMFEED ...............................................................................................................................
HOME .........................................................................................................................................
PRINT .........................................................................................................................................
SOUND.......................................................................................................................................
LIMITFEED ................................................................................................................................
SELFTEST .................................................................................................................................
Label Formatting Commands
BAR ........................................................................................................... 错误!未定义书签。
BARCODE .................................................................................................................................
BITMAP ......................................................................................................................................
BOX ............................................................................................................................................
ERASE .......................................................................................................................................
PUTBMP ....................................................................................................................................
PUTPCX .....................................................................................................................................
QRCODE ....................................................................................................................................
REVERSE ..................................................................................................................................
TEXT ..........................................................................................................................................
Status Polling Commands (RS232)
<ESC>!? ....................................................................................................................................
<ESC>!R ....................................................................................................................................
~!@ .............................................................................................................................................
~!A ..............................................................................................................................................
~!C ..............................................................................................................................................
~!D ..............................................................................................................................................
~!F ..............................................................................................................................................
~!I ...............................................................................................................................................
~!T ..............................................................................................................................................
File Management Commands
DOWNLOAD ............................................................................................. 错误!未定义书签。
EOP ............................................................................................................................................
FILES .........................................................................................................................................
KILL ............................................................................................................................................
MOVE .........................................................................................................................................
RUN ............................................................................................................................................
BASIC Commands and Functions
ABS( ) .........................................................................................................................................
ASC( ) .........................................................................................................................................
CHR$( ) ......................................................................................................................................
END ............................................................................................................................................
EOF( ) .........................................................................................................................................
OPEN .........................................................................................................................................
READ .........................................................................................................................................
SEEK ..........................................................................................................................................
LOF( ) .........................................................................................................................................
FREAD$( ) ..................................................................................................................................
FOR…NEXT LOOP ...................................................................................................................
IF…THEN…ELSE…ENDIF .......................................................................................................
GOSUB…RETURN ...................................................................................................................
GOTO .........................................................................................................................................
REM ............................................................................................................................................
INT( ) ..........................................................................................................................................
LEFT$( ) .....................................................................................................................................
LEN( ) .........................................................................................................................................
MID$( )........................................................................................................................................
RIGHT$( ) ...................................................................................................................................
STR$( ) .......................................................................................................................................
VAL( ) .........................................................................................................................................
BEEP ..........................................................................................................................................
Device Reconfiguration Commands
SET COUNTER ...................................................................................................................... 77
SET KEY1, SET KEY2 ..............................................................................................................
SET PEEL ..................................................................................................................................
SET TEAR & SET STRIPPER ...................................................................................................
SET HEAD .................................................................................................................................
SET RIBBON .............................................................................................................................
SET COM1 .................................................................................................................................
SET PRINTKEY .........................................................................................................................
SET REPRINT ............................................................................................................................
PEEL ..........................................................................................................................................
KEY1, KEY2 ...............................................................................................................................
Printer Global Variables
@LABEL .............................................................................................................................. 86
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.
~ (ASCII 126), control code of status polling command, which returns the printer status only when the printer is ready.
Note: 200 DPI: 1 mm = 8 dots Font in bold and italic type is used for note.
DOWNLOAD “TEST.BAS” When displayed content is program, use Arial 10.5 sized font.
SET COUNTER @1 1
@1=”0001”
TEXT 10,10,”3”,0,1,1,@1
PRINT 3,2
EOP
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
m Label width (inch or mm)
n Label length (inch or mm) Note:
200 DPI: 1 mm = 8 dots 300DPI: 1mm=12dots For metric system, there must be a space between parameter m and “mm”.
Example
(1) English system (inch)
SIZE 3.5, 3.00
(2) Metric system (mm)
SIZE 100 mm, 100 mm
See Also
GAP, BLINE
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
m The gap distance between two labels(inch or mm) 0 ≤ m ≤ 1 (inch), 0 ≤ m ≤ 25.4 (mm) n The offset distance of the gap(inch or mm) [ ]n ≤ label length (inch or mm) 0,0 Continuous label.
Note: For metric system, there must be a space between parameter m and mm. When the sensor type is changed from “Black Mark” to “GAP”, please send the “GAP” command to the printer first.
Eg: 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
(1). English system (inch)
GAP 0.30, 0.10
(2). Metric system (mm)
GAP 7.62 mm, 2.54 mm
See Also
SIZE,BLINE
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
m The distance between two black marks
0.1 ≤ m ≤ 1 (inch), 2.54 ≤ m ≤ 25.4 (mm) n Extra label feeding length (inch or mm) 0 n ≤label length (inch or mm) 0,0 Continuous label.
Note: For metric system, there must be a space between parameter m and mm. When the sensor type is changed from GAP” to “Black Mark”, please send the BLINE” command to the printer first.
Eg: 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)
BLINE 5.08 mm,12.7 mm
See Also
SIZE, GAP
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. This method is applied for peel-off mode and cutter mode.
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: Improper offset value may cause paper jam.
Example
(1) English system (inch)
OFFSET 0.5
(2) Metric system (mm)
OFFSET 12.7 mm
See Also
SIZE, GAP, SET PEEL
SPEED
Description
This command defines the print speed.
Syntax
SPEED n
Parameter Description
n printing speed in inch per second
Example
SPEED 4
See Also
DENSITY
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
SPEED
N
2 3 4 5 6 7 8
3120TN
o o o o
3120TL
o o o o
3150TIN
o o o o o
1524D
o o o o o o o
9035T
o o o o
9025T
o o o o
9026T
o o o o
1124T
o o o o
1125T
o o o o
1235T
o o o o
DIRECTION
Description
This command defines the printout direction, and this will be memorized in EEPROM.
Syntax
DIRECTION n
Parameter Description
n 0 or 1. Please refer to the illustrations below:
Example
DIRECTION 0[,0]
See Also
REFERENCE
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 x Horizontal coordinate, with “dot” as the unit. y Vertical coordinate, with “dot” as the unit.
Note: 200 DPI: 1 mm = 8 dots
300DPI: 1 mm = 12 dots
Example
REFERENCE 10,10
See Also
DIRECTION
y
x
y
x
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.
Syntax
SHIFT n
Parameter Description n The maximum value is 1 inch. For 203 dpi printers, the range is from –203 to 203; The unit is dot.
Example
SIZE 4,2.5 GAP 2 mm,0 DIRECTION 0 SHIFT 36 OFFSET 0 CLS TEXT 400,200,"3",0,1,1,"DIRECTION 0" TEXT 400,250,”3”,0,1,1,"SHIFT 36" BOX 10,0,780,490,8 PRINT 3,1
See Also
OFFSET, REFERENCE
CODE PAGE
Description
This command defines the code page of international character set.
Syntax
CODEPAGE n
Parameter Description n 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 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
CLS
Description
This command clears the image buffer.
Syntax
CLS
Parameter Description None N/A
Note: This command must be placed after SIZE command.
Example
CLS See Also
SIZE, GAP, BLINE
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
300DPI: 1mm = 12 dots
See Also
BACKFEED, SIZE, GAP, BLINE, HOME, FORMFEED
BACKFEED & BACKUP
Description
To back feed label 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: Improper back feed value may cause paper jam or ribbon wrinkle.
Note: 203 DPI: 1 mm = 8 dots
300 DPI: 1mm = 12 dots
See Also
FEED, SIZE, GAP, HOME, FORMFEED
FORM FEED
Description
This command feeds label to the beginning of next label.
Syntax
FORMFEED
Parameter Description None N/A
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"
FORMFEED
CLS
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
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 Description None N/A
Example
SIZE 4,2.5 GAP 2 mm,0 SPEED 4 DENSITY 7 DIRECTION 0 OFFSET 0.00 REFERENCE 0,0 SET PEEL OFF SET COUNTER @0 +1 @0="000001" HOME CLS 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, BLINE, FORMFEED
PRINT
Description
This command prints the label format stored in the image buffer.
Syntax
PRINT m [,n]
Parameter 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, INPUT, DOWNLOAD
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
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.
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.
SELFTEST
Description
At this command, the printer will print out the printer information on the label.
Syntax
SELFTEST
Example
SELFTEST
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 x The upper left corner x-coordinate in dot y The upper left corner y-coordinate in dot width The width of bar in dot height The height of bar in dot
Note: 203 DPI: 1 mm = 8 dots 300 DPI: 1 mm = 12 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 4,2.5
GAP 0,0
SPEED 6
DENSITY 8
DIRECTION 0
CLS
BAR 100, 100, 300, 200
PRINT 1,1
See Also
BOX
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) Interleaved 2 of 5 Interleaved 2 of 5 with check digit Code 39 standard Code 39 full ASCII Code 39 full ASCII with check digit Code 93 EAN 13 EAN 13 with 2 digits add-on EAN 13 with 5 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 digits add-on MSI PLESSEY China POST ITF14 EAN14
Syntax
BARCODE X, Y, ”code type”, height, human readable, rotation, narrow, wide,
“code”
Parameter Description x Specify the x-coordinate of the bar code on label y Specify the y-coordinate of the bar code on label
code type 128 Code 128, switching code subset A, B, C
automatically 128M Code 128, switching code subset A, B, C manually.
Use “!” as a starting character for the control code followed by three
control codes. If the start subset is not set, the default starting subset is B.
EAN128 Code 128, switching code subset A, B, C automatically 25 Interleaved 2 of 5 25C Interleaved 2 of 5 with check digits 39 Auto switch full ASCII and 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 EAN 13 EAN 13 EAN 13 + 2 EAN 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 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
Control code
A B C
096
FNC3
FNC3
NONE
097
FNC2
FNC2
NONE
098
SHIFT
SHIFT
NONE
099
CODE C
CODE C
NONE
100
CODE B
FNC4
CODE B
101
FNC4
CODE A
CODE A
102
FNC1
FNC1
FNC1
103
Start (CODE A)
104
Start (CODE B)
105
Start (CODE C)
 rotation Rotate bar code clockwise in degrees
0 non rotation 90 rotate 90 degrees clockwise 180 rotate 180 degrees clockwise
270 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
11
12
13
25
37
128
10x
N/A
N/A
N/A
N/A
EAN128
10x
N/A
N/A
N/A
N/A
25
N/A
10x
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/A
N/A
UPCE+2
8x
N/A
N/A
N/A
N/A
UPCE+5
8x
N/A
N/A
N/A
N/A
CPOST
N/A
N/A
N/A
N/A
1x
MSI
N/A
N/A
10x
N/A
N/A
MSIC
N/A
N/A
10x
N/A
N/A
PLESSY
N/A
N/A
10x
N/A
N/A
ITF14
N/A
10x
10x
5x
N/A
EAN14
N/A
N/A
N/A
5x
N/A
Code number the maximum number of digits of bar code content
Example
BARCODE 100,100,”39”,96,1,0,2,4,”1000” BARCODE 10,10,”128M”,48,1,0,2,2,”!104!096ABCD!101EFGH”
(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
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
PLESSY
_
EAN8+2 9 ITF14
13
EAN8+5
12
EAN14
13
CODA
_
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 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
ROW
(Y- axis)
L-Byte
R-Byte
Binary
Hexadecimal
Binary
Hexadecimal
0
00000000
00
00000000
00
1
00000000
00
00000000
00
2
00000000
00
00000000
00
3
00000111
07
11111111
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
Example:
SIZE 4,2
GAP 0,0 CLS
BITMAP 200,200,2,16,0, -????? 
PRINT 1,1
Hexadecimal
ASCII
53 49 5A 45 20 34 2C 32 0D 0A 47 41 50 20
30 2C 30 0D 0A 43 4C 53 0D 0A 42 49 54 4D
41 50 20 32 30 30 2C 32 30 30 2C 32 2C 31 36 2C 30 2C 00 00 00 00 00 00 07 FF 03 FF
11 FF 18 FF 1C 7F 1E 3F 1F 1F 1F 8F 1F C7 1F E3 1F E7 1F FF 1F FF 0D 0A 50 52 49 4E
54 20 31 2C 31 0D 0A
SIZE 4,2
GAP 0,0
CLS
BITMAP 200,200,2,16,0 , -?-
???? 
PRINT 1,1
See Also
PUTBMP, PUTPCX
Loading...
+ 59 hidden pages