没有合适的资源?快使用搜索试试~ 我知道了~
首页.PLT 文件格式详解
HPGL .PLT 文件格式详细描述 This "HP-GL Reference Guide" is described only within the HP-GL command and parameter which are often used. The HP-GL sample has carried the result displayed by PloView.
资源详情
资源评论
资源推荐
Returns to English HP
This "HP-GL Reference Guide" is described only within the HP-GL
command and parameter which are often used. The HP-GL sample has
carried the result displayed by PloView.
Table of contents
1. Grammar of HP-GL Command
2. Coordinate System
-Plotter coordinate system
-User coordinate system
3. Setup of Plotter
-IN(Initialize)
-DF(Defalt)
-IP(Input P1 and P2)
-SC(Scale)
4. Basic Plot Command
-SP(Select Pen)
-PU(Pen Up)
-PD(Pen Down)
-PA(Plot Absolute)
-PR(Plot Relative)
-LT(Line Type)
5. Plot of Circle, Arc, and Polygon
-CT(Chord Tolerance)
-CI(Circle)
-AA(Arc Absolute)
-AR(Arc Relative)
-FT(Fill Type)
-PT(Pen Thickness)
-WG(Fill Wedge)
-EW(Edge Wedge)
-RA(Fill Absolute)
-EA(Edge Rectangle Absolute)
-RR(Fill Rectangle Relative)
Page
1
of
26
HP
-
GL Reference Guide
2012
-
11
-
19
http://www.isoplotec.co.jp/HPGL/eHPGL.htm
-ER(Edge Rectangle Relative)
-PM(Polygon Mode)
-EP(Edge Polygon)
-FP(Fill Polygon)
6. Character Plot Command
-LB(Label)
-DT(Define Terminator)
-SI(Absolute Character Size)
-SR(Relative Character Size)
-SU(User Unit Character Size)
-SL(Character Slant)
-DI(Absolute Direction)
-DR(Relative Direction)
-DU(User Unit Direction)
-DV(Vertical Label Direction)
-LO(Label origin)
-CP(Character Plot)
-ES(Extra Space)
-BL(Buffer Label)
-PB(Print Bufferd Label)
-CS(Designate Standard Character Set)
-CA(Designate Alternate Character Set)
-SS(Select Standard Character set)
-SA(Select Alternate Character Set)
7. Change of Plot Area
-IW(Input window)
-RO(Rotate Coodinate System)
8. Plotter Control
-PG(Page)
-AF(Advance Full Page)
-NR(Not Ready)
-PS(Paper Soze)
9. Contact us
1. Grammar of HP-GL Command
The command of HP-GL consists of the command section of the alphabet of two
characters, the parameter section, and the terminator section, as shown below.
To use plural parameters for the next of the command section, it is necessary
to divide each parameter with a separator.
Example :PA5000,1000;
Page
2
of
26
HP
-
GL Reference Guide
2012
-
11
-
19
http://www.isoplotec.co.jp/HPGL/eHPGL.htm
(command) PA
(parameter) 5000
(separator) ,
(parameter) 1000
(terminator) ;
The default separator is comma and the default terminator is semicolon. In
addition, the terminator of LB and BL command is end-off text code ETX. That
is, it is 3 in an ASCII code decimal number.
Space, C/R, and L/F code are ignored except the label under LB and BL command.
The parameter which came out by the last command is remembered, and forward
parameter will be used if parameter is omitted.
Return to first
2. Coordinate System
Coordinate systems is 2-dimensional XY rectangular coordinate.
-Plotter coordinate system
XY unit of minimum plotter movement is 0.025mm. This is made into one unit and
indicated integrally. The possible range of drawing changes with plotter kinds.
-User coordinate system
Coordinates can be specified by user system of coordinates by setting up
beforehand scale and origin which are converted into plotter system of
coordinates from user system of coordinates combining IP command and SC
command. If this setup is not carried out, plotter system of coordinates will
be used. In addition to integer, X and Y of user system of coordinates can use
real number.
Return to first
3. Setup of Plotter
-IN(Initialize)
Plotter is changed into initial state.
IN;
-DF(Defalt)
Plotter is turned into normal condition.
DF;
DF command does not affect the next state. In addition, the next state also
changes IN command into initial state.
Position of P1 and P2
The present pen, its position, up/down
Page
3
of
26
HP
-
GL Reference Guide
2012
-
11
-
19
http://www.isoplotec.co.jp/HPGL/eHPGL.htm
-IP(Input P1 and P2)
It is used together with SC command which is explained by the following clause
and which sets up scale and origin position of system of coordinates. Scaling
points P1(p1x, p1y) and P2(p2x, p2y) are set up.
IP p1x,p1y,p2x,p2y;
P1(p1x, p1y) and P2(p2x, p2y) are plotter coordinates.
IP; It returns to P1 and P2 of different initial state for each plotter kind.
-SC(Scale)
To scaling points P1(p1x, p1y) and P2(p2x, p2y) set up by IP command of
preceding clause, position of user coordinates is assigned and it changes to
user system of coordinates.
SC xmin,xmax,ymin,ymax;
(xmin, ymin) of user coordinates are to P1 (p1x, p1y) of plotter coordinates,
(xmax, ymax) of user coordinates assign P2 (p2x, p2y) of plotter coordinates.
The next command is used for returning to plotter system of coordinates from
user system of coordinates.
SC;
Example 1: left figure
User system of coordinates (X: 0..100, Y:0..100) are assigned to plotter
system of coordinates (X: 0..4000, Y:0..4000). User system of coordinates
become the same unit as mm.
Example 2: right figure
User system of coordinates (X:-75..300, Y:-75..225) are assigned to plotter
system of coordinates (X:-6000..24000, Y:-6000..18000). User system of
coordinates become twice mm.
Return to first
4. Basic Plot Command
Page
4
of
26
HP
-
GL Reference Guide
2012
-
11
-
19
http://www.isoplotec.co.jp/HPGL/eHPGL.htm
-SP(Select Pen)
Pen is selected. Although the range of pen number changes with plotter kinds,
it is 0..255 at the maximum.
SP PenNumber;
SP0; It store pen which plotter has in pen plotter.
-PU(Pen Up)
Pen is raised.
PU;
Pen is raised and, next, it moves to position of coordinates (x, y). In
addition, absolute coordinate (PA command) or relative coordinate (PR command)
by which coordinates were used before is used. Initial value is absolute
coordinate.
PU x,y(,x,y...);
If plural(x, y) are continued, it will move to those positions at the order.
-PD(Pen Down)
Pen is lowered.
PD;
Pen is lowered and, next, it moves to position of coordinates (x, y). In
addition, absolute coordinate (PA command) or relative coordinate (PR command)
by which coordinates were used before is used. Initial value is absolute
coordinate.
PD x,y(,x,y...);
If plural(x, y) are continued, it will move to those positions at the order.
-PA(Plot Absolute)
Pen is moved to position of absolute coordinate (x, y).
PA x,y(,x,y...);
If plural(x, y) are continued, it will move to those positions at the order.
SamplePA.hgl: Draw rectangle.
IN;IP0,0,4000,4000;SC0,100,0,100;
SP1;
PA0,0;
PD;
PA100,0;
PA100,100;
PA0,100;
PA0,0;
PU;
Page
5
of
26
HP
-
GL Reference Guide
2012
-
11
-
19
http://www.isoplotec.co.jp/HPGL/eHPGL.htm
剩余25页未读,继续阅读
wedm
- 粉丝: 3
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1