EcLine EC-3150 Owner's manual

EC-3150
Barcode Thermal Printer
Programming Manual

EC-3150 THERMAL BARCODE PRINTER i
CONTENTS
Setup and System Commands............................................................................................................................................1
1. SIZE ........................................................................................................................................................................1
2. GAP.........................................................................................................................................................................2
3. BLINE.....................................................................................................................................................................2
4. OFFSET ..................................................................................................................................................................4
5. SPEED ....................................................................................................................................................................5
6. DENSITY................................................................................................................................................................5
7. DIRECTION and Mirror Image..............................................................................................................................6
8. REFERENCE..........................................................................................................................................................6
9. SHIFT......................................................................................................................................................................8
10. CODEPAGE............................................................................................................................................................9
11. CLS .......................................................................................................................................................................10
12. 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. QRCODE ..............................................................................................................................................................28
28. REVERSE.............................................................................................................................................................31
29. TEXT ....................................................................................................................................................................32
Status Polling Commands (RS-232)...............................................................................................................................33
30. <ESC>!?................................................................................................................................................................33
<ESC>!R...............................................................................................................................................................34
31. ~!@ .......................................................................................................................................................................35
32. ~!A ........................................................................................................................................................................35
~!C ........................................................................................................................................................................35
33. ~!D ........................................................................................................................................................................36
34. ~!F.........................................................................................................................................................................36
35. ~!I..........................................................................................................................................................................37
36. ~!T.........................................................................................................................................................................37
File Management Commands ..........................................................................................................................................38
37. DOWNLOAD .......................................................................................................................................................38
38. EOP .......................................................................................................................................................................40
39. FILES ....................................................................................................................................................................41
40. KILL......................................................................................................................................................................41
41. MOVE...................................................................................................................................................................43

EC-3150 THERMAL BARCODE PRINTER ii
42. RUN ......................................................................................................................................................................43
BASIC Commands and Functions..................................................................................................................................44
43. ABS( ) ...................................................................................................................................................................44
44. ASC( ) ...................................................................................................................................................................45
45. CHR$( ).................................................................................................................................................................46
46. END ......................................................................................................................................................................47
47. EOF( ) ...................................................................................................................................................................48
48. OPEN ....................................................................................................................................................................49
49. READ....................................................................................................................................................................51
50. SEEK.....................................................................................................................................................................52
51. LOF( ) ...................................................................................................................................................................54
52. FREAD$( )............................................................................................................................................................55
53. FOR…NEXT LOOP.............................................................................................................................................56
54. IF…THEN…ELSE…ENDIF LOOP ...................................................................................................................57
55. GOSUB…RETURN .............................................................................................................................................60
56. GOTO....................................................................................................................................................................61
57. REM ......................................................................................................................................................................62
58. INT() .....................................................................................................................................................................63
59. LEFT$() ................................................................................................................................................................64
60. LEN() ....................................................................................................................................................................65
61. MID$() ..................................................................................................................................................................66
62. RIGHT$()..............................................................................................................................................................67
63. STR$()...................................................................................................................................................................68
64. VAL() ....................................................................................................................................................................69
65. BEEP.....................................................................................................................................................................70
Device Reconfiguration Commands...............................................................................................................................71
66. SET COUNTER....................................................................................................................................................71
67. SET KEY1, SET KEY2 ........................................................................................................................................72
68. SET PEEL .............................................................................................................................................................73
69. SET TEAR & SET STRIPPER .............................................................................................................................74
70. SET HEAD............................................................................................................................................................75
71. SET RIBBON........................................................................................................................................................75
72. SET COM1............................................................................................................................................................76
73. SET PRINTKEY...................................................................................................................................................77
74. SET REPRINT ......................................................................................................................................................79
75. PEEL .....................................................................................................................................................................79
76. KEY1, KEY2 ........................................................................................................................................................80
Printer Global Variables ....................................................................................................................................................81
77. @LABEL ..............................................................................................................................................................81

EC-3150 THERMAL BARCODE PRINTER iii
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
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: 200 DPI: 1 mm = 8 dots Times New Roman font in bold and italic type
is used for note.

EC-3150 THERMAL BARCODE PRINTER 1
Setup and System Commands
1. 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
mLabel width (inch or mm)
nLabel length (inch or mm)
Note: 200 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 100 mm, 100 mm
See Also
GAP, BLINE

EC-3150 THERMAL BARCODE PRINTER 2
2. 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
0 ≤ m ≤ 1 (inch), 0 ≤ m ≤ 25.4 (mm)
n The offset distance of the gap
n ≤ label length (inch or mm)
0,0 Continuous label.
Note: For metric system, there must be a space between parameter and mm.
When the sensor type is changed from “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
(1) English system (inch)
GAP 0.30, 0.10
(2) Metric system (mm)
GAP 7.62 mm, 2.54 mm
See Also
SIZE, BLINE

