首页/文章/ 详情

RationalDMIS DMISBasicCommands

1月前浏览947

DMIS SYNTAX Some DMIS rules

1. DMIS is not case sensitive 


2. Major words 2 to 6 characters, Minor words 1 to 6 characters 

3. Major word may be a DMIS statement or a class of command 


4. All variables are declared , start with a letter should not used , DMIS reserved words.


5. Maximum # of characters per lines is 80 and per statement is 256.


6. Maximum # of characters of the variable name is 16 .




Messages:


Operator message: TEXT/OPER, PLACE SENSOR CLOSE TO LEFT CORNER'


Output file message: TEXT/OUTFIL,' CIRCLE 1'


VARIABLES DECLARATION 


DECL/REAL, AA Declare variable , real data type.


DECL/CHAR, 10, AA Declare variable , Character data type.


DECL/INTGR, AA Declare variable , Integer data type.



Variable Input:


TEXT/QUERY, (AA) , 20, AN, L,' Insert the value of ........'


AN: ALPHANUMERIC response 


A: ALPHABETIC response


 N: NUMERIC response


 L : Left justified response 


R : Right Justified response



1. Arithmetic Operators:


+  Addition=========> WW=ASSIGN/BB+CC


-  Subtraction or Negation =========>WW=ASSIGN/BB-CC


*   Multiplication =========> WW=ASSIGN/BB* CC 


/   Division=========> WW=ASSIGN/BB/CC


* * Exponentiation=======> WW=ASSIGN/((BB-CC) * EE) ** AA)


LOOPING


 DO/index, initial, limit, increment 


              Executable statements 


ENDDO 


Note: index , initial and increment have to be integer variable.

          If the increment is omitted it's value will 1.


Ex:


DECL/REAL, XX, YY, ZZ, DD 


DECL/INTGR, II 


Do/II,1,8,1 

F(CR1)=FEAT/CIRCLE, OUTER, CART, XX, YY, ZZ, 0, 0, 1, DD                                    MEAS/CIRCLE, F (CR1),8 

ENDMES 

ENDDO


CONDITIONAL BRANCHING


IF Conditional  branching: 


 TF/ (loqical expression)


         Executable statement


          ELSE


          Executable statement


ENDIF


OPERATORS 


1. Simple Logical Operators


 EQ.     Equal to ======> IF/(B1. EQ.C1)


 . NE.  Not Equal to ====> IF/(B1. NE.C1)


. LT.    Less Than ========> IF/(B1. LT.C1) 


. LE.   Less Than or Equal to ===> IF/(B1. LE.C1) 


.GT.    Greater Than ========> IF/(B1. GT.C1) 


. GE.    Greater Than or Equal to =======> IF/(B1. GE.C1)



 2. Compound Logical Operators 


. AND. will be true if both operands are true 


. OR. will be true if either one operand is true.


. NOT. will be true if the operand is false.


SELECT Conditional branching:


SELECT/ arg


CASE/arg1


Executable statement


ENDCAS


CASE/ arg2


Executable statement


ENDCAS


DFTCAS


Executable statement


ENDCAS


ENDSEL



OBTAIN


DECL/REAL,X1, Y1, Z1 


DECL/INTGR, II


 f (pt1)=feat/point,cart, 0,0,0,0, 0, 1


 meas/point, f (pt1), 1 


endmes 


X1 = obtain/fa (pt1),3 


Y 1= obtain/fa (pt1) ,4


 Z1= obtain/fa (pt1), 5


EVAL 


Note: Where tolerance apply , OBTAIN will evaluate the tolerance statement in the last EVAL and /or OUTPUT command.


DECL/REAL, AA 


T (DTB1) = TOL/DISTB, NOMINL, 35.000000,0.000000, 0.000000, XAXIS, AVG EVAL/FA (CR1), FA (CR3), T (DTB1)


 AA=OBTAIN/TA (DTB1), 4


VALUE 


Assign a measurement or calculation result to a variable.


Example:


$s---MEASURING AND TOLERANCING A FEATURE CIRCLE --------

F(CR1) = FEAT/CIRCLE, INNER, CART, 101, 102, 103, 0, 0,1, 41 

MEAS/CIRCLE, F(CR1), 3 


PTMEAS/CART, 93.704, 121.158, 103.000, 0.356, -0.935, 0.000 


PTMEAS/CART, 88.057, 86.103, 103.000, 0.631, 0.775, 0.000 


PTMEAS/CART, 121.239, 98.739, 103.000, -0.987, 0.159, 0.000 


ENDMES 


T (TOLX) =TOL/CORTOL, XAXIS, -0.200, 0.200 


T(TOLY) = TOL/CORTOL, YAXIS, -0.300, 0.300


T (TOLZ) =TOL/CORTOL, ZAXIS, -0.400, 0.400 , 


T (TOLDIAM)  TOL/DIAM, -0.500, 0.50 


DECL/REAL, RLDEV, RLACT, RLAMT, RLSIZE, DDIAM, DDIST 

DECL/INTGR, INTOOT 


DDIAM=VALUE/FA (CR1), SIZE       $$ Assign the diameter value of CR1 to the 


variable DDIAM 


T(DTB2) TOL/DISTB, NOMINL, 200.000000,-0.010000, 0.010000, XAXIS, AVG EVAL/FA (CR1), FA (CR2) ,T (DTB2) 


DDIS-VALUE/TA (DTB2) , ACT     $$ Assign the distance actual between CR:


and CR2 to variable DDIST



$s This command will evaluate the feature (CR1) according to the

 tolerance (TOLX) specified before.

EVAL/FA (CR1) , T (TOLX)

 ss this command will assign the value of the deviation to a variable 

RLDEV=VALUE/TA (TOLX) , DEV

 $s this command will assign the value of out of tolerance to a 

