首页/文章/ 详情

RationalDMIS 2020最大直径/最小直径输出(LP两点直径)文本+图形报告

1年前浏览1716

相关文章,在仿真秀官网搜索:

RationalDMIS7.0输出最大最小直径

RationalDMIS快速输出多元素最大最小直径(半径,XYZ坐标,点轮廓度(T值))

RationalDMIS 2020 脱机编程:特征采集 2021

RationalDMIS 2020 脱机编程 2021最详细

RationalDMIS 2020 自学习编程详解


1.输出文本报告:


直径公差窗口最大/最小直径计算选项:


                 可以同时输出一个圆的平均、最小直径和最大直径以及最大最小LP直径。


直径公差:


公差名:长度是1-64个字符.合法字符有字母(A-Z, a-z),数字(0-9),破折线‘—’,句号‘.,和下划线‘_’,

元素名:可以拖放的元素类型为 圆、圆柱、球

上下公差:按照图纸要求填写

ISO公差:ISO定义的标准上下公差范围,直径在3MM-50MM范围之内时可用。

实际:实际直径尺寸

偏差:直径偏差        

定义公差:可以在元素公差区定义一个公差标签

接受:计算元素的直径公差,并记录到元素数据区




T(TDM1)=TOL/DIAM,0.0200,0.0500

OUTPUT/FA(Scan-1),TA(TDM1)

T(TDM4)=TOL/DIAM,0.0200,0.0500,MIN

OUTPUT/FA(Scan-1),TA(TDM4)

T(TDM5)=TOL/DIAM,0.0200,0.0500,MAX

OUTPUT/FA(Scan-1),TA(TDM5)


T(TDM7)=TOL/DIAM,0.0200,0.0500,DIAMLP

OUTPUT/FA(Scan-1),TA(TDM7)

2.输出图形报告


输出——模板输出 PDF模板:支持显示圆的最大、最小和平均直径。


附注:


圆的算法可以根据程序进行选择,有4种算法可供选择:



最小外接圆:(最小覆盖圆)将所有的测量点都包含在圆内,直径最小的那个圆。


最大内接圆:(最大空圆)所有测量点都在圆外,直径最大的那个圆。


最小区域圆:(最小半径)从这个圆的圆心出发,画两个同心圆,将所有测量点都包含在这两个同心圆内,在所有符合上面条件的同心圆中,径向距离最小的那一组。


最小二乘圆:(最小平方差)所有测量点到该圆的距离平方和最小。


(1)最小二乘方(LEAST_SQR):


     利用此方法可以最小化从数据点到圆的均乘方半径距离,是目前而言应用最通用的一种拟合方法。一般未加标注时,都默认为最小二乘,此外,当测量重点在圆心与直径时,优先选用此种方法。


(2)最小间隔(MIN_SEP):


   相比较于最小二乘法的局部误差平方和最小,最小间隔法控制的是距离最小;此外,用最小区域法评定的圆度误差一般比最小二乘法、最小外接圆法和最大内切圆法评定的圆度误差小,因此,当测量重点为圆度误差时,应优先选用最小间隔法。


(3)最大内切(MAX_INSC):


    最大内切是拟合出了一个数据范围内最大可能直径的空白圆。因此其最常用在装配孔,如在过盈配合中,当基准轴一定时,我们需要加工一个最大内切圆径超过基准轴径的孔,以确保能达到装配需求,如轴套等。


(4)最小外接(MIN_CIRCSC)


    最小外接是拟合出了一个能包容测量数据直径最小的圆。与最大内切相对应,最小外接最常用在装配轴上,确保其能装入已加工好的基准孔,如某些轴类标准件、光轴、活塞销等。



DMISMN/'Created by [山涧果子] on Saturday, October 17, 2020', 4.0

UNITS/MM, ANGDEC, MMPS

WKPLAN/XYPLAN

PRCOMP/ON

TECOMP/ON

FLY/1.0000

MODE/MAN

SNSET/APPRCH, 2.0000

SNSET/RETRCT, 2.0000

SNSET/DEPTH, 0.0000

SNSET/SEARCH, 10.0000

SNSET/CLRSRF, 18.0000

RECALL/D(MCS)

