hexagon logo

Alignment Issues

I'm having some trouble getting my Graphics Window view, and part execution alignments to match up. After I'm finished manually measuring, the program goes into DCC mode, and completely forgets where the part is. I'm not sure why this is happening or what I can do to fix it, but I will attach the coding for which I am using...


LOADPROBE/TP200-05MMX40
TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
RECALL/ALIGNMENT,EXTERNAL,a99,CENTER-SQUARE-ALIGNMENT:a99
MODE/MANUAL
MOVESPEED/ 10
CLEARP/ZPLUS,5,ZPLUS,0,ON
PREHIT/0.15
RETRACT/0.15
COMMENT/OPER,NO,EDIT PART PLACEMENT INFO
,
,WARNING:
,
,MACHINE WILL MOVE AUTOMATICALLY
,WHEN OK IS PRESSED
ROUGH TOP1 =FEAT/CONTACT/VECTOR POINT,POLAR
THEO/<3.6709,0,1.8622>,<0,0,1>
ACTL/<9.0292,37.4336,7.9694>,<-0.0008588,-0.008153,0.9999664>
TARG/<3.6709,0,1.8622>,<0,0,1>
SNAP=NO
SHOW FEATURE PARAMETERS=NO
SHOW CONTACT PARAMETERS=YES
AVOIDANCE MOVE=NO,DISTANCE=0
SHOW HITS=NO
ROUGH TOP2 =FEAT/CONTACT/VECTOR POINT,POLAR
THEO/<3.6709,90,1.8622>,<0,0,1>
ACTL/<9.2494,69.6732,7.9702>,<0.0018503,0.0047305,0.9999871>
TARG/<3.6709,90,1.8622>,<0,0,1>
SNAP=NO
SHOW FEATURE PARAMETERS=NO
SHOW CONTACT PARAMETERS=YES
AVOIDANCE MOVE=NO,DISTANCE=0
SHOW HITS=NO
ROUGH TOP3 =FEAT/CONTACT/VECTOR POINT,POLAR
THEO/<3.6709,180,1.8622>,<0,0,1>
ACTL/<4.666,91.0726,7.9687>,<-0.0177191,-0.0000724,0.999843>
TARG/<3.6709,180,1.8622>,<0,0,1>
SNAP=NO
SHOW FEATURE PARAMETERS=NO
SHOW CONTACT PARAMETERS=YES
AVOIDANCE MOVE=NO,DISTANCE=0
SHOW HITS=NO
ROUGH TOP4 =FEAT/CONTACT/VECTOR POINT,POLAR
THEO/<3.6709,270,1.8622>,<0,0,1>
ACTL/<3.5384,21.7434,7.968>,<0.0017223,-0.0017628,0.999997>
TARG/<3.6709,270,1.8622>,<0,0,1>
SNAP=NO
SHOW FEATURE PARAMETERS=NO
SHOW CONTACT PARAMETERS=YES
AVOIDANCE MOVE=NO,DISTANCE=0
SHOW HITS=NO
ROUGH TOP PLN=FEAT/PLANE,CARTESIAN,TRIANGLE,NO
THEO/<0,0,1.8622>,<0,0,1>
ACTL/<3.3955,5.0344,7.9691>,<-0.0000613,-0.0002995,1>
CONSTR/PLANE,BF,ROUGH TOP1,ROUGH TOP2,ROUGH TOP3,ROUGH TOP4,,
OUTLIER_REMOVAL/OFF,3
FILTER/OFF,WAVELENGTH=0
ROUGH -A- =FEAT/CONTACT/CIRCLE,POLAR,OUT,LEAST_SQR
THEO/<0,0,1.8425>,<0,0,1>,7.4975,0,0,360
ACTL/<6.1115,54.55,32.2592>,<0.0000425,-0.0000822,1>,7.4974,0,0,360
TARG/<0,0,1.8425>,<0,0,1>
ANGLE VEC=<1,0,0>
DIRECTION=CCW
SHOW FEATURE PARAMETERS=NO
SHOW CONTACT PARAMETERS=YES
NUMHITS=4,DEPTH=-0.1,PITCH=0
SAMPLE HITS=0,SPACER=0.08
AVOIDANCE MOVE=NO,DISTANCE=0
FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
SHOW HITS=NO
A1 =ALIGNMENT/START,RECALL:CENTER-SQUARE-ALIGNMENT:a99,LIST=YES
ALIGNMENT/LEVEL,ZPLUS,ROUGH TOP PLN
ALIGNMENT/TRANS,XAXIS,ROUGH -A-
ALIGNMENT/TRANS,YAXIS,ROUGH -A-
ALIGNMENT/TRANS,ZAXIS,ROUGH TOP PLN
ALIGNMENT/END
COMMENT/OPER,NO,PREPARE FOR DCC
MODE/DCC
MOVESPEED/ 10
CLEARP/ZPLUS,5,ZPLUS,0,ON
PREHIT/0.01
RETRACT/0.01
MOVE/CLEARPLANE
PNT1 =FEAT/CONTACT/VECTOR POINT,POLAR
THEO/<3.8381,337.7691,-1.8622>,<0,0,1>
ACTL/<3.8382,337.6546,-7.9674>,<0.000007,-0.000002,1>
TARG/<3.8381,337.7691,-1.8622>,<0,0,1>
SNAP=NO
SHOW FEATURE PARAMETERS=NO
SHOW CONTACT PARAMETERS=YES
AVOIDANCE MOVE=NO,DISTANCE=0
SHOW HITS=NO
MOVE/CLEARPLANE
PNT2 =FEAT/CONTACT/VECTOR POINT,POLAR
THEO/<3.84,20.5779,-1.8622>,<0,0,1>
ACTL/<3.6388,270.7621,-7.968>,<0.0000613,0.0002995,1>
TARG/<3.84,20.5779,-1.8622>,<0,0,1>
SNAP=NO
SHOW FEATURE PARAMETERS=NO
SHOW CONTACT PARAMETERS=YES
AVOIDANCE MOVE=NO,DISTANCE=0
SHOW HITS=NO
MOVE/CLEARPLANE
PNT3 =FEAT/CONTACT/VECTOR POINT,POLAR
THEO/<3.846,97.7464,-1.8622>,<0,0,1>
ACTL/<4.232,196.1515,-7.9685>,<0.0000613,0.0002995,1>
TARG/<3.846,97.7464,-1.8622>,<0,0,1>
SNAP=NO
SHOW FEATURE PARAMETERS=NO
SHOW CONTACT PARAMETERS=YES
AVOIDANCE MOVE=NO,DISTANCE=0
SHOW HITS=NO
MOVE/CLEARPLANE
PNT4 =FEAT/CONTACT/VECTOR POINT,POLAR
THEO/<3.84,150.6725,-1.8622>,<0,0,1>
ACTL/<7.5623,204.2614,-7.9677>,<0.0000613,0.0002995,1>
TARG/<3.84,150.6725,-1.8622>,<0,0,1>
SNAP=NO
SHOW FEATURE PARAMETERS=NO
SHOW CONTACT PARAMETERS=YES
AVOIDANCE MOVE=NO,DISTANCE=0
SHOW HITS=NO
MOVE/CLEARPLANE
PNT5 =FEAT/CONTACT/VECTOR POINT,POLAR
THEO/<3.84,240.7641,-1.8622>,<0,0,1>
ACTL/<9.9468,236.968,-7.9662>,<0.0000613,0.0002995,1>
TARG/<3.84,240.7641,-1.8622>,<0,0,1>
SNAP=NO
SHOW FEATURE PARAMETERS=NO
SHOW CONTACT PARAMETERS=YES
AVOIDANCE MOVE=NO,DISTANCE=0
SHOW HITS=NO
MOVE/CLEARPLANE
PNT6 =FEAT/CONTACT/VECTOR POINT,POLAR
THEO/<3.84,269.6795,-1.8622>,<0,0,1>
ACTL/<9.5219,247.9929,-7.9662>,<0.0000613,0.0002995,1>
TARG/<3.84,269.6795,-1.8622>,<0,0,1>
SNAP=NO
SHOW FEATURE PARAMETERS=NO
SHOW CONTACT PARAMETERS=YES
AVOIDANCE MOVE=NO,DISTANCE=0
SHOW HITS=NO
-B- =FEAT/PLANE,CARTESIAN,TRIANGLE,NO
THEO/<0.2308,-0.2669,-1.8622>,<0,0,1>
ACTL/<-3.3158,-5.2551,-7.9673>,<0.0000613,0.0002995,1>
CONSTR/PLANE,BF,PNT1,PNT2,PNT3,PNT4,PNT5,PNT6,,
OUTLIER_REMOVAL/OFF,3
FILTER/OFF,WAVELENGTH=0
MOVE/CLEARPLANE
-A- =FEAT/CONTACT/CIRCLE,POLAR,OUT,LEAST_SQR
THEO/<0,150.9031,-0.0197>,<0,0,1>,7.4975,0,0,360
ACTL/<6.12,234.5852,-6.1249>,<0.0000613,0.0002995,1>,7.4975,0,0,360
TARG/<0,150.9031,-0.0197>,<0,0,1>
ANGLE VEC=<1,0,0>
DIRECTION=CCW
SHOW FEATURE PARAMETERS=NO
SHOW CONTACT PARAMETERS=YES
NUMHITS=10,DEPTH=-0.1,PITCH=0
SAMPLE HITS=0,SPACER=0.08
AVOIDANCE MOVE=NO,DISTANCE=0
FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
SHOW HITS=NO
A2 =ALIGNMENT/START,RECALL:CENTER-SQUARE-ALIGNMENT:a99,LIST=YES
ALIGNMENT/TRANS,ZAXIS,-B-
ALIGNMENT/LEVEL,ZPLUS,-B-
ALIGNMENT/TRANS,XAXIS,-A-
ALIGNMENT/TRANS,YAXIS,-A-
ALIGNMENT/END
COMMENT/OPER,NO,MOVE SAFE FOR PROBE ANGLE CHANGE TO MEASURE 3 OCLOCK HOLE
TIP/T1A90B-90, SHANKIJK=1, -0.0006, 0, ANGLE=-89.9953
-C- =FEAT/CONTACT/CIRCLE,POLAR,IN,LEAST_SQR
THEO/<3.5943,0,0.3799>,<1,0,0>,0.079,0,360
ACTL/<3.5943,0,0.3799>,<1,0,0>,0.079,0,360
TARG/<3.5943,0,0.3799>,<1,0,0>
ANGLE VEC=<0,0,-1>
DIRECTION=CCW
SHOW FEATURE PARAMETERS=NO
SHOW CONTACT PARAMETERS=YES
NUMHITS=4,DEPTH=-0.05,PITCH=0
SAMPLE HITS=0,SPACER=0.08
AVOIDANCE MOVE=NO,DISTANCE=0
FIND HOLE=DISABLED,ONERROR=NO,READ POS=NO
SHOW HITS=NO





