hexagon logo

DO/UNTIL issue.


I am trying to do a measurement routine to where it will "DO" until the part is measured not out of tolerance.
I have it set so that each iteration it makes its start point moves 22.5° This is to show that the parts do measure good but at certain instances. I've managed to do this with roundness but can't seem to get it to work with the OUTTOL.
I need it to measure until the OUTTOL measures "0.000"

ASSIGN/START_ANG=0

DO/

MOVE/CLEARPLANE

LOC1 =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
THEO/<0,0,-0.0221>,<0,0,1>,3.853
ACTL/<0,0,-0.0221>,<0,0,1>,3.853
TARG/<0,0,-0.0221>,<0,0,1>
START ANG=START_ANG,END ANG=START_ANG
ANGLE VEC=<1,0,0>
DIRECTION=CCW
SHOW FEATURE PARAMETERS=NO
SHOW CONTACT PARAMETERS=YES
NUMHITS=6DEPTH=0.4,PITCH=0
SAMPLE METHOD=SAMPLE_HITS
SAMPLE HITS=0,SPACER=0
AVOIDANCE MOVE=NO,DISTANCE=0.3937
FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
SHOW HITS=NO

MOVE/CLEARPLANE

DIM 3.8530 BORE DIA.= LOCATION OF CIRCLE LOC1 UNITS=IN ,$
GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
D 3.8530 0.0010 0.0010 3.8520 -0.0010 0.0000 <--------
END OF DIMENSION 3.8530 BORE DIA.


ASSIGN/START_ANG=START_ANG+22.5

UNTIL/LOC1.D.OUTTOL==0.0 OR START_ANG==45
Parents
  • Increase the number of hits in the circle until you don't get variation no matter where you start it, then you will have an accurate result and can pass the part if it's good or reject it if it's bad.

    If you're determined to bodge it then what bfire says will probably work.


    Although you might need DIM_38530_BORE_DIA[x].d.outtol (where x is the number of times it's executed, so you'd need a second Assignment to count that)

  • I cant get neither yours nor bfires code to work, have you tried this yourself?
    I hoping its me. im just trying to figure out a way to get the cmm to iterate until it either does x amount of times or the outtol box is no longer triggered. theres gotta be a way. The thing is the customer says if the cmm checks them in theyre good. well these are super thin walled rings that are egging when finished but they are getting pressed onto something so the functionality of the part is good its just the paperwork. along with the capabilities of being able to do this when called for.
Reply
  • I cant get neither yours nor bfires code to work, have you tried this yourself?
    I hoping its me. im just trying to figure out a way to get the cmm to iterate until it either does x amount of times or the outtol box is no longer triggered. theres gotta be a way. The thing is the customer says if the cmm checks them in theyre good. well these are super thin walled rings that are egging when finished but they are getting pressed onto something so the functionality of the part is good its just the paperwork. along with the capabilities of being able to do this when called for.
Children
No Data