HP LaserJet 4100 HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref
HP LaserJet 4100 Manual
View all HP LaserJet 4100 manuals
Add to My Manuals
Save this manual to your list of manuals |
HP LaserJet 4100 manual content summary:
- HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 1
Part II - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 2
- HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 3
is easier to describe using vectors instead of raster lines, the image usually prints faster using HP-GL/2. Printing with HP-GL/2 requires leaving the PCL printer language mode and entering HP-GL/2 mode. Switching between modes involves only a few commands, and software applications easily switch - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 4
. This chapter describes the interaction between the PCL printer language and HP-GL/2 modes and introduces the following topics: z HP-GL/2 Commands and Syntax z Using HP-GL/2 with Programming Languages z The HP-GL/2 Coordinate System z HP-GL/2 and PCL Orientation Interactions z The Vector Graphics - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 5
the PCL printer language mode. The HP-GL/2 language has its own syntax, and each command is listed in this section of the manual. The vector P2 IW Input Window PG1 Advance Page RO Rotate Coordinate System RP1 Replot SC Scale 1. Ignored by HP LaserJet printers. EN HP-GL/2 Commands and - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 6
Circle PA Plot Absolute PD Pen Down PE Polyline Encoded PR Plot Relative PU Pen Up RT Relative Arc Three Point Table 17-3 The HP-GL/2 Commands by Group (3 of 5) POLYGON GROUP EA Edge Rectangle Absolute EP Edge Polygon ER Edge Rectangle Relative EW Edge Wedge FP Fill Polygon - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 7
Table 17-4 The HP-GL/2 Commands by Group (4 of 5) CHARACTER GROUP AD Alternate Font Definition CF Character Fill Mode Relative Character Size SS Select Standard font TD Transparent Data 1. These commands are part of HP-GL/2's Dual Context Extensions. EN HP-GL/2 Commands and Syntax 17-5 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 8
Pen command, and CI is the Circle command. Parameters are used with certain HP-GL/2 commands to tell the printer to complete the command in a particular way. Understanding HP-GL/2 Syntax HP-GL/2 commands have four components: a mnemonic, parameter(s), separator(s), and a terminator. Refer to the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 9
to terminate commands, uses no space between the mnemonic and its parameters, and separates parameters with a comma. (For clarity, examples in this HP-GL/2 section of the manual use semicolons as terminators, as shown in the middle example below.) Figure 17-2 Illustration of Syntax Flexibility EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 10
the Label (LB) command. (....) Indicates that you can use a range of the previous parameter; however, all X coordinates must have a corresponding Y coordinate. 17-8 An Introduction to HP-GL/2 Vector Graphics EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 11
enter these parentheses in your commands. ; iCommand terminator. In most HP-GL/2 commands, a semicolon is optional, and is shown in quotes. A semicolon terminator is always required following the last command prior to leaving HP-GL/2 mode. , A comma is always shown as the separator between parameters - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 12
second parameter), the printer interprets the "1" as the second parameter: LT6,1 Parameter Formats You must give parameters in the format (type of units) required by each HP-GL/2 command. The the parameter range may produce unexpected results. 17-10 An Introduction to HP-GL/2 Vector Graphics EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 13
5 Label-Any sequence of characters. In the HP-GL/2 language, text is described using the term printer's physical printing area. Numbers that move the pen position outside the effective window result variables or a formatting technique to output fixed-point real numbers. Parameter values less than - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 14
the PD parameter sequence. If PA clears LOST mode, the pen will not go down until a PD command is received. 17-12 An Introduction to HP-GL/2 Vector Graphics EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 15
Languages The HP-GL/2 examples included in this manual are given in 10 LPRINT CHR$(27);"E"; :REM Reset the printer 20 LPRINT CHR$(27);"%0B"; :REM Enter HP-GL/2 Mode 30 LPRINT "IN"; :REM Initialize HP-GL/2 Mode 40 LPRINT "SP1PA10,10"; :REM Select Pen & move to 10,10 50 LPRINT "PD2500,10,10,1500,10,10 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 16
fprintf(prn,"033%%>0B"); /* open the printer */ /* E C E to reset printer */ /* Enter HP-GL/2 */ fprintf(prn,"IN"); /* Initialize HP-GL/2 Mode */ fprintf(prn,"SP1PA10,10"); /* Select pen 1 & move to 10,10 */ fprintf(prn,"PD2500,10,10,1500,10,10;"); /* Pen down & draw */ fprintf(prn - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 17
/2 coordinate system can be set up to match the PCL coordinate system. See the example entitled "Adapting the HP-GL/2 Coordinate System to Match the PCL System" in Chapter 19. Figure 17-4 The HP-GL/2 Coordinate System To locate any point on the grid (the printing area within the PCL Picture Frame - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 18
give a complete X,Y coordinate pair; the X coordinate is first and the Y coordinate second. This manual shows coordinate pairs in parentheses (X,Y) for clarity. Do not use parentheses in your command sequence. Using the default HP-GL/2 coordinate system, the origin is in the lower left corner of the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 19
the PCL logical page orientation. As shown in the illustration, in the default HP-GL/2 orientation, the origin of the HP-GL/2 coordinate system defaults to the lower-left corner of the PCL Picture Frame. (HP-GL/2 and PCL X-coordinates increase in the same direction, but the Y-coordinates increase - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 20
Figure 17-7 Modifying HP-GL/2 Orientation on a Portrait Page 17-18 An Introduction to HP-GL/2 Vector Graphics EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 21
The hard-clip limit refers to the boundaries resulting from the physical limits of the printer (in PCL mode, this is referred to as the printable area). The soft-clip limit refers to the area defined using the HP-GL/2 Input Window (IW) command. The intersection of all these areas is the effective - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 22
of Measure In HP-GL/2 mode, you can measure along the X,Y axes and express coordinates using two types of units: plotter units and user-units. Plotter Units One plotter unit equals 0.025 mm. When specifying distances in plotter units, the printer converts the number of plotter units to equivalent - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 23
to avoid drawing stray lines between parts of your picture. Note Upon entry into HP-GL/2 mode, a good programming practice is to select a pen and command begin drawing. Every time you use a PU or PD command, the printer updates the pen up/down status. The following table shows the commands that - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 24
The Line and Fill Attributes Group Whenever the printer receives a Pen Down command, it produces a dot at the automatic Pen Down. Only the portion of the pen falling within the effective window is printed. The pen is centered on a line between the beginning and HP-GL/2 Vector Graphics EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 25
Pen Location Pen location refers to the X,Y coordinates of the current active position (CAP - the point at which the next HP-GL/2 command begins). Most commands, when completed, update the pen location. The next command then begins at that location. Some commands do not update the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 26
positions for placing the image on the page. Scaling allows control of the printer using units that are easy for you to work with. For example, formed by P1 and P2 is enlarged or reduced with the IP or IR commands, the HP-GL/2 image is also enlarged or reduced to fit the new P1/P2 rectangle. (For - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 27
pen" moves. Absolute pen movement uses X,Y coordinates to specify an exact, fixed point relative to the origin (0,0). In Figure 17-9, the coordinates (3,8), example is the Edge Rectangle Relative (ER) command. In Figure 17-10 for example, assume that the pen is currently at the origin (0,0). To - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 28
the SC command is in effect. Relative increments add to the current pen location. The printer automatically converts the new relative location to absolute coordinates and updates the current pen location. therefore transmit less data over the I/O. 17-26 An Introduction to HP-GL/2 Vector Graphics EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 29
picture frame size, choose the picture frame location, and enter and exit HP-GL/2 mode. This chapter explains these PCL commands. The following terms are the ratio of the size of the picture frame to the size of the source HP-GL/2 plot. There may actually be two scaling factors, one for the x - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 30
/2 graphic image. These commands are the Picture Presentation Directives and are used to define a bounding rectangle to contain the HP-GL/2 image. Figure 18-1 illustrates the Picture Presentation Directives. The rectangular area surrounding the image is the PCL Picture Frame and the location on the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 31
is not page size-independent, the printer will not adjust the size of the image to fit the picture frame without the HP-GL/2 plot size command; the with the IR (Input Relative P1 and P2) command. The default window is used, or the window is specified in user-units (using the IW command). z For labels - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 32
criteria and the drawing is not the same size as the picture frame, the HP-GL/2 plot size must be specified to accomplish the desired scaling. If it is not specified, the image is clipped to the effective window and no scaling occurs. The above bulleted items are required for automatic scaling - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 33
Vertical Size) commands. These commands determine the boundary of the window in which you place or draw your image. The PCL Picture Frame )tcaotmthmeabnedg;iwnnhienngeovfear job, a printer reset is sent at the end of a job, follow it with a UEL command. EN Typical HP-GL/2 PlotCommand Sequence 18-5 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 34
: Creating and Using a PCL Picture Frame ECE Reset the printer. EC&l2A Set the page size to letter. EC&l0O instead of importing an existing plot, do not send this command.) EC%1B Enter HP-GL/2 mode with the pen (HP-GL/2 cursor) at the PCL cursor position. In this example, the cursor would - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 35
corner of the PCL Picture Frame.) EC%1A Enter the PCL mode with the cursor at the current HP-GL/2 pen position. TextTextText ECE Send some text or more PCL commands. Reset the printer to end the job and eject a page. Figure 18-2 The previous example provides an idea of the commands - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 36
. It also resets the soft-clip window to the PCL Picture Frame boundaries, clears the polygon buffer, and updates the HP-GL/2 pen position to the lower-left the printer defaults the picture frame size to the logical page width. A parameter value of 0 or the PCL reset, UEL, page length, paper size, - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 37
decipoints/in. = 3600 decipoints). Vertical Picture Frame Size (Decipoints) This PCL command specifies the vertical dimension of the window used for printing an HP-GL/2 plot. E C * c # Y # =Vertical size in decipoints (1/720th inch) Default Range = The distance between the default top and - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 38
if you do not send a Set Picture Frame Anchor command, the printer defaults the anchor point to the left edge of the logical page P2, resets the soft-clip window to the PCL Picture Frame boundaries, clears the polygon buffer, and updates the HP-GL/2 pen position to the . 18-10 The Picture Frame EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 39
be reduced to one-third its original size to fit into the PCL Picture Frame. A parameter value of zero or a reset, page length, paper size, or orientation command defaults the HP-GL/2 plot size to the width of the currently selected picture frame, resulting in no scaling. Example: If the original - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 40
fit the drawing into the PCL Picture Frame. For example, if the vertical HP-GL/2 plot size is specified as 7 inches and the PCL Picture Frame A parameter value of zero or a reset, page length, paper size, or orientation command defaults the HP-GL/2 plot size to the height of the currently selected - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 41
Default Range =0 = 0, 1 (even values are mapped to 0; odd values are mapped to 1; EC%B is the same as EC%0B) As soon as the printer receives this command, it switches to HP-GL/2 mode, interpreting commands as HP-GL/2 commands until it receives an Enter PCL Mode, ECE, or UEL command, or until the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 42
Range =0 = 0, 1 (even values are mapped to 0; odd values are mapped to 1) Sending the Enter PCL Mode command causes the printer to stop interpreting the incoming data as HP-GL/2 commands and to begin interpreting the data as PCL commands. The value field (#) specifies the cursor position when PCL - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 43
previous HP-GL/2 value. However, the following changes in the PCL environment can affect the HP-GL/2 environment: z Resetting the printer (ECE PCL Picture Frame • Defaults the HP-GL/2 plot size • Defaults P1 and P2 (IP,IR commands) • Resets the soft-clip window to the PCL Picture Frame boundaries - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 44
by the Picture Presentation Directives (the PCL Picture Frame Size, Picture Frame Anchor Point, and HP-GL/2 Plot Size commands). Table 18-2 Example: Creating a Simple Drawing ECE Reset the printer. EC&&l2A Set the page size to letter. EC&&l0O Specify portrait orientation. EC*c3600x3600Y - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 45
to the right of the left logical page boundary). IN;SP1; Initialize HP-GL/2 command values and select pen number 1 (black). (The IN command moves the pen position from the anchor point to the HP-GL/2 origin, the lower-left corner of the PCL Picture Frame.) SC0,100 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 46
frame width. EC%1A Enter the PCL mode with the cursor at the current HP-GL/2 pen position. ECE Reset the printer to end the job and eject a page. Note Any line drawn along the border of the effective window will cause the line to be clipped, producing a line width one-half of - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 47
you want to use. z Enlarge/reduce images for different media sizes. z Establish a window (soft-clip limits). z Draw equal-sized and mirror-imaged drawings. z Rotate the HP-GL/2 coordinate system. z Add comments to your HP-GL/2 command sequence. Table 19-1 lists the commands described in this chapter - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 48
and P2 locations as a percentage of the PCL Picture Frame. IW, Input Window Sets up a window (soft-clip limits). PG, Advance Full Page This command is ignored.1 RO, Rotate Coordinate System RP, Replot Rotates the HP-GL/2 coordinate system. This command is ignored. SC, Scale Establishes a user - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 49
/2 mode is first entered. (See Chapter 3 for a more thorough discussion of the printer environment and how it is affected by the reset command.) Note HP-GL/2 command parameters are set to their default values the first time HP-GL/2 mode is entered during a print job (assuming that an ECE reset is - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 50
The Scaling Points P1 and P2 When you scale a drawing, you define your own units of measurement, which the printer then converts to plotter units. Scaling relies on the relationship between two points: P1 and P2. These two points are called the scaling points because - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 51
user-unit coordinate (0,0) and P2 becomes (12,10). The entire plotting area is now divided into the desired units. Subsequent plotting commands use these units (see Figure 19-1). If you command the printer to move to the point (3,4), the printer moves to the location equivalent to (3,4) user-units - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 52
the PCL Picture Frame boundaries or even off of the page, but only that portion of the vector graphics image that falls within the effective window is printed. For example, you can draw a small portion of the circumference of a circle with a 5-foot radius by moving the pen 5 feet from the page - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 53
Figure 19-3 New P1 and P2 User-Unit Scaling with Negative Values Refer to the Scale (SC) command at the end of this chapter for more information on scaling drawings. EN Using the Scale Command 19-7 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 54
the P1/P2 locations change. Use PCL Picture Frame scaling when importing HP-GL/2 images created without the SC command (see "Automatically Adjusting the this technique using a square P1/P2 scaling rectangle with a scale of 0 to 10 for both axes. By definition, a square always has an aspect ratio of - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 55
. IN; Initialize HP-GL/2 mode. IP0,0,2000,2000; Set P1 to be (0,0) and P2 to be (2000,2000). SC0,10,0,10; Set up user-unit scaling to range from (0,0) to (10,10). SP1; Select -units. Enter PCL Mode. Reset the printer to complete the job and eject the page. EN Using Scaling Effectively 19-9 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 56
way to draw equal-sized pictures on one piece of paper is to take advantage of the fact that P2 locates P1 and P2 on the left side of the paper and scales the area for the first image. Then, P1 location is moved to the right side of the paper; P2 automatically tracks P1, so the printing area retains - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 57
%0B Reset the printer. Select landscape orientation. Enter HP-GL/2 mode, using the default picture frame size and anchor point. IN; Initialize HP-GL/2 mode. absolute plotting from the origin (0,0). PD10,0,10,15,0,15,0,0;PU; Pen Down and print from (0,0) to (10,0) to (10,15) to (0,15) to (0,0); - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 58
Note Figure 19-5 Drawing equal-size pictures on a page The P1/P2 frames are not windows or graphics limits; the pen can print HP-GL/2 images anywhere within the PCL Picture Frame. Note that the new P1 and P2 retain their scaled values. This allows you to use the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 59
IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1; Select pen number 1. You must use the SP command to enable printing. IP1500,3600,3000,5100; Specify the P1/P2 locations for the first arrow figure. SC-15,15,-10,10; Set up user scaling: (-15,-10) to (15,10 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 60
Table 19-4 Example: Creating a Mirror-Image (continued) SUBROUTINE: PA1,2;PD1,4,3,4,3,7,2,7, 4,9,6,7,5,7,5,4,12,4,12, 5,14,3,12,1,12,2,1,2; PU; Subroutine that prints the arrow figure on the next page Figure 19-6 Creating a mirror-image 19-14 The Configuration and Status Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 61
) or DF (Default) command causes the coordinate system to revert to the HP-GL/2 default. Since this example is based on the default top margin and l2A EC&l0O EC&l0E EC*p0x0Y EC*c5760x7920Y EC*c0T EC%1B Reset the printer. Set the page size to letter. Specify portrait orientation. Set top margin to 0. - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 62
inch/300 dots-per-inch = 3.3867). The minus 2 Y-value changes the HP-GL/2 Y direction to match that of the PCL coordinate system. IR0,100,0, at a 45° angle down from the starting point. Enter the PCL mode with HP-GL/2's pen position being inherited as PCL's. CAP=(600,600). Draw a horizontal line - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 63
PCL System in Portrait Orientation EC%1BPU;PR300,0; PD;PR0,500; Enter HP-GL/2 mode (inheriting PCL's CAP) and lift the pen; move to the CAP at the current HP-GL/2 pen position. ECE Reset the printer to end the job and eject a page. Figure 19-7 Adapting the HP-GL/2 coordinate system to match - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 64
default conditions, the soft-clip limits are the same as the PCL Picture Frame limits. To create a window, you use the Input Window (IW) command. The printer does not draw outside the window. The following illustration shows the four types of line segments you can specify from one point to another - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 65
sequence. The comment string of the CO command must be delimited by double quotes. CO "text ... text" HP-GL/2 comments are ignored by the printer. DF, Default Values This command returns the printer's HP-GL/2 settings to the factory default settings. Use the Default Values (DF) command to return the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 66
and non-printing mode. Text printed left to right with normal Line Feed. No extra space. Solid fill. Set equal to PCL Picture Frame Window. Butt caps, mitered joins, and miter limit=5. Label Origin LO1 Line Type LT Plotting Mode PA Standard labeling starting at current location. Solid line - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 67
default settings. Use the IN command to return the printer to a known HP-GL/2 state and to cancel settings that may have been changed by a previous command sequence. (The ECE Reset issues an automatic IN command.) IN [;] Notes In this manual, all command sequence examples begin with IN to clear - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 68
The IN command sets the printer to the same conditions as the DF command, plus the following: Group Configuration/Status Group Vector Group Line and Fill Attributes Group Table 19-10 Related Commands DF, Default Values Group Configuration/Status Group 19-22 The Configuration and Status Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 69
IP, Input P1 and P2 This command establishes new or default locations for the scaling points P1 and P2. P1 and P2 are used by the Scale (SC) command to establish user-unit scaling. You can also use IP in advanced techniques such as printing mirror-images, enlarging/reducing drawings, and enlarging/ - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 70
P1 and its coordinates change so that the X,Y distances between P2 and P1 stay the same. This tracking process can locate P2 outside the effective window. Used carefully, the tracking function can be useful for preparing more than one equal-sized drawing on a page. For an example, refer to "Drawing - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 71
in effect until another IP command is executed, an IR command is executed, or the printer is initialized. Table 19-12 Related Commands Group IR, Input Relative P1 and P2 The Configuration/Status Group IW, Input Window RO, Rotate Coordinate System SC, Scale EN IP, Input P1 and P2 19-25 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 72
change so that the distances of X and Y between P1 and P2 remain the same. This tracking process can cause P2 to locate outside the effective window. Used carefully, the tracking function can be useful for preparing more than one equal-sized drawing on a page. For an example, refer to "Drawing Equal - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 73
Sending the command IR25,25,75,75 establishes new locations for P1 and P2 that create an area half as high and half as wide as the PCL Picture Frame, in the center of the picture frame. Refer to the following illustration. Figure 19-10Example: P1 and P2 command P1 or P2 can also be set outside the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 74
the following commands: Table 19-13 Commands Affected by P1/P2 Command Group IW, Input Window The Configuration/Status Group RO, Rotate Coordinate System SC, Scale FT, Fill Type The Line an IP command is executed, or the printer is initialized. 19-28 The Configuration and Status Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 75
Group IP, Input P1 and P2 The Configuration/Status Group IW, Input Window RO, Rotate Coordinate System SC, Scale IW, Input Window This command defines a rectangular area, or window, that establishes soft-clip limits. Subsequent HP-GL/2 drawing is restricted to this area. Use IW to restrict - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 76
and again draws the label along with a line. Notice how the line and label are clipped after the window is established, but not before. Table 19-15 Example: The IW Command ECE EC%1B IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. 19-30 The Configuration and Status Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 77
the end of this example.) IW3000,1300,4500,3700; Specify a soft-clip window (in plotter units). PD2000,1700 Pen Down; print a line from the current soft-clip window. PD3000,3700,3000,1300; Finish drawing the soft-clip window box PU; EC%0A ECE Pen Up Enter PCL Mode. Reset the printer to end - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 78
Figure 19-13Example: IW command Table 19-16 Related Commands Group IP, Input P1 and P2 The Configuration/Status Group IR, Input Relative P1 and P2 RO, Rotate Coordinate System SC, Scale 19-32 The Configuration and Status Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 79
PG, Advance Full Page This HP-GL/2 command is ignored by the printer since it could cause undesirable results when importing plots. A page eject can be accomplished only from the PCL printer language mode. The following PCL commands cause a conditional page eject, meaning that a page is ejected if - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 80
Rotate Coordinate System This command rotates the printer's coordinate system relative to the default HP-GL/2 coordinate system, in the integer Functional Range 0°, 90°, 180°, or 270° Default 0° Note The printer interprets the command parameters as follows: z No Parameter - Defaults the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 81
of the pen does not change when you rotate the coordinate system. The printer updates the pen's X,Y coordinate location to reflect the new orientation. The of the picture frame. When the RO command is used, the soft-clip window, if defined, is also rotated, and any portion that is rotated outside of - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 82
also rotates the contents of the polygon buffer. The RO command remains in effect until the rotation is changed by another RO command, or the printer is initialized. Figure 19-15 shows the default orientation and the result of rotating the orientation without relocating P1 and P2. Figure 19-15Using - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 83
when you follow the rotation with the IP command. Figure 19-16Using IP after the RO Command When you set-up a soft-clip window (see the IW command), RO also rotates the window. If a portion of a window rotates outside the hard-clip limits, it is clipped. Note that IP does not affect the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 84
Figure 19-17Using IP and IW after the RO Command Table 19-17 Related Commands Group IP, Input P1 and P2 The Configuration/Status Group IR, Input Relative P1 and P2 IW, Input Window 19-38 The Configuration and Status Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 85
Replot This command is ignored by the printer; to eject a page, the printer must be in PCL printer language mode. The following commands cause a . Note A page eject caused by any of the above commands except Paper Source defaults the HP-GL/2 pen position. To print more than one plot, use the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 86
SC, Scale This command establishes a user-unit coordinate system by mapping user-defined coordinate values onto the scaling points P1 and P2. SC XMIN,XMAX,YMIN,YMAX [,type[,left,bottom;]] or SC XMIN,XFACTOR,YMIN,YFACTOR,type[;] or SC [;] Parameter Format XMIN,X MAX, YMIN,Y MAX type real real - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 87
There are three forms of scaling: anisotropic, isotropic, and point-factor. The Type parameter tells the printer which form you are using. Refer to the following table. Table 19-18 Scaling Form Anisotropic Isotropic Point Factor Type 0 1 2 Description Establishes standard user-unit - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 88
the same example, the coordinate location of P1 is (0,0) and P2 is (15,10). This is different from the IP command, where the parameters are expressed as X,Y on both the X- and Y-axes. The following illustrations show how the printer adjusts the location of (XMIN,YMIN) and (XMAX,YMAX) to create - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 89
Figure 19-18Isotropic Scaling z Left, Bottom - Positions the isotropic area in the P1/P2 limits. (These parameters are always specified together and are valid for isotropic scaling only.) The left parameter indicates the percentage of the unused space on the left of the isotropic area; the bottom - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 90
• Although you must specify both parameters, the printer applies only one: the left parameter applies when there is extra horizontal space; the bottom parameter applies when there is extra vertical space. The following - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 91
until another SC command is executed, or the printer is initialized or set to default conditions. Examples: of the SC command has been executed), only those HP-GL/2 commands that can be issued in 'current units long as you are within the effective window. For example, you can print from the point (-1,3.5) - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 92
Related Commands IP, Input P1 and P2 IR, Input Relative P1 and P2 IW, Input Window Group The Configuration/Status Group Table 19-23 Possible Error Conditions for SC Condition Printer Response no parameters turns scaling off more than 7 parameters executes first 7 parameters for types 0 or - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 93
programs: z Use absolute and relative coordinates when plotting. z Draw lines, arcs, bezier curves, and circles. z Encode coordinates to increase your printer's throughput. The following commands are described in this chapter. Table 20-1 The Vector Group Commands Command Summary AA, Arc Absolute - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 94
command and a series of absolute and/or relative coordinate pairs. The printer draws only the portion of the line that falls within the effective window. Note When using HP-GL/2 to draw lines, you can increase your printer's throughput by using the Polyline Encoded (PE) command to send coordinates - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 95
) command specifies absolute plotting, and the coordinate pair (0,0) sets the beginning pen location. Table 20-2 Example: Drawing Lines ECE EC%ØB IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1; Select pen number 1 (black). You must use the SP command to be able to print - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 96
Any line drawn along the border of the effective window causes the line to be clipped, producing a line 500 plotter units. Table 20-3 Example: Drawing Circles ECE EC%ØB IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2. SP1; Select pen number 1. The SP command must be used to enable - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 97
command sequence using the AA command to draw a circle and an arc: Table 20-4 Example: Drawing Arcs ECE EC%ØB IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2. SP1; Select pen number 1. Even though there is no physical pen, the SP command must be used to enable printing. PA4200 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 98
Table 20-4 Example: Drawing Arcs AA4600,2500,-180; Using the Arc Absolute command, specify the pivot point of the arc, thereby setting the radius; draw the arc for 180° in a negative angle of rotation. EC%ØA ECE Enter the PCL mode. Send a reset to end the job and eject the page. Figure 20-3 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 99
NoteS Angle of Rotation A positive angle of rotation is in the direction of the +X-axis to the +Y-axis as shown below. A negative angle of rotation is in the direction of the +X-axis to the −Y-axis. Note Figure 20-4 Drawing arcs (2 of 3) The relationship of the +X-axis to +Y-axis (and -Y- - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 100
a sine wave (shown in the figure following the example). Table 20-5 Example: Drawing Bezier Curves ECE EC%ØB IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2. SP1; Select pen number 1. The SP command must be used to enable printing. PA1000,5000;PD; Specify absolute plotting and - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 101
Table 20-5 Example: Drawing Bezier Curves (continued) ECE Send a reset to end the job and eject the page. Figure 20-6 Bezier Curves AA, Arc Absolute This command draws an arc, using absolute coordinates, which starts at the current pen location and pivots around the specified center point. AA - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 102
Note Do not use an adaptive line type when drawing arcs with small chord angles. The printer attempts to draw the complete pattern in every chord (there are 72 chords in a circle using the ). The smaller the chord angle, the smoother the curve. Figure 20-7 Chord Angle 20-10 The Vector Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 103
20-6 Example: Varying the Chord Angle ECE EC%ØB IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1; Select pen number 1. Even though there is Lift the pen and move to (1050,1060). PD;AA0,0,-45,10; With the pen down, draw a 45° arc (negative angle) using the same center point as - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 104
Table 20-6 Example: Varying the Chord Angle (continued) PU1000,0; PD;AA0,0,45; EC%ØA ECE Lift the pen and move to (1000,0). With the pen down, draw another 45° arc (positive angle) with the same center point, but with the default chord angle (5°). Enter the PCL mode. Send a reset to end the job - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 105
the pen location remains at the end of the arc. Do not use an adaptive line type when drawing arcs with small chord angles. The printer attempts to draw the complete pattern in every chord (there are 72 chords in a circle using the default chord angle). z XIncrement, YIncrement - Specify the center - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 106
on setting and determining the chord angle. Table 20-8 Example: Using Arc Relative to Draw Arcs ECE EC%ØB IN; Reset the printer. Enter HP-GL/2 mode. 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 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 107
Figure 20-10 Table 20-9 Related Commands Group AA, Arc Absolute The Vector Group AT, Absolute Arc Three Point BR, Bezier Relative BZ, Bezier Absolute CI, Circle RT, - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 108
AT, Absolute Arc Three Point This command draws an arc segment, using absolute coordinates, from a starting point, through an intermediate point, to an end point. Use AT when you know these three points of an arc. AT Xinter,Yinter, Xend,Yend[,chord angle;] Parameter Xinter, Yinter Xend, Yend chord - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 109
following illustration. Both lines extend to the PCL Picture Frame limits or current window. Figure 20-11 Table 20-10 Example: Using the AT Command ECE EC%ØB IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1; Select pen number 1 (black). PA1000,100; PD2500,100; Specify - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 110
Table 20-10 Example: Using the AT Command (continued) PU650,450; PD1000,450; Lift the pen, move to (650,450), place the pen down, and draw a line to ( - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 111
Table 20-11 Related Commands AA, Arc Absolute AR, Arc Relative BR, Bezier Relative BZ, Bezier Absolute CI, Circle RT, Relative Arc Three Point LA, Line Attributes LT, Line Type PW,Pen Width Group The Vector Group The Line and Fill Attributes Group BR, Bezier Relative This command draws bezier - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 112
The curve is clipped to the hard-clip limits and the soft-clip window. Following the command execution, the current pen position is updated to the BR Command (Bezier Relative) ECE EC%ØB IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1; Select pen number 1. Even though - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 113
Figure 20-13 Table 20-13 Related Commands Group AA, Arc Absolute The Vector Group BZ, Bezier Absolute AR, Arc Relative AT, Absolute Arc Three Point CI, Circle RT, Relative Arc Three Point LA, Line Attributes The Line and Fill Attributes Group LT, Line Type PW, Pen Width EN BR, Bezier - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 114
The curve is clipped to the hard-clip limits and the soft-clip window. Following the command execution, the current pen position is updated to the BZ Command (Bezier Absolute) ECE EC%ØB IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1; Select pen number 1. Even though there - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 115
Table 20-14 Example: Using the BZ Command (Bezier Absolute) PA1016,5080; PR;PD; BZ1016,8128,5588,5080, Specify the absolute point (1016,5080) as the starting location. Specify relative plotting and pen down. 4572,7112,4064,8128, 7112,7620,7112,2032; EC%ØA ECE Draw a Bezier using the current - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 116
Figure 20-14 Table 20-15 Related Commands Group AA, Arc Absolute The Vector Group BR, Bezier Relative AR, Arc Relative AT, Absolute Arc Three Point CI, Circle RT, Relative Arc Three Point LA, Line Attributes The Line and Fill Attributes Group LT, Line Type PW, Pen Width 20-24 The - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 117
22, The Line and Fill Attributes Group, for more information.) Do not use an adaptive (negative) line type to draw a circle, as the printer attempts to draw a complete pattern for every chord (72 with the default chord angle). Always use isotropic scaling in drawings that contain circles, unless - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 118
Figure 20-15 Table 20-16 Example: Effects of Chord Angle on Circle Smoothness ECE EC%ØB IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1; Select pen number 1 (black). SC-3000,3000, -2000,2000,1; Specify scaling mode, making P1 equal to (-3000,-2000) user-units and P2 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 119
Table 20-16 Example: Effects of Chord Angle on Circle Smoothness (continued) PA-1700,-200; CI750,15; PA300,-200;CI750; EC%ØA ECE Specify absolute plotting and move to (-1700,-200), the center point of a third circle. Draw this circle with a radius of 750 user-units and a chord angle of 15°. - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 120
Table 20-17 Example: Drawing Circles with Different Radii and Line Types ECE EC%ØB IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1; Select pen number 1 (black). SC-75,75,-75,75,1; Set up user scaling with (-75,-75) as P1 and (75,75) as - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 121
Figure 20-17 Table 20-18 Related Commands Group EW, Edge Wedge The Polygon Group WG, Fill Wedge SC, Scale The Configuration/Status Group AA, Arc Absolute The Vector Group AR, Arc Relative AT, Absolute Arc Three Point RT, Relative Arc Three Point LA, Line Attributes The Line and Fill - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 122
PA X,Y [,...;] or PA [;] Parameter Format Functional Range Default X,Y coordinates current units -230 to 230 - 1 no default Note The printer interprets the parameters as follows: z No Parameters - Establishes absolute plotting for subsequent commands. z X,Y Coordinates - Specify the absolute - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 123
, Pen Width SM, Symbol Mode Group The Vector Group Line and Fill Attributes Group PD, Pen Down This command lowers the printer's "logical pen" and draws subsequent graphics commands. PD X,Y[,...;] or PD [;] Parameter X,Y coordinates/ increments Format current units Functional Range -230 to 230 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 124
EC%ØB IN; Reset the printer. Enter HP-GL/2 mode. 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. PA10,10; Begin absolute plotting from coordinate (10,10). PD2500,10,10,1500,10,10 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 125
Note Figure 20-18 If an odd number of coordinates is specified (an X coordinate without a corresponding Y coordinate), the printer ignores the last unmatched coordinate . Table 20-21 Related Commands PA, Plot Absolute PE, Polyline Encoded PR, Plot Relative PU, Pen Up LA, Line Attributes - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 126
* -230 to 230 -1 no default * Refer to the table following the parameter description. Lines are drawn using the current line type and current units. The printer draws to all points with the pen down unless a pen up flag precedes the X,Y coordinates. If the final move is made with the pen up - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 127
parameters does not affect the pen's current location or up/down status. z Flag - Indicates how the printer interprets subsequent values. Flags are ASCII characters and are not encoded. The printer disregards the eighth bit of a flag (fro example, a character code of 61 and a character code of - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 128
number. Flag values are encoded in the same manner as coordinate data. Instructions for encoding flag values follow the parameter descriptions. z Pen Number - . If the current pen position goes out of this range, the printer ignores plotting commands until it receives an absolute PA or PE coordinate - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 129
with step 3. When converting numbers to base 32 or 64 (step 4 in the following instructions), note that highest order digits are always in the high range, all other digits are in round (decimal places × 3.33) x = x × 2n n = 7 x = 82.83 × 27 = 10,525.42 EN PE, Polyline Encoded 20-37 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 130
of step 1 to the nearest integer. x = round (x) x = round (10,525.42) = 10,525 3. Set the sign bit. If x is positive, multiply it by two. add one. This sets the sign bit. if (x ≥ 0) x = 2 × x x = 2 × 10,525 = 21,050 else x = 2 × abs(x) + 1 4. Convert the number to base 64 or 32 and - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 131
Note Table 20-25 Terminator and non-terminator characters Range Type Non-terminator Terminator 8-bit Range (base 64) 63-126 191-254 7-bit Range (base 32) 63-94 95-126 Values following the fractional data or select pen flag also must be encoded. while n ≥ base output CHR$(63 + (n MOD - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 132
Table 20-26 Procedure for determining base range (continued) Next order digit: 64ths place (63-126) 63 + 8 = 71 CHR$ (71) High order digit: 4096ths place (191-254) 191 + 5 = 196 CHR$ (196) Base 32. Encode all the low order digits into the ASCII range 63 to 94. For a digit with value i, use ASCII - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 133
current pen location is updated to the end of the label.) If this presents a problem in your program, follow these steps. 1 Create a flag called "lost" in real coordinates to base 64. ``10 LPRINT CHR$(27);"E"; 'Reset the Printer.'' ``20 LPRINT CHR$(27);"%0B"; 'Enter HP-GL/2 Mode.'' ``30 LPRINT "IN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 134
+C '' ''240 LPRINT CHR$(C) '' ''250 NEXT J '' ''260 LPRINT ";"; '' ''270 LPRINT CHR$(27);"%0A"; 'Enter PCL Mode '' ''280 LPRINT CHR$(27);"E"; 'Reset to eject page.'' ''290 DATA 10.58,0,-5.58,10.67,-5,-10.67 '' ''300 END '' Figure 20-19 20-42 The Vector Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 135
Table 20-27 Related Commands PA, Plot Absolute PD, Pen Down PR, Plot Relative PU, Pen Up LA, Line Attributes LT, Line Type PW, Pen Width SM, Symbol Mode Group The Vector Group Line and Fill Attributes Group EN PE, Polyline Encoded 20-43 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 136
- 1 no default * PR and PE have extended ranges of -230 to 230 - 1 plotter units. If the current pen position goes out of this range,the printer ignores HP-GL/2 commands until it receives an absolute PA or PE coordinate within the extended range. The - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 137
-28 Example: Using the PR Command ECE EC%ØB IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1; Select pen number 1. The SP command must be used to enable printing. PA10,10;PD; Move to absolute position (10,10) and put the pen down. PR2500,0,-2500, 1500,0,-1500; EC%ØA ECE - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 138
/Increments - Move to the point(s) specified. You can specify as many X,Y coordinate pairs as you want. When you include more than one coordinate pair, the printer moves to each point in the order given. 20-46 The Vector Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 139
absolute plotting (PA) is used. If an odd number of coordinates is specified (in other words, an X coordinate without a corresponding Y coordinate), the printer ignores the last unmatched coordinate. Table 20-30 Related Commands PA, Plot Absolute PD, Pen Down PE, Polyline Encoded PR, Plot Relative - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 140
RT, Relative Arc Three Point This command draws an arc segment, using relative coordinates, from a starting point through an intermediate point to an end point. Use RT when you know these three points of an arc. RT X\incr inter,Yincr inter, X\incr end\,Yincr end[,chord angle;] Parameter Format - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 141
following illustration. Both lines extend to the PCL Picture Frame limits or current window. Figure 20-21 Table 20-31 Example: Using the RT Command (Relative Arc Three Point) ECE Reset the printer. EC%ØB Enter HP-GL/2 mode. IN; Initialize HP-GL/2 mode. EN RT, Relative Arc Three Point 20-49 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 142
Table 20-31 Example: Using the RT Command (Relative Arc Three Point) (continued) SP1; Select pen number 1. Even though there is no physical pen, the SP command must be used to enable printing. PA1000,100; Specify the absolute point (1000,100) as the starting location. PR;PD1500,0; Specify - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 143
Table 20-31 Example: Using the RT Command (Relative Arc Three Point) (continued) RT100,-100,0,-200; Draw an arc from the current pen position, through a point (100,-100) plu away, with an ending point (0,-200) from the starting point of the arc. PU100,100;PD200,0; EC%ØA ECE Lift the pen and move - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 144
Table 20-32 Related Commands AA, Arc Absolute AR, Arc Relative AT, Absolute Arc Three Point BR, Bezier Relative BZ, Bezier Absolute CI, Circle LA, Line Attributes LT, Line Type PW,Pen Width Group The Vector Group The Line and Fill Attributes Group 20-52 The Vector Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 145
21 The Polygon Group Introduction All of the commands in this group use the polygon buffer, a temporary data storage area in your printer. Using the polygon buffer is an integral part of drawing wedges, rectangles, and other types of polygons. Some of the commands in this chapter define - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 146
want to print. This polygon remains in the buffer until replaced by another polygon, or until the buffer is cleared by initializing the printer. Some commands use the polygon buffer automatically, while other commands require that you enter the polygon mode. The following commands use the polygon - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 147
. Table 21-3 Example: Drawing Rectangles ?E Reset the printer. ?%0B Enter HP-GL/2 mode. IN; Initialize HP-GL/2 mode. SP1; Select pen number 1 (black). You must select a pen to print HP-GL/2 images. PA10,10; Specify absolute plotting and move to (10,10). EA2500,1500; Draw the outline of - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 148
The following command sequence draws two filled rectangles: one edged and one not. Table 21-4 Example: Filled Rectangles ?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 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 149
Table 21-4 Example: Filled Rectangles (continued) EP; Draw an edge around the rectangle that was just drawn. Since the previous RR command leaves its definition in the polygon buffer (1500,1000), you do not need to specify the coordinates again. PR2000,0; Specify relative plotting and move - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 150
Drawing Wedges A wedge is a section of a circle. Wedges are commonly used to draw pie charts. You can draw a wedge by outlining (edging) the defined area using the Edge Wedge (EW) command, or you can create filled wedges using the Fill Wedge (WG) command. The wedge commands use your current pen - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 151
plot. These reference points are added for clarification. Table 21-5 Example: Drawing Wedges ?E ?%0B IN; SP1; PA2500,3500; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. Select pen number 1. Even though there is no physical pen, the SP command must be used to enable printing - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 152
example uses different fill types with wedges and circles. Table 21-6 Example: Filling Wedges and Circles ?E Reset the printer. ?%0B Enter HP-GL/2 mode. IN; Initialize HP-GL/2 mode. SP1; Select pen number 1 (black). PA1400,2500; Select absolute plotting mode and move to (1400,2500 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 153
Table 21-6 Example: Filling Wedges and Circles (continued) PA2300,2500;FT3, 75,45; WG600,90,180; FT1,0,0;WG600, 270,60; FT4,60,45;WG600, 330,120; PA3500,2500; WG400,0,360; PA4500,2500;FT; WG400,0,360; ?%0A ?E Specify absolute plotting and move to (2300,2500). Select fill type number 3 (hatching-- - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 154
The Polygon Mode (PM) command tells the printer to store subsequent commands and coordinates in the have their own drawing commands; the printer automatically generates and stores the coordinates they are replaced with another polygon or the printer is initialized. Table 21-7 Polygon Definition - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 155
Table 21-7 (continued) PR, Plot Relative PU, Pen Up RT, Relative Arc Three Point PM1/PM2, Polygon Mode The Polygon Group Drawing Subpolygons While in polygon mode, you can define either one polygon or a series of subpolygons. Like a polygon, a subpolygon is a closed sequence of connected line - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 156
To create a series of subpolygons, for example, the letter D, move the pen to the starting location of the first subpolygon, then enter polygon mode. Define the outer shape of the letter D using the appropriate commands and coordinates, then close the subpolygon, staying in polygon mode. Define the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 157
Figure 21-8 Filling Polygons: Even/Odd Fill Method Non-Zero Winding Fill Method The non-zero winding fill algorithm (fill method 1) determines whether a point is inside a region enclosed by a line path using the following steps: 1 Draw a ray from the point across the path segment. 2 Add 1 every time - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 158
Drawing Circles in Polygon Mode Polygon mode interprets the Circle (CI) command differently than the other HP-GL/2 commands. The printer treats a circle as a complete subpolygon. The printer automatically closes the first polygon (if any) before starting the circle, and uses the first coordinates - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 159
in most cases there is little chance of a polygon buffer overflow, especially with the addition of optional printer memory. The following formula explains how to calculate the buffer space used by a polygon: number of is counted again as the ending location. Figure 21-10 EN Drawing Polygons 21-15 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 160
The following shape has seven points. Figure 21-11 Counting the Points in a Circle or Arc When a circle or arc defines a polygon, the number of points depends on the number of chords in the arc. There is always one more point than the number of chords, because the starting location is counted again - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 161
EA, Edge Rectangle Absolute This command defines and outlines a rectangle using absolute coordinates. Use EA when drawing charts or schematic diagrams that require rectangles. EA X,Y[;] Note Parameter Format Functional Range Default X,Y coordinates current units -230 to 230 - 1 no default The - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 162
example are half the width of the other lines since they are clipped at the window borders. The only difference between the EA command and the RA (Fill Rectangle Absolute to Draw Rectangles ?E Reset the printer. ?%0B Enter HP-GL/2 mode. IN; Initialize HP-GL/2 mode. 21-18 The Polygon Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 163
Table 21-8 Example: Using EA to Draw Rectangles (continued) SP1; SC0,150,0,150,1; PA75,105; EA115,130; PA95,105;PD95,95; Select pen number 1. Even though there is no physical pen, the SP command must be used to enable printing. Set up user scaling, with P1 being (0,0) user-units and P2 being (150, - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 164
Figure 21-13 Table 21-9 Related Commands Group EP, Edge Polygon The Polygon Group ER, Edge Rectangle Relative FP, Fill Polygon RA, Fill Rectangle Absolute RR, Fill Rectangle Relative LA, Line Attributes The Line and Fill Attributes Group LT, Line Type PW, Pen Width 21-20 The Polygon - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 165
Example: Using the EP Command ?E Reset the printer. ?%0B Enter HP-GL/2 mode. IN; Initialize HP-GL/2 mode. SP1; Select pen number 1 (black). PA2000,10; Specify absolute plotting and move to position (2000,10). PM0;PD10,2000,10,10, 2000,10;PM1; Enter polygon mode, store a pen down command - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 166
Table 21-10 Example: Using the EP Command (continued) EP; Outline the polygon that was just stored in the polygon buffer. ?%0A Enter the PCL mode. ?E Send a reset - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 167
ER, Edge Rectangle Relative This command defines and outlines a rectangle using relative coordinates. Use ER when drawing charts or schematic diagrams that require rectangles. ER X,Y[;] Note Parameter X,Y increments Format current units Functional Range -230 to 230 - 1 Default no default The - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 168
to understand the differences between the coordinates used. Table 21-12 Example: Using ER to Draw Rectangles ?E Reset the printer. ?%0B Enter HP-GL/2 mode. IN; Initialize HP-GL/2 mode. SP1; Select pen number 1. The SP command must be used to enable printing. SC0,150,0,150,1; Specify - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 169
(40,25) user-units away as the upper right corner. PR20,0;PD0,-10; Specify relative plotting and move the pen 20 user-units to the right. Place the pen down and draw a line to a point 10 user-units down. PD-30,0,0,-5; With the pen down, move 30 user-units to - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 170
Figure 21-16 Table 21-13 Related Commands Group EA, Edge Rectangle Absolute The Polygon Group EP, Edge Polygon FP, Fill Polygon RA, Fill Rectangle Absolute RR, Fill Rectangle Relative LA, Line Attributes The Line and Fill Attributes Group LT, Line Type PW, Pen Width 21-26 The Polygon - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 171
EW, Edge Wedge This command outlines any wedge. Use EW to draw sections of pie charts. EW radius,start angle,sweep angle,[,chord angle;] Parameter radius start angle sweep angle chord angle Format current units clamped real clamped real clamped real Functional Range -230 to 230 - 1 -32768 to - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 172
Figure 21-17Anisotropic and Isotropic Scaling z Radius - Specifies the distance from the current pen location to the start of the wedge's arc. Since the wedge is a portion of a circle, this parameter is the radius of the circle. It specifies the distance from the current pen location (which becomes - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 173
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, - - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 174
Table 21-14 Example: Using EW to Draw a Pie Chart EW-1000, 330,120; Using the same center point and zero-degree reference point, draw a wedge section outline starting at 330° and sweeping 120°. PR-60,110; Move the cursor 60 user-units to the left and 110 user-units up. EW-1000,270,60; From the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 175
Table 21-15 (continued) LT, Line Type PW, Pen Width Table 21-16 Possible Error Conditions Condition polygon buffer overflow Printer Response edges contents of buffer FP, Fill Polygon This command fills the polygon currently in the polygon buffer. Use FP to fill polygons defined in - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 176
subpolygons. In this case, the FP command fills alternating areas, beginning with the outside area. Table 21-17 Example ?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 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 177
Figure 21-20 Table 21-18 Related Commands Group EA, Edge Rectangle Absolute The Polygon Group ER, Edge Rectangle Relative EW, Edge Wedge PM, Polygon Mode RA, Fill Rectangle Absolute RR, Fill Rectangle Relative WG, Fill Wedge FT, Fill Type The Line and Fill Attributes Group LA, Line - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 178
PM, Polygon Mode Command This command enters polygon mode for defining shapes, such as block letters or any unique area, and exits for subsequent filling and/or edging. Fill polygons using the Fill Polygon (FP) command and/or outline them using the Edge Polygon (EP) command. PM polygon definition - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 179
Note Table 21-19 Polygon Mode Allowable Commands DF, Default Values IN, Initialize AA, Arc Absolute AR, Arc Relative AT, Absolute Arc Three Point BR, Bezier Relative BZ, Bezier Absolute CI, Circle PA, Plot Absolute PD, Pen Down PE, Polyline Encoded PR, Plot Relative PU, Pen Up RT, Relative Arc - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 180
begin executing subsequent commands immediately. You must exit polygon mode to execute other HP-GL/2 graphics commands. Sending an ?E while in polygon mode causes the printer to exit polygon mode, clear the polygon buffer, exit HP-GL/2 mode, and eject a page. Sending an ?E while in polygon mode is - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 181
Refer to "Pen Status and Location" in Chapter 17, Introduction to HP-GL/2 Graphics. The following example draws the surface area of a 3-prong 21-20 Example: Using the PM Command ?E Reset the printer. ?%0B Enter HP-GL/2 mode. IN; Initialize HP-GL/2 mode. SP1; Select pen number 1. Even though - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 182
Table 21-20 Example: Using the PM Command (continued) PD2920,2340,2920, Begin a third subpolygon that draws the 2660,2720,2660; ground plug portion of the receptacle. AA2720,2500,180; Store a 180° arc that goes from (2720,2660) PD2920,2340; to (2720,2500). PM2;FP;EP; Close the subpolygon and - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 183
RA, Fill Rectangle Absolute This command defines and fills a rectangle using absolute coordinates. Use RA to fill rectangular shapes in drawings. (To outline a rectangle using absolute coordinates, use the EA command.) RA X,Y[;] Note Parameter Format Functional Range Default X,Y coordinates - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 184
to the FT command description in Chapter 22.) Table 21-22 Example: Using the RA Command with Different Fill Types ?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 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 185
Table 21-22 Example: Using the RA Command with Different Fill Types (continued) PA1200,1200;FT3 , 50;RA1600,1600; EA1600,1600; Move to absolute position (1200,1200) and select fill type 3, with a 50 plu distance between each line. Draw a rectangle with (1200,1200) as the lower left corner and ( - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 186
Table 21-23 (continued) FT, Fill Type LT, Line Type RF, Raster Fill Definition The Line and Fill Attributes Group RR, Fill Rectangle Relative This command defines and fills a rectangle using relative coordinates. Use RR to fill rectangular shapes in drawings. (To outline a rectangle using relative - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 187
the right bar are edged using the ER command. Table 21-24 Example: Using the RR Command with Different Fill Types ?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 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 188
Table 21-24 Example: Using the RR Command with Different Fill Types (continued) PR0,800;FT3,50; RR400,400; Enter the relative plotting mode and move 800 plu in the Y direction and select fill type 3 (parallel lines). Draw a rectangle using the current pen location as the lower left corner; the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 189
Figure 21-25 Table 21-25 Related Commands EA, Edge Rectangle Absolute EP, Edge Polygon ER, Edge Rectangle Relative FP, Fill Polygon RA, Fill Rectangle Absolute Group The Polygon Group WG, Fill Wedge This command defines and fills any wedge. Use WG to draw filled sections of a pie chart. WG radius - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 190
The WG command defines and fills a wedge using the current pen, fill type, and line types. The WG command includes an automatic pen down. When the command operation is complete, the original pen location and up/down status are restored. The only difference between the WG command and the EW (Edge - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 191
z Sweep Angle - Specifies in degrees the angle through which the arc is drawn. A positive angle draws the angle in the positive direction (angle of rotation - +X-axis to the +Y-axis); a negative angle draws the angle in the negative direction (+X-axis to the - Y-axis). (Note, the relation of the +X- - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 192
Table 21-26 Example: Filling then Edging vs. Edging then Filling Chart ?E ?%0B IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1; SC-3000,3000, -2000,2000,1; PA0,0;FT3,75,45; WG-1000,90,180; EW-1000,90,180; Select pen number 1. Even though - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 193
when large pen widths are used. The following example illustrates this. Table 21-27 Example: ?E Reset the printer. ?%0B Enter HP-GL/2 mode. IN; Initialize HP-GL/2 mode. SP1; Select printer logical pen number 1. TR0; Set transparency mode OFF (opaque) PU4000,6000; Position pen. WG, Fill - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 194
Table 21-27 Example: (continued) PW5; Select pen width of 5 units. PM0; Enter polygon mode. CI1000; Draw a circle with a radius of 1000 units. PM2; Close polygon and exit polygon mode. FT10,30; Select 30% shading fill type. FP;EP; Fill then Edge polygon. PU4000,3000; Select pen - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 195
Table 21-28 Related Commands EP, Edge Polygon EW,Edge Wedge SC, Scale CI, Circle FP, Fill Polygon FT, Fill Type Group The Polygon Group The Configuration/Status Group The Vector Group The Polygon Group The Line and Fill Attributes Group EN WG, Fill Wedge 21-51 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 196
21-52 The Polygon Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 197
22 The Line and Fill Attributes Group Introduction The information in this chapter enables you to achieve the following results in your HP-GL/2 applications: z Enhance your drawings with various line types. z Enhance your drawings with different fill types. z Position fill type patterns. The - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 198
Table 22-1 The Line and Fill Attribute Commands SV, Screened Vectors Selects the type of area fill to be applied to vectors (lines, cross-hatch lines, arcs, circles, edges of polygons, rectangles, and wedges). TR, Transparency Mode Defines how the white areas of the source graphics image affect - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 199
Figure 22-2 Line Types Attribute Once you specify a line type and line attributes, all lines created by the following commands are drawn using the new line type and attributes. Line types and their interactions with fill patterns are discussed later in this chapter. Table 22-2 Commands Affectedby - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 200
Rectangle Absolute), RR (Fill Rectangle Relative), WG (Fill Wedge), FP (Fill Polygon) commands, and CF (Character Fill) commands. PCL 5 printers support solid, parallel line, (hatching), HP-GL/2 cross-hatch, raster fill (shading is a special type of raster fill), and PCL cross hatch and PCL user - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 201
does not print with a physical pen as a plotter does, the printer uses a "logical pen" which emulates the action of a physical pen. You must use the SP1 (Select Pen) command to draw black lines on the paper. You can change the width of the logical pen using the Pen Width (PW) command. Subsequent - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 202
set in its own lower-left corner. Notice how this helps distinguish between the adjacent figures. Table 22-3 Example: Changing the Anchor Corner ?E Reset the printer. ?%0B Enter HP-GL/2 mode. IN; Initialize HP-GL/2 mode. 22-6 The Line and Fill Attributes Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 203
Table 22-3 Example: Changing the Anchor Corner (continued) SP1; PA3000,3000; FT3,400,45; RR1000,1000; ER1000,1000; PR1000,0; FT4,400,45; RR1000,1000; ER1000,1000; PR1000,0; FT3,400,45; RR1000,1000; ER1000,1000; PA3000,1500; AC3000,1500; RR1000,1000; ER1000,1000; Select pen number 1. The SP command - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 204
Figure 22-5 Table 22-4 Related Commands Group FT, Fill Type The Line and Fill Attributes Group RF, Raster Fill Definition SV, Screened Vectors FP, Fill Polygon The Polygon Group RA, Fill Rectangle Absolute RR, Fill Rectangle Relative WG, Fill Wedge 22-8 The Line and Fill Attributes - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 205
or FT [;] Parameter fill type option1, option2 Format Functional Range clamped 1-4, 10, 11, 21, 22 integer clamped type dependent* real Default 1 type eight forms of fill types as shown above. The type parameter tells the printer which form you are using. If the fill type is specified, but the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 206
Note Table 22-5 (continued) 4 cross-hatch spacing of lines angle of lines 10 shading shading level ignored 11 HP-GL/2 raster-fill index ignored user-defined 21 PCL cross-hatch pattern type ignored patterns 22 PCL user-defined pattern ID ignored For fill types 3 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 207
Ymax points if scaling is isotropic). The end points of HP-GL/2 hatching fills are drawn with the current line cap. Lines are not clipped to the polygon. For fill type 10, the option1 parameter specifies the level of shading. The level is specified as a - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 208
to the Raster Fill Definition (RF) command for more information about creating user-defined fill types. If you have not issued an RF command, the printer uses solid fill. Figure 22-8 HP-GL/2 User-Defined Pattern 22-12 The Line and Fill Attributes Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 209
Graphics" in Chapter 13 for a discussion of PCL user-defined patterns. Table 22-6 Example: Using the FT 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 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 210
there; edge the outline of the same rectangle. ?%0A ?E Enter the PCL mode. Send a reset to end the job and eject the page. Figure 22-10 22-14 The Line and Fill Attributes Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 211
Table 22-7 Related Commands Group LA, Line Attributes The Line and Fill Attributes Group LT,Line Type PW,Pen Width RF,Raster Fill Definition FP, Fill Polygon The Polygon Group RA, Fill Rectangle Absolute RR, Fill Rectangle Relative WG, Fill Wedge CF, Character Fill Mode The Character - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 212
in pairs: the first parameter, kind, selects a line attribute, and the second parameter, value, defines the appearance of that attribute. The printer uses the current line attributes when the optional parameter pairs are omitted. z No Parameters - Defaults the line attributes to butt ends, mitered - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 213
Note Labels are always drawn with rounded ends and joins. Line Ends The value you specify for line ends determines how the ends of line segments are shaped. The following illustration describes the four types of line ends. Figure 22-11Four Line Ends Line Joins The value you specify for the line - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 214
Figure 22-12Five Line Joins When you select 'no join' (LA2,6;), the currently selected line ends for the two lines merely overlap. Refer to the following illustration. Figure 22-13Overlapping Line Ends without Line Join Selection 22-18 The Line and Fill Attributes Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 215
except at very narrow join angles. Figure 22-15Miter Limit Clipping An LA command remains in effect until another LA command is executed, or the printer is initialized or set to default conditions. EN LA, Line Attributes 22-19 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 216
example draws an electrical ground symbol using the LA command. Table 22-9 Example: Using the LA Command ?E Reset the printer. ?%0B IN; SP1; PA4000,3000; Enter HP-GL/2 mode. Initialize HP-GL/2 mode. Select pen number 1. Even though there is no physical pen, the SP command must be used to - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 217
Figure 22-16 Table 22-10 Related Commands Group FT, Fill Type The Line and Fill Attributes Group LT, Line Type PW, Pen Width UL, User-Defined Line Type AA, Arc - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 218
Attribute (LA) command. For example, if you have used LA to specify rounded ends, the printer draws each dash in a dashed line pattern with rounded ends. z No Parameters- Defaults the line line pattern. Line patterns can be of fixed or adaptive type. 22-22 The Line and Fill Attributes Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 219
(1 - 8) are fixed line types and use WG. The residue is restored when the current pen position is restored upon completion of these HP-GL/2 commands. z The following commands clear current residue and vector end points: Table 22 Window RO,Rotate Coordinate System SC,Scale EN LT, Line Type 22-23 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 220
are percentages of the pattern length (the first percentage is always pen down). 99 (LT99) restores the previous line type (and residue if it is a fixed-line type). Note If a solid line type is selected (LT;) when the LT99 command is issued, and the current pen position has not changed, the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 221
,Input P1 and P2 IR,Input Relative P1 and P2 IW,Input Window RO,Rotate Coordinate System SC,Scale Figure 22-17 first shows the line use an adaptive line type when drawing circles, arcs, wedges, or polygons. The printer attempts to draw the complete pattern in every chord (there are 72 chords in - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 222
value specified. z Mode- Specifies how the values of the pattern length parameter are interpreted. If you do not specify a mode, the printer uses the last value specified. Values other than 0 or 1 invalidate the command. z 0 - Relative mode. Interprets the pattern length parameter as a percentage - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 223
length parameter in millimeters. z When specified in millimeters, fixed line-type patterns assume the specified length, but adaptive If you do not specify the pattern length and mode parameters, then the printer uses their current values. When using relative mode and isotropic scaling, the pattern - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 224
Table 22-13 AA,Arc Absolute AR,Arc Relative AT,Absolute Arc Three Point CI,Circle PA,Plot Absolute PD,Pen Down PE,Polyline Encoded PR,Plot Relative RT,Relative Arc Three Point EA,Edge Rectangle Absolute EP,Edge Polygon ER,Edge Rectangle Relative EW,Edge Wedge FP,Fill Polygon RA,Fill Rectangle - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 225
drawings. Pen width can be specified as a fixed value or relative to the distance between P1 and the line width. When the parameter is zero, the printer assumes the thinnest line width (1 dot wide). • Metric the PCL Picture Frame to the HP-GL/2 plot size. For example, if the HP-GL/2 plot size is twice - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 226
is executed. PW is not defaulted by the Default Values (DF) command. Table 22-14 Example: Using the PW 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 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 227
Table 22-14 Example: Using the PW Command (continued) ?%0A Enter the PCL mode. ?E Send a reset to end the job and eject the page. Figure 22-19 Table 22-15 Related Commands SP, Select Pen SV, Screened Vectors WU, Pen Width Unit Selection Group The Line and Fill Attributes Group EN PW, Pen - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 228
RF, Raster Fill Definition This command defines a rectangular pattern that may be used as area fill and for screened vectors (see the SV command). Use RF to create your own fill types and screen patterns. RF index,width,height,pen number[,...pen number;] or RF index[;] or RF [;] Parameter index - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 229
printed in rows parallel to the plotter-unit X-axis. Table 22-16 Example: Creating and Printing a Fill Pattern ?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 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 230
Table 22-16 Example: Creating and Printing a Fill Pattern RR4000,800;EP; Fill a rectangle with the fill pattern just specified, with a lower left corner of (3500,2500) and an upper right corner 4000 plu to the right and 800 plu up; edge the outline of the rectangle. ?%0A Enter the PCL mode. ?E - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 231
33-58, 60-126, 161 and 254)* Default - *Decimal code 59 (the semicolon) is an HP-GL/2 terminator and cannot be used as a symbol in any symbol set. Use it only to cancel until another SM command is executed or the printer is initialized or set to default conditions. EN SM, Symbol Mode 22-35 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 232
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 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 233
Table 22-18 Example: Using the Symbol Mode Command PA4600,1590;SMX; Draw a line to (4600,1590) and print a "Z"; PA3300,1100;PU; specify "X" as the next symbol, move to (3300,1100), and print an "X"; lift the pen. SMA;PA4000,400; CI400; Specify "A" as the new symbol and move to (4000,400); draw a - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 234
to print your drawing. z No Parameters- Cancels pen selection; subsequent plotting commands are not drawn. Equivalent to (SP0). z Pen Number- Selects the printer's 'logical' pen. The printer will not draw unless an SP is sent. z 0 - Selects the white pen. To see a white pen on a non-white background - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 235
type dependent* type dependent integer * Refer to the table following the parameter descriptions. There are four types of screen fill: shaded fill, HP-GL/2 user-defined raster fill, predefined PCL cross-hatch patterns, and PCL user-defined patterns. z No Parameters- Defaults to no screening (solid - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 236
screening as follows: • 0- No screening • 1- Shaded fill • 2- HP-GL/2 User-defined raster fill (RF command) • 21- Predefined PCL cross Description Option1 Option2 1 Shaded Fill % Shading (0 to 100) Ignored 2 HP-GL/2 Pattern Index 0-Pen 1 User-defined 1-Current Pen Raster Fill 21 PCL - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 237
Fill Attributes Group FT, Fill Type PW, Pen Width RF, Raster Fill Definition WU, Pen Width Unit Selection Table 22-23 POSSIBLE ERROR CONDITIONS: Condition Printer Response 1 or more parameters ignores parameter EN SV, Screened Vectors 22-41 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 238
TR, Transparency Mode This command defines how the white areas of the source graphics image affect the destination graphics image. TR [n][;] or TR [;] Parameter n Format clamped integer Functional Range Default 0 or 1 1 (on) z No Parameters- Defaults to transparency mode = on (TR1;). z n- - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 239
When transparency mode is off, all source pixels are written to the destination, obscuring any underlying images. Note Figure 22-23Transparency Mode = OFF The transparency mode is defaulted by the ?E Reset, IN, or DF commands. For more information on the transparency mode, see the discussion of - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 240
number. The index number may not be 0. • The index parameter uses absolute values, so (UL-n) is the same as (ULn). Redefining a standard fixed line type automatically redefines the corresponding adaptive line type. z Gaps - Specify alternate pen-down and pen-up stretches in the line type pattern; if - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 241
the UL Command ?E Reset the printer. ?%0B IN; SP1; PA4000,3000; Enter HP-GL/2 mode. Initialize HP-GL/2 mode. Select pen number and gap8 as a space (15%). LT8,10;PU2000, 2500;PD5000, 2500; Specify line type number 8 (just defined), with a pattern length of 10% of the distance between P1 and P2 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 242
Related Commands LA, Line Attributes LT, Line Type Group The Line and Fill Attributes Group Table 22-26 POSSIBLE ERROR CONDITIONS: Condition Printer Response sum of gap parameters equals zero ignores command a gap is negative ignores command index = 0 or|index| > 8 ignores command WU, Pen - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 243
of the diagonal distance from P1 to P2. If the specified type parameter is not 0 or 1, the printer ignores the command. A WU command remains in effect until another WU command is executed, or the printer is initialized. WU is not defaulted by the Default Values (DF) command. Table 22-27 Related - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 244
22-48 The Line and Fill Attributes Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 245
your image or you can print text from within HP-GL/2 mode. If this is your first experience with HP-GL/2, you should know that the term "label the printer's vector graphics commands. The information in this chapter enables you to perform the following: z Position and print labels using any LaserJet - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 246
Table 23-1 The Character Group Commands (continued) DR,Relative Direction Specifies the slope of labels relative to P1 and P2 locations. DT,Define Label Terminator Defines the character or code that 'turns off' labeling. DV,Define Variable Text Path Specifies the label path as right, left, up, - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 247
code 03), or you can define a terminator using the DT command. Without the label terminator in place, your printer continues to label your picture with all subsequent HP-GL/2 commands and parameters. The following example demonstrates printing a simple label using the SD command to designate a font - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 248
Return is required in the example, it is indicated as "CR-LF." Table 23-2 Example: Printing Labels ECE EC%0B IN; Reset the printer. Enter HP-GL/2 mode. 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 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 249
of your line of text is the point at which the pen is "returned" when a Carriage Return control code is sent to the printer). When the printer encounters a Character Plot (CP) command, or a Carriage Return control code within a Label command, the pen moves to the Carriage Return point, adjusted up - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 250
codes are ignored. Table 23-4 Commands Updating Carriage Return Point to Current Location Control Code Backspace Horizontal tab Line feed Carriage return Shift Out1 DecimalCode 8 9 10 13 14 23-6 The Character Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 251
Conditions The following label default conditions are established when the printer is initialized, or set to default conditions. To change z Font Spacing - Fixed. z Pitch - 9 characters per inch. z Height - 11.5 point. z Posture - Upright. z Stroke Weight - Medium. z Typeface - HP-GL/2 Stick. z - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 252
Enhancing Labels You can enhance your labels by changing such aspects as the character size and slant, the space between characters and lines, and the orientation and/or placement of the label on the page. To effectively use these enhancements you should understand the properties of the character - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 253
You can use the Character Plot (CP) command to move the pen a specific number of lines or spaces (character cells) from the current pen location. Use the CP command, for example, to indent a label a certain number of spaces. Label Orientation and Placement You can place your labels anywhere on the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 254
- or left-justified from the current pen location. For example, the following illustration shows four centered lines of text. Figure 23-4 Label Origin Command 23-10 The Character Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 255
the semicolon (;), to be used in text, the command is defined so that you must use the special 'print label terminator mode' to tell the printer to once again interpret characters as graphics commands. (If the command had been defined otherwise, you wouldn't be able to print semicolons in your text - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 256
character that includes blank areas above and to the right of the character. Refer to the Figure 23-5. Figure 23-5 The Character Cell and HP-GL/2 Table 23-5 Term Baseline Linefeed Point Size Description The imaginary line on which a line of text rests. A character's descender (such as the bottom - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 257
of a linefeed and a width extending from the beginning of one character to the beginning of the next. The printer implements the following different types of fonts: z Scalable outline font z Bitmap font z HP-GL/2 Stick and Arc font These are described in more detail in "Using Fonts" later in this - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 258
Figure 23-7 Stick Font Character Cell When you use the SI (Absolute Character Size) or SR (Relative Character Size) commands to change the size of the characters, or use the ES (Extra Space) command to add extra space around them, you alter the size of the CP (Character Plot) cell. You can control - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 259
Using Fonts In HP-GL/2 mode, the printer uses three different types of fonts: z Scalable fonts - box, with descenders extending beneath. The Stick font is fixed-spaced, and the Arc font is proportional. Printing with Fixed-Spaced and Proportional Fonts Proportional fonts, by definition, use - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 260
Figure 23-8 and Figure 23-9 show the difference between fixed-spaced and proportional fonts. Figure 23-8 Fixed-Spaced Font With proportional fonts, the actual space occupied by each character varies according to the character's width (Figure 23-9). Figure 23-9 Proportional Font 23- - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 261
character width in calculating character size. Otherwise, these commands behave the same as they do with fixed-spaced fonts. Designating and Selecting Fonts If you intend to label with the default fixed-spaced font (Stick), you do not need to use the SD or AD commands for designating standard - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 262
(SD) command that defines the primary HP-GL/2 font. In addition the AD command defines an alternate HP-GL/2 font and its characteristics: font 3 Pitch 9 4 Height 11.5 5 Posture upright Description Roman-8 fixed spacing characters per inch font point size upright 23-18 The Character Group - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 263
(continued) 6 Stroke Weight 0 7 Typeface 48 medium Stick (fixed vector) z Value - Defines the properties of the characteristic specified and typeface being the lowest. The font selection priority is the same for HP-GL/2 as for PCL font selection. For more information about the priority of - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 264
Table 23-7 (continued) SA, Select Alternate Font SB, Scalable or Bitmap Fonts SD, Standard Font Definition SI, Absolute Character Size SR, Relative Character Size SS, Select Standard Font TD, Transparent Data CF, Character Fill Mode The Character Fill Mode command specifies the way scalable fonts - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 265
Direction (DR) commands do not cause rotation of fill patterns. Fill patterns remain fixed with respect to the current coordinate system. The CF command remains in effect until another CF command is executed, or the printer is initialized or set to default conditions. The edge pen width is not - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 266
illustration below). Figure 23-10Character Fill Overflowing Table 23-8 Example: Using the CF Command ECE EC%0B IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1; Select pen number 1 (black). SD1,21,2,1,4,140, Specify a 140-point Univers Bold font and 5,0,6,3,7,4148;SS - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 267
Table 23-8 Example: Using the CF Command (continued) PW.1;CF3,1;LBB*; Set the pen width to .1 mm; select character fill mode 3 (fill & edge) and edge with pen number 1 (black); print the letter "B". PW.5;LBC*; EC%0A ECE Set the pen width to .5 mm to change the thickness of the fill lines; print - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 268
CP, Character Plot This command moves the pen the specified number of spaces and lines from the current pen location. Use CP to position a label for indenting, centering, etc. CP spaces,lines [;] or CP [;] Parameter Format spaces clamped real lines clamped real Functional Range Default -32768 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 269
z Lines - Specifies the number of lines the pen moves relative to the current pen location. Positive values specify the number of lines the pen moves up from the current pen position; negative values specify the number of lines the pen moves down (a value of -1 is equivalent to a Line Feed). Up and - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 270
a Carriage Return-Line Feed (CR-LF) combination, and using a CP command without parameters to emulate a CR-LF. Table 23-10 Example: Using the CP Command ECE EC%0B IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1; Select pen number 1 (black). 23-26 The Character Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 271
Table 23-10 Example: Using the CP Command PA5000,2500; PD1500,2500; PU; CP5,.35; Specify absolute plotting and move to (5000,2500); set the pen down and - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 272
Figure 23-14 Table 23-11 Related Commands DI, Absolute Direction DR, Relative Direction DV, Define Variable Text Path ES, Extra Space LB, Label LO, Label Origin SB, Scalable or Bitmap Fonts SI, Absolute Character Size SR, Relative Character Size Group The Character Group 23-28 The Character Group - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 273
DI, Absolute Direction This command specifies the slope or direction at which characters are drawn, independent of P1 and P2 settings. Use DI to change labeling direction when you are labeling curves in line charts, schematic drawings, blueprints, and survey boundaries. DI run,rise [;] or DI [;] - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 274
You can express the parameters in measured units as rise and run, or using the trigonometric functions cosine and sine according to the following relationship. Where: run and rise = number of measured units θ = the angle measured in degrees sin θ/cos θ = rise/run θ = tan-1(rise/run) and tan θ = sin - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 275
Note Figure 23-16Effect of Horizontal and Vertical Text Paths If an SB1; command has been sent, the printer draws the label along the nearest perpendicular. In the case of bisection, the angle is rounded down (e.g., 45° would round to 0°). Refer to the following - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 276
Figure 23-18Label Print Direction Rise and Run To measure the run and rise, first draw a grid with the lines parallel to the X- and Y-axis. The grid units should be the same size on all sides, but their actual size is irrelevant. Then, draw a line parallel to the label and one parallel to the X-axis - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 277
of the parameters determine which quadrant the label is in. Table 23-14 Example: Using the DI Command ECE EC%0B IN; Reset the printer. Enter HP-GL/2 mode. 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 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 278
-19Varying Print Direction with DI Command Parameter Sign The DI command remains in effect until another DI or DR command is executed, or the printer is initialized or set to default conditions. The following example illustrates the use of positive and negative parameters, the use of the cosine and - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 279
Table 23-15 Example: Another DI Example ECE EC%0B IN; Reset the printer. Enter HP-GL/2 mode. 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. PA3500,2500; Specify - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 280
Bitmap Fonts SI, Absolute Character Size SL, Character Slant SR, Relative Character Size Group The Character Group Table 23-17 POSSIBLE ERROR CONDITIONS Error Condition Printer Response both parameters = 0 or number out of range ignores command 23-36 The Character Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 281
DR, Relative Direction This command specifies the direction in which labels are drawn, relative to the scaling points P1 and P2. Label direction is adjusted when P1 and P2 change so that labels maintain the same relationship to the scaled data. Use DR to change labeling direction when you are - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 282
You define the parameters of run and rise as shown in the following illustration: Figure 23-21Rise and Run Parameters With the DR command, the use of run and rise is somewhat different than with DI. Run is expressed as a percentage of the horizontal distance between P1 and P2; rise is expressed as a - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 283
The following illustration shows the effects of using three different sets of run/rise parameters. Notice how the text baseline varies as the run percentage is greater than, equal to, and less than the value for rise. Figure 23-22Effects of Different Rise/Run Parameters If the P1/P2 rectangle is - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 284
Figure 23-23Effects of Scaling on Label Direction Labels begin at the current pen location and thus are drawn parallel to the directional line, not necessarily on it. Also, negative parameters have the same effect on direction as described for the DI command. At least one parameter must not be zero. - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 285
Print Direction with DR Command Parameter Sign A DR command remains in effect until another DR or DI command is executed, or until the printer is initialized or set to default conditions. Example:Using the DR Command This example illustrates the use of positive and negative parameters, how the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 286
Table 23-20 Example: Using the DR Command ECE EC%0B IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1; Select pen number 1 (black). PA3500,2500; Specify absolute plotting and move to (3500,2500). DT#,1; Define the "#" character as the label terminator. - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 287
Figure 23-25 Table 23-21 Related Commands CF, Character Fill Mode CP, Character Plot DI, Absolute Direction DV, Define Variable Text Path LB, Label SB, Scalable or Bitmap Fonts SI, Absolute Character Size SL, Character Slant SR, Relative Character Size IP, Input P1 and P2 IR, Input Relative P1 and - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 288
Table 23-22 POSSIBLE ERROR CONDITIONS: Error Condition Printer Response both parameters = 0 or number out of range ignores command DT, Define Label Terminator This command specifies the character to be used as the label - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 289
and does not perform its function if it is a control code. A DT command remains in effect until another DT command is executed, or the printer is initialized or set to default conditions. The following command shows how to define and print using a non-printing label terminator: DT#;LBThe label - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 290
DV, Define Variable Text Path This command specifies the text path for subsequent labels and the direction of Line Feeds as either right, left, up, or down. Use DV to "stack" characters in a column. DV path[,line;] or DV [;] Parameter path line Format clamped integer clamped integer Functional - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 291
• 3 - -270 degrees.(Up) Within a label, each character begins above the previous character. This is a vertical text path (unless altered by DI or DR). The following illustration shows the four text paths. Figure 23-26Four Text Paths z Line- Specifies the location of each character with respect to - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 292
Figure 23-27DV Command Character Position for Normal (0) Parameter z 0 - +90 degrees.(Reverse Line Feed) Sets the direction of Line Feeds +90 degrees with respect to the text path. Figure 23-28DV Command Character Position for Normal (90) Parameter 23-48 The Character Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 293
vertical labels. Horizontal labels are shown for comparison. Table 23-24 Example: Using the DV Command ECE EC%0B IN; Reset the printer. Enter HP-GL/2 mode. 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 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 294
Table 23-24 Example: Using the DV Command (continued) EC%0A ECE Enter the PCL mode. Send a reset to end the job and eject the page. Note Figure 23-29 Table 23-25 Related Commands CP, Character Plot DI, Absolute Direction DR, Relative Direction LB, Label LO, Label Origin Group The Character - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 295
is initialized or set to default conditions. Table 23-26 Example: Using the ES Command ECE EC%0B IN; Reset the printer. Enter HP-GL/2 mode. 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. EN ES, Extra - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 296
Table 23-26 Example: Using the ES Command (continued) PA2500,3200; SI.187,.269; DT#;ES; Specify absolute plotting and move to (2500,3200); specify a relative character size of .187 cm wide by .269 cm high. Define the "#" character as the label terminator and set the extra space setting to default - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 297
Table 23-27 Related Commands CP, Character Plot LB, Label Group The Character Group EN ES, Extra Space 23-53 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 298
, the font must be accessible to the printer as either a resident font, a downloaded font, or a loaded cartridge font. To be selected, the font must a bitmap font, SB is set to 1. This affects the performance of certain HP-GL/2 commands. Refer to SB command later in this chapter. Example:Using the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 299
the SD command to designate an 18-point font from within HP-GL/2 mode; then select the PCL font with font ID number of 15 as the primary font. Then select the primary font for printing. LBLaserJetPrinters#; EC%0A ECE Print "LaserJet Printers" in the newly selected font. Enter the PCL mode. Send - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 300
(alternate) font (the font characteristics are assigned to the secondary font). The font must be accessible to the printer as either a resident font, a downloaded font, or a loaded cartridge font. To be selected, the font must have been previously assigned a font ID number in PCL mode. Also - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 301
FN Command ECE EC*c28D EC(s1p18v0s3b4148T EC*c6F EC%0B IN; Reset the printer. Specify a font ID number of 28. Select an 18-point Univers Bold font font as a temporary font with the current ID number (28). Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1; Select pen number 1. Even though there is - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 302
/Line Feed. Use the AD command to designate an 18-point font from within HP-GL/2 mode; then assign the PCL font with font ID number of 28 as the secondary font. Then select the font. Print "LaserJet Printers" in the newly selected font. Enter the PCL mode. Send a reset to end the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 303
such as the Carriage Return (CR, decimal code 13) and Line Feed (LF, decimal code 10). These characters invoke the specified function, but are not drawn. Refer to Appendixes A and B of the PCL 5 Comparison Guide for a list of ASCII characters. The label begins at the current pen location, (unless - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 304
define a different terminator using the DT command. Table 23-32 Example: Printing Text with the LB Command ECE EC%0B IN; Reset the printer. Enter HP-GL/2 mode. 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 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 305
Table 23-33 Related Commands AD, Alternate Font Definition CP, Character Plot DI, Absolute Direction DR, Relative Direction DT, Define Label Terminator DV, Define Variable Text Path ES, Extra Space FI, Select Primary Font FN, Select Secondary Font LO, Label Origin SA, Select Alternate Font SB, - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 306
font). LO position[;] or LO [;] Parameter position Format clamped integer Functional Range 1 to 9 11 to 19 21 Default 1 Notes The printer interprets the parameters as follows: z No Parameters- Defaults the label origin. Equivalent to (LO1). z Position- The position numbers are graphically - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 307
is initialized or set to default conditions. Table 23-34 Example: Using the LO Command ECE EC%0B IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1;SC-4000,4000, -5000,5000; Select pen number 1; specify scaling by assigning (-4000,-5000) to P1 and (4000,5000) to P2. EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 308
500), to (500,0), and then to (0,500). DT#; Define label terminator as "#" character. CI10;LO4; LBCentered on point#; Draw a small circle (radius - 10 plu) to represent the label origin point, specify a label origin of 4, and print "Centered on point." PU-500,0;CI10; LO18; LBLeft center offset - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 309
Note EN The pen position at the end of the label string depends on whether two successive LB commands concatenate together as though only one label was given. The DV/LO combinations which permit concatenation are: Table 23-35 Text Path DV0 (right) DV1 (down) DV2 (left) DV3 (up) Label Origin LO's - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 310
Use the SA command to shift from the currently selected standard font to the designated alternate font. SA [;] The SA command tells the printer to draw subsequent labeling commands using characters from the alternate symbol set previously designated by the AD command. The SA command is equivalent to - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 311
the same restrictions as bitmapped fonts regarding Character Fill, Orientation, Size, and Slant (see table on next page). Scalable fonts respond more accurately to some HP-GL/2 commands. The choice of scalable or bitmap fonts can affect the performance of the following - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 312
Table 23-38 AffectedCommands Command Limitation CF Bitmapped characters cannot be edged. DI,DR Bitmapped characters can be printed only with orthogonal directions (0°, 90°, 180°, or 270°). SI,SR Sizes of bitmapped fonts are approximate only. SL The Slant command is ignored for bitmapped - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 313
Typeface 48 Description Roman-8 fixed spacing characters per inch font point size upright medium Stick (fixed vector) z Value- Defines the lowest. The font selection priority is the same for HP-GL/2 as for PCL font selection. For more information about Guide. EN SD, Standard Font Definition 23-69 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 314
the font definition command (SD or AD). Table 23-41 Kind 3: Pitch Values Pitch Values Description 0 to 32 767.9999 characters per inch (default: 9) Fixed-spaced fonts depend on pitch to determine character size. Proportional fonts ignore pitch. Note that with the SD and AD command you cannot - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 315
Note EN Kind 4: Height For proportional fonts, the height characteristic defines the font point size (the height of the character cell). (Fixed-spaced fonts ignore height; the point size is calculated using the font pitch.) There are approximately 72 points in an inch. Note that with the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 316
font cartridge or SIMM that is plugged into the printer. PCL 5 LaserJet printers have at least three internal scalable typefaces: Univers (4148), CG Times (4101), and the Stick font (48). (For more information about the printer's internal fonts, refer to Chapter 2 of the PCL 5 Comparison Guide.) 23 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 317
Example:Using the SD Command The following example shows the SD command used to designate a 25-point Univers Bold font in the ASCII symbol set (use the Select Standard Font (SS) command to select this font after it is designated): Note that the pitch parameter is missing in the above command - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 318
may look odd to your readers. An SI command remains in effect until another SI command is executed, an SR command is executed, or the printer is initialized or set to default conditions. 23-74 The Character Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 319
is determined by height for proportional fonts and by width for fixed-spaced fonts). When (SB1;) is in effect, characters cannot 23-46 Example: Using the SI Command ECE EC%0B IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1; Select pen number 1. Even though there is no - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 320
Table 23-46 Example: Using the SI Command (continued) PA4000,3000; LBPrint#; PA4000,2000; SI1,1.5;LBPrint#; EC%0A ECE Move to (4000,3000) and print "Print" in 12-point Univers. Move the pen to (4000,2000) and specify a character size of 1 cm by 1.5 cm, then print "Print". Enter the PCL mode. Send - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 321
A negative height parameter mirrors labels in the top-to-bottom direction. SI.6,-.9;LBPrint#; Figure 23-36 Negative width and height parameters together mirror labels in both directions, causing the label to appear to be rotated 180 degrees. SI-.6,-.9;LBPrint#; Figure 23-37 Table 23-47 Related - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 322
tangent of angle[;] or SL [;] Table 23-48 Parameter Format Functional Range Default tangent of angle clamped real -32768 to 32767 0 The printer interprets the parameters as follows: z No Parameter- Defaults the slant to zero (no slant). Equivalent to (SL0). z Tangent of Angle- Interpreted as - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 323
if you are not familiar with your language's tangent function. Table 23-49 Example: Using the SL Command ECE EC%0B IN; Reset the printer. Enter HP-GL/2 mode. 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 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 324
Table 23-49 Example: Using the SL Command (continued) PA1000,300; SL-.36;LBSlant#; EC%0A ECE Move to (1000,300), change the slant angle to -20° from upright and print "Slant." Enter the PCL mode. Send a reset to end the job and eject the page. Figure 23-39 Table 23-50 Related Commands SB, - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 325
P2. A negative width parameter mirrors labels in the right-to-left direction. Changing character size also changes the apparent stroke weight of labels; the printer adjusts characters relative to changes in P1/P2. As long as the aspect ratio remains the same with changes in P1/P2, characters will - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 326
located at (-6956,-4388) and (6956,4388), respectively. If you establish relative sizing and specify a width of 2 and a height of 3.5, the printer determines the actual character size as follows: width = || (2/100) x ( 6956 - (-6956) ) = 278.24 plu or 0.695 cm height = (3.5/100) x (4388 - ( -4388 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 327
Using the SR Command ECE EC%0B IN; Reset the printer. Enter HP-GL/2 mode. Initialize HP-GL/2 mode. SP1; Select pen number 1. Even though 2.5% of the P1/P2 rectangle. LBNEW SRm Print "NEW SR INSTRUCTION" and send INSTRUCTION@;CP CP for Carriage Return/Line Feed. ; LBCHANGES LABEL SIZE@; - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 328
Figure 23-40 Table 23-52 Related Commands CP, Character Plot SB, Scalable or Bitmap Fonts DI, Absolute Direction DR, Relative Direction IP, Input P1 and P2 IR, Input Relative P1 and P2 SI, Absolute Character Size Group The Character Group 23-84 The Character Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 329
a label string. The default designated standard font is the Stick font, and uses symbol set 277 (Roman-8). This font is in effect when the printer is initialized or set to default conditions. The SS command remains in effect until an SA command is executed. Table 23-53 Related Commands Group - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 330
Functional Range mode clamped integer 0 or 1 Default 0 (normal) The printer interprets the parameters as follows: z No Parameters- Defaults the labeling mode the symbol set tables in Appendix B of the PCL 5 Comparison Guide. z 1 - Transparent.All characters print and perform no other function - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 331
Table 23-55 Related Commands AD, Alternate Font Definition DT, Define Label Terminator LB, Label SA, Select Alternate Font SD, Standard Font Definition SS, Select Standard Font Group The Character Group EN TD, Transparent Data 23-87 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 332
23-88 The Character Group EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 333
24 Programming Hints Introduction This chapter provides information for use during the development of PCL software. EN Introduction 24-1 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 334
. For example, a Duplex Print command has no effect on the HP LaserJet III, IIIP or LaserJet 4 printers, since these are non-duplexing printers. However, on printers which support duplex printing (such as the HP LaserJet IIID and LaserJet IIISi), the job is printed in duplex mode. 24-2 Programming - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 335
Commands. Data M Page n M Page Control1 Commands. Data. ECE EC%-12345X Printer Reset Command. UEL Command (exit language). 1. If a number of consecutive pages and also enters PJL Mode of operation for printers that support PJL. The ECE command should be included to ensure backward compatibility (the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 336
"locked out" (secured) paper trays. Page Size This FORM menu item (refer to the printer User's Manual). HMI When a font is selected, HMI is set automatically to correspond to the pitch of the selected font if fixed-pitch - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 337
Hewlett-Packard's Type Director 2.0 (and later). AutoFont support for Hewlett-Packard's newer font cartridge products are furnished as TFM files on a disk of the spacing feature available from Hewlett-Packard's FontLoad Utility, HP product number 33407B. Since line spacing is independent of font - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 338
font change. This is due to the increased number of available fonts in the printer. The transparent print data command is required to access printable characters with character codes . Refer to "HP-GL/2 Vector Graphics" later in the chapter for hints on using HP-GL/2 text. 24-6 Programming Hints EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 339
after a subsequent End Raster Graphics Command. Some applications and I/O drivers insert carriage returns or line feeds into the data stream sent to the printer. This modification of the data stream must be suppressed for correct printer operation. The most efficient way to draw lines (horizontal - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 340
fonts using the current font characteristics. HP-GL/2 is supported within a macro on some printers (refer to the "PCL Feature Support Matrix" in Chapter 1 of the PCL 5 Comparison Guide. HP-GL/2 implementation within macros matches that of PCL. Macro problems can often be avoided by first ensuring - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 341
less efficient. z Font transformations in HP-GL/2, such as mirroring, scaling, slanting, rotating, and outlining are very processing intensive. An ''ERROR 21'' (print overrun) may occur. The error can be controlled by using the HP LaserJet "Page Protection" feature. EN HP-GL/2 Vector Graphics 24-9 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 342
protection feature to ON (see next section). Page Protection If enabled, page protection reserves an amount of memory for the page image process, allowing the printer to create the entire page image (in memory) before physically moving the paper through the printer. 24-10 Programming Hints EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 343
only with additional optional memory on many HP LaserJet printers. (One exception is the LaserJet 4 printer, which supports page protection for letter-size paper in 300 dpi mode with the standard 2 Mbytes memory.) Refer to the appropriate User's Manual for specific memory requirements. The Page - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 344
Troubleshooting Commands End-of-Line Wrap The End-of-Line Wrap command defines the action that occurs when a line of text reaches the right margin. E C & s # C # =0 - Enables - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 345
is printed and executed as CR-LF. z ECZ is printed and executed. Display functions mode instructs the printer to display rather than execute the data it receives. The data is printed using the current text symbol sets do have printable characters defined in this range. Troubleshooting Commands 24-13 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 346
Automatic error clearing (refer to the printer User's Manual for a list of clearable errors) can be achieved by setting Auto-Continue Mode to ON, using the Operator Control Panel configuration menu. When "Auto-Cont" is set to ON, the device displays a message for 10 seconds, and then attempts to - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 347
to the printer User's Manual). Make sure the printer is set to the same baud rate as the computer, and that your host I/O has been configured for your printer. If the error continues, call your HP Service Representative. For additional printer errors, refer to the printer User's Manual. EN Common - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 348
24-16 Programming Hints EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 349
help when you have any problems with your computer system or when you need consumable items such as toner cartridges or paper. These support personnel, in turn, can call special resources within HP when necessary. Help From Your Dealer If you purchased your printer from an HP dealer or system vendor - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 350
Personal Peripherals Assist Line, do the following: 1 Check the "Troubleshooting Checklist" section of your printer User's Manual. 2 Use the printer's control panel to print self-test, if possible. 3 Check with you software vendor for help if you suspect a software problem. Customer Support-2 EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 351
computer you are using. z Identify any special equipment or software you are using (for example, spoolers, networks, switch boxes, modems or special software drivers). z Identify the cable you are using and who sold it to you. z Identify any special interface, I/O, or RAM boards installed in your - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 352
Customer Support-4 EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 353
's control panel (refer to the printer User's Manual). Aspect Ratio The ratio of the width to height of an image. Baud Rate Baud rate is the rate at which information is transferred between the computer and the printer. To communicate properly, the computer and printer must both be configured to the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 354
15. Configuration Configuration is the process of changing certain printer settings to allow a computer to communicate properly with the printer. For example, interface selection is part of printer configuration. The printer is configured using the control panel configuration menu. Configuration - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 355
operator. Current Active Position (CAP) See CAP. Cursor Although the printer does not actually have a cursor, the cursor position refers to the panel. Dot The dot is the smallest printable unit. On HP LaserJet printers, one dot can equal either 1/300th or 1/600 inch. The number of dots printed per - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 356
identified by the ? symbol, (ASCII decimal code 27). This character is a control code used specifically by the printer to identify a string of characters as a printer command. As the printer monitors incoming data from a computer, it is "looking" for this character. When this character appears, the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 357
(refer to the printer User's Manual). Font A font is cartridge is plugged into the printer, the printer has access to the fonts contained in the cartridge. Font Header The font header and character definitions contain all the information needed to format a font for use in the HP LaserJet printers - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 358
. The factory default font's HMI is 12 (which is 12/120 = 1/10 inch per character or 10 characters per inch). HP-GL/2 PCL 5 printers provide the ability to print vector graphics using the HP-GL/2 graphics language commands. HP-GL/2 graphics may be created within application software or imported from - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 359
one particular configurable entity (such as "Copies"); a "value" is an "item's" particular configuration (such as "Copies=10"). Modified Print Environment The current printer feature settings constitute the modified print environment. Whenever a feature setting is altered using escape sequences, the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 360
PCL 5 Comparison Guide contains the MSL symbol index. Negative angle of rotation An angle used to create a plot in HP-GL/2 which printer will accept data from the host computer. When the printer is on-line, the ON LINE lamp is lit. When off-line, the printer values: Paper source, Page size, Number - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 361
command (see "Unit of Measure Command" in Chapter 4). PCL Units were previously referred to as "PCL dots," but should not be confused with the printer's physically printed dots. Perforation Region The perforation region is the distance from the bottom of the text area to the top of the text of - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 362
Pitch Pitch describes the number of characters printed in a horizontal inch. Pitch only applies to fixed-spaced fonts since the number of characters per inch varies for proportionally-spaced fonts. PJL PJL (Printer Job Language) commands provide job-level control, such as the ability to switch - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 363
the user default environment, the modified print environment and the overlay environment. Printer Commands See PCL Commands and HP-GL/2. Printing Menu Identifies a few printer features which can be selected from the printer's Operator Control Panel, [[Menu]] key. Print menu features select the user - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 364
the ability to lay down a fine grid of "dots" on the page. The density of this grid is referred to as the printer's resolution. Resolution is expressed as a value of dots-per-inch. Until recently, all HP LaserJet family printers printed at a resolution of 300 dots-per-inch. In a one inch square, the - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 365
to the printer's memory and used the same way as cartridge or resident fonts. Spacing Fonts have either fixed or proportional spacing. Fixed-spaced symbol index number. Appendix D of the PCL 5 Comparison Guide contains lists of MSL and Unicode symbol index characters and their numbers (also see - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 366
Printer Job Language (PJL). Both PCL 5 and HP-GL/2 recognize this command. The UEL Command has the same effect as the ?E command, and also enters PJL Mode of operation for printers that support number. Appendix D of the PCL 5 Comparison Guide contains the Unicode symbol index. Glossary-14 EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 367
default selectable through the printer's control panel. For example, user defaults may be selected for number of copies, manual feed mode, fonts, 13. User-Defined Symbol Sets User-defined symbol sets are supported in some HP LaserJet printers. Symbols are user-selected from a Symbol Index, (such as - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 368
Vertical Motion Index (VMI) VMI (vertical motion index) VMI defines the distance between rows in 1/48th inch increments. This command affects the Line Feed and Half-Line Feed spacing. The factory default VMI is eight, which corresponds to six lines per inch. A user default VMI can be selected from - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 369
Guide!! x !!Software Application Notes!! vi !!TrueType Font File Specification!! x #A - Page Size 5-2 #C - Vertical Motion Index 5-22 #D - Line Spacing 5-24 #E - Top Margin 5-16 #F - Text Length 5-18 #G - Output Bin Selection 4-12 #H - Paper Status Readback Entity 16-10 &&r#T - Set Status Readback - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 370
13-8, 14-5 area fill, user-defined patterns - !!also see!! user-defined patterns 13-13 ASCxx 10-5, 11-14 aspect ratio 19-8, Glossary-1 assigning font ID numbers 9-4 assist line, HP Customer Support-2 AT command 20-7, 20-16 auto-continue 24-14, Glossary-1 automatic macro overlay 12-4, 24-8 automatic - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 371
code 6-7 line termination modes 6-13 point (HP-GL/2) 23-5, 23-26, 23-29, 23-37, 23-41, 23-63 suppressing 24-7 cartridge fonts 7-2 fonts, status readback 16-8 macro command 11-49 delete 9-5 character complement 10-7 font header field 11-35 numbers 9-10 character coordinates, TrueType 11-5 character - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 372
user-defined symbol set header 10-7 character row height 5-22 character sets (fonts) 7-1 character size (HP-GL/2) 23-8, 23-74 Character Slant command 23-8, 23-78 character slope 23-29 character space 23-8 adjusting 23-51 character spacing 24-4 fixed-spaced fonts 5-20 horizontal 7-5 character stroke - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 373
Window) 19-18, 19-29 LA (Line Attribute) 22-2 LA (Line Attributes) 22-15 LB (Label) 23-3, 23-59 LO (Label Origin) 23-10 ) 21-27 WU (Pen Width Unit Selection) 22-46 commands, HP-GL/2 (listing of) 17-3 commands, PCL ?*c#G - Pattern ( selection 4-12 page size 5-2 paper source 5-4 pattern control 13-23 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 374
Forum Customer Support-1 configuration Glossary-2 Configuration and Status Group 19-1 Configuration Group (HP-GL/2 commands) 17-3 Configuration Menu Glossary-2 continuation character descriptor 11-53, 11-62, 11-68 user-defined pattern descriptor 13-17 control user-defined symbol sets 10-12 control - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 375
5-16 units 6-3 vertical 5-16 customer support Customer Support-1 D data block, adaptive compression 15- 11-4 design window, Intellifont character cell 11-4 destination image 13-1, 13-2 DF command 17-10, 17-23 -41 drawing arcs 20-14 arcs (HP-GL/2) 20-5 Bezier curves (HP-GL/2) 20-8 Bezier curves, with - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 376
Extra Space (ES) command 23-8, 23-16, 23-51 F factory default Glossary-4 factory default environment 3-2, Glossary-5 HP-GL/2 context (table) 3-5 PCL context (table) 3-2 faxback service, HP FIRST Customer Support-2 feature settings 3-2 FF, Form Feed 6-13 FI command 23-54 fill and line types 22-1 fill - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 377
HP-GL/2 mode) 23-15 bitmap vs.scalable 7-2 bitmap, coordinate system 11-4 bound 9-8 bound and unbound 9-8, Glossary-1 cache 16-22 cartridge 16-10 filling characters (HP-GL/2) 23-20 fixed-spaced 7-4 font type header field 11-15 formats 7-2 header !!see also!! font header 11-1, 11-6 height (HP-GL/2) - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 378
xheight 11-22 Y resolution 11-34 font header formats of data segments AP (Application Support Segment) 11-41 CC (Character Complement) 11-41 IF (Intellifont Face Data) 11-42 PF (PS-Compatible Font Name 11-42 XW (x-windows font name) 11-42 Font ID command 9-4 font name, user designated (ASC16) 11-33 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 379
10 horizontal tab 6-9 HP customer support Customer Support-1 HP Distribution Customer Support-2 HP FIRST fax line Customer Support-2 HP Forum, CompuServe Customer Support-1 HP Personal Peripherals Assist Line Customer Support-2 HP 21-10 drawing rectangles 21-3 drawing wedges 21-6 effective window 17- - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 380
command 19-23, 19-36 Input Window (IW) command 17-19, 19-29 Inquire Status Readback Entity command 16-10 integer 17-10 Intellifont coordinate system 11-4 font header 11-10, 11-11 global data size 11-35 scalable character descriptor 11-60 Intellifont manual x interface connector Glossary-6 interface - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 381
text (HP-GL/2) 23-1, 23-3, 23-8 Label (LB) command 23-3, 23-59 Label Origin (LO) command 23-10, 23-62 labeling, pen movement 23-24 landscape (defined) Glossary-8 character data example 11-73 orientation 5-5 print boundaries 2-8 LaserJet customer assistance Customer Support-1 printer features v last - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 382
Master Symbol List (defined) Glossary-8 symbol index 11-35, 11-36 symbol index example 10-14 symbol index numbers 9-11 N negative angle of rotation 20-7, Glossary-8 nesting, macro 12-7 networking, printer status 16-2 none, status readback error 16-19 non-volatile RAM Glossary-8 non-zero winding fill - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 383
5-11, 5-19 skip 5-11 Perforation Skip command 5-19 performance, printer 24-10 permanent fonts 9-3, 9-5 status readback 16-8 permanent macros 12-5 PF (PS-Compatible Font Name) 11-42 PG command 19-33 phone support, HP Customer Support-2 physical coordinate system 11-4 physical page (defined) 2-7 size - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 384
21-1, 21-2 buffer use 21-14 counting points in 21-15 definition commands summary 21-10 drawing circles in polygon mode 21-14 filling 21-12 mode 21-1, 21-10 Polygon Group HP-GL/2 commands 21-1 Polygon Group (HP-GL/2 commands) 17-4 Polygon Mode (PM) command 21-34 Polyline Encoded (PE) command 20-34 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 385
10 program language 1-1 resets 3-8 printer commands combining 1-8 shortening 1-8 Printer Job Language (PJL) commands 1-4 Printer Reset command 4-2 printing a character 9-13 control codes 8-28, 23-86, 24-12 different characters 7-1 duplex 4-5 fixed Data command 15-29 vs. HP-GL/2 graphics, when to use - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 386
10 Vertical Size command 14-4 reducing/enlarging HP-GL/2 images 19-8 registration text 4-7 Top Offset command 4-8 related manuals x !!Intellifont Scalable Typeface Format!! x !!PCL 5 Comparison Guide -11 cold 3-9 key 3-8 margins 5-15 printer 3-8 Reset command 19-3 resetting environments 3-8 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 387
10 HP-GL/2 23-56 HP-GL/2) 23-18 secured paper HP-GL/2 drawing 19-9 SL command 23-8, 23-78 example 23-79 slant, character 23-8, 23-78 SM command 22-35 SO (Shift Out) 8-5 soft font Glossary-13 soft fonts 7-2 creation 11-1 status readback 16-13 soft symbol sets 10-12 soft-clip window 17-19, 18-8, 18-10 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 388
subpolygons 21-11 summaries, chapter vi support, HP customer assistance Customer Support-1 SV command 22-39 sweep angle 21-6 in wedges 21-28 symbol collection 9-9, 10-7 symbol index Glossary-13 examples 10-13, 10-14 number 10-11 numbers and character codes 9-11 symbol map 10-11 symbol mode 20-44, 20 - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 389
and placing 23-10 path 23-46 placing HP-GL/2 23-9 positioning 4-7, 4-8 printing 5-11 printing (HP-GL/2) 23 11-64 troubleshooting (auto-continue mode) 24-14 Troubleshooting command 24- 10-1 selection 9-8 status readback 16-13 symbol collections 9-9 symbol set mapping 9-11 typeface 9-8 underline fixed - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 390
22 units coordinate system 6-3 cursor positioning 6-3 design window 11-4 internal printer 2-5 of measure (HP-GL/2) 17-20 PCL coordinate system 2-5 Universal Exit Language (UEL) Glossary-14 Universal Exit Language command 4-3 unsigned byte (UB) 10-5, 11-14 character descriptor 11-51 unsigned integer - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 391
14-9, 14-10 white rule 13-12 width character descriptor 11-57 lines 22-5 pixel, user-defined pattern descriptor 13-18 type (font header) 11-23 windowing 19-18 coordinate system 2-5 units 6-3 xHeight, font header 11-22 XW (x-windows font name), format of data segment 11-42 XY coordinate data, - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 392
Index-24 EN - HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 393
- HP LaserJet 4100 | HP PCL/PJL reference (PCL 5 Printer Language) - Technical Ref - Page 394
Part
I
I