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:

Another MPosp7 question


jeff
 Share

Recommended Posts

Is there a way to NOT have a tool change and force next tool if I am only using 1 tool?

Say that I am using T11.

Right after my G56H11 line it puts in a T11 on the next line.

And at the end before my M02 it puts in an M06.

I am thinking it's probably a boolean expression of some sort that says: IF and THEN.

But I don't have a clue how to write it.

Link to comment
Share on other sites

OMG I can't believe I figured it out!

I changed it to:

if next_tool <> t, *next_tool

 

Jeff teh post guru.

Watch out fellas here I come!

 

Tim, I didn't see your reply,until now.

But it looks pretty close to what I wrote.

Thanks for the help guys.

Link to comment
Share on other sites

This is how I got around that problem.

You can call the next tool as "empty" in an okuma

code in my post is as follows:

ptoolout # Output tool information for current tool in spindle

if t_flg > t_flg2,

[*n, "CALL OT", "VC1=", *bltool, "VC2=", *speed, "VC3=", *next_bltool, e

else,[*n, "CALL OT", "VC1=", *bltool, "VC2=", *speed, "VC3=EMPTY", e ]

Link to comment
Share on other sites

In my previous reply I solved the tool call if I am only using 1 tool.

As for the tool change at the end I created this:

if t<> next_tool, pendprog

if t = next_tool, "X-20.", "Y20.","Z20.","M09", e

 

Where I created pendprog that states:

pendprog #whether or not to output an M06 at end of file

"X-20.", "Z20.", e

"M01", e

"M06", e

"Y20.", e

"S50",e

 

The S50 is the line directly above the M02.

I noticed that on our Okuma, when the machine is sitting for a period of time while the spindle is locked in orient,the toolholder get pretty stinking warm!

We have had to replace parts in our spindle 3 times already and I think this may be affecting that somehow.

Any of you Okuma users out there I suggest you do the same thing.

HTH

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