SNSLCT/S(L30-D2_5_1_30_2)

GEOALG/BF, LSTSQR

GEOALG/ANGLB, DEFALT

GEOALG/CIRCLE, LSTSQR

GEOALG/ARC, LSTSQR

GEOALG/PLANE, LSTSQR

$$

$$

$$*/

MODE/MAN

F(PLN1)=FEAT/PLANE,CART,275.2016,144.9727,3.3391,-0.0002,-0.0001,1.0000

$$ Measurement points are created through actual points

MEAS/PLANE, F(PLN1), 3

  PTMEAS/CART, 194.6380, 266.1293, 3.3409, -0.0002, -0.0001, 1.0000

  PTMEAS/CART, 202.9958,  84.3931, 3.3165, -0.0002, -0.0001, 1.0000

  PTMEAS/CART, 427.9709,  84.3956, 3.3601, -0.0002, -0.0001, 1.0000

ENDMES

D(CRD1) = DATSET/FA(PLN1), ZDIR

F(LN1)=FEAT/LINE,BND,CART,468.1440,114.4398,-0.5649,467.6449,216.5937,-0.5851,1.0000,0.0049,0.0000

$$ Measurement points are created through actual points

MEAS/LINE, F(LN1), 2

  PTMEAS/CART, 468.1440, 114.4398, -0.5649, 1.0000, 0.0049, 0.0000

  PTMEAS/CART, 467.6449, 216.5937, -0.5851, 1.0000, 0.0049, 0.0000

ENDMES

D(CRD2) = ROTATE/ZAXIS, FA(LN1), XDIR

F(PT1)=FEAT/POINT,CART,75.5904,-445.8533,-3.5798,-1.0000,-0.0000,0.0000

MEAS/POINT, F(PT1), 1

  PTMEAS/CART, 75.5904,-445.8533,-3.5798,-1.0000,-0.0000,0.0000

ENDMES

D(CRD3) = TRANS/XORIG, FA(PT1), YORIG, FA(LN1), ZORIG, FA(PLN1)

$$ Set.CAD2PCS.CADM_1

MODE/PROG,MAN

$$ MACRO: EASI_CLEARPLN_GOTO

$$ FUNCTION: CLEARANCE SURFACE IMPLEMENTATION

$$      Move machine CLEAR SURFACE DIST above the current clear surface 

$$ plane and then move machine parallel to the clear surface plane 

$$ ALL Macro parameters are in PCS and Current UNITS

$$ Last update: 3-1-04 Add mode checking. only works in PROG MODE

$$ Last update: 8-24-04 Clear position is based on the surface of

$$

$$ This sample DMIS Macro is provided by External-Array Software, Inc.

$$ It should be modified for your own use. There is no guarantee for

$$ the quality of this Macro. November, 2003


M(EASI_CLEARPLN_GOTO) = MACRO/ISNOM, TARX, TARY, TARZ

DECL/LOCAL, REAL, CCX, CCY, CCZ, CCI, CCJ, CCK

DECL/LOCAL, REAL, CURX, CURY, CURZ, TD, CLRDIST, SDIAM

DECL/LOCAL, CHAR, 255, CLRLABEL, FLABEL, MMODE, SNAME


MMODE = VALUE/MODE

CLRLABEL = VALUE/SNSET, CLRSRF

IF/ ( (LEN(CLRLABEL) .GT. 0) .AND. (MMODE .EQ. 'PROG,MAN') )

CLRDIST = VALUE/SNSET, CLRSRF, DIST

FLABEL = ASSIGN/'FA'

IF/ ISNOM .EQ. 0

FLABEL = ASSIGN/'F'

ENDIF

CCX = OBTAIN/FLABEL(@CLRLABEL), 3

CCY = OBTAIN/FLABEL(@CLRLABEL), 4

CCZ = OBTAIN/FLABEL(@CLRLABEL), 5

CCI = OBTAIN/FLABEL(@CLRLABEL), 6

CCJ = OBTAIN/FLABEL(@CLRLABEL), 7

CCK = OBTAIN/FLABEL(@CLRLABEL), 8

SNAME = VALUE/SNSLCT

SDIAM = OBTAIN/SS(SNAME), 8

