GPRINTER GP-3120TN Troubleshooting guide

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
This manual suits for next models
13
Table of contents
Other GPRINTER Barcode Reader manuals

GPRINTER
GPRINTER GP-1225Z User manual

GPRINTER
GPRINTER GP-2120T Owner's manual

GPRINTER
GPRINTER GP-1124T User manual

GPRINTER
GPRINTER GP-1224T User manual

GPRINTER
GPRINTER GP-1134T User manual

GPRINTER
GPRINTER GP-1124T User manual

GPRINTER
GPRINTER GP-9034T User manual

GPRINTER
GPRINTER GP-1624T User manual

GPRINTER
GPRINTER S-4231 User manual