2001/10/02
CHAPTER 9 HP-GL - 22
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 clamp ed 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>
Summary of Contents for HL-1250
Page 15: ...2001 10 02 CHAPTER 1 INTRODUCTION 1 CHAPTER 1 INTRODUCTION ...
Page 20: ...2001 10 02 CHAPTER 1 INTRODUCTION 6 ...
Page 21: ...2001 10 02 CHAPTER 2 PCL 1 CHAPTER 2 PCL PRINTER CONTROL LANGUAGE ...
Page 59: ...2001 10 02 CHAPTER 2 PCL 39 ...
Page 76: ...2001 10 02 CHAPTER 2 PCL 56 ...
Page 104: ...2001 10 02 CHAPTER 2 PCL 84 71 71 Lines picture Same as above ...
Page 109: ...2001 10 02 CHAPTER 2 PCL 89 ...
Page 123: ...2001 10 02 CHAPTER 2 PCL 103 ...
Page 131: ...2001 10 02 CHAPTER 3 PCL5C 1 CHAPTER 3 PCL5C ...
Page 149: ...2001 10 02 CHAPTER 4 HP GL 2 1 CHAPTER 4 HP GL 2 GRAPHICS LANGUAGE ...
Page 199: ...2001 10 02 CHAPTER 4 HP GL 2 51 ...
Page 204: ...2001 10 02 CHAPTER 4 HP GL 2 56 ...
Page 205: ...2001 10 02 CHAPTER 5 PJL 1 CHAPTER 5 PJL PRINTER JOB LANGUAGE ...
Page 248: ...2001 10 02 CHAPTER 5 PJL 44 ...
Page 263: ...2001 10 02 CHAPTER 5 PJL 59 ...
Page 264: ...2001 10 02 CHAPTER 6 EPSON 1 CHAPTER 6 EPSON FX 850 ...
Page 286: ...2001 10 02 CHAPTER 6 EPSON 23 LPRINT CHR 27 CHR 37 CHR 1 CHR 0 Select downloaded characters ...
Page 290: ...2001 10 02 CHAPTER 6 EPSON 27 Sample 12 ...
Page 292: ...2001 10 02 CHAPTER 6 EPSON 29 Sample 14 ...
Page 294: ...2001 10 02 CHAPTER 7 IBM PROPRINTER 1 CHAPTER 7 IBM PROPRINTER XL ...
Page 315: ...2001 10 02 CHAPTER 7 IBM PROPRINTER 22 ...
Page 316: ...2001 10 02 CHAPTER 8 BAR CODE CONTROL 1 CHAPTER 8 BAR CODE CONTROL ...
Page 326: ...2001 10 02 CHAPTER 9 HP GL 1 CHAPTER 9 HP GL GRAPHICS LANGUAGE ...
Page 353: ...10 5 2001 APPENDIX A COMPARISON LIST 1 APPENDIX A COMPARISON LIST ...
Page 391: ...10 5 2001 APPENDIX A COMPARISON LIST 39 AUTOSKIP ON OFF ON OFF ON OFF ON OFF ...