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:

Lathe program number change regenerate


Mark VIII
 Share

Recommended Posts

22 minutes ago, Mark VIII said:

What is the logic behind having to regenerate all of the operations in MC lathe after changing your program number?

Are you changing it in the Machine Group Properties dialog? If that's where you want to set it, a simple Post modification can read the value you enter in that dialog box, without requiring a regeneration of all the operations.

Link to comment
Share on other sites

The difference may be a small post mod we did here. Due to some of our machines not liking a O0 program #, we added the following to the header sections. It auto changes 0 to 1, but leaves alone if any other.

 

pheader_custom         #Start of file
      "%", e$
      !spaces$
      spaces$ = zero
      

IF PROGNO$=0, PROGNO$=1, E$  # RPL added to keep program number from being 0 


     *progno$,scomm_str, sprogname$, scomm_end, e$

     scomm_str, "PROG NAME= ", sprogname$, scomm_end, e$

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