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: 2017/12/16 11:03,
|©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/lj2016.asc"> language pcl lj2016</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!