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 M99 instead of M30


Recommended Posts

I am trying to find a way I can change the output of "M30", to allow me to choose between a M99 or M30.

 

I would like it to default to M30, but I would like to be able to tell it to use M99 instead of M30 if I am looping a program, or using it as a subprogram.

 

I am using the mplmaster post (x5), slightly modified for my machine.

 

I used the post debugger and found this, I am just unsure of what to add or replace to make it  user definable:

 

 

peof$            #End of file for non-zero tool
      ptoolend$
      comment$
      n$, "M30", e$
      mergesub$
      clearsub$
      mergeaux$
      clearaux$
      "%", e$

 

 

Is something like this even possible?

 

Thanks

Link to comment
Share on other sites

As little as I use M99, I just hand replace M30 with M99. If I wanted to do what you want, then I would make a copy of the post you are using, rename it, then edit

 

peof$            #End of file for non-zero tool    

      ptoolend$

      comment$
      n$, "M30", e$
      mergesub$
      clearsub$
      mergeaux$
      clearaux$
      "%", e$

 

Change to this ;

 

peof$            #End of file for non-zero tool

      ptoolend$
      comment$
      n$, "M99", e$
      mergesub$
      clearsub$
      mergeaux$
      clearaux$
      "%", e$

 

Then to control usage, just use the M99 post with the same machine and control definition as the post you have been using

Link to comment
Share on other sites

My reasoning for doing this is I like my mastercam programs to be a post and go.

 

I don't want any manual editing. If I am ever not there I don't want someone to have to be responsible to edit the program.

 

I ended up using misc integers. I have it working very nicely.

 

Thanks for everyone's tips and advice, I appreciate it.

 

Also about the block skip. For some reason it doesn't work on my machine. (Fanuc ot Control) I have the button but it doesn't seem to enable the block skip feature.

Link to comment
Share on other sites

My reasoning for doing this is I like my mastercam programs to be a post and go.

 

I don't want any manual editing. If I am ever not there I don't want someone to have to be responsible to edit the program.

 

I ended up using misc integers. I have it working very nicely.

 

Thanks for everyone's tips and advice, I appreciate it.

 

Also about the block skip. For some reason it doesn't work on my machine. (Fanuc ot Control) I have the button but it doesn't seem to enable the block skip feature.

 

On some machines it is an option. Yes I have seen some builders charge for it over the years.

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...