I use a macro call to check tool lengths against breakage and wear on a couple of programs we run. The actual macro is in the control but I have a text file for MC that is the call for it. What I do is insert a Manual Toolpath (Menu bar Toolpaths-->Manual Entry or user defined toolbar button) click Use Text File, Select and As Code after the operation for the tool I want to check. I can then select the Edit Now button which will pull it up in my editor, insert the variables I need and then save it as a txt file with the same name as the nc file. I then reselect the txt file and pick the one I edited. It will post like any other toolpath then.
There may be a better method but this works well for me.
Originally Posted by facegarden Hello,
So I've got some common code I want to be able to re-use (specifically, I want to be able to pull out our probe and run some macros with certain parameters), and I was wondering if there is a way to store that text somewhere for easy re-use in mastercam.
I basically want to have some pre-defined manual entry commands, which I can adjust after picking them for whatever specific parameters I need.
That is, unless mastercam can do it more intelligently. Is there any way to define a probe and have mastercam treat it differently? Moving the probe safely requires running a macro that turns it on, and will stop it if it hits something, and then once I position the probe, I am going to want to run some zeroing macro.
There are also some macros for using the table probe to check a tool, or sero a range of tools. I would love to be able to click around a bit and insert some basic code for one of those things easily.
Ideas?
Thanks!
-Taylor |