Page 1 of 1

Twin Spindle machine, how to do tool center offset?

PostPosted: Fri May 10, 2019 3:33 am
by Dennis CNC
Looking for advice on how to manage a twin spindle type router.

One idea was to have a macro that executes a G55 when tool 2 is called.

Another idea was to have a G55 for tool 2 in post processor when tool selected.

Any other tips?


Thanks

Dennis

Re: Twin Spindle machine, how to do tool center offset?

PostPosted: Fri May 10, 2019 10:57 am
by ger21
On the machine I'm building, I plan on using G52, and calling it with my tool change macro.

Re: Twin Spindle machine, how to do tool center offset?

PostPosted: Fri May 10, 2019 11:14 am
by Battwell
i use g52 on my machines. one has 3 router heads, 24 drills vertical and 12 horizontal.
all good fun!
use a known point as your reference for all.

Re: Twin Spindle machine, how to do tool center offset?

PostPosted: Tue May 14, 2019 2:03 am
by Dennis CNC
Is it possible to see a few lines of code using g52 is this way...

Lets assume Spindle #1 is a non bottom cutting endmill
Spindle #2 is a drill and is off in the X +5" , Y is same as endmill.


x0 y0 position of start hole drilled by spindle #2
...
x0y0 spindle #1 needs to start cutting in the drilled hole since the endmill can't plunge cut
...

Thank you for the help.

Re: Twin Spindle machine, how to do tool center offset?

PostPosted: Tue May 14, 2019 11:24 am
by ger21
You apply the offset during the tool change, so your g-code is the same for either tool.

In your tool change macro, for the second spindle, you'd just do a G52 X5 (or G52 X-5), and when you go back to the second spindle, you do a G52 X0.

You need a system where certain tool numbers are assigned to one spindle, and certain numbers assigned to the second spindle.
Then the macro can call the G52 based on the tool number.

Re: Twin Spindle machine, how to do tool center offset?

PostPosted: Tue May 14, 2019 9:23 pm
by Dennis CNC
Gerry,

Ok got it !!