CCX = ASSIGN/CCX + CCI * SDIAM/2

CCY = ASSIGN/CCY + CCJ * SDIAM/2

CCZ = ASSIGN/CCZ + CCK * SDIAM/2


CURX = VALUE/GOTOM, XAXIS

CURY = VALUE/GOTOM, YAXIS

CURZ = VALUE/GOTOM, ZAXIS

TD = ASSIGN/(CURX - CCX) * CCI + (CURY - CCY) * CCJ + (CURZ - CCZ) * CCK

IF/ TD .LT. CLRDIST

TD = ASSIGN/(CLRDIST - TD)

GOTO/CURX+CCI*TD, CURY+CCJ*TD, CURZ+CCK*TD

ENDIF

TD = ASSIGN/(TARX - CCX) * CCI + (TARY - CCY) * CCJ + (TARZ - CCZ) * CCK

IF/ TD .LT. CLRDIST

TD = ASSIGN/(CLRDIST - TD)

GOTO/TARX+CCI*TD, TARY+CCJ*TD, TARZ+CCK*TD

ENDIF

ENDIF

ENDMAC

SNSET/APPRCH, 2

SNSET/RETRCT, 2

SNSET/DEPTH, 0.0000

SNSET/SEARCH, 10.0000

SNSET/CLRSRF, FA(PLN1), 20

F(PLN2)=FEAT/PLANE,CART,93.6492,149.6858,0,0.0000,-0.0000,1.0000

$$ Measurement points are created through nominal points

$$ CALL/M(EASI_CLEARPLN_GOTO), 1, 37.3942, 21.1400, 20.9991

MEAS/PLANE, F(PLN2), 10

  GOTO/CART,    37.3942,  21.1400, 20.9991

  PTMEAS/CART,  37.3942,  21.1400, -0.0000, 0.0000, 0.0000, 1.0000

  PTMEAS/CART, 111.9969,  34.8850, -0.0000, 0.0000, 0.0000, 1.0000

  PTMEAS/CART, 219.9704,  41.4180,  0.0000, 0.0000, 0.0000, 1.0000

  PTMEAS/CART, 120.5141, 106.1680, -0.0000, 0.0000, 0.0000, 1.0000

  PTMEAS/CART,  12.2102, 123.2553, -0.0000, 0.0000, 0.0000, 1.0000

  PTMEAS/CART,  12.8966, 189.2465, -0.0000, 0.0000, 0.0000, 1.0000

  PTMEAS/CART, 106.1417, 196.7029,  0.0000, 0.0000, 0.0000, 1.0000

  PTMEAS/CART,  12.0440, 263.7333, -0.0000, 0.0000, 0.0000, 1.0000

  PTMEAS/CART, 102.1316, 262.1699,  0.0000, 0.0000, 0.0000, 1.0000

  PTMEAS/CART, 201.1428, 258.1070, -0.0000, 0.0000, 0.0000, 1.0000

ENDMES

D(CRD4) = DATSET/FA(PLN2), ZDIR

F(LN2)=FEAT/LINE,BND,CART,22.4422,0.0000,-6,148.7262,0.0000,-6,-0.0000,-1.0000,-0.0000

$$ Measurement points are created through nominal points

$$ CALL/M(EASI_CLEARPLN_GOTO), 1, 201.1460, 258.1098, 20.9993

MEAS/LINE, F(LN2), 4

  GOTO/CART,   201.1460, 258.1098, 20.9993

  GOTO/CART,    22.4365,  -2.9977, 21.0012

  PTMEAS/CART,  22.4388,  -0.0000, -6.0000, -0.0000, -1.0000, 0.0000

  PTMEAS/CART,  44.1887,  -0.0000, -6.0000, -0.0000, -1.0000, 0.0000

  PTMEAS/CART,  76.5099,  -0.0000, -6.0000, -0.0000, -1.0000, 0.0000

  PTMEAS/CART, 148.7214,   0.0000, -6.0000, -0.0000, -1.0000, 0.0000

ENDMES

F(LN3)=FEAT/LINE,BND,CART,-0.0000,20.1426,-6,0.0000,264.9076,-6.0000,-1.0000,0.0000,0.0000

$$ Measurement points are created through nominal points

