
Revision C 16/01/96
Chapter 9 "HP-GL" 31
LB - Character Plot
LB [ cs ] < terminator > [;]
cs : character string
•
Plots character strings, numerical expressions, variables, etc.
•
Plotting is performed whether the pen is up or down.
•
After plotting, the cursor moves to the position of the next character.
10 '*** LBEX1 ***
20 LPRINT "SP2;PA1000,4000;"
30 X=30
40 LPRINT "LB",X,X+1,X+2,CHR$(3)
50 END
<Sample 81>
10 '*** LBEX2 ***
20 LPRINT "SP2;PA4000,5000;"
30 X=30
40 LPRINT "LB";X;X+1;X+2,CHR$(3)
70 END
<Sample 82>
10 '*** LBEX3 ***
20 LPRINT "SP2;PA5000,6000;"
30 X=30
40 LPRINT "LB";X;" ";X+1;" ";X+2,CHR$(3)
70 END
<Sample 83>
DI - Absolute Direction
DI [ run, rise ] [;]
run : X direction component
rise : Y direction component
•
Specifies the character plot direction.
•
Values for the run and rise are clamped real numbers.
•
The instruction is ignored when the values for both run and rise are 0.
•
When the parameter field is omitted, the default value (horizontal direction) is used.
θ
run
rise
tan
θ
=
cos
sin
θ
θ
10 '*** DIEX ***
15 DEG=-45
16 RAD3.1416/180*DEG
20 LPRINT "IN;SP2;PA3050,4450;"
30 LPRINT "DI0,2;LB_*_1988";CHR$(3);"DI2,2;LB_*_1989";CHR$(3)
40 LPRINT "DI2,0;LB_*_1990";CHR$(3);"DI2,-2;LB_*_1991";CHR$(3)
50 LPRINT "DI0,-2;LB_*_1992";CHR$(3);DI-2,-2;LB_*_1993";CHR$(3)
60 LPRINT "DI-2,0;LB_*_1994";CHR$(3);"DI-2,2;LB_*_1995";CHR$(3)
70 LPRINT
"PA3500,5350;DI",COS(0),SIN(0);"LB_*_2000";CHR$(13);CHR$(3);
80 LPRINT "DI",COS(RAD);SIN(RAD);"LB_RETURN
POINT";CHR$(13);CHR$(3)
90 END
<Sample 84>
DR - Relative Direction
Summary of Contents for HL- SERIES
Page 13: ...Revision A 16 01 96 Chapter 1 Introduction ...
Page 16: ...Revision C 16 01 96 Chapter 2 PCL 1 Chapter 2 PCL ...
Page 123: ...Revision C 16 01 96 Chapter 2 PCL 3 W width raster area 78 Y y offset raster 79 ...
Page 124: ...Revision C 16 01 96 Chapter 3 PJL 1 Chapter 3 PJL Printer Job Language ...
Page 180: ...Revision C 16 01 96 Chapter 4 Diablo 630 1 Chapter 4 Diablo 630 ...
Page 200: ...Revision C 16 01 96 Chapter 5 EPSON FX 850 1 Chapter 5 EPSON FX 850 ...
Page 237: ...Revision C 16 01 96 Chapter 6 IBM Proprinter XL 1 Chapter 6 IBM Proprinter XL ...
Page 259: ...Revision C 16 01 96 Chapter 7 Bar Codes Control 1 Chapter 7 Bar Code Control ...
Page 267: ...Revision C 16 01 96 Chapter 8 HP GL2 1 CHAPTER 8 HP GL 2 Graphics Language ...
Page 280: ...Revision C 16 01 96 Chapter 8 HP GL2 14 220 END Sample 21 ...
Page 328: ...Revision C 16 01 96 Chapter 9 HP GL 1 CHAPTER 9 HP GL Graphics Language ...
Page 342: ...Revision C 16 01 96 Chapter 9 HP GL 15 Sample 68 ...
Page 387: ...Revision C 16 01 96 APPENDIX A COMPALISON LIST 24 RESOLUTION 300 600 300 600 300 600 ...