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:

Need custom tool change: T# and M6 on separate lines, with additional 0 returns


Recommended Posts

Hello! Is it possible to edit the generic machine post for Fanuc 3X Mill, to have it output every tool change looking like this?:

G28 X0 Y0
G30 X0 Y0
M01
T1
M6
M01
G28 X0 Y0
M01


I currently only get the following by default, which does not work for my old machine:
...
T4 M6
...

Link to comment
Share on other sites
8 hours ago, PGcam said:

Hello! Is it possible to edit the generic machine post for Fanuc 3X Mill, to have it output every tool change looking like this?:

G28 X0 Y0
G30 X0 Y0
M01
T1
M6
M01
G28 X0 Y0
M01


I currently only get the following by default, which does not work for my old machine:
...
T4 M6
...

Yes that is possible.

  • Sad 1
Link to comment
Share on other sites

I made these edits in the MP Master post a long time ago:

###       pbld, *n$, *t$, "M06", ptoolcomm, e$                        ###original line split for T01 before M06 (need both sets of line edits)
                pbld, *n$, *t$, ptoolcomm, e$                                        ###new line
                pbld, *n$, "M06", e$                                                    ###new line
          ]
###       else, pbld, n$, *t$, "M06", ptoolcomm, e$                ###original line split for T01 before M06
                    else, pbld, n$, *t$, ptoolcomm, e$                            ###new line
              pbld, n$, "M06", e$                                                            ###new line

 

This is found in the "Start of file and toolchange setup" section, I always comment out a line with 3# (###) so I know it's my edits.

  • Thanks 1
  • Like 2
Link to comment
Share on other sites

you can use quotations to post directly what's in them in the tool change block

before

  pcan
      result = newfs(15, feed)  #Reset the output format for 'feed'
      pbld, n$, *t$, sm06, e$
      pindex

 

after

 

pbld, n$, "G28", "X0", "Y0"e$
pbld, n$, "G30", "X0", "Y0"e$
pbld, n$, sm01, e$

result = newfs(15, feed)  #Reset the output format for 'feed'
pbld, n$, *t$, e$
pbld, n$, sm06, e$
pbld, n$,sm01, e$
pbld, n$, "G28", "X0", "Y0" e$
pbld, n$,sm01,e$

pindex

  • Thanks 1
  • Like 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...