Brother HL-Series Technical Reference Manual page 318

Hide thumbs Also See for HL-Series:
Table of Contents

Advertisement

Revision C 16/01/96
LO - Label Origin
LO [ p ]
• This instruction allows you to position labels in different ways relative to the current pen location.
• You can centre, left justify or right justify labels relative to the current pen location, and print them on,
above or below the current location.
• You can combine an offset distance, equal to 25% of the current font's point size, with any of the above
origin positions.
• p must either be in the range 1 - 9, 11 - 10 and 21. The label origin position specified by each p parameter
value is shown below. 21 sets the label origin to the same one in PCL.
• When you use an LO instruction the carriage return point is set to be the new label origin. To send the pen
back to a label's origin when you have finished printing it, include a carriage return between the last
character of the label and the terminating character.
• If a label contains embedded carriage returns, each character string following a carriage return is printed
starting from the label origin.
• If you omit the parameter the label origin is the bottom left hand corner of the first character's character cell
- equivalent to LO11;.
• The command remains in effect until the printer is initialized with an IN command, until the default
conditions are restored with the DF command. or until another LO command is used.
10 '-Label Origin-
20 WIDTH "LPT1:", 255
30 LPRINT CHR$(27); "E";
40 LPRINT CHR$(27); "%0B";
50 LPRINT "IN;SP;";
60 LPRINT "SC-4000,4000,-5000,5000;SI0.17,0.26;"
70 LPRINT "PA0,500;PD-500,0,0,-500,500,0,0,500;DT#;"
80 LPRINT "CI10;LO4;LBCentred on point#"
90 LPRINT "PU-500,0;CI10;LO18;LBleft centre offset#"
100 LPRINT "PU0,-500;CI10;LO13;LBRight offset from point#"
110 LPRINT "PA500,0;CI10;LO3;LBright hang from point#"
120 LPRINT CHR$(27); "%0A";
130 LPRINT CHR$(27); "E";
140 END
<Sample 53>
[;]
P=1
P=4
P=2
P=5
P=3
P=6
P=11
P=14
P=12
P=15
P=13
P=16
Chapter 8 "HP-GL2" 52
P=7
P=8
P=9
P=17
P=18
P=19

Advertisement

Table of Contents
loading

Table of Contents