Jump to content

Welcome to eMastercam

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:

Posting M8 and M9 before and after manual entry stop


Recommended Posts

Hello,

I am trying to get mastercam to post an M8 at the start of a tool path operation, then post an M9 before my manual entry stop, then post an M8 again for the next tool path operation. Basically 2 cuts with a stop in between to check size. This is the way we do it here and everything I know or don't know about mastercam was learned on the job so... :-) Thanks.

Link to comment
Share on other sites

Yes, but would need more information to be able to help you. All the dealers I worked with in your area have always been very helpful so not sure why you have had less than good results.

 

Can an admin move this question over to the posts area of the forum?

 

From there we will see what we can do to help you sort all of this out.

Link to comment
Share on other sites

I think Dave Allen has the best solution. Use the Manual Entry to turn off the coolant before the check, then turn it back on yourself during the same ME operation.

 

The reason is due to the way Manual Entry toolpaths are processed. Manual Entry Toolpaths are processed as comments. The way comments are processed is different from normal NC motion output. Comments are read by MP from the NCI file. These comments are collected and stored as strings in an internal buffer file. When the 'comment$' MP command variable is read on an NC line, the comment buffer file is read one line at a time, and MP makes a call to 'pcomment$' for each line. Once the buffer is empty, normal processing resumes.

 

Because the same 'comment' mechanism is used to process all the different comment types in MP, the logic can get a little tricky to be able to know if you are at the start of the file, inside a toolchange (or null toolchange), or even what type of comment you are processing.

 

There are certainly ways to get the output you need, but some are more work than others. Including the coolant off/on codes in your Manual Entry toolpath is by far the easiest way to accomplish your goal. Otherwise there is actually a significant amount of coding to get the Manual Entry to test the current coolant state, turn it off, then turn it back on at the end.

Link to comment
Share on other sites

Thanks for all the input, I work with several other programmers that work off a network. I'm trying to find the best way to go about this. We all pull manual entries from the network so that everything is the same, some of our machines have different requirements for the type of stop we want to use. We also use multiple coolant codes, machine specific m codes that I was hoping to just enter into the post so that I could just post and go? Does that make sense? I'm fine if this post gets moved. Thanks everyone.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

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.

Follow us

×
×
  • Create New...