Lukhan LK-B10 Installation instructions

Command Manual
This section contains a complete listing of all
commands in alphabetical order.
4”DESKTOP LABEL PRINTER
MODEL : LK-B10/B20/B30


2
No. Command Description Page
1 A ASCⅡ Text 4
2 AUTOFR Automatic Form Printing 9
3 B Bar Code 11
4 B RSS-14 Bar Code 16
5 b
Data Matrix
MaxiCode
PDF417
20
6 C Counter 37
7 C Cut Immediate 39
8 D Density 40
9 EI Print Soft Font Info. 43
10 EK Delete Soft Font 44
11 eR User Definable Error Response 42
12 ES Store Soft Font 45
13 f Cut/Peel Position 50
14 FE End Form Store 51
15 FI Print Form Info. 52
16 FK Delete Form 53
17 FR Retrieve Form 54
18 FS Store Form 55-56
19 GG Retrieve Graphics 57
20 GI Print Graphics Info. 58
21 GK Delete Graphic 59
22 GM Store Graphic 60-61
23 GW Direct Graphic Write 62
24 I Character Set Selection 63-64
25 JB Disable Top Of Form Backup 65
26 JC Disable Top Of Form Backup –All Cases 66
27 JF Enable Top Of Form Backup 67
28 LE Line Draw Exclusive OR 68
29 LO Line Draw Black 69
30 LS Line Draw Diagonal 70
31 LW Line Draw White 71
32 M Memory Allocation 72
33 N Clear Image Buffer 73
34 o Cancel Customized Settings 74
35 oB Cancel Customize Bar Code 75
36 oE Line Mode Font Substitution 76
37 oH Macro PDF Offset 77-78
38 oM Disable Initial Esc Sequence Feed 79

3
No. Command Description Page
39 oR Character Substitution(Euro) 80-81
40 oW Customize Bar Code Parameters 82-83
41 O Options Select 84-85
42 OEPL1 Set Line Mode 86
43 P Print 87
44 PA Print Automatic 88
45 Q
Set Form Length
Transmissive(Gap)Sensor
Black Line Sensor
Continuous Stock
89-90
46 q Set Form Width 91-94
47 r Set Double Buffer Mode 95
48 R Set Reference Point 96
49 S Speed Select 97
50 TD Define Date Layout(& Print Date) 98
51 TS Set Real Time Clock 99
52 TT Define Time Layout(& Print Time) 100
53 U Print Configuration 101
54 UA Enable Clear Label Counter Mode 102
55 UB Reset Label Counter Mode 103
56 UE External Font Information Inquiry 104
57 UF Form Information Inquiry 105
58 UG Graphic Information Inquiry 106
59 UI Host Prompts/Codepage Inquiry 107
60 UM Codepage& Memory Inquiry 108
61 UN Disable Error Reporting 109
62 UP Codepage& Memory Inquiry/Print 110
63 UQ Configuration Inquiry 111
64 US Enable Error Reporting 112-115
65 V Define Variable 116
66 W Windows Mode 117
67 xa Sense Media 118
68 X Box Draw 119
69 Y Serial Port Setup 120
70 Z Print Direction 121
71 ? Download Variables 122
72 ^ @ Reset Printer 123
73 ^ default Set Printer to Factory Defaults 124
74 ^ ee Status Report – Immediate 125

4
A Command - ASCII Text
Description Prints an ASCII text string.
Syntax Ap1,p2,p3,p4,p5,p6,p7,“DATA”
Parameters p1 = Hor izontal start po sition (X) in dots.
p2 = Vertical start position (Y) in dots.
p3 = Ro tation
Value De scrip tion
0No rotation
190 degrees
2180 degrees
3270 degrees
p4 = Font se lection
Value De
scrip
tion
203 dpi 300 dpi
120.3 cpi, 6 pts,
(8 x 12 dots)
25 cpi, 4 pts,
(12 x 20 dots)
216.9 cpi, 7 pts,
(10 x 16 dots)
18.75 cpi, 6 pts,
(16 x 28 dots)
314.5 cpi, 10 pts,
(12 x 20 dots)
15 cpi, 8 pts,
(20 x 36 dots)
412.7 cpi, 12 pts,
(14 x 24 dots)
12.5 cpi, 10 pts,
(24 x 44 dots)
55.6 cpi, 24 pts,
(32 x 48 dots)
6.25 cpi, 21 pts,
(48 x 80 dots)
A - ZReserved for
Soft Fonts
Reserved for
Soft Fonts
Fonts 1 - 5 are fixed pitch.
p5= Hor i
zon tal mul ti
plier, ex
pands the text
hor i zon tally. Values: 1, 2, 3, 4, 5, 6, & 8.
p6= Ver
ti cal mul
ti plier, ex pands the text ver-
tically. Values: 1, 2, 3, 4, 5, 6, 7, 8, & 9.
p7 = N for nor mal or R for re verse im age
“DATA” = Rep resents a fixed data field.
3-4 980352-001 Rev.D

