Bematech LB-1000 Programming Manual

  • Hello! I am an AI chatbot trained to assist you with the Bematech LB-1000 Programming Manual. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
Programming Manual LB-1000
Part number: 501012560 - Revision 1.0
August/2012
Copyright © Bematech S. A.
All rights reserved.
No part of this publication may be copied, reproduced, adapted or translated without the prior written
permission of Bematech S.A., except when allowed by patent rights.
Information in this publication is purely informative, subjected to change without notice and no liability
is assumed with respect to its use.
However as product improvements become available, Bematech S.A. will make every effort to provide
updated information for the products described in this publication. The latest version of this manual
can be obtained through Bematech S.A. website:
www.bematech.com
Notwithstanding the other exceptions contained in this Manual, the consequences and responsibility
are assumed by the Purchaser of this product or third parties as a result of: (a) intentional use for any
improper, unintended or unauthorized applications of this product, including any particular purpose;
(b) unauthorized modifications, repairs, or alterations to this product; (c) use of the product without
complying with Bematech S.A. operating and maintenance instructions; (d) use of the product as
component in systems or other applications in which the failure of this could create a situation where
personal injury or material damages may occur. In the events described above, Bematech S.A. and its
officers, administrators, employees, subsidiaries, affiliates and dealers shall not be held responsible or
respond by any claim, costs, damages, losses, expenses and any other direct or indirect injury, as
well as claims which alleges that Bematech S.A. was negligent regarding the design or manufacture
of the product.
Bematech S.A. shall not be liable against any damages or problems arising from the use of any
options or any consumable products other than those designated as original Bematech S.A. products
or approved products by Bematech S.A.
Any product names or its logotypes mentioned in this publication may be trademarks of its respective
owners and shall be here recognized.
Product warranties are only the ones expressly mentioned in the User's Manual. Bematech S.A.
disclaims any and all implied warranties for the product, including but not limited to implied warranties
of merchantability or fitness for a particular purpose. In addition, Bematech S.A. shall not be
responsible or liable for a special, incidental or consequential damages or lost profits or savings
arising from the use of the product by the Purchaser, the User or third parties

