3351
General Mach Discussion / Re: 2nd Tool Head and related offset settings
« on: January 08, 2013, 04:53:41 PM »
There are several ways to go about it. But, since Mach3 doesn't actually support the use of two spindles, it's not as simple as you might have hoped.
If you want to automate the process, doing it as a tool change is probably the best bet. I know some have used G52 in their tool change macro to set the spindle offsets. Something like this:
tool = GetSelectedTool()
if tool=1 then
code"G52 x0 y0 z0"
end if
if tool=2 then
code"G52 x10 y0 z0"
end if
Do you have two independent Z axis? If so, you'll either need to right your g-code to control them separately, or you'll need to use the SawpAxis() command.
You're going to need to devise a system, and make sure you can get your g-code to accommodate it, and then write a tool change macro to do what you want.
I'm currently building a dual Z axis router, and plan on using G52 in the tool change macro like above. Basically, check the tool #, and do everything necessary to get the offset set correctly.
Quote
how does one tell the machine to start in a particular job with one head, then continue with the other?
If you want to automate the process, doing it as a tool change is probably the best bet. I know some have used G52 in their tool change macro to set the spindle offsets. Something like this:
tool = GetSelectedTool()
if tool=1 then
code"G52 x0 y0 z0"
end if
if tool=2 then
code"G52 x10 y0 z0"
end if
Do you have two independent Z axis? If so, you'll either need to right your g-code to control them separately, or you'll need to use the SawpAxis() command.
You're going to need to devise a system, and make sure you can get your g-code to accommodate it, and then write a tool change macro to do what you want.
I'm currently building a dual Z axis router, and plan on using G52 in the tool change macro like above. Basically, check the tool #, and do everything necessary to get the offset set correctly.