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:

change to first tool at end of program


Justin Fore
 Share

Recommended Posts

Using X2, Mill 1

 

I'm trying to get my post to execute a toolchange back to the first tool [used in the program] when the program is complete.

 

In peof, I have:

-------------------------------

if t$ <> first_tool$

[

n$, *first_tool$, sm06, e$

]

-------------------------------

 

 

However, the output is always becomes:

 

T0 M6

 

Indeed, the first tool called is not Tool 0. What am I missing or doing wrong?

Link to comment
Share on other sites

n$, *next_tool$, "M6", e$

n$, "M69", e$

n$, "M30", e$

 

N71 T7 M06 ( 0.5" 3FLT D) ptlchg$

N72 (MAX - Z1.475) ptlchg$

N73 (MIN - Z1.) ptlchg$

N74 M08 ptlchg$

N75 M88 ptlchg$

N76 G00 G90 G54 X.7562 Y-.7627 S9100 M03 ptlchg$

N77 G43 H7 Z1.475 T14 ptlchg$

N78 Z1.425 pzrapid$

snip

N250 M5 peof$ peof$

N251 G91 G28 Z0. peof$ peof$

N252 T14 M6 peof$ peof$

N253 M69 peof$ peof$

N254 M30 peof$ peof$

 

Is your post outputting the stage tool when you code?

 

Is your MMD using a unique .CONTROL file?

Link to comment
Share on other sites
  • 4 weeks later...

I don't suggest you that have it change back to the first to at the end of the program. For the reason that if any other tool is in the spindle when you start the program it will give you an alarm, but if the tool change is at the begining it dosent matter what tool is in the spindle it will always get the first tool regardless of whats in the spindle.

 

Just a suggestion!!! Mabe your control dosent do that.

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