5
ACommand - ASCII Text
The backslash (\) character designates the fol-
lowing character is a literal and will encode into
the data field. Refer to the following examples:
To Print Enter into data field
“ \”
“Company” \”Company\”
\ \\
\code\ \\code\\
Examples: �
N�
A50,0,0,1,1,1,N,"Example 1"�
A50,50,0,2,1,1,N,"Example 2"�
A50,100,0,3,1,1,N,"Example 3"�
A50,150,0,4,1,1,N,"Example 4"�
A50,200,0,5,1,1,N,"EXAMPLE 5"�
A50,300,0,3,2,2,R,"Example 6"�
P1�
Will Produce:
As shown in example 5 above, font 5 only supports
upper case characters. Refer to Appendix A for a
complete listing of available fonts and character sets
supported.
Use the LE command to create reverse print text in-
stead of the “R” inthe Acommand parameter p7.
This is the recommend method because it provides
the best size, position and centering of the black line
(rectangle) bordering the reversed text.
980352-001 Rev.D 3-5
HINT

6
A Com mand - ASCII Text
Variable Data and
Counter Functions
The “Data” field can be replaced by or com-
bined with the following com mands:
Vnn= Prints the con tents of vari able “nn” at
this po si tion where nn is a 2 digit num
-
ber from 00 to 99. See the V com mand,
page 3-116
Cn= Prints the con tents of coun ter “n” at this
position where n is a one digit num ber
from 0 to 9. See theC com mand,
page 3-37.
Example: A50,0,0,1,1,1,N,"DATA"�: Writes Text
A50,50,0,2,1,1,N,V01�: Writes contents of vari able 01
A50,100,0,3,1,1,N,C1�: Writes con tents of coun ter 1
A50,100,0,3,1,1,N,C1+2�: Writes con tents of coun ter 1 plus 2
Data with the RTC
Time & Date
Functions
The “Data” field can be replaced by or com-
bined with the fol lowing vari ables:
TT = Prints the cur rent time at this po sition in
the pre defined for mat. See the TT com
-
mand for format selection. This vari able
is avail able only if the printer Time &
Date op tion is in stalled.
TD =Prints the cur rent date at this po sition in
the pre defined for mat. See the TD com
-
mand for format selection. This vari able
is avail able only if the printer Time &
Date op tion is in stalled.
Examples: A50,150,0,4,1,1,N,TT�: Writes cur rent time
A50,200,0,5,1,1,N,TD�: Writes current date
or a com bination of sev eral op tions:
A50,300,0,3,2,2,R,"De
luxe"V01C2"Combo"TDV01TT�
:Writes the text “Deluxe” fol lowed by the contents of variable 01 fol
-
lowed by the con tents of coun ter 2 followed by the text “Combo” fol-
lowed by the cur rent date fol lowed by the con tents of vari able 01
followed by the current time.
3-6 980352-001 Rev.D