About the manual .................................................................................................................................................... V
Who should read this manual? ................................................................................................................................ V
Other Publications Related ..................................................................................................................................... V
Document Conventions .......................................................................................................................................... VI
Object Position Calculation ................................................................................................................................... VII
Printer Models List ................................................................................................................................................. IX
Setup and System Commands ............................................................................................................................... 1
SIZE .......................................................................................................................................................... 1
GAP .......................................................................................................................................................... 3
GAPDETECT ............................................................................................................................................ 5
BLINEDETECT ......................................................................................................................................... 6
AUTODETECT ......................................................................................................................................... 7
BLINE ....................................................................................................................................................... 8
OFFSET.................................................................................................................................................... 9
SPEED.................................................................................................................................................... 10
DENSITY ................................................................................................................................................ 11
DIRECTION
AND
M
IRROR
I
MAGE
............................................................................................................. 12
REFERENCE .......................................................................................................................................... 14
SHIFT ..................................................................................................................................................... 15
COUNTRY .............................................................................................................................................. 17
CODEPAGE ............................................................................................................................................ 18
CLS ......................................................................................................................................................... 20
FEED ...................................................................................................................................................... 21
BACKFEED
&
BACKUP .......................................................................................................................... 22
FORMFEED ............................................................................................................................................ 23
HOME ..................................................................................................................................................... 24
PRINT ..................................................................................................................................................... 25
SOUND ................................................................................................................................................... 26
CUT ........................................................................................................................................................ 27
LIMITFEED ............................................................................................................................................. 28
SELFTEST .............................................................................................................................................. 29
Label Formatting Commands ................................................................................................................................ 30
BAR ........................................................................................................................................................ 30
BARCODE .............................................................................................................................................. 31
BITMAP .................................................................................................................................................. 36
BOX ........................................................................................................................................................ 38
CIRCLE................................................................................................................................................... 39
DMATRIX ................................................................................................................................................ 40
ERASE.................................................................................................................................................... 41
MAXICODE ............................................................................................................................................. 42
PDF417................................................................................................................................................... 44
AZTEC .................................................................................................................................................... 48
PUTBMP ................................................................................................................................................. 50
PUTPCX ................................................................................................................................................. 51
QRCODE ................................................................................................................................................ 52
RSS ........................................................................................................................................................ 56
REVERSE ............................................................................................................................................... 59
TEXT....................................................................................................................................................... 60
Status Polling Commands (RS-232) ..................................................................................................................... 62
<ESC>!? ...................................................................................................................................................... 62
<ESC>!R ..................................................................................................................................................... 63
~!@ .............................................................................................................................................................. 64
~!A ............................................................................................................................................................... 65
~!C ............................................................................................................................................................... 66
~!D ............................................................................................................................................................... 67
~!F ............................................................................................................................................................... 68
~!I ................................................................................................................................................................ 69
~!T ............................................................................................................................................................... 70
Message Translation Protocols ............................................................................................................................. 71
~# ................................................................................................................................................................ 71
Commands for Windows Driver ............................................................................................................................ 72
!B ................................................................................................................................................................. 72
!J .................................................................................................................................................................. 73
!N ................................................................................................................................................................. 74
File Management Commands ............................................................................................................................... 75
DOWNLOAD ........................................................................................................................................... 75
EOP ........................................................................................................................................................ 78
FILES ...................................................................................................................................................... 79
KILL ........................................................................................................................................................ 80
MOVE ..................................................................................................................................................... 82
RUN ........................................................................................................................................................ 83
BASIC Commands and Functions ........................................................................................................................ 84
ABS(
) ..................................................................................................................................................... 84
ASC(
) ..................................................................................................................................................... 85
CHR$(
) ................................................................................................................................................... 86
END ........................................................................................................................................................ 87
EOF(
) ..................................................................................................................................................... 88
OPEN...................................................................................................................................................... 88
WRITE .................................................................................................................................................... 91
READ ...................................................................................................................................................... 92
SEEK ...................................................................................................................................................... 94
LOF(
)...................................................................................................................................................... 95
FREAD$(
) .............................................................................................................................................. 96
FOR…NEXT
LOOP ................................................................................................................................ 97
IF…THEN…ELSE…ENDIF
LOOP ....................................................................................................... 98
GOSUB…RETURN .............................................................................................................................. 102
GOTO ................................................................................................................................................... 103
INP$(
)................................................................................................................................................... 104
INPUT ................................................................................................................................................... 105
REM ...................................................................................................................................................... 106
OUT ...................................................................................................................................................... 107
GETKEY(
) ............................................................................................................................................ 108
INT(
) ..................................................................................................................................................... 109
LEFT$(
) ................................................................................................................................................ 110
LEN(
)..................................................................................................................................................... 111
MID$(
) .................................................................................................................................................. 112
RIGHT$(
) ............................................................................................................................................. 113
STR$(
) ................................................................................................................................................. 114
STRCOMP
(
) ........................................................................................................................................ 115
INSTR
(
) ............................................................................................................................................... 116
TRIM$(
) ................................................................................................................................................ 117
LTRIM$(
) .............................................................................................................................................. 118
RTRIM$(
) ............................................................................................................................................. 119
VAL(
) .................................................................................................................................................... 120
BEEP .................................................................................................................................................... 121
NOW$(
) ................................................................................................................................................ 122
FORMAT$(
) .......................................................................................................................................... 123
Device Reconfiguration Commands .................................................................................................................... 125
SET
COUNTER .................................................................................................................................... 125
SET
CUTTER ....................................................................................................................................... 126
SET
PARTIAL_CUTTER ....................................................................................................................... 127
SET
BACK ............................................................................................................................................ 129
SET
KEY1,
SET
KEY2,
SET
KEY3 ....................................................................................................... 130
SET
LED1,
SET
LED2,
SET
LED3 ........................................................................................................ 132
SET
PEEL ............................................................................................................................................. 134
SET
TEAR
&
SET
STRIPER ................................................................................................................. 135
SET
GAP .............................................................................................................................................. 136
SET
HEAD ............................................................................................................................................ 138
SET
RIBBON ........................................................................................................................................ 139
SET
COM1 ............................................................................................................................................ 140
SET
PRINTKEY .................................................................................................................................... 141
SET
REPRINT ...................................................................................................................................... 143
PEEL..................................................................................................................................................... 144
LED1,
LED2,
LED3 ............................................................................................................................... 145
KEY1,
KEY2,
KEY3 ............................................................................................................................... 146
Printer Global Variables ...................................................................................................................................... 147
@LABEL .................................................................................................................................................... 147
YEAR .................................................................................................................................................... 148
MONTH................................................................................................................................................. 149
DATE .................................................................................................................................................... 150
WEEK ................................................................................................................................................... 151
HOUR ................................................................................................................................................... 152
MINUTE ................................................................................................................................................ 153
SECOND .............................................................................................................................................. 154
@YEAR ..................................................................................................................................................... 155
@MONTH .................................................................................................................................................. 156
@DATE...................................................................................................................................................... 157
@DAY ........................................................................................................................................................ 158
@HOUR .................................................................................................................................................... 159
@MINUTE ................................................................................................................................................. 160
@SECOND ............................................................................................................................................... 161

This manual provides instructions on how to program Bematech’s LB-1000 Label Printer.

This manual was developed either for technical and common users, in order to provide instructions on how to
program the equipment.

User Manual
Service Manual (exclusive for Technical Assistance)

http://www.bematech.com.br
http://www.bematech.com

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 returns the printer status
immediately.
~ (ASCII 126), control code of status polling
command, 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) denotes end of command line.
NULL (ASCII 0) supported in the expression, except the 2D
bar code commands.
Note: 203 DPI: 1 mm = 8 dots Arial font in bold and italic type is used for note.
aper feed direction
DIRECTION 0
Label origin (0,0)



