hexagon logo

Unknown Move Point Deviation

Let me preface that I'm very new to programming, as well as, operating the CMM. So something that might seem like a obvious solution to most of you is like finding a needle in a hay stack for me, haha. Thanks!

While writing a program for a part, I have run into an issue with the probes movement. You can see, in the image above, that there is a line moving out of frame to the cylinder highlighted. I have been taught to prevent unintentional contact leading to a system crash to add a move point as seen (or use clearance planes/cube). The move point line should move all the way to the probe (indicated by the arrow), but instead stops at the question mark then deviates downwards and along the x-axis the then back towards the cylinder. The path then collides with the structure (indicated by the yellow X) and we cant be having that. My question is why? Why is it just randomly pivoting like this?

Parents
  • What is the actual XYZ of your probe in that graphic? Its hard to tell, but looks like you're wanting your X to be closer to 0. Seems like maybe you have 2 move points active, judging by the 2 zigzags in the path line.

    Other questions I have, are you using clearance planes, or clearance cube? Are you meaning to use the "Offset from feature" and "Offset Along Tip Vector" options?

    Additionally, I would suggest using Avoidance moves when measuring holes (circles/cylinders) this will help prevent crashes as well, and reduce the need for move/point commands.

  • I use clearance plane and move points between features, and I

    B1         =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                THEO/<25.2111,1.7607,0.113>,<0,0,1>,0.2
                ACTL/<25.2111,1.7607,0.113>,<0,0,1>,0.2
                TARG/<25.2111,1.7607,0.113>,<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=5,DEPTH=0.03,PITCH=0
                  SAMPLE METHOD=SAMPLE_FEATURE
                  SAMPLE FEATURE=NONE
                  AVOIDANCE MOVE=BOTH,DISTANCE BEFORE=0.1,DISTANCE AFTER=0.1
                  FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                SHOW HITS=NO
    CIR14      =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                THEO/<25.2358,0.8864,0.113>,<0,0,1>,0.4755
                ACTL/<25.2358,0.8864,0.113>,<0,0,1>,0.4755
                TARG/<25.2358,0.8864,0.113>,<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=5,DEPTH=0.03,PITCH=0
                  SAMPLE METHOD=SAMPLE_FEATURE
                  SAMPLE FEATURE=NONE
                  AVOIDANCE MOVE=BOTH,DISTANCE BEFORE=0.1,DISTANCE AFTER=0.1
                  FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                SHOW HITS=NO
                MOVE/POINT,NORMAL,<25.2358,0.8864,0.2425>
                TIP/T1A75B180, SHANKIJK=0, -0.9659, 0.2588, ANGLE=180
                MOVE/POINT,NORMAL,<0.4001,-0.5,2>
    CIR11      =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                THEO/<0.4001,0,0.66>,<0,-1,0>,0.5
                ACTL/<0.4001,0,0.66>,<0,-1,0>,0.5
                TARG/<0.4001,0,0.66>,<0,-1,0>
                START ANG=0,END ANG=360
                ANGLE VEC=<1,0,0>
                DIRECTION=CCW
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  NUMHITS=5,DEPTH=0.02,PITCH=0
                  SAMPLE METHOD=SAMPLE_FEATURE
                  SAMPLE FEATURE=NONE
                  AVOIDANCE MOVE=BOTH,DISTANCE BEFORE=0.1,DISTANCE AFTER=0.1
                  FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                SHOW HITS=NO
     use avoidance moves when creating circles/cylinders. I have linked the code for the last 3 features (including the section im having issues with). Im not sure if I am meaning to use the "offset from feature" or "offset along tip vector", as those were not things that I willfully chose to change.

