hexagon logo

Ttp prehit speed trick

PREHIT/0.08
            RETRACT/0.08
            FORMAT/TEXT,OPTIONS, ,HEADINGS,SYMBOLS, ;NOM,TOL,MEAS,DEV,OUTTOL, , 
CCV_AFT_WS_P5=FEAT/CONTACT/VECTOR POINT/DEFAULT,CARTESIAN
            THEO/<-3.5471,-0.8887,5.0756>,<-0.962246,0.1736482,-0.2095924>
            ACTL/<-3.5348,-0.8909,5.0783>,<-0.962246,0.1736482,-0.2095924>
            TARG/<-3.5471,-0.8887,5.0756>,<-0.962246,0.1736482,-0.2095924>
            SNAP=NO
            SHOW FEATURE PARAMETERS=NO
            SHOW CONTACT PARAMETERS=YES
              AVOIDANCE MOVE=BEFORE,DISTANCE=0.5
            SHOW HITS=NO
ASSIGN/VPHTAG=DOT(CCV_AFT_WS_P5.XYZ-CCV_AFT_WS_P5.TXYZ,CCV_AFT_WS_P5.IJK)
            PREHIT/.04+VPHTAG
            RETRACT/.04+VPHTAG


I was messing around with ways to make my production programs faster and came up with this little idea. The above code starts out with an .08" prehit/retract value. The first point in a set of points on a surface is taken, and the t-value is calculated. The measured t-value is then added to a .040" prehit/retract. (If the t-value is negative it works the same way)

This allows the probe to be .04" away from the part even if the surface is heavy or light with stock. For larger surfaces, I pick another point in the set and do the same thing so the probe position will always be the same relative distance away from the part.

Dunno if this will help anybody, and I'm sure there are some out there that are already way ahead of me on this one. Just thought I'd share it for those interested.
Parents Reply Children
No Data