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:

Tool Staging


kccadcam
 Share

Recommended Posts

Playing with the new MPMasterX_beta,,,

 

I have stage tools on, no problem.

What I need is to have the last toolchange call T0

instead of first tool.

 

code:

 toolcount = toolcount + 1

prvtp = rbuf(3,toolcountp)

if toolcountn <= tooltotal, nexttool = rbuf(4,toolcountn)

else, nexttool = first_tool$

Something like:

if current tool = last_tool, next_tool = "T0"????

 

This is for clearing spindle in Makino A55e....

Link to comment
Share on other sites

Here's the problem as I see it.

 

Even if on your first tool change into the program you set say in the psof section.

 

start_tool = first_tool$

 

now you can run a check in the ptlchng section

 

if t$ = start_tool

next_tool$ = 0

 

The problem comes up what if you reuse the starting tool number, the next tool would then be T0.

 

That's why I suggested the T0 before the M30.

 

Of course someone is going to pop in here and say do it like this and I'm going to say duh.

 

Live and Learn.

 

smile.gif

Link to comment
Share on other sites

Here's the end of file:

code:

 G01 X1.76

G03 X1.735 Y-8.3948 I0. J-.025

G01 G40 Y-8.4198

G00 Z8. M09

M05

G91 G28 Z0.

T0 M06

T0

G90

M30

This is the last toolchange:

code:

 M05

G91 G28 Z0.

M01

T2280 M06 (3/8 2FL CARBIDE EM - PRIMO FINISH ONLY-)

(MAX - Z8.)

(MIN - Z5.625)

M11

G17 G00 G90 G54 X1.4961 Y-8.4298 B0. S12000 M03

M10

G43 H1 Z8. M08 T1010 <--- this needs to be T0

/M97 (SHOWER)

Z6.05

G01 Z5.8783 F96.

Y-8.4048

G03 X1.4711 Y-8.3798 I-.025 J0.

Link to comment
Share on other sites

Try this to see if it works out for you.

In ptlchg_com replace;

code:

      pbld, n$, "G43", *tlngno$, pfzout, scoolant, next_tool$, e$

with

code:

      if nexttool = first_tool$,

[

pbld, n$, "G43", *tlngno$, pfzout, scoolant, "T0", e$

]

else, pbld, n$, "G43", *tlngno$, pfzout, scoolant, next_tool$, e$

HTH

Link to comment
Share on other sites

Anytime,

 

I was just noticing you don't need the brackets though it doesn't hurt anything to have them in;

code:

     if nexttool = first_tool$, pbld, n$, "G43", *tlngno$, pfzout, scoolant, "T0", e$

else, pbld, n$, "G43", *tlngno$, pfzout, scoolant, next_tool$, e$

I was thinking of something else then realized that wasn't necessary, made the changes and forgot to remove them.

Link to comment
Share on other sites
  • 13 years later...
On 5/15/2006 at 7:45 AM, Tim Johnson said:

Try this to see if it works out for you.

In ptlchg_com replace;

 

 

code:


      pbld, n$, "G43", *tlngno$, pfzout, scoolant, next_tool$, e$

with

 

 

code:


      if nexttool = first_tool$,

 

[

 

pbld, n$, "G43", *tlngno$, pfzout, scoolant, "T0", e$

 

]

 

else, pbld, n$, "G43", *tlngno$, pfzout, scoolant, next_tool$, e$

HTH

Thanks for this!! I was pulling my hair out trying to get tooltotal to work right!!!

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