203 DPI, 1mm=8 dots
300 DPI, 1mm=12 dots
DIRECTION 0
TEXT 56,24,”3”,0,1,1,”ABC”
DIRECTION 1
TEXT 56,24,”3”,0,1,1,”ABC”
Paper feed direction
 !"#
Label origin (0,0)


$
Models
LB
-
1000
1.
BASIC
2. ADVANCED
%&%'
%&%'%&%'
%&%'
%(
Description
This command defines the label width and length.
Syntax
English system (inch)
SIZE m,n
Metric system (mm)
SIZE m mm,n mm
Dot measurement
SIZE m dot,n dot
This command is only supported in v6.27 and later firmware.
Parameter Description
m Label width (inch or mm)
n Label length (inch or mm)
Note :
200 DPI : 1 mm = 8 dots
300 DPI : 1mm = 12 dots
For metric and dot systems, there must be a space between parameter and
“mm” or “dot”.
Max. width
72mm
104mm
106mm
108mm
219.5mm
LB
-
1000
X
Example
(1) English system (inch)
SIZE 3.5, 3.00
(2) Metric system (mm)
SIZE 100 mm, 100 mm
See Also
GAP, BLINE
)
Description
This command sets the distance between two labels.
Syntax
English system (inch)
GAP m,n
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
English system (inch)
GAP 0.12,0
Metric system (mm)
GAP 3 mm,0
Continuous label
GAP 0,0

English system (inch)
GAP 0.30, 0.10
Metric system (mm)
GAP 7.62 mm, 2.54 mm
See Also
SIZE, BLINE
) ! !
Description
This command feeds the paper through the gap sensor in an effort to determine the paper and gap
sizes, respectively. This command references the user’s approximate measurements. If the
measurements conflict with the actual size, the GAPDETECT command will not work properly. This
calibration method can be applied to the labels with pre-printed logos or texts.
Syntax
GAPDETECT [x, y]
Parameter Description
x Paper length (in dots)
y Gap length (in dots)
Note: If the x, y parameters are ignored then the printer will calibrate and
determine the paper length and gap size automatically.
See Also
GAP, SIZE, BLINEDETECT, AUTODETECT
*$" ! !
Description
This command feeds the paper through the black mark sensor in an effort to determine the paper and
black mark sizes, respectively. This command references the user’s approximate measurements. If the
measurements conflict with the actual size, the BLINEDETECT command will not work properly. This
calibration method can be applied to the labels with pre-printed logos or texts.
Syntax
BLINEDETECT [x, y]
Parameter Description
x Paper length (in dots)
y Gap length (in dots)
Note: If the x, y parameters are ignored then the printer will calibrate and
determine the paper length and gap size automatically.
See Also
GAP, SIZE, GAPDETECT, AUTODETECT
+! ! !
Description
This command feeds the paper through the gap/black mark sensor in an effort to determine the paper
and gap/black mark sizes, respectively. This command references the user’s approximate
measurements. If the measurements conflict with the actual size, the AUTODETECT command will not
work properly. This calibration method can be applied to the labels with pre-printed logos or texts.
Syntax
AUTODETECT [x, y]
Parameter Description
x Paper length (in dots)
y Gap length (in dots)
Note:
(1). If the x, y parameters are ignored then the printer will calibrate and
determine the paper length and gap/black mark size automatically.
(2). When using this command, the printer will detect the label by the proper
sensor type so please don’t set the command GAP or BLINE in your
program.
(3). It is supported in firmware V6.86EZ or later.
See Also
GAP, SIZE, GAPDETECT, BLINEDETECT
*$"
Description
This command sets the height of the black line and the user-defined extra label feeding length each
form feed takes.
Syntax
English system (inch)
BLINE m,n
Metric system (mm)
BLINE m mm,n mm
Parameter Description
m The height of black line either in inch or mm.
0 m 1 (inch), 0 m 25.4 (mm)
n The extra label feeding length. 0 n label length
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
English system (inch)
BLINE 0.20,0.50
Metric system (mm)
BLINE 5.08 mm,12.7 mm
See Also
SIZE, GAP
% !
Description
This command defines the selective, extra label feeding length each form feed takes, which, especially
in peel-off mode and cutter mode, is used to adjust label stop position, so as for label to register at
proper places for the intended purposes. The printer back tracks the extra feeding length before the
next run of printing.
Syntax
English system (inch)
OFFSET m
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
English system (inch)
OFFSET 0.5
Metric system (mm)
OFFSET 12.7 mm
See Also
SIZE, GAP, SET PEEL, SET CUTTER
%
Description
This command defines the print speed.
Syntax
SPEED n
Parameter Description
n printing speed in inch per second
Model / IPS
1
1.5
2
2.5
3
3.5
4
5
6
8
10
12
LB
-
1000
x
x
x
Example
SPEED 10
See Also
DENSITY
/