Can anybody tell me how to do this?
Pick two points on a plane and then have it rotate the coords?
Now the fun part.... With a Marposs probe?
Even if it is a Renishaw....sheding some light will help.
Tim
Can anybody tell me how to do this?
Pick two points on a plane and then have it rotate the coords?
Now the fun part.... With a Marposs probe?
Even if it is a Renishaw....sheding some light will help.
Tim
The way we do it.
find the two points using the probe. You'll have to store the x & y locations after probing each feature.
Then write a macro statement to find the angle of error, which needs to be stored also.
program each tool to run with coordinate rotation (G68), using the stored angle as the rotation angle.
I'm sure they're are better ways to go about it, but this has been working good for us.
Are you using two holes to rotate to or a side surface?
Side surface. I just want to understand the programming principal.
Tim
There is probably a probe macro for measuring a surface to find the angle, but if you want to program it out yourself.
Let's say your going to measure two points, that are 2.00 apart and you measuring on the Y minus side of the part. The surface is at Y -1.0
you'll position and measure one point at about X +1.0, Y -1.0
after the measure macro you'll store the Y position in variable #500
measure the second point at about X -1.0, Y -1.0
after the measure macro you'll store the Y position in variable #501
Now you'll have a line like this to get the angle
#502 = ATAN[[#500-#501]/2.0]
Now before each tool starts to cut you'll have to turn on the cord rotation.
G68 X0 Y0 R#502
That is, if you want to rotate about X0Y0.
Does that help?