7
A Command - ASCII TEXT
Simple Expressions
in Data Fields
An ad
vanced func
tion of the A com mand al
-
lows ad dition and subtraction to be performed
on con stant and variable values in flash print ers.
Syntax Ap1,p2,p3,p4,p5,p6,p7,“DATA”[p8p9p10…]
Parameters For the p1 - p7 and “DATA” pa ram e ters -
See first page of A com mand, page 3-4.
p8 = Re quired. Must be a vari able data field
number, e.g. V00, V01 etc.
p9 = Re quired. Op erator, + or –
p10 = Re quired. Variable data field num ber
or constant value.
Valid Num ber Ranges:
Constant = 0 to 2147483647
Variable = 0 to 2147483647
Result = -2147483648 to 2147483647
�The Ex pression must start with a vari able
field.
�The char acter field length de fined for the first
variable in the ex
pression will be used to for
-
mat the re
sult. If the re
sult is of a greater
length than the de
fined char
acter length, then
the re sult field will contain ‘X’s.
�A syn tax er
ror will be gen
erated dur
ing form
storage if the con stant value is too large.
�If an er ror oc curs during the eval uation of the
expression, the re
sultant field will be filled
with ‘X’s.
980352-001 Rev.D3-7

8
A Com mand - Sim ple Ex pressions in Data Fields
Example: �
FK"1"�
FK"1"�
FS"1"�
V00,10,N,"En ter cur
rent mile
age"�
A100,100,0,4,1,1,N,"Current mile age is “V00" miles.”�
A100,200,0,4,1,1,N,"Change oil at “V00+3000" miles.”�
FE�
�
FK"2"�
FK"2"�
FS"2"�
V00,10,N,"En
ter cur
rent mile
age."�
V01,10,N,"En ter in ter val mile age."�
A100,100,0,4,1,1,N,"Current mile age is “V00" miles.”�
A100,200,0,4,1,1,N,"Mileage in terval is “V01" miles.”�
A100,200,0,4,1,1,N,"Change oil at “V00+V01" miles.”�
FE�
�
FK"3"�
FK"3"�
FS"3"�
V00,10,N,"Enter value 1."�
V01,10,N,"Enter value 2."�
V02,10,N,"Enter value 3."�
A100,200,0,4,1,1,N,"An
swer: “V01+123+V00-10-V02�
FE�
Asian Character
Font Sets
The flash based printers sup
port up to five Asian
lan guage char ac ter (ideogram) sets. Asian lan
-
guage sup
port is an op
tional fea
ture and re-
quires a spe
cial ver
sion of the printer (PCBA) to
support the large Asian character sets.
The Asian character maps and spe cial fea tures
of the A com mand that sup
port the character
sets can be found in a sep
arate pub
lication or on
our Asian Desk top printer CD ROM.
For Asian lan
guage firmware up
dates,
publications and sup port op tions see:
www.miniprinter.com
3-8 980352-001 Rev.D

9
AUTOFR Command - Au to matic Form Print ing
Description This spe cial form pro cess al lows you to de tach
the printer from the com puter and print in a
standalone mode. The LK-B10 printer reserves
the form nameAUTOFR to al low the printer to
automatically start a form when the printer is in
-
itialized power-up. This fea ture can be used in
many ways, that in clude the following:
•Feed a single label in peel mode and print
multiple la bels set to the num ber of la bels on
the roll.
•Have a form with a variable and en ter the
variable with a scanner, ter minal, weight
scale, cir cuit an alyzer or any other de vice ca -
pable of sending ASCII character data.
Mobile print ers, such as the printer, ig nore this
com
mand.
Using AUTOFR Download
:Line Feed to initialize the printer
FK”AUTOFR” :Form Kill(delete any existing AUTOFR)
FS”AUTOFR” :Form Save(save file from here to FE at
:the bottom)
V00,8,L,”” :Variable field definition
Q254,20 :Label height followed by gap width
S2 :Speed(2ips)
D7 :Density setting
ZB :Print direction(ZT flips it 180 degrees)
A340,20,0,4,1,2,N,”QUANTITY” :Fixed text line
B265,75,0,3,2,4,101,B,V00 :Bar code definition
PA1 :Print 1 label Automatically*
FE :Form End(Line Feed)
a form to the printer with the name
AUTOFR .
Example:
* - If us ing the CAL TOOLS, CAL WIN, etc. programs to gen er-
ate label files (files with .ejf ex tensions), then the PA com mand
must be added manually by ed iting the .ejf file.

