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
  • Maybe

    UNTIL/ UNTIL/[COLOR=#E74C3C]([/COLOR]BORE.D.OUTTOL==0 OR START_ANG==45[COLOR=#E74C3C])[/COLOR]


    A heads-up, do note with this code the START_ANG can be 40° then adds 5° to become 45° but will never be measured with START_ANG at 45°. To solve that, put the

    ASSIGN/START_ANG=START_ANG+5


    after the UNTIL-clause (at the bottom).


     This code works perfect.
    Thank you to everyone for your help! And a big high five to VPT.SE
Reply
  • Maybe

    UNTIL/ UNTIL/[COLOR=#E74C3C]([/COLOR]BORE.D.OUTTOL==0 OR START_ANG==45[COLOR=#E74C3C])[/COLOR]


    A heads-up, do note with this code the START_ANG can be 40° then adds 5° to become 45° but will never be measured with START_ANG at 45°. To solve that, put the

    ASSIGN/START_ANG=START_ANG+5


    after the UNTIL-clause (at the bottom).


     This code works perfect.
    Thank you to everyone for your help! And a big high five to VPT.SE
Children
No Data