
Revision C 16/01/96
Chapter 9 "HP-GL" 8
2.2. Plot area and unit setting instructions
Instruction
Function
IP
Scaling point
SC
Scale
IW
Input window
RO
Rotate coordinate system
PG
Page output
IP - Input Scaling Point
IP [ P1
X
, P1
Y
[,P2
X,
P2
Y
]] [;]
P1
X
;
X
coordinate of P1
P1
Y
;
Y
coordinate of P1
P2
X
;
X
coordinate of P2
P2
Y
;
Y
coordinate of P2
•
The coordinate values used are absolute values in graphics units.
•
Sets the location of the scaling points(P1,P2).
•
Coordinate values for P1
X
,P1
Y,
P2
X
and P2
Y
are given as integer numbers.
The IP instruction is ignored when the set coordinates are outside the print area.
•
Using this instruction without a parameter field initializes the scaling points(P1,P2).
•
P2
X
and P2
Y
may be omitted. (If P2
X
and P2
Y
are omitted, P2 is set automatically so as not to alter the
distance between P1 and P2).
SC - Scale
SC
Xmin, Xmax, Ymin, Ymax
Xmin ; X coordinate of P1
Xmax ; X coordinate of P2
Ymin ; Y coordinate of P1
Ymax ; Y coordinate of P2
•
Sets the scale for the coordinates the user wants to establish.
•
Coordinate values for Xmin, Xmax, Ymin, and Ymax are given as real numbers.
•
Using this instruction without a parameter field turns the scaling off.
•
The technical terms, user unit and graphics unit, used in this manual are defined as follows;
User unit
: the unit of the coordinates set by the SC instruction
Graphics unit
: the unit (1/1016 of an inch) of the coordinates not set by the SC instruction
10 '*** SCEX ***
20 LPRINT "IN; IP3000,2000,4500,3500;SP1;SC0,120,0,120;"
30 FOR T=0 TO 2*3.1416+3.1416/20 STEP 3.1416/20
40 X=COS(T)*100
50 Y=SIN(T)*100
60 LPRINT "PA";X;",";Y;";PD;"
70 NEXT T
80 LPRINT "PU;"
90 END
<Sample 61>
Summary of Contents for HL- SERIES
Page 13: ...Revision A 16 01 96 Chapter 1 Introduction ...
Page 16: ...Revision C 16 01 96 Chapter 2 PCL 1 Chapter 2 PCL ...
Page 123: ...Revision C 16 01 96 Chapter 2 PCL 3 W width raster area 78 Y y offset raster 79 ...
Page 124: ...Revision C 16 01 96 Chapter 3 PJL 1 Chapter 3 PJL Printer Job Language ...
Page 180: ...Revision C 16 01 96 Chapter 4 Diablo 630 1 Chapter 4 Diablo 630 ...
Page 200: ...Revision C 16 01 96 Chapter 5 EPSON FX 850 1 Chapter 5 EPSON FX 850 ...
Page 237: ...Revision C 16 01 96 Chapter 6 IBM Proprinter XL 1 Chapter 6 IBM Proprinter XL ...
Page 259: ...Revision C 16 01 96 Chapter 7 Bar Codes Control 1 Chapter 7 Bar Code Control ...
Page 267: ...Revision C 16 01 96 Chapter 8 HP GL2 1 CHAPTER 8 HP GL 2 Graphics Language ...
Page 280: ...Revision C 16 01 96 Chapter 8 HP GL2 14 220 END Sample 21 ...
Page 328: ...Revision C 16 01 96 Chapter 9 HP GL 1 CHAPTER 9 HP GL Graphics Language ...
Page 342: ...Revision C 16 01 96 Chapter 9 HP GL 15 Sample 68 ...
Page 387: ...Revision C 16 01 96 APPENDIX A COMPALISON LIST 24 RESOLUTION 300 600 300 600 300 600 ...