USING THE RELATIVE DIRECTION ( DR ) COMMAND The Relative Direction ( DR ) command specifies the direction at which characters are drawn, relative to the scaling points of P1 and P2 settings. For more information see the PCL 5 Printer Language Technical Reference Manual. The syntax for this command is as follows. DR run,rise; or DR; PARAMETERS: Run Specifies the X-component of the label direction as a percentage of the distance between P1X and P2X. Rise Specifies the Y-component of the label direction as a percentage of the distance between P1Y and P2Y. 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. PA3500,2500; Specifies absolute plotting and moves to (3500,2500). DT#,1; Defines the asterisk (#) as the label terminator, and specifies that it will not print with the "1" parameter. DR0,1;LB___1990#; Sets the label direction to print at 90 degrees, and prints "___1990". DR1,1;LB___1991#; Sets the label direction to print at 45 degrees, and prints "___1991". DR1,0;LB___1992#; Sets the label direction to print at 0 degrees, and prints "___1992". DR1,-1;LB___1993#; Changes the label direction to another 45 degree angle, (leaning the opposite way of the 1991 label). DR0,-1;LB___1994 CR#; Sets the label direction to print at another 90 degree angle, (running the opposite way from the1990 label); uses a Carriage Return (CR) to return to the previous pen location. DR-1,-1;LB___1995 CR#; Sets the label direction to print at a 225 degree angle; uses a Carriage Return (CR) to return to the previous pen location. DR-1,0;LB___1996 CR#; Sets the label direction to print at a 180 degree angle, (the label will print upside down); uses a Carriage Return (CR) to return to the previous pen location. Ec%0A Enters 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/lj2016.asc, 4KB, , updated: 1993/11/15 16:23, local time: 2018/1/20 07:31,
|©2018 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/lj2016.asc"> language pcl lj2016</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!