hexagon logo

Skipping a Dimension in the Report using IF Function

EDIT: Updated to revert to what I had originally posted so that others may learn from my mistake/misunderstanding of how bonus tolerance is supposed to be used.

I had originally asked the forum how to utilize the IF function to tell my program what to do in the event that a position was OUTTOL. As [USER][/USER] pointed out - I used the bonus tolerance incorrectly: I subtracted it from the measured position, which is a big no-no. You are supposed to add the bonus tolerance to the TP tolerance and use the total tolerance to determine if your measured position is still bad or becomes good.

DIM LOC43= POSITION OF CIRCLE 2_00_ID UNITS=MM ,$
GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH FIT TO DATUMS=OFF DEV PERPEN CENTERLINE=OFF DISPLAY=DIAMETER
AX NOMINAL MEAS +TOL -TOL BONUS DEV OUTTOL
Y -15.440 -15.440 0.000
DF 2.000 2.111 0.130 0.130 0.241 0.111 0.000 --------#
D1 PLANE DATUM_A AT RFS
TP MMC 0.001 0.130 0.241 0.001 0.000 #--------
END OF DIMENSION LOC43
IF/LOC43.TP.OUTTOL==0
GOTO/CONTINUE
END_IF/
IF/LOC43.TP.OUTTOL>0
ASSIGN/V4=LOC43.TP.MEAS
COMMENT/REPT,
If TP from LOC43 is big, refer to LOC43_TOTAL_TOL for the TP with bonus calculated.
ASSIGN/V5=ABS(V4-(ABS((LOC43.DF.NOM-0.13)-LOC43.DF.MEAS)))
F6 =GENERIC/POINT,DEPENDENT,CARTESIAN,$
NOM/XYZ,<V5,V5,V5>,$
MEAS/XYZ,<V5,V5,V5>,$
NOM/IJK,<0,0,1>,$
MEAS/IJK,<0,0,1>
END_IF/
DIM LOC43_TOTAL_TOL= LOCATION OF POINT F6 UNITS=MM ,$
GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
AX NOMINAL MEAS +TOL -TOL DEV OUTTOL
Y 0.241 0.241 0.050 0.050 0.000 0.000 ----#----
END OF DIMENSION LOC43_TOTAL_TOL
CONTINUE =LABEL/


Parents
  • don't ever take down your original question, there are no dumb questions here. No one here is going to <<<wait let me rephrase that, no one here is suppose to be judging your knowledge, but in turn to learn from problems such as this, one day, someone will have the same issue as yours and won't be able to get there answer because you deleted your original question. I have said plenty of WRONG things on here and felt like a fool when someone corrected me. I left it up there because someone else may cross that with the same point of view and when they see that I was incorrect they don't have to search further. No matter how dumb you think it might be, please edit your original post so others may learn.
Reply
  • don't ever take down your original question, there are no dumb questions here. No one here is going to <<<wait let me rephrase that, no one here is suppose to be judging your knowledge, but in turn to learn from problems such as this, one day, someone will have the same issue as yours and won't be able to get there answer because you deleted your original question. I have said plenty of WRONG things on here and felt like a fool when someone corrected me. I left it up there because someone else may cross that with the same point of view and when they see that I was incorrect they don't have to search further. No matter how dumb you think it might be, please edit your original post so others may learn.
Children