Hello Guest it is May 22, 2024, 05:22:04 AM

Author Topic: Mach3 post for Mastercam. This post enables use of the Mach3 Mill tool table.  (Read 35307 times)

0 Members and 1 Guest are viewing this topic.

I'm the original poster and I am still around.  I tried to send you the file but the system won't let me so if you could private message me with you email I'll send it to you.
One more thing to make things work. Mach3 default mode is with IJ-mode (Config->General Config) in Absolute mode. If the postprocessor doesn't change this with G91.1 then very funny things happen. Circles become very large. So either you have to insert G91.1 in the G-code or change the Mach3 config.

Could have been nice if the postprocessor could have done this, but I see noplace where this could be done
The 1" absolute Z clearance distance is too short for me for tool changes. What is the "search" line for me to change this value in the postprocessor.
It's been a while since I visited this gcode post.  For a bit of background, I created this post for a Bridgeport Series II, which is setup so that the uppermost quill travel is z=0, and then plunges into the work (where z <0) .  So for example if I cut into the work 1" the resulting gcode would be G1 Z-1.0

Also, the Mastercam Machine and Control definition has the origin at 0,0,0 and all cutting is negative Z.

So to answer your first question, the search line is:
"G49", "G0", "Z0."
and change Z0. to whatever value you want.

Changing this Z0. to Z(whatever) may solve your problem if your machine allows a suitable positive Z value to give you the extra clearance. (mine doesn't).
If I may make a suggestion.  Depending on your machine (and we know they are all different), it might be better to modify the Machine and Control Definitions so that your machine 0,0,0 "Home" has greater distance from your bed than it may have currently.  On my bridgeport I simply lower the bed manually to be sure I have enough distance for tool retraction and tool change.  On many machines the mill head moves and can give a wide range of max Z values, which can be set in Mastercam.

Once I have set the bed distance, I touch off the tool to the work and measure the distance (which is always negative, btw) and set this negative value as the height in Mach3.

Works like a charm.
Good luck!
Forgot to mention, there is more than one instance of "G49", "G0", "Z0."

You will want to modify all of them.

thanks, Charles. I will also take a look at the Machine control definition suggestion.