$$ CALL/M(EASI_CLEARPLN_GOTO), 1, 148.7243, -2.9934, 21.0122

MEAS/LINE, F(LN3), 6

  GOTO/CART,   148.7243,  -2.9934, 21.0122

  GOTO/CART,    -3.0009,  20.1438, 20.9974

  PTMEAS/CART,   0.0007,  20.1419, -6.0000, -1.0000, -0.0000, -0.0000

  PTMEAS/CART,   0.0005,  51.7475, -6.0000, -1.0000, -0.0000, -0.0000

  PTMEAS/CART,   0.0005,  92.2775, -6.0000, -1.0000, -0.0000, -0.0000

  PTMEAS/CART,   0.0006, 133.1857, -6.0000, -1.0000, -0.0000, -0.0000

  PTMEAS/CART,   0.0004, 202.6817, -6.0000, -1.0000, -0.0000, -0.0000

  PTMEAS/CART,   0.0005, 264.9077, -6.0000, -1.0000, -0.0000, -0.0000

ENDMES

F(PT_INTER1)=FEAT/POINT,CART,-0.0000,0.0000,-6.0000,-0.0000,-0.0000,1.0000

CONST/POINT,F(PT_INTER1),INTOF,FA(LN2),FA(LN3)

D(CRD5) = ROTATE/ZAXIS, FA(LN2), XDIR

D(CRD6) = TRANS/XORIG, FA(PT_INTER1), YORIG, FA(PT_INTER1), ZORIG, FA(PLN2)

F(PLN2)=FEAT/PLANE,CART,93.6492,149.6858,0.0000,0.0000,0.0000,1.0000

F(LN2)=FEAT/LINE,BND,CART,22.4422,-0.0000,-6.0000,148.7262,-0.0000,-6.0000,-0.0000,-1.0000,0.0000

F(LN3)=FEAT/LINE,BND,CART,0.0000,20.1426,-6.0000,0.0000,264.9076,-6.0000,-1.0000,-0.0000,-0.0000

$$ Set.CAD2PCS.CADM_1

MODE/PROG,MAN

SNSET/APPRCH, 2

SNSET/RETRCT, 2

SNSET/DEPTH, 0.0000

SNSET/SEARCH, 10.0000

SNSET/CLRSRF, FA(PLN2), 20

F(Scan-1)=FEAT/CIRCLE,INNER,CART,57.1500,81.2800,-4.0000,0.0000,0.0000,1.0000, 50.8000

SCNSET/DRAG, ANGLE, 0.5000

P(SCAN-1) = PATH/ARC,CART, 57.1500, 81.2800, -4.0000, 0.0000, 0.0000, 1.0000, 25.4000, 0.0000, 360.0000, -0.3112, 0.9503, 0.0000

MEAS/CIRCLE, F(Scan-1), 3

$$ CALL/M(EASI_CLEARPLN_GOTO), 1, 49.2445, 105.4184, -4.0000

  GOTO/CART,  50.1780, 102.5683, -4.0000

  PAMEAS/P(Scan-1),  0.3112, -0.9503, 0.0000

  GOTO/CART,  50.1780, 102.5683, -4.0000

ENDMES

F(Scan-2)=FEAT/CIRCLE,INNER,CART,57.1500,81.2800,-4.0000,0.0000,0.0000,1.0000, 50.8000

$$ Path label = CSP_SCAN-2

