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

22-36 The Line and Fill Attributes Group EN
The following example shows several uses of symbol mode: with the
pen down for a line graph, with the pen up for a scattergram, and with
the pen down for geometric drawings.
Note Symbol mode works only with the PA, PD, PE, PR, and PU
commands. Notice that the circle and rectangle have symbols only for
the PA command coordinate point.
Table 22-18 Example: Using the Symbol Mode Command
?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.
SM*;PA200,1000;
PD200,1230,400,
1560;
Enter symbol mode, using the asterisk (*)
as the symbol; move to absolute location
(200,1000), set the pen down, and draw first
to (200,1230), then to (400,1560).
PD700,1670,1300,
1600,1800,2000;
PU;
Place the pen down and draw from the
current pen position (400,1560) to
(700,1670), then to (1300,1600), then
to (1800,2000); lift the pen.
SM3;PA700,500,
900,450,1300,850;
Enter symbol mode again with “3” as the
current symbol; print a “3” in the following
locations: (700,500), (900,450), and
(1300,850).
PA1750,1300,2500,
1350;PU;SM;
With the pen still up and “3” still the current
symbol, print a “3” at (1750,1300) and
(2500,1350); lift the pen and exit symbol
mode.
PA3300,1100;PD;
SMY;PA4400,1890;
SMZ;
Move to (3300,1100), set the pen down, and
enter symbol mode with “Y” as the symbol;
draw a line to (4400,1890) and print a “Y”;
re-enter symbol mode with “Z” as the current
symbol.