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.
|file: /Techref/language/pcl/lj1830.asc, 4KB, , updated: 1993/11/15 16:09, local time: 2017/12/16 20:38,
|©2017 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?|
<A HREF="http://www.piclist.com/techref/language/pcl/lj1830.asc"> language pcl lj1830</A>
|Did you find what you needed?|
PICList 2017 contributors:
o List host: MIT, Site host massmind.org, Top posters @20171216 RussellMc, Van Horn, David, Sean Breheny, James Cameron, alan.b.pearce, IVP, Neil, Bob Blick, David C Brown, John Gardner,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
Welcome to www.piclist.com!