10
AUTOFR - Au tomatic Form Printing Fea ture
AUTOFR treats any in coming data as a vari able in -
tended for printing. This means if you send the
printer a mem ory par tition command, the la bel will
print, if you send a delete com mand - the la bel will
print! So, while you are testing AUTOFR it is best to
use an other name for the form. Once you are sat is-
fied with the form, re
name it AUTOFR be
fore you
download it. There is no need to specify a file ex
ten-
sion.
Isolating Data From
the Input Device
Place the printer in the di agnostic dump mode
and send from your data in put de vice.
•All char
acters the de
vice sends will be printed
on the la bel.
• If noth
ing prints, nothing is ar riving - check
pin-outs and se rial settings.
Disabling AUTOFR Send a XOFF data char
acter (13 hex. or ASCII
19) or a NUL (00 hex. or ASCII 0) to the printer.
The form may now be deleted from the printer.
Removing AUTOFR The pro grammer must send a De lete Form - FK
command to the printer af ter dis abling
AUTOFR.
Example: FK"AUTOFR"�
FK"AUTOFR"�
3-10 980352-001 Rev.D

11
B Command - Bar Code
Description Use this command to print standard bar codes.
Syntax Bp1,p2,p3,p4,p5,p6,p7,p8,“DATA”
Parameters p1 = Hor i zon tal start po si tion (X) in dots
p2 = Vertical start position (Y) in dots.
p3 = Ro tation
Value De scrip tion
0No rotation
190 degrees
2180 degrees
3270 degrees
p4 = Bar Code se lection (see Ta ble 2-1 on
next page).
p5 = Narrow bar width in dots. (see Ta ble
2-1 on next page).
p6 = Wide bar width in dots.
Ac cept able val ues are 2-30.
p7 = Bar code height in dots.
p8 = Print hu man readable code.
Values: B=yes or N=no.
“DATA” = Rep
resents a fixed data field. The
data in this field must comply with the se lected
bar code’s specified for mat.
The back slash (\) character des ignates the fol
-
lowing char
acter is a lit
eral and will en
code into
the data field. Re fer to the fol lowing ex amples:
To Print Enter into data field
“ \”
“Company” \”Company\”
\ \\
\code\ \\code\\
980352-001 Rev.D3-11

12
BCommand - Bar Code
3-12 980352-001 Rev.D
De scrip tion P4
Value
P5
Value
Code 39 std. or extended 3 1-10
Code 39 with check digit 3C 1-10
Code 93 9 1-10
Code 128 UCC
Serial Shipping Container Code 0 1-10
Code 128 auto A, B, C modes 1 1-10
Code 128 mode A 1A 1-10
Code 128 mode B1B 1-10
Code 128 mode C1C 1-10
Codabar K 1-10
EAN8 E80 2-4
EAN8 2 digit add-on E82 2-4
EAN8 5 digit add-on E85 2-4
EAN13 E30 2-4
EAN13 2 digit add-on E32 2-4
EAN13 5 digit add-on E35 2-4
German Post Code 2G 3-4
Interleaved 2 of 5 2 1-10
Interleaved 2 of 5 with mod 10 check digit 2C 1-10
Interleaved 2 of 5 with human readable
check digit 2D 1-10
Postnet 5, 9, 11 & 13 digit1P —
Planet 11 & 13 digit1
Japanese Postnet J —
UCC/EAN 12821E 1-10
UPC AUA0 2-4
UPC A 2 digit add-on UA2 2-4
UPC A 5 digit add-on UA5 2-4
UPC EUE0 2-4
UPC E 2 digit add-on UE2 2-4
UPC E 5 digit add-on UE5 2-4
UPC Interleaved 2 of 5 2U 1-10
Plessey (MSI-1) with mod. 10 check digit L —
MSI-3 with mod. 10 check digit M —
1. Hyphens maybe used in data, as a data separator and will be ignored.
2. Use ASCII 06 to delimit variable length fields.
Bar Codes
PL

