Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.
Use your display name or email address to sign in:
M03S500
33=0 sets a variable 5o a value less than 1
WHILE[#33LT1]DO1. Starts a loop from DO1 to END1. Executes the code between. In this case a 5 second dwell every time the loop occurs
G4U5.(Build pressure while spindle turning)
/#33=1. When block skip is on , this line is ignored. This is the code that will cause the loop to be completed because #33 is no longer less than 1
END1. End of the loop. After the WHILE condition is made the code underneath END1 is executed
You still need to have block skip on at the start of a cycle. Then when you are ready to start after your pressure build you turn block skip off.
My version is 23.01.27
For an example
Open cimco
In the file type ribbon change the drop down to formulas
Start a new file then open nc assistant and open up the macro function drop-down and select macro b circle. Press insert macro button.
Open the backplot window.
Adjust #1 and see how it updates.
On the right hand side there are 4 vertical tabs labeled simulation, navigation, variables, and geometry navigator.
It does not know machine system variables just #1 thru #999 as far as I can tell.
Should be in there. Backplot a program and the tabs show up on the right side. The tabs are work offsets, variables.
If you have sub programs or separate macro programs just put them all in the same file you are back plotting at the end after you're M30
On most of the HMC' I've ran the tool change time and pallet index time were pretty darn close to the same. Plus I could index the B while the tool is changing. So not really much time lost in that case.
In my case the tool groups were;
Tool group 1 is B0 complete
Copy paste into tool group 2 B180 etc.
This also made it easier to skip faces if I didn't have parts on them
Using miilturn I am having to edit in bar change cycles and part catcher cycles among others things. I also can't simulate both spindles cutting at the same time. I see the main spindle cut then the transfer then the right spindle. That's only half of the process. I need to know where the turrets are when both spindles are processing.
I can see the actual cutting g code not needing hand edits but an entire program functioning efficiently without some hand edits? I haven't figured that yet with miilturn. Not having access to the posts in millturn is painful for me.
I was closer to edit free code how I liked it in standard lathe.
I am not giving up on millturn and will continue to use and learn it(only a few months), I just hope they open it up a bit in the future.
I believe You can also just use TWP G68.1 instead of G368 but you will need to be sure of all the other codes you will need and the formatting.
Maybe you can cancel G368 with G69 instead. You'll have to test.
eMastercam - your online source for all things Mastercam.
Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.