PC-DMIS测头文件编辑指南
V1.0
PC-DMIS软件根目录下的probe.dat文件,决定了PC-DMIS测头系统的图形显示和数据表达。想要在PC-DMIS中使用测头,就要在probe.dat文件中定义。可以使用windows记事本打开这个文件进行定义和编辑。定义测头有特定的格式要求,必须严格遵守。咱们介绍一下。
主要表达方法:
Commands:
ITEM:
begintip
endtip
ribcount
line
sphere
cutsphere
cylinder
cone
ring
comment
hotspot
opticalcenter
connect
autojoint
manualjoint
face
solid
cadgeom
下面介绍这几个命令:
ITEM:TIP2BY20MM M2 第一行ITEM后面出现的第一个名字,
将在测头定义对话框中出现,
之后的M2定义了这个部件的螺纹类型
或者连接类型。
begintip 测针定义开始。
endtip 测针定义结束。
ribcount N N表示行数,2到1000.
line x1 y1 z1 x2 y2 z2 x1,y1,z1 是起始点x2,y2,z2 是结束点.
sphere x y z d x,y, & z 表示球心坐标,d表示直径。
cutsphere x y z i j k d t b x, y, z,和d 表示的内容与sphere相同,
i, j, k 表示垂直于球顶面和底面的矢量。
t, b 定义顶面和底面的位置如下:
顶面 = (x,y,z) + t * (i,j,k)
底面 = (x,y,z) - b * (i,j,k)”
cylinder x1 y1 z1 x2 y2 z2 d x1, y1, z1 表示圆柱顶面的位置 x2, y2, z2 表示圆柱底面的位置 d 表示直径。
cone x1 y1 z1 d1 x2 y2 z2 d2 x1, y1, z1表示圆锥顶面的位置, x2, y2, z2表示圆锥底面的位置,
d1 表示顶面的直径 d2 表示底面的直径。
ring x1 y1 z1 i1 j1 k1 d1 d2 x1, y1, z1 表示环中心的坐标 i1, j1, k1 相对于当前测头坐标系的环矢量 d1 表示环的外直径, d2表示环的内直径。
comment text 注释。
hotspot x1 y1 z1 i1 j1 k1 d1 t1 type
x1, y1, z1 表示测球中心,
i1, j1, k1 表示测针矢量, 一般为001,
d1 表示测球直径,
t1 表示测尖厚度(for disk probe),
type 表示测针类型 (ball, shank, disk等)。
光学的部件,引用英文的解释。
opticalcenter x1 y1 z1 i1 j1 k1 sch=1 minf maxf optics_type min_na max_na mag type
opticalcenter x1 y1 z1 i1 j1 k1 sch=2 ot magsteps fov1 fov2…fovmagsteps, na1, na2,…namagsteps, auxlensmag type
Where x1, y1, z1 are the center location of the center of the probe tip, i1, j1, k1 are the vector of the probe tip, usually 001, sch is the schema number for the optical center data, ot is the optics_type(1:encoder inifinite zoom, 2 is fixed optics, 3:nonencoder zoom, 4:encoder discrete zoom, 5 is turret microscope, 6 is DCC turret microscope), magsteps is the count of fov and numeric aperture values, fov give the X fov size for each mag step or min and max if infinite zoom, na is the numeric aperture for each mag step or those correponding to the min and max fov size if infinite zoom, auxlensmag is the magnification of any attached auxillary lens, and type is the type of probe (ball, shank, disk, camera, etc.).
connect x1 y1 z1 I1 j1 k1 take x1,y1,z1 表示连接位置的坐标 ,
I1, j1, k1 表示连接矢量,
这个矢量根据当前测头系统定义的坐标系,一般指向中心。
take 表示此处的螺纹类型或者连接类型。
autojoint x1 y1 z1 I1 j1 k1 ina inc sa ea label
x1, y1, z1 表示当前测头坐标系下连接点的位置
i1, j1, k1 当前测头坐标系下的连接矢量,
从后向前指向起始位置。 ina 表示连接处默认的初始角度, inc 表示连接的增量。
sa 表示连接的起始角度,
ea 表示连接的终止角度,
label 表示在测头定义对话框中显示的名称。
manualjoint x1 y1 z1 I1 j1 k1 ina inc sa ea label
x1, y1, z1 表示当前测头坐标系下连接点的位置
i1, j1, k1 当前测头坐标系下的连接矢量,
从后向前指向起始位置。 ina 表示连接处默认的初始角度, inc 表示连接的增量。
sa 表示连接的起始角度,
ea 表示连接的终止角度,
label 表示在测头定义对话框中显示的名称。
face N x1 y1 z1 ... xN yN zN N 表示多边形的边数。
从x1, y1, z1 到 xN, yN, zN分别表示
多边形上的各点坐标 。
solid N “solid” 和 “face”一起使用,
“N” 表示之后N个“face” 进行阴影处理。
否则以线框出现。
特殊部件,引用英文的解释
cadgeom X Y Z II IJ IK JI JJ JK KI KJ KK Level FileName
X Y Z = The coordinate transformation to move the origin of the CAD file to the start point of the drawing for the probe file.
II -> KK = Sets of 3 transformation matrices to rotate the CAD csy to the probe csy. If no changes are required, the nominal values would be
cadgeom X Y Z 1 0 0 0 1 0 0 0 1 Level FileName
Level = The CAD level number as assigned from within PC-DMIS. If no CAD level exists or if there are multiple levels, you may need to create a new level inside PC-DMIS.
FileName = A .draw file which is nothing more than a renamed .cad file.
Important note: When importing the IGES/STEP/etc. file, there is a registry entry in the OPTION section that needs to be changed.
ConvertToFacetedFaces = 1
This is normally 0 and should only be set to 1 when importing a file that will be used to create a DRAW file.