Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
SIMPLE DRAWING IN HP-GL/2 This example will draw a box with a circle in the center. For more information see the PCL 5 Printer Language Technical Reference Manual. CREATING A SIMPLE DRAWING: LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT EcE Resets the printer. Ec&l2A Sets the page size to letter. Ec&l0O Specifies portrait orientation. Ec*c3600x3600Y Specifies a 5" wide by 5" high PCL Picture Frame (5 inches x 720 decipoints/in = 3600 decipoints). Ec*p450x675Y Moves the cursor to the point you want at the picture frame anchor point. Ec*c0T Sets the picture frame anchor point to the cursor position. Ec%1B Enters HP-GL/2 mode with the cursor (pen) at the PCL cursor position. In this example, the cursor is at the picture frame anchor point 450 dots (1.5 in.) down from the top margin and 675 dots (2.25 in.) to the right of the left logical page boundary. IN;SP1; (IN) Initializes HP-GL/2 command values and (SP) selects 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,0,100; Sets up user scaling so that P1 is (0,0) and P2 is (100,100). These points are the lower-left and upper-right corners of the PCL Picture Frame, respectively. PD100,0,100,100,0,100,0,0; Draws a box marking the perimeter of the PCL Picture Frame. (It is important to note that this line is being drawn on the border of the Picture Frame, and any line drawn on the border of the frame will be clipped, producing a line width one-half of the defined pen width.) PU50,50;CI25; Lifts the pen and moves to the center of the PCL Picture Frame (50,50); draws a circle with a 25 unit radius. Ec%1A Enters the PCL Mode with the cursor at the current HP-GL/2 pen position. EcE Resets the printer to end the job and eject a page. Copyright Hewlett-Packard Co. 1993 The information contained herein is subject to change without notice. Hewlett-Packard shall not be liable for incidental or consequential damages in connection with the use of this material.