P(CSP_SCAN-2) = PATH/CURVE, $

  PTDATA, 82.5500,  81.2800, -4.0000, -1.0000,  0.0000, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 82.3502,  78.1004, -4.0000, -0.9921,  0.1252, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 81.7539,  74.9708, -4.0000, -0.9687,  0.2484, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 80.7706,  71.9404, -4.0000, -0.9299,  0.3677, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 79.4156,  69.0570, -4.0000, -0.8766,  0.4812, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 77.7104,  66.3659, -4.0000, -0.8095,  0.5872, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 75.6816,  63.9094, -4.0000, -0.7296,  0.6839, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 73.3614,  61.7262, -4.0000, -0.6382,  0.7698, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 70.7861,  59.8506, -4.0000, -0.5369,  0.8437, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 67.9962,  58.3122, -4.0000, -0.4270,  0.9042, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 65.0357,  57.1351, -4.0000, -0.3105,  0.9506, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 61.9512,  56.3379, -4.0000, -0.1890,  0.9820, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 58.7911,  55.9331, -4.0000, -0.0646,  0.9979, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 55.6052,  55.9270, -4.0000,  0.0608,  0.9981, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 52.4436,  56.3198, -4.0000,  0.1853,  0.9827, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 49.3560,  57.1053, -4.0000,  0.3068,  0.9518, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 46.3911,  58.2712, -4.0000,  0.4236,  0.9059, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 43.5954,  59.7990, -4.0000,  0.5336,  0.8457, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 41.0130,  61.6648, -4.0000,  0.6353,  0.7723, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 38.6845,  63.8391, -4.0000,  0.7270,  0.6866, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 36.6464,  66.2879, -4.0000,  0.8072,  0.5902, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 34.9310,  68.9725, -4.0000,  0.8748,  0.4845, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 33.5651,  71.8507, -4.0000,  0.9285,  0.3712, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 32.5702,  74.8773, -4.0000,  0.9677,  0.2521, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 31.9621,  78.0047, -4.0000,  0.9917,  0.1290, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 31.7502,  81.1835, -4.0000,  1.0000,  0.0038, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 31.9379,  84.3639, -4.0000,  0.9926, -0.1214, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 32.5223,  87.4957, -4.0000,  0.9696, -0.2447, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 33.4941,  90.5298, -4.0000,  0.9313, -0.3642, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 34.8381,  93.4183, -4.0000,  0.8784, -0.4779, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 36.5331,  96.1159, -4.0000,  0.8117, -0.5841, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 38.5525,  98.5801, -4.0000,  0.7322, -0.6811, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 40.8645, 100.7721, -4.0000,  0.6412, -0.7674, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 43.4326, 102.6574, -4.0000,  0.5401, -0.8416, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 46.2166, 104.2064, -4.0000,  0.4304, -0.9026, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 49.1726, 105.3948, -4.0000,  0.3141, -0.9494, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 52.2541, 106.2037, -4.0000,  0.1928, -0.9812, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 55.4126, 106.6205, -4.0000,  0.0684, -0.9977, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 58.5985, 106.6387, -4.0000, -0.0570, -0.9984, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 61.7615, 106.2579, -4.0000, -0.1816, -0.9834, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 64.8521, 105.4841, -4.0000, -0.3032, -0.9529, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 67.8214, 104.3295, -4.0000, -0.4201, -0.9075, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 70.6229, 102.8123, -4.0000, -0.5304, -0.8477, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 73.2124, 100.9564, -4.0000, -0.6324, -0.7747, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 75.5491,  98.7909, -4.0000, -0.7244, -0.6894, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 77.5965,  96.3499, -4.0000, -0.8050, -0.5933, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 79.3221,  93.6718, -4.0000, -0.8729, -0.4879, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 80.6989,  90.7988, -4.0000, -0.9271, -0.3748, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 81.7053,  87.7760, -4.0000, -0.9667, -0.2557, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 82.3253,  84.6510, -4.0000, -0.9912, -0.1327, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 82.5493,  81.4730, -4.0000, -1.0000, -0.0076, -0.0000, HEADCS, 0.0000, 0.0000, $

  PTDATA, 82.5500,  81.2800, -4.0000, -1.0000,  0.0000, -0.0000, HEADCS, 0.0000, 0.0000

SCNSET/DRAG, DIST, 0.5000

MEAS/CIRCLE, F(Scan-2), 52

  GOTO/CART,  79.5509, 81.2800, -4.0000

  PAMEAS/P(CSP_Scan-2)

  GOTO/CART,  79.5509, 81.2800, -4.0000

ENDMES


来源:RationalDMIS测量技术
通用DCS控制
著作权归作者所有,欢迎分享,未经许可,不得转载
首次发布时间:2023-07-15
最近编辑:1年前
山涧果子
大专 签名征集中
获赞 203粉丝 48文章 1203课程 0
点赞
收藏
未登录
还没有评论
课程
培训
服务
行家
VIP会员 学习 福利任务 兑换礼品
下载APP
联系我们
帮助与反馈