HEEEELLLLPPP!Disappointed
  • The comments about missing the rotation command is probably the answer. If you want to use the side hole or some other feature measured further in the program you should do it all at that time. Setting the origin is fine.

    The problem is with the Level command as sometimes this resets the coordinate system (remove the rotation from your saved alignment in favor of the machine axis). It isn't always consistent when it does this. It used to do this predictably in older versions of PC-DMIS (not sure about recent versions).
  • When it comes to Rotation, If you are measuring, say an EXHAUST PIPE with a form on it the end that is basically a bead and shares the same centerline, How are you to go about stoping rotation. When you measure the OD of the pipe (CYL), Level to it, and call the center the datum, is there any need for a rotation stop?
  • When it comes to Rotation, If you are measuring, say an EXHAUST PIPE with a form on it the end that is basically a bead and shares the same centerline, How are you to go about stoping rotation. When you measure the OD of the pipe (CYL), Level to it, and call the center the datum, is there any need for a rotation stop?


    In training we were told for cylindrical objects, such as the marker that he was demonstrating, there was no need for rotation as long as there was level and an origin that would stop it. As long as it is evenly cylindrical and has nothing sticking off it that needs to be measured or dimensioned, it can spin.....notice I said SPIN and not ROTATE. HTH
  • Thank you, Just making sure I was remembering that correctly.
  • In training we were told for cylindrical objects, such as the marker that he was demonstrating, there was no need for rotation as long as there was level and an origin that would stop it. As long as it is evenly cylindrical and has nothing sticking off it that needs to be measured or dimensioned, it can spin.....notice I said SPIN and not ROTATE. HTH


    I was told the same thing in training. My parametric programming application starts off programs with a generic line parallel to 0,1,0 (machine Y axis), then aligns the part using that generic line to constrain rotation. Not sure that it matters, though.
  • I was told the same thing in training. My parametric programming application starts off programs with a generic line parallel to 0,1,0 (machine Y axis), then aligns the part using that generic line to constrain rotation. Not sure that it matters, though.


    I'm not real familiar with generic features as I don't use them. But that does sound like it works well.