hexagon logo

Find hole settings

**SOLVED**

I ended up putting a read point, origining to the read point, and measuring my diameter that way. See code below. Thanks for all of your help.

MOVE/INCREMENT,<0,0,0.25>
            MOVE/POINT,NORMAL,<-.11811,1.535434,0.25>
            MODE/MANUAL
            COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
            Lower probe into marker hole at the nose.
            Once in position, press okay to engage DCC Mode.
READPNTCIR8=FEAT/POINT,CARTESIAN
            THEO/<-0.11811,1.535434,-0.145004>,<0.0069459,-0.0013335,0.999975>
            ACTL/<-0.120565,1.539376,-0.258054>,<0.0069459,-0.0013335,0.999975>
            READPOINT/
            MODE/DCC
A3         =ALIGNMENT/START,RECALL:A6,LIST=YES
              ALIGNMENT/TRANS,ZAXIS,READPNTCIR8
            ALIGNMENT/END
CIR8       =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
            THEO/<-0.11811,1.535434,0>,<0,0,1>,0.0305
            ACTL/<-0.116791,1.5367,0>,<0,0,1>,0.030769
            TARG/<-0.11811,1.535434,0>,<0,0,1>
            START ANG=0,END ANG=360
            ANGLE VEC=<1,0,0>
            DIRECTION=CCW
            SHOW FEATURE PARAMETERS=NO
            SHOW CONTACT PARAMETERS=YES
              NUMHITS=7,DEPTH=0,PITCH=0
              SAMPLE METHOD=SAMPLE_HITS
              SAMPLE HITS=0,SPACER=0
              AVOIDANCE MOVE=NO,DISTANCE=0.393701
              FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
            SHOW HITS=NO
            RECALL/ALIGNMENT,INTERNAL,A6



PC DMIS 2017 CAD++ 2017R2 Build 1153 SP3.

Measuring a part with holes that have a Z+ surface vector. The height of the holes fluctuate plus/minus 0.050" in the Z axis (crappy roughed out 3-D printed parts supplied from an overseas customer).

How do i set up my program todo the following: Go to nominal Z height and try to measure... if it doesn't find the hole, ask me to lower or raise the probe to the center of the hole, and press go to take its measurement?

I am working offline & playing with settings but since I don't have a physical part, I am having a hard time visualizing what is actually going to happen so i decided tor reach out for help.


Thanks in advance,
-Dan
Parents
  • How about this (disregard everything about the hole except the depth variable)

    ASSIGN/PUT_THIS_IN_DEPTH=.1
                ONERROR/PROBE_MISS,SET MISSEDHOLE
    MEASHOLE   =LABEL/
    CIR1       =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                THEO/<0,-86,0>,<0,1,0>,201.234
                ACTL/<0,-86,0>,<0,1,0>,201.234
                TARG/<0,-86,0>,<0,1,0>
                START ANG=180,END ANG=360
                ANGLE VEC=<-1,0,0>
                DIRECTION=CCW
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  NUMHITS=36,DEPTH=PUT_THIS_IN_DEPTH,PITCH=0
                  SAMPLE METHOD=SAMPLE_HITS
                  SAMPLE HITS=0,SPACER=6.35
                  AVOIDANCE MOVE=BOTH,DISTANCE=9.525
                  FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                SHOW HITS=NO
                IF/MISSEDHOLE==1
                  ASSIGN/PUT_THIS_IN_DEPTH=PUT_THIS_IN_DEPTH+.05
                GOTO/MEASHOLE
                END_IF/
                ONERROR/PROBE_MISS,OFF
Reply
  • How about this (disregard everything about the hole except the depth variable)

    ASSIGN/PUT_THIS_IN_DEPTH=.1
                ONERROR/PROBE_MISS,SET MISSEDHOLE
    MEASHOLE   =LABEL/
    CIR1       =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                THEO/<0,-86,0>,<0,1,0>,201.234
                ACTL/<0,-86,0>,<0,1,0>,201.234
                TARG/<0,-86,0>,<0,1,0>
                START ANG=180,END ANG=360
                ANGLE VEC=<-1,0,0>
                DIRECTION=CCW
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  NUMHITS=36,DEPTH=PUT_THIS_IN_DEPTH,PITCH=0
                  SAMPLE METHOD=SAMPLE_HITS
                  SAMPLE HITS=0,SPACER=6.35
                  AVOIDANCE MOVE=BOTH,DISTANCE=9.525
                  FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                SHOW HITS=NO
                IF/MISSEDHOLE==1
                  ASSIGN/PUT_THIS_IN_DEPTH=PUT_THIS_IN_DEPTH+.05
                GOTO/MEASHOLE
                END_IF/
                ONERROR/PROBE_MISS,OFF
Children
No Data