User manual

WinPC-NC Economy Additional Information
HPGL Syntax
The following commands represent a valid HPGL data file :
PA [x,y[,x,y]]; Move to absolute position(s)
PR [x,y[,x,y]]; Move to relative position(s)
PU [x,y[,x,y]]; Lift and move tool
PD [x,y[,x,y]]; Lower and move tool
SP x; Select tool
IP x,y,[,x,y]; Define scaling points
SC x,y,x,y; Define scaling factors
CI r[,a]; Draw complete circle
AA x,y,a[,c]; Absolute arc
AR x,y,a[,c]; Relative arc
In addition, the interpreter recognizes the following commands
although no response is produced on the machine :
DT...; LT...;
LB...; VS...;
IN...; CA...;
The following non-standard expansions can also be used :
PP; Drill hole, lower/lift tool
FCt; Wait t milliseconds
FC100,t; Wait t milliseconds
FC101,i; Wait for HIGH level at input i
FC102,i; Wait for LOW level at input i
FC200,a; Set output a to HIGH
FC201,a; Set output a to LOW
HPGL language prescribes the following syntactical rules, amongst
others, which must be observed when creating or revising the data.
There must always be a pair of coordinates x,y
All commands with coordinates must have no, one or more
coordinate pairs
Every command must be followed by a semicolon (;) or a new
command
With PA and PR, the subsequent commands are also set to
absolute or relative positioning
The last command should lift the tool (PU;)
HPGL example PU;
PA1000,1000;
SP1;
PD;
PA1000,2000;
PA2000,2000;
PA2000,1000;
PA1000,1000;
PU;
Start by lifting tool
Then move to 1000/1000
Select tool 1
Lower tool
Move square
Lift tool
- 99 -