10/10/03

90 LPRINT "DT";"

100LPRINT "DT0,2;LB_*_1988#"; "DI2,2;LB_*_1989#";

110LPRINT "DT2,0;LB_*_1990#"; "DI2,-2;LB_*_1991#";

120LPRINT "DT0,-2;LB_*_1992#"; "DI-2,-2;LB_*_1993#";

130LPRINT "DT-2,0;LB_*_1994#"; "DI-2,2;LB_*_1995#";

140LPRINT "PA3500,5350;DI", COS(0),SIN(0); "LB_*_2000"; CHR$(13); "#";

150LPRINT "DI", COS(RAD); SIN(RAD); "LB_RETURN POINT"; CHR$(13); "#";

160LPRINT CHR$(27); "%0A";

170LPRINT CHR$(27); "E";

180END

<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)

(0,

100)

(100,

100

 

 

(0,60)

rise = 60%

θ

run=70%

(70,0) (0, 100)

CHAPTER 4 HP-GL/2 - 46

Page 186
Image 186
Homelite HL-1270N, HL-P2500, HL-1660E, HL-2400CE, HL-1450, HL-1050, HL-1250, HL-1470N, 2060 DR Relative direction, DR run, rise