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:

Knowing if MR10 was used.


Recommended Posts

Just trying to modify a post so I do no have to hand edit a m99 into it. at the end. Currently using MR10 for my post to change information at the begining of the nc code for control sub or subbed into my data server. If my program doesnt end up having a m99 at the end, the fms will not record the run. So was wondering if there is a way, for the end of the program to know somewhere in the beginning of a program that mr10 was changed to a 1?

Link to comment
Share on other sites

You can create a flag to check your mr10$ value at the appropriate time but that seems like a waste.

This is what I do...

psub_end_m$      #End in main level
      n$, "M99", e$
      prv_absinc$ =  -1
      #n = sav_n1
      #Reset update variables for subs at main level


psub_end_s$      #End in sub level
      n$, "M99", e$
      prv_absinc$ =  -1

psub_end_st      #End in sub level for tool paths
#     ************** removed from HX300iG 2019-05-17 ***************************
#      if machine <> 60, phsm_off
      if machine <> 60 | machine <> 300, phsm_off
#     **************************************************************************
      "N1 M99", e$
      if sav_cantext = 99, "%", e$ # added 06-18-2009 for M198 calls

psub_end_sm      #End in sub level for system macros
      "M99", e$
      prv_absinc$ =  -1



 

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