I wish.. but I'm feeding in a 90" long tube, trimming the end, grinding 1" length of OD to be concentric to the ID, doing some other processing and then cutting about 6" length and starting over.
I figured out the steps and know it can be done using trig math functions in Mach. Brief outline:
-Probe at 90* increments to find the center of the ID.
-OD center is already known (CL of spindle) so run trig math to figure out the angle of the vector between the two centers.
-Rotate the spindle to the angle of the vector so that the offset is at the max in the X axis.
-Run a for loop counting off each degree for C (or whatever resolution needed) and command a move for X to move as a Cos function of the command degree and initial measured vector length.
However, I've decided to approach it from a hardware level and have designed a floating 3-jaw pneumatic chuck. I'll run a mounted ball bearing up into the ID of the tube, feed it over while spinning until it forces the tube to run true on the ID, then clamp the chuck. Will be much faster overall and eliminates potential probe failure and any X-axis backlash issue.
