USING THE UL COMMAND The User-Defined Line Type ( UL ) command allows you to define and store your own line types. The command does not itself select a line type, it only defines it. To select a line type use the Line Type ( LT ) command. For more information see the PCL 5 Printer Language Technical Reference Manual. The syntax for the UL command is as follows: UL index,[gap1,...gap20]; or UL; PARAMETERS: Index Identifies the number of the line type to be redefined. Gaps Specifies alternate pen down and pen up stretches in the line type pattern; if gaps are numbered starting with1, odd numbered gaps are pen up moves. The first gap is a pen down move. A maximum of 20 gaps are allowed for each user-defined line type. PROGRAM: LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT. EcE Resets the printer. Ec%0B Enters HP-GL/2 mode. IN; Initializes HP-GL/2 mode. SP1; Selects pen number 1, (black). Even though there is no physical pen, the SP command must be used to enable printing. PA4000,3000; Specifies absolute plotting and moves to (4000,3000). UL8,0,15,0,15,0,15,40,15; Redefines the user- defined line type with an index number of 8; specifies the lines and spaces as follows, in percentages of the line distance: gap1 as a dot (0%), gap2 as a space (15%), gap3 as a dot (0%), gap4 as a space (15%), gap5 as a dot (0%), gap6 as a space (15%), gap7 as a line (40%), and gap8 as a space (15%). LT8,10;PU2000,2500;PD5000,2500; Specifies line type number8 (just defined), with a pattern length of 10% of the distance between P1 and P2, (in this case, the lower-left and upper-right corners of the PCL picture frame); lifts the pen and moves to (2000,2500); sets the pen down to draw a line to (5000,2500). Ec%0A Enters the PCL mode. EcE Sends a reset to end the job and eject the 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/lj2011.asc, 4KB, , updated: 1993/11/15 17:21, local time: 2019/3/22 13:41,
|©2019 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.sxlist.com/techref/language/pcl/lj2011.asc"> language pcl lj2011</A>
|Did you find what you needed?|
Welcome to sxlist.com!
& kind contributors
just like you!
Please don't rip/copy
Copies of the site on CD
are available at minimal cost.
Welcome to www.sxlist.com!