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:

Post Edit Help


Gecko
 Share

Recommended Posts

I would like to edit our mpmaster post to return the table to front and center at the end of the program to make life a little easier for the machinist. Post editing is very new to me and my boss doesn't like me experimenting with his equipment smile.gif

Can i do this with a g28 or g53?

thanks

Link to comment
Share on other sites

Make the following changes to the peof$ (end of file post block)

 

Original:

 

code:

peof$            #End of file for non-zero tool           

pretract

if lock_codes = one & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

rotretflg = 1

pbld, n$, *sg28, "X0.", "Y0.", protretinc, e$

rotretflg = 0

if lock_codes = one & rot_on_x, pbld, n$, *slock, slockcomm, e$

comment$

if not(index), n$, *sg90, e$

n$, "M30", e$

mergesub$

clearsub$

mergeaux$

clearaux$

"%", e$

Make the following changes:

 

Change the {*sg28} to "G53" if you want G53 instead of G28. Then change the {"X0."} to "X20." or whatever X value you want. Same for the Y value. The code below is for G53 X25. Y0. output.

 

code:

peof$            #End of file for non-zero tool           

pretract

if lock_codes = one & rot_on_x, pbld, n$, *sunlock, sunlockcomm, e$

rotretflg = 1

pbld, n$, "G53", "X25.", "Y0.", protretinc, e$

rotretflg = 0

if lock_codes = one & rot_on_x, pbld, n$, *slock, slockcomm, e$

comment$

if not(index), n$, *sg90, e$

n$, "M30", e$

mergesub$

clearsub$

mergeaux$

clearaux$

"%", 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...