Reply
  • I use clearance plane and move points between features, and I

    B1         =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                THEO/<25.2111,1.7607,0.113>,<0,0,1>,0.2
                ACTL/<25.2111,1.7607,0.113>,<0,0,1>,0.2
                TARG/<25.2111,1.7607,0.113>,<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=5,DEPTH=0.03,PITCH=0
                  SAMPLE METHOD=SAMPLE_FEATURE
                  SAMPLE FEATURE=NONE
                  AVOIDANCE MOVE=BOTH,DISTANCE BEFORE=0.1,DISTANCE AFTER=0.1
                  FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                SHOW HITS=NO
    CIR14      =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                THEO/<25.2358,0.8864,0.113>,<0,0,1>,0.4755
                ACTL/<25.2358,0.8864,0.113>,<0,0,1>,0.4755
                TARG/<25.2358,0.8864,0.113>,<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=5,DEPTH=0.03,PITCH=0
                  SAMPLE METHOD=SAMPLE_FEATURE
                  SAMPLE FEATURE=NONE
                  AVOIDANCE MOVE=BOTH,DISTANCE BEFORE=0.1,DISTANCE AFTER=0.1
                  FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                SHOW HITS=NO
                MOVE/POINT,NORMAL,<25.2358,0.8864,0.2425>
                TIP/T1A75B180, SHANKIJK=0, -0.9659, 0.2588, ANGLE=180
                MOVE/POINT,NORMAL,<0.4001,-0.5,2>
    CIR11      =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                THEO/<0.4001,0,0.66>,<0,-1,0>,0.5
                ACTL/<0.4001,0,0.66>,<0,-1,0>,0.5
                TARG/<0.4001,0,0.66>,<0,-1,0>
                START ANG=0,END ANG=360
                ANGLE VEC=<1,0,0>
                DIRECTION=CCW
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  NUMHITS=5,DEPTH=0.02,PITCH=0
                  SAMPLE METHOD=SAMPLE_FEATURE
                  SAMPLE FEATURE=NONE
                  AVOIDANCE MOVE=BOTH,DISTANCE BEFORE=0.1,DISTANCE AFTER=0.1
                  FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                SHOW HITS=NO
     use avoidance moves when creating circles/cylinders. I have linked the code for the last 3 features (including the section im having issues with). Im not sure if I am meaning to use the "offset from feature" or "offset along tip vector", as those were not things that I willfully chose to change.

Children
  • I recreated this in a blank program, and my pathline looks correct.... not sure why yours has the extra move in there if there's no code for that. I will say though I have seen some issues with PC-DMIS displaying incorrect pathlines while online, and program already has measured values. but I'm not sure if thats the case here for you. Here's what the path looks like for me.

    and this is the code, for you to double check:

    CIR14      =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                THEO/<25.2358,0.8864,0.113>,<0,0,1>,0.4755
                ACTL/<25.2358,0.8864,0.113>,<0,0,1>,0.4755
                TARG/<25.2358,0.8864,0.113>,<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=5,DEPTH=0.03,PITCH=0
                  SAMPLE METHOD=SAMPLE_HITS
                  SAMPLE HITS=0,SPACER=0.1
                  AVOIDANCE MOVE=BOTH,DISTANCE BEFORE=0.1,DISTANCE AFTER=0.1,DIRECTION=ALONG FEATURE VECTOR
                  FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                SHOW HITS=NO
                MOVE/POINT,NORMAL,<25.2358,0.8864,0.2425>
                TIP/T1A75B180, SHANKIJK=0.904, 0.0958, 0.41666, ANGLE=-111.04988
                MOVE/POINT,NORMAL,<0.4001,-0.5,2>
    CIR11      =FEAT/CONTACT/CIRCLE/DEFAULT,CARTESIAN,IN,LEAST_SQR
                THEO/<0.401,0,0.66>,<0,-1,0>,0.5
                ACTL/<0.401,0,0.66>,<0,-1,0>,0.5
                TARG/<0.401,0,0.66>,<0,-1,0>
                START ANG=0,END ANG=360
                ANGLE VEC=<1,0,0>
                DIRECTION=CCW
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=YES
                  NUMHITS=5,DEPTH=0.02,PITCH=0
                  SAMPLE METHOD=SAMPLE_HITS
                  SAMPLE HITS=0,SPACER=0.1
                  AVOIDANCE MOVE=BOTH,DISTANCE BEFORE=0.1,DISTANCE AFTER=0.1,DIRECTION=ALONG FEATURE VECTOR
                  FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
                SHOW HITS=NO

    As  has said, it would be beneficial to use a 90 deg angle for this hole, instead of 75.

    Also one other note, if you'd like to save a little time on your programs, turn off the Avoidance move for Vector Points.