2009/06/29
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 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>
Summary of Contents for HL-2600CN Series
Page 4: ......
Page 15: ...2009 06 29 CHAPTER 1 INTRODUCTION 1 CHAPTER 1 INTRODUCTION ...
Page 20: ...2009 06 29 CHAPTER 1 INTRODUCTION 6 ...
Page 21: ...7 17 2009 CHAPTER 2 PCL 1 CHAPTER 2 PCL PRINTER CONTROL LANGUAGE ...
Page 129: ...2009 06 29 CHAPTER 3 PCL5C 1 CHAPTER 3 PCL5C ...
Page 147: ...2009 06 29 CHAPTER 4 HP GL 2 1 CHAPTER 4 HP GL 2 GRAPHICS LANGUAGE ...
Page 200: ...2009 06 29 CHAPTER 4 HP GL 2 54 ...
Page 201: ...2009 06 29 CHAPTER 5 PJL 1 CHAPTER 5 PJL PRINTER JOB LANGUAGE ...
Page 276: ...2009 06 29 CHAPTER 6 EPSON 1 CHAPTER 6 EPSON FX 850 ...
Page 304: ...2009 06 29 CHAPTER 7 IBM PROPRINTER 1 CHAPTER 7 IBM PROPRINTER XL ...
Page 325: ...2009 06 29 CHAPTER 7 IBM PROPRINTER 22 ...
Page 326: ...2009 06 29 CHAPTER 8 BAR CODE CONTROL 1 CHAPTER 8 BAR CODE CONTROL ...
Page 337: ...2009 06 29 CHAPTER 9 HP GL 1 CHAPTER 9 HP GL GRAPHICS LANGUAGE ...
Page 364: ...2009 06 29 CHAPTER 9 HP GL 28 ...
Page 365: ...2009 06 29 CARBON COPY FUNCTION 1 CHAPTER 10 CARBON COPY FUNCTION ...
Page 373: ...2009 06 29 APPENDIX A COMPARISON LIST 1 APPENDIX A COMPARISON LIST ...
Page 475: ...2009 06 29 APPENDIX C HBP MODE COMMANDS 14 ...
Page 485: ...2009 06 29 APPENDIX D REFERENCE LIST OF MX 2000 4000 5000 7000 SERIES UNIQUE COMMANDS 10 ...