variable 

RLAMT=VALUE/TA (TOLX), AMT

 $ş this command will return the value 1 if x of (CR1) is in tolerance 

and o if it is out of tolerance

 INTOOT-VALUE/TA (TOLX) , INTOL 

$$  P.S. : the variable INTOOT has to be declared as INTEGER because


 it will have the value o or 1 only


MACRO 


MACRO DEFINTITION 

M (TEST)-MACRO/X1, Y1, Z1, I, J, K, 'LABEL'

 F (LABEL)-FEAT/POINT, CART, X1, Y1, Z1, I,J, k 

MEAS/POINT, F (LABEL), 1 

PTMEAS/CART,X1,Y1, Z1,I,J, K 

ENDMES 

ENDMAC 

CALL INTERNAL MACRO:

CALL/M (TEST) , 200, 100, 200, 0, 0, 1, (POINT1)



DECLARATION OF EXTERNAL FILE:


XTERN EXTFIL/DMIS, 'C:\ DMIS\ TEST. dms'

..

ENDXTN CALL MACRO FROM EXTERNAL DMIS FILE:


CALL/EXTERN, DMIS, M (TEST1) CALL EXTERNAL SYSTEM FIIE:


CALL/EXTERN, SYS, '/WINDOWS/PBRUSH. EXE C:\ CAD\175. 

BMP'


DIRECT READ AND WRITE FROM FILE 


DID (CAP) =DEVICE/STOR, 'C:\ IVAN\ TT. TXT'


DECL/REAL,X1, X2 


DECL/INTGR, NN 


OPEN/DID (CAP), DIRECT, OUTPUT, APPEND WRITE/DID (CAP),X1,X2, NN 


OPEN/DID (CAP), DIRECT, INPUT, APPEND READ/DID (CAP),X1,X2, NN


LOADING SENSOR DATA BASE FROM THE PROGRAM


 DID (SNSBASE)=DEVICE/STOR, 'C:\ Vms \ Users\ YOUR LOGIN NAME\ sensor\ YOUR 


PROJECT NAME WHERE SENSORS EXIST. sns'


OPEN/DID(SNSBASE),SNS 


LOADING COORDINATE REFERENCE SYSTEMS DATA BASE FROM THE PROGRAM 


DID (BASE) =DEVICE/STOR, 'c:\ AA\ COORD\ TEST. CRD'


OPEN/DID (BASE), PCS



DMIS INTRINSIC FUNCTIONS

来源:山涧果子
ACTSystemUM
著作权归作者所有,欢迎分享,未经许可,不得转载
首次发布时间:2024-12-28
最近编辑:1月前
山涧果子
大专 签名征集中
获赞 204粉丝 52文章 1069课程 0
点赞
收藏
作者推荐

RationalDMIS标准球定义及测头校准

测头被用于实际测量之前,必须进行校验或校准。 校验的主要目的是计算测头的等效直径,等效直径被用来进行元素计算时作测头半径补偿用。 所以只有在进行了测头校准以后,才能正确地进行测头数据的补偿,从而测出更加准确的测量数据。 在使用机器测量工件之前,一定要先对测头进行校验,以确保测头补偿数据的准确性。 1〉在测头操作区选择“校验测头”。2〉校验规的定义“校验测头”面板有2个Tab键可以切换,分别为“探头校验”和“校验规定义”首先切换到“校验规定义”面板校验规定义各参数:D:代表校验球的直径,按照实际校验球的尺寸输入;X、Y、Z:代表校验球在机器上的坐标位置,因首次定义时这个位置是未知的,此时可以随意输入,也可以不输入任何参数;\后面会介绍软件如何自动更新\I,J,K:代表校验球的方向,一般校验规是向上的,输入为【0,0,1】;平移距离:当平移距离为0时,校验球时测点会分布在标准球的最大直径处;设置平移距离可以使测量点相对最大直径进行偏移分布;对于较短的测针可以预防 Moudle撞到标准球上.杄直径:校验球下方杄的粗细参数;对于不是【0,0】角度的测头在校验时软件会自动根据杆的直径自动调整测点的分布范围,避免撞在杆上。定义好的校验规数据会存放在探头数据区“校验规”节点下面。如图:首次校验 首次校验需要“选中更新校验规”,手动操作机器校准一遍测头。这时查看“标准球”的坐标位置,发现它会和实际标准球所在机器位置一致。提示: 不要每次校验球都选中“更新校验规”,只有标准球移动后,或者标准球定位不准确时需要选中。校验测头设置 首次校验完成后,就可以使用CNC校验,在CNC自动校验中用到了以下参数: 在“探头校验”面板点击“探头校验设置”图标,界面会自动切换到校验参数的设置窗口,在窗口中填写好相应的参数并“应用”返回“探头校验”操作面板. 校验探头设置面板用来控制CNC校验时的探头接近、回退距离、清除距离和搜索距离的参数。CNC校验在标准球定位准确后,就可以进行CNC校球。 校验之前,首先在“测头数据区”激活这个测头或者某个角度的测头,激活的测头前面会有“测头”图标。使用鼠标中键在数显上滚动出要生成的校验点数【一般为5点/9点/13点】:点击“产生点”图标,然后点击“测量”测量完成后,“接受”图标,会自动点亮,点击“接受”完成CNC校验。快捷校验在数据区的校验规节点选择点数。按住Ctrl键,将需要校验的角度选中,拖放到校验球节点上完成多个测头的一次性校验。或者按住 Shift键,同时将多个角度一起选中,拖放到校验球节点上完成多个测头的一次性校验来源:山涧果子

未登录
还没有评论
课程
培训
服务
行家
VIP会员 学习计划 福利任务
下载APP
联系我们
帮助与反馈