
2009/06/29
CHAPTER 4 HP-GL/2 - 46
90 LPRINT "DT";"
100 LPRINT "DT0,2;LB_*_1988#"; "DI2,2;LB_*_1989#";
110 LPRINT "DT2,0;LB_*_1990#"; "DI2,-2;LB_*_1991#";
120 LPRINT "DT0,-2;LB_*_1992#"; "DI-2,-2;LB_*_1993#";
130 LPRINT "DT-2,0;LB_*_1994#"; "DI-2,2;LB_*_1995#";
140 LPRINT "PA3500,5350;DI", COS(0),SIN(0); "LB_*_2000"; CHR$(13); "#";
150 LPRINT "DI", COS(RAD); SIN(RAD); "LB_RETURN POINT"; CHR$(13); "#";
160 LPRINT CHR$(27); "%0A";
170 LPRINT CHR$(27); "E";
180 END
<sample 54>
DR - Relative direction
DR [
run
,
rise
] [;]
run
: X-component of the printing direction expressed as a percentage of the x-component of the
distance between P1 and P2.
rise
: Y-component of the printing direction expressed as a percentage of the y-component of the
distance between P1 and P2.
•
This command determines the direction in which subsequent labels will be printed.
•
Values for
run
and
rise
are clamped real numbers.
•
The instruction is ignored if
run
and
rise
are both 0.
•
When you issue a DR instruction the carriage return point is set to the current pen location.
•
Any text path that you set with the DV instruction will combine with the current printing direction to
determine the layout of characters on the page.
•
If you change the positions of P1 and P2 the printing direction will change accordingly.
•
If you omit the parameters the printing direction is horizontal and the
run
= 1% of |P2X-P1X|.
•
Actual values for
run
and
rise
are changed relative to the P1 and P2 value. It is calculated as below:
actual run =
run
parameter ÷ 100 x (P2x - P1x)
actual rise =
rise
parameter ÷ 100 x (P2y - P1y)
θ
run=70%
rise = 60%
(70,0)
(0,60)
(0, 100)
(0, 100)
(100, 100)
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 ...