13
B Com mand - Bar Code
Example: �
N�
B10,10,0,3,3,7,200,B,"998152-001"�
P1�
Will Produce:
Bar Codes with
Variables & Counters
The data field can be re
placed by or combined
with the following com mands:
Vnn =Prints the con tents of vari able “nn” at
this po sition. Range of nn = 00 to 99.
Cn =Prints the con tents of coun ter “n” at this
po si tion. Range of n = 0 to 9
See Ap
pen dix C for ad
ditional Data pa
ram e
-
ters for printers with the RTC (real time clock)
op tion in stalled.
Examples: B50,0,0,3,1,2,50,B,"DATA"�: Writes bar code
B50,50,0,3,1,2,50,N,V01�: Writes contents of vari able 01 as bar
: code
B50,50,0,3,1,2,50,N,C1�: Writes con tents of coun ter 1 as bar
: code
B50,50,0,3,1,2,50,N,C1+2�: Writes con tents of coun ter 1 plus2 as
: bar code
or a com bination of sev eral op tions:
B50,300,0,3,1,2,50,B,"De luxe"V01C2"Combo"V01�
:Writes the text “Deluxe” fol lowed by the contents of variable 01 fol
-
lowed by the con tents of coun ter 2 followed by the text “Combo” fol-
lowed by the con tents of vari able 01 all as a code 39 bar code.
980352-001 Rev.D3-13