EC-3150 THERMAL BARCODE PRINTER 3
3. BLINE
Description
Set the height of the black mark and the length of the user-defined label
Syntax
(1) English system (inch)
BLINE m, n
(2) Metric system (mm)
BLINE m mm, n mm
Parameter Description
mBlack mark height
0 ≤ m ≤ 1 (inch), 0 ≤ m ≤ 25.4 (mm)
nExtra feed paper length
0 ≤ label length (inch or mm)
0,0 Continuous label.
Note: For metric system, there must be a space between parameter and
mm.
When the sensor type is changed from “GAP” to “Black Mark”,
please send the “BLINE” command to the printer first.
Ex: 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)
Bline5.08mm, 127mm
(3) Continuous label
GAP 0,0
See Also
SIZE, GAP

EC-3150 THERMAL BARCODE PRINTER 4
4. OFFSET
Description
This command defines the selective, extra label feeding length each form feed takes,
which, especially in peel-off mode, is used to adjust label stop position, so as for label 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
See Also
SIZE, GAP, SET PEEL

EC-3150 THERMAL BARCODE PRINTER 5
5. SPEED
Description
This command defines the print speed.
Syntax
SPEED n
Parameter Description
nprinting 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
n0~15
0, specifies the lightest level
15, specifies the darkest level
Example
DENSITY 7
See Also
DENSITY

EC-3150 THERMAL BARCODE PRINTER 6
7. DIRECTION and Mirror Image
Description
This command defines the printout direction and mirror image. And this will be
memorized in EEPROM.
Syntax
DIRECTION n[,m]
Parameter Description
n 0 or 1. Please refer to the illustrations below:
m 0: Print normal image. 1: Print mirror image.
Example
DIRECTION 0[,0]
See Also
REFERENCE

EC-3150 THERMAL BARCODE PRINTER 7
8. 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
xHorizontal coordinate, with “dot” as the unit.
yVertical coordinate, with “dot” as the unit.
Note: 200 DPI: 1 mm = 8 dots
Example
REFERENCE 10,10
See Also
DIRECTION

EC-3150 THERMAL BARCODE PRINTER 8
9. 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 200 dpi printers,
the range is –203 to 203; The unit is dot.
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,780,490,8
PRINT 3,1
See Also
OFFSET, REFERENCE

EC-3150 THERMAL BARCODE PRINTER 9
10. CODEPAGE
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
See Also
SET COM1, ~!I

EC-3150 THERMAL BARCODE PRINTER 10
11. 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
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: 200 DPI: 1 mm = 8 dots
See Also
BACKFEED, SIZE, GAP, HOME, FORMFEED

EC-3150 THERMAL BARCODE PRINTER 11
13. BACKFEED & BACKUP
Description
To back feed label with the specified length. The length is specified by dot.
Syntax
BACKUP n
BACKFEED n
Parameter Description
nunit: dot
1 ≤ n ≤ 9999
Example
BACKUP 40
BACKFEED 40
CAUTION: Impropriety back feed value may cause paper jam or wrinkle.
Note: 200 DPI: 1 mm = 8 dots
See Also
FEED, SIZE, GAP, HOME, FORMFEED

EC-3150 THERMAL BARCODE PRINTER 12
14. FORMFEED
Description
This command feeds label to the beginning of next label.
Syntax
FORMFEED
Parameter Description
None N/A
Example
SIZE 3,2.5
GAP 0 mm,0
SPEED 4
DENSITY 7
DIRECTION 0
OFFSET 0.00
REFERENCE 0,0
SET PEEL OFF
SET COUNTER @0 +1
@0="000001"
FORMFEED
CLS
BOX 1,1,360,65,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

EC-3150 THERMAL BARCODE PRINTER 13
15. 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 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,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, FORMFEED

EC-3150 THERMAL BARCODE PRINTER 14
16. PRINT
Description
This command prints the label format stored in the image buffer.
Syntax
PRINT m [,n]
Parameter Description
mSpecifies how many sets of labels will be printed.
1 ≤ m ≤ 999999999
If m=-1, printer will print the last label content for n copies.
nSpecifies 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

EC-3150 THERMAL BARCODE PRINTER 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

EC-3150 THERMAL BARCODE PRINTER 16
18. 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
ninch 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, the printer will print out the printer information on the label.
Syntax
SELFTEST
Example
SELFTEST
Table of contents
Other EcLine Printer manuals

EcLine
EcLine EC-PM-80340 User manual

EcLine
EcLine EC-5890X User manual

EcLine
EcLine EC-80 Series Owner's manual

EcLine
EcLine EC-PM-530B Series User manual

EcLine
EcLine GP-5850 Series User manual

EcLine
EcLine EC-3150D-USB User manual

EcLine
EcLine EC-3150 User manual

EcLine
EcLine EC-3150D User manual

EcLine
EcLine EC-PM-80250 User manual

EcLine
EcLine EC-5895X User manual