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

EN EW, Edge Wedge 21-29
Figure 21-18
Table 21-14 Example: Using EW to Draw a Pie Chart
?E Reset the printer.
?%0B 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.
SC-3000,3000,
-2000,2000,1;
Enter the scaling mode, specifying P1 as
(-3000,-2000) and P2 as (3000,2000). Use
isotropic scaling.
PA0,0; Specify absolute plotting and move to
user-unit location (0,0).
EW-1000,90,180; Draw a wedge section with a radius of 1000
user-units, a start angle of 90°, and a sweep
angle of 180°. The minus sign before the
radius (-1000) sets the zero-degree
reference point to the left side of the drawing.