HP PCL/PJL reference (PCL 5 Printer Language) - Technical Reference Manual Part II

20-14 The Vector Group EN
z
Sweep Angle — Specifies (in degrees) the angle through which
the arc is drawn. A positive angle draws an angle in the positive
direction (angle of rotation); a negative angle draws the angle in
the negative direction.
z Chord Angle — Specifies the chord angle used to draw the arc.
The default is a chord angle of 5 degrees. Refer to the Arc
Absolute (AA) command discussion (earlier this chapter) for
information on setting and determining the chord angle.
Table 20-8 Example: Using Arc Relative to Draw Arcs
E
C
E Reset the printer.
E
C
%ØB Enter HP-GL/2 mode.
IN; Initialize HP-GL/2 mode.
SP1; Select pen number 1. Even though there is no
physical pen, the SP command must be used
to enable printing.
PA1500,1500;PD; Specify the starting position as (1500,1500)
and put the pen down.
AR0,2000,80,25; Draw an arc with a center point 0 plu in the X
direction and 2000 plu in the Y direction from
(1500,1500). Specify the arc section to be 80°
(positive angle), with a chord angle of 25°
AR2000,0,80; Draw an arc with a center point 2000 plu in the
X direction and 0 plu in the Y direction from the
current pen position. Specify the arc section to
be 80° (positive angle), with a default chord
angle (5°).
E
C
%ØA Enter the PCL mode.
E
C
E Send a reset to end the job and eject the page.