
Revision C 16/01/96
Chapter 8 "HP-GL2" 52
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.
P=1 P=4 P=7
P=2 P=5 P=8
P=3 P=6 P=9
P=11 P=14 P=17
P=12 P=15 P=18
P=13 P=16 P=19
•
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>
Содержание HL- SERIES
Страница 13: ...Revision A 16 01 96 Chapter 1 Introduction ...
Страница 16: ...Revision C 16 01 96 Chapter 2 PCL 1 Chapter 2 PCL ...
Страница 123: ...Revision C 16 01 96 Chapter 2 PCL 3 W width raster area 78 Y y offset raster 79 ...
Страница 124: ...Revision C 16 01 96 Chapter 3 PJL 1 Chapter 3 PJL Printer Job Language ...
Страница 180: ...Revision C 16 01 96 Chapter 4 Diablo 630 1 Chapter 4 Diablo 630 ...
Страница 200: ...Revision C 16 01 96 Chapter 5 EPSON FX 850 1 Chapter 5 EPSON FX 850 ...
Страница 237: ...Revision C 16 01 96 Chapter 6 IBM Proprinter XL 1 Chapter 6 IBM Proprinter XL ...
Страница 259: ...Revision C 16 01 96 Chapter 7 Bar Codes Control 1 Chapter 7 Bar Code Control ...
Страница 267: ...Revision C 16 01 96 Chapter 8 HP GL2 1 CHAPTER 8 HP GL 2 Graphics Language ...
Страница 280: ...Revision C 16 01 96 Chapter 8 HP GL2 14 220 END Sample 21 ...
Страница 328: ...Revision C 16 01 96 Chapter 9 HP GL 1 CHAPTER 9 HP GL Graphics Language ...
Страница 332: ...Revision C 16 01 96 Chapter 9 HP GL 5 1 3 2 Printing Area a b d c a b c d mm A4 4 5 5 5 Letter 6 5 5 5 Legal 6 5 5 5 ...
Страница 342: ...Revision C 16 01 96 Chapter 9 HP GL 15 Sample 68 ...
Страница 387: ...Revision C 16 01 96 APPENDIX A COMPALISON LIST 24 RESOLUTION 300 600 300 600 300 600 ...