Your Products have been synced, click here to refresh
IF/D4.X.OUTTOL>0 OR D4.Z.OUTTOL>0 COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO, DIM D4 IS OUT OF TOLERANCE. PLEASE ADJUST AND CLICK CONTINUE GOTO/RESTART END_IF/ IF/D5.X.OUTTOL>0 OR D5.Z.OUTTOL>0 COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO, DIM D5 IS OUT OF TOLERANCE. PLEASE ADJUST AND CLICK CONTINUE GOTO/RESTART END_IF/
IF/D4.X.OUTTOL>0 OR D4.Z.OUTTOL>0 COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO, DIM D4 IS OUT OF TOLERANCE. PLEASE ADJUST AND CLICK CONTINUE GOTO/RESTART END_IF/ IF/D5.X.OUTTOL>0 OR D5.Z.OUTTOL>0 COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO, DIM D5 IS OUT OF TOLERANCE. PLEASE ADJUST AND CLICK CONTINUE GOTO/RESTART END_IF/
You don't want to use DEV because your part will have deviation from nominal. You want to use the OUTTOL. Before the comments in the IF statements, you may want to add a move point to have the probe back off so it allows the part to be adjusted. You won't need a command to "continue" because if the statement is false, the program will just continue automatically.
Also need a way to escape because of the part truly is out, you'll be stuck in an endless loop.
ASSIGN/COUNTER=0 RESTART =LABEL/ _B_ =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR THEO/<0,0,0>,<0,1,0>,10 ACTL/<0,0,0>,<0,1,0>,10 TARG/<0,0,0>,<0,1,0> START ANG=0,END ANG=0 ANGLE VEC=<0,0,1> DIRECTION=CCW SHOW FEATURE PARAMETERS=NO SHOW CONTACT PARAMETERS=YES NUMHITS=4,DEPTH=0,PITCH=0 SAMPLE METHOD=SAMPLE_HITS SAMPLE HITS=0,SPACER=2.54 AVOIDANCE MOVE=NO,DISTANCE=38.1 FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO SHOW HITS=NO DIM D4= LOCATION OF CIRCLE _B_ UNITS=MM ,$ GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO AX NOMINAL MEAS +TOL -TOL DEV OUTTOL X 0.000 0.000 0.075 0.075 0.000 0.000 ---#---- Z 0.000 0.000 0.075 0.075 0.000 0.000 ---#---- END OF DIMENSION D4 _C_ =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR THEO/<20,0,0>,<0,1,0>,10 ACTL/<20.1,0,0>,<0,1,0>,10 TARG/<20.1,0,0>,<0,1,0> START ANG=0,END ANG=0 ANGLE VEC=<0,0,1> DIRECTION=CCW SHOW FEATURE PARAMETERS=NO SHOW CONTACT PARAMETERS=YES NUMHITS=4,DEPTH=0,PITCH=0 SAMPLE METHOD=SAMPLE_HITS SAMPLE HITS=0,SPACER=2.54 AVOIDANCE MOVE=NO,DISTANCE=38.1 FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO SHOW HITS=NO DIM D5= LOCATION OF CIRCLE _C_ UNITS=MM ,$ GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO AX NOMINAL MEAS +TOL -TOL DEV OUTTOL X 20.000 20.100 0.075 0.075 0.100 0.025 -------> Z 0.000 0.000 0.075 0.075 0.000 0.000 ---#---- END OF DIMENSION D5 IF/D4.X.OUTTOL>0 OR D4.Z.OUTTOL>0 OR D5.X.OUTTOL>0 OR D5.Z.OUTTOL>0 ASSIGN/COUNTER=COUNTER+1 IF_GOTO/COUNTER==4,GOTO = CONTINUE MOVE/POINT,NORMAL,<20,15,0> COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO, DIM D4 AND/OR D5 IS OUT OF TOLERANCE. ADJUST THE PART AND CLICK OK. GOTO/RESTART END_IF/ CONTINUE =LABEL/
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |