• Cold Bore Ritual Contest - Only a Few Hours Left To Enter!

    What’s your cold bore ritual, that one thing you always do before your first shot to set yourself up for success? Winner gets new limited edition Hide merch. Remember, subscribers have a better chance of winning!

    Join contest Subscribe

MasterCam X7 4th axis question

skog

Sergeant
Full Member
Minuteman
Mar 14, 2009
545
0
42
Rhodes, MI
I need to make a piece of bar stock into an octagon basiclly. I have always programmed stuff like this by laying out the toolpath in mastercam and then add the 4th axis indexing by hand in the post process editor. I have had enough with the work around and I can't figure out how to do it in mastercam. I can make it verify correct but I can not get mastercam to spit out the code to make a cut, index, repeat cut, index, etc.

Thanks
 
Can you add a prescript for a subroutine to call out A positions.
In Gibbs I can add in the post processor how many deg of rotation I want a piece of code to run and it uses a G65 "call subroutine" and will make a little prescript like
G65
A-0.0
G65
A-90
G65
A-180
Ect...
Then the tool path g code

In Bobcad I have to copy the toolpath as many times as I want it to cut and add a rotation deg. In the cam tree when I am defining the cutting tool and depth ect...

The Gibbs is much easier. I just type 4acw(90) in the tool setup screen and it creates a prescript that will run the tool path 4 times around the W axis. W is A on my older machine. I ended up just copying and pasting these prescripts into my Bobcad tool paths as it is much faster than copying multiple times and having a code a mile Long.