14
B Com mand - Bar Code
Data with the RTC
Time & Date
Functions
The “Data” field can be replaced by or com-
bined with the fol lowing vari ables:
TT = Prints the cur rent time at this po sition in
the pre defined for mat. See the TT com
-
mand for format selection. This vari able
is avail able only if the printer Time &
Date op tion is in stalled.
TD =Prints the cur rent date at this po sition in
the pre defined for mat. See the TD com
-
mand for format selection. This vari able
is avail able only if the printer Time &
Date op tion is in stalled.
Some bar code for mats will not sup port date names
or the date or time de limiters used by the printer to
sep a rate data pa ram e ters.
Code 128 Bar Code
Function Characters
The printer sup ports code 128 func tion con trol
char ac ters (FCN#). Mul ti ple FCN#s, TTs, TDs
and “DATA” strings can be con catenated, al -
lowing them to be in serted any where within the
sym bol.
FCN2, FCN3 and FCN4 are il legal in code
128 mode C (p4 = 1C) and will re sult in a syn -
tax error.
Please re
fer to the Code 128 stan
dard for a de
-
scrip tion of func tion char ac
tersFNC1 through
FNC3.
“Standard” Code 128 can encode all 128 stan-
dard ASCII char
acters (0-127). Func
tion char
-
ac
ter FCN4 pro vides a means of also encoding
extended ASCII char acters (128-255). It di rects
the reader to add 128 to the value of each af
-
fected char ac ter be fore trans mit ting it.
Two con sec u tive FCN4s tog gle be tween stan
-
dard and ex
tended ASCII mode for all suc
ceed-
ing data characters (un til the end of the sym bol,
or un til an other pair of s is en countered). This is
referred to as latch ing into ex tended ASCII
mode or latching into standard ASCII mode.
3-14 980352-001 Rev.D

15
B Com mand - Bar Code
Code 128 Bar Code
Function Characters
(continued)
A sin gle FCN4 tog gles be tween stan dard and
extended ASCII mode for only a single fol low-
ing data char acter. This is re ferred to as shift ing
into ex tended ASCII mode or shift ing into stan
-
dard ASCII mode.
Both code sets A and B are needed to rep resent
the en tire ex tended ASCII char acter set, just as
both sets are needed to rep resent the stan dard
ASCII char ac ter set.
FCN4s can be in
serted manually, if nec
essary
or de sired, by following the syn tax de scribed
above. The printer will, however, in sert them
au to mat i cally if ex tended ASCII char ac ters are
encountered in the DATA. It will do so in the
most ef
fi cient man ner pos si ble:
•If up to 4 contiguous ex tended ASCII charac-
ters are en countered, it will shift into extended
ASCII mode by inserting a sin gle FCN4 be -
fore each one;
•If 5 or more con tiguous ex tended ASCII char-
acters are en countered, it will latch into ex -
tended ASCII mode by inserting twoFCN4s
be fore them.
•While latched into ex tended ASCII mode, it
will ap ply the same rules if stan dard ASCII
char
ac ters are en coun
tered.
Thus, the pre
ferred way to en
code ex
tended
ASCII characters is to sim
ply em
bed them in the
DATA and let the printer manage the en
coding
task. For best results, the code set should also
not be spec
ified (i.e., p4 = 1). FCN4 s should be
manually in
serted only in sys
tems where ex
-
tended ASCII char
acters can
not be trans
mitted
to the printer.
It is il legal to mix au tomatic and manual modes
within the data for a sin gle symbol; i.e., an ex tended
ASCII char acter en countered in the data af ter an will
be con
sidered a syntax er
ror. Likewise, an FCN4 af
-
ter an extended ASCII char
acter will also be con
sid-
ered a syntax er ror.
980352-001 Rev.D3-15

16
B Command - RSS-14 Bar Code
Description Use this command to p rint RSS-14 b ar c ode
family bar codes for nu meric data. The printer
supports a sub set of the RSS bar code family set.
The sub set in cludes b a sic RSS-14, RSS L im -
ited, RSS S tacked and RSS T run cated. T he
printer does not sup port RSS Ex tended or two
di men sional com pos ite bar codes.
Printer Models: LK-B10
Syntax Bp1,p2,p3,p4,p5,p6,p7,p8,“DATA”
Parameters p1 = Hor i zon tal start po si tion (X) in dots
p2 = Ver ti cal start position (Y) in dots.
p3 = Ro tation
Valu e De scrip tion
0No rotation
190 degrees
2180 degrees
3270 degrees
p4 = RSS-14 Bar Code se lec tion.
Valu e De s crip tion Width
Mul ti plier
Min. Heigh t
Mul ti plier
R14 Ba sic RSS-14 96 33
RL Lim ited 50 13
RS Stacked 96 13
RT Trun cated 74 10
p5 = Narrow bar width in dots.
The nar rowest mod ule will be this num -
ber of dots. Range: 1-10 .
Sym bol Width is the value of p5 times
the ap pli ca ble bar code Width Mul ti -
plier listed in the ta ble for the se lected
RSS-14 bar code type (p4). This over all
symbol width value in cludes the re-
quired sym bol "quite zone".
p6 = Required Value is 2

17
B Command - RSS-14 Bar Code
p7 = Bar code height in dots. See the ta ble
above for the Min imum Height Multi-
plier. The printer will au tomatically se-
lect the larger of of two val ues: 1) this
value and 2) the Se lected narrow bar
width (p5) times the Min. Height Mul -
ti plie r listed in the ta ble for the se lected
RSS-14 bar code type (p4).
p8 = Print hu man readable code.
Val ues: B=yes or N=no.
“DATA” = Rep resents a fixed data field of
nu meric data, 0-9 only.
The printer's data parser will al low the
use of lead ing ze ros (0's) or spaces
which will be dis carded when data is en -
coded in the bar code.
Value (P4) De scrip tion Max. Nu meric Valu e
R14 Ba sic RSS-14 9999999999999
RL Lim ited 9999999999999
RS Stacked 9999999999999
RT Trun
cated 1999999999999
Data with the RTC
Time & Date
Functions
The “Data” field can be replaced by or com-
bined with the fol lowing vari ables:
TT = Prints the cur rent time at this po sition in
the pre defined for mat. See the TT com -
mand for format selection. This vari able
is avail able only if the printer RTC Time
& Date op tion is in stalled.
TD =Prints the cur rent date at this po sition in
the pre defined for mat. See the TD com -
mand for format selection. This vari able
is avail able only if the printer RTC Time
& Date op tion is in stalled.
Be cause the RSS-14 bar c ode sym bols only
support nu meric data, the time and date data
recalled by the TD and TT com mands must not
in clude de lim it ers, i.e. "/,-, or :" or any other de-
limiters that may be set.

18
B Com mand - RSS-14 Bar Code
Example #1 N
B100,100,0,RL,4,4,40,B,"1234567890"
B100,300,0,R14,4,4,40,B,"1234567890"
B100,500,0,RS,4,4,52,B,"1234567890"
B100,700,0,RL,4,4,40,B,"9876543210"
P
Will Produce

19
B Com mand - RSS-14 Bar Code
Example #2 N
B100,100,0,RL,4,4,40,B,"1234567890"
B400,300,0,RT,4,4,40,B,"1234567890"
B500,900,0,RS,4,4,54,B,"1234567890"
B500,900,1,RS,4,4,54,B,"1234567890"
B500,900,2,RS,4,4,54,B,"1234567890"
B500,900,3,RS,4,4,54,B,"1234567890"
B100,1350,0,RL,4,4,40,B,"9876543210"
P
Will Produce
This manual suits for next models
2
Table of contents
Other Lukhan Label Maker manuals