# HPGL - Hewlett Packard Graphics Language

```esc%B[{	| PE[parm];
| LB[text]etx
| CO"[text]"
| }
mn[parm [,parm]]
];

i<var> ? @REM "integer +/-20^30"
ci<var> ? @REM "clamped integer +/-20^15"
r<var> ? @REM "Real +/-2^30"
cr<var> ? @REM "clamped real +/-20^15"
```
Type bits from to values
Menomic first letter 4 40h 5Eh A,B,C,D,E,F,I,L,P,R,S,T,U,W
Menomic second letter 5 40h 5Eh A,B,C,D,E,FG,I,L,M,N,O,P,R,S,T,U,V,W,Z
value 15-30 -2^30 +2^30 May have a decimal.
```
Command				defaults (Range)	Description
------------------------------	-----------------------	--------------------------------------------------------
AA x, y, a [,b];					Arc Absolute): Angle is a floating point # (requires non integer value) Draws an arc with the center at (X,Y) and a positive angle creates a counter-clockwise arc. If the chord angle is specified, this will be the number of degrees used for stepping around the arc. If no value is given then a default value of five degrees is used.
AR Dx, Dy, a [, b];					Arc Relative): Angle is a floating point # (requires non integer value)Draws an arc with the center at offset (X,Y) . A positive angle creates a counter-clockwise arc. If the chord angle is specified, this will be the number of degrees used for stepping around the arc. If no value is given then a default value of five degrees is used.
CA [n];							Alternate Character Set
CI r [,b]; 						Circle
CO "text"						Comment
CP [h,v]			[-127.9999 .. 127.9999]	Character Plot
CS [n]							Standard Character Set
DC 							Digitize Clear
DP 							Digitize Point
DF							Default Values (except for P1 and P2)
IN							Initialize
IP [iXP1,iYP1[,iXP2,iYP2]] 				Set P1[,P2] to values or to defaults
IR [iXP1,iYP1[,iXP2,iYP2]] 	100%,100% (0-100%)	Set P1[,P2] to a percentage of the PCL picture frame
IW [iXLL,iYLL,iXUR,iYUR]				Set Input Window to values or to defaults
LM1 							Undocumented. Used with label command. Sets 8 bits per character
LM2 							Undocumented. Used with label command. Sets 16 bits per character.
RO [ciAngle]			0 (90,180,270)		Rotate Coordinate System
RP							Replot
RT							Relative ARC three point
SC rXmin,rXmax,rYmin,rYmax[,ciType[,crLeft[,crBottom]

more later... ...or sooner if you would like to help. Also check HPGL Commands

```

Questions:

Please help me to differentiate between a file in the HPGL format and HPGL-2 format.I have come across files with .hpgl,.hpg extentions but how do we identify whether a given file is in the HPGL format or HPGL-2 format.Please help me in this regard.

Thanks and Regards
Arun Kumar

James Newton replies: The difference is in the commands that will be inside the file. There are some commands that were introduced in HPGL2 that did not exist in HPGL. Sadly, I do not have a list of what commands those are. If you do find such a list, please consider sharing it with us here.+

James Newton replies: I do have a partial list here: HPGL2 commands not supported in HPGL+

+

We are using a PCL macro to make a form for paystubs on a payroll check printer. I need to move the boxes that are drawn with HP-GL down the page about a quarter inch in order for everything to line up correctly. I've tried to find out on my own how to accomplish this, but haven't been able to get the desired result. Can you tell me what command would accomplish this and where to insert it into the code? Thank you

jgamroth

James Newton replies: The HPGL must be modified to change the locations where it prints the form elements. This is not a small job. Contact us directly for a quote.+

+

http://www.tanyageo.com Hi,

I would like to cut apparel patterns thru a cutting Plotter.
A sample file is given below. This is intended to cut a rectangle. But It plots a rectangle but does NOT cut. Pls guide me what command to use for enabling the blade movement.

"
IN;

IP0,0,1016,1016;

SC0,1000,0,1000;

SP1;PU0,0;PD15039,0,15039,25000,0,25000,0,0;PU;

DI1.000,0.000;SI0.427,0.640;LO5;PU7519,7519;LB3T

PU19,19;PD19,15019,15019,15019,15019,19,19,19;PU;

LO1;PU6219,25882;LBMODEL:SZ/QTY:A:3T/1;PU6219,25126;LBW=25.000IN L=0YD 15.040IN U=59.842%

PU14787,25126;

"
Thank you,
ganesan.

James Newton replies: There is no standard command in HPGL (that I am aware of) to enable cutting vs plotting. The command you are looking for is probably specific to the machine you are using. Can you find a sample file that does cut?+

+

• ~NOSPAM~kkirkland at KILLspamvvinc.net asks: " I've seen references to rotating text in HP/GL. How is this done?" +Using the Relative Direction ( DR ) command

• Sorry, but I have a last (?) question : I use HPGL(2) in 2D mode, and I want initialise the axis so that the origin is in the upper left corner, the X-axis oriented to the right, and the Y-axis oriented down. How can I do ? Is the IP command helpful for this operation ?
My email is : Bellotr@aol.com
+
• I want to use HPGL to draw rectangles and write text inside. I guess I know the commands to draw lines (PA, PU, PD...) but I can't manage to find the commands to :
-define the size of characters
-define the position of the beginning of text (PA ??)
-write the text at the appropriate place
Can you help me ?
My email is : Bellotr@aol.com
Thanks a lot

Peter Buch replies: Please refer to http://www.proka.de/SERVICE/Edvinfos/doku/HPGL.pdf+

+

• ~NOSPAM~berndklein at KILLspamgmx.de asks: " Hi, very interesting your site. Is this site available in PDF?"

James Newton replies: The site is available in HTML on CD. See: Don't rip this site for more information., +

• how can I make an arc with flat not rounded ends?

+

 file: /Techref/language/hpgl.htm, 13KB, , updated: 2011/1/18 19:02, local time: 2019/12/6 21:27, owner: peter_buch-dlr-, TOP NEW HELP FIND:  35.172.217.40:LOG IN

 ©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?Please DO link to this page! Digg it! / MAKE! /  HPGL - Hewlett Packard Graphics Language

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
 Did you find what you needed? "No. I'm looking for: " "No. Take me to the search page." "No. Take me to the top so I can drill down by catagory" "No. I'm willing to pay for help, please refer me to a qualified consultant" "No. But I'm interested. me at when this page is expanded."

.