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:

Last tool call


Recommended Posts

Howdy Folks, it's been awhile.....😉

Makino A51nx with Postability Post processor.

We want to pre- call "T2" as the last tool (coolant ball for washdown)

Current end of program forcing T2 M806:

G49
G91 G30 X0.
G91 G28 Y0.
G90
T2 M06
M806 (COOLANT BALL)
T0 M06
T0
M99
%

How do I call Last tool?

I've tried :

 pbld, pn, *sgcode, [if gcode$ = 1, sgfeed], *sgabsinc, [if not(tiltplane), pwcs], pfxout, pfyout, pspindleout,
            [if gcode$ = 1, *feed], scoolant, pcan3, strcantext, pe
          
       
        if next_tool$ = first_tool$, "T2" <-------------ADDED THIS LINE
        else,
        next_tool$, pe
        
          pbld, pn, pdyndatum, pe
          pbld, pn, ptlen, pfzout, pe
          if machsimflg,

But if you use the first tool more than once, it pre-calls T2 each time.

I'm sure it's simple logic but it's stumping me.... I've been out of posts for awhile..😎

Link to comment
Share on other sites
10 minutes ago, kccadcam said:

T2 M06

M806 (COOLANT BALL)

How about using a Manual Entry for the coolant ball and then just let the tool staging do its thing.

Set up the coolant ball as a text string in a file and you can call it whenever you want.

That way if for whatever reason you don't want the coolant ball you just don't call the manual entry.

If you build logic for this output you will also need logic to by pass it if you need to.

Link to comment
Share on other sites
1 hour ago, kccadcam said:

It would pre-call the first tool, and then have to go stage T2 at the end of program.

If you use Manual Entry for the coolant ball it bypasses the tichg postblocks so should then stage first tool after manual entry has posted, or maybe I'm missing something?

Link to comment
Share on other sites
2 hours ago, nickbe10 said:

If you use Manual Entry for the coolant ball it bypasses the tichg postblocks so should then stage first tool after manual entry has posted, or maybe I'm missing something?

At the last operation/tool in the program I don't want to stage the first tool, I want to stage T2 so that the tool is ready and waiting when M6 is called.

It will always be T2 as the last tool stage/pre-call.

Link to comment
Share on other sites
29 minutes ago, jeff.D said:

 ttblend$ seems like it was built for what you are trying to do.  It would allow you to stage tool 2 at the last tool change while your last operation was cutting.

It's boolean, so using it is pretty simple.


if ttblend$, "T2"

 

Thanks Jeff, works perfectly...😎

I knew it would be something simple...

if ttblend$, "T2" 
 else,
  next_tool$, pe

 

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