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:

X4 mpmaster post and first_tool$ value


Tom Anderson
 Share

Recommended Posts

I've used the X4 Mpmaster.pst as the base for a custom post. I'm trying to get the first tool call at the end of the file, but this machine does not support staging tools.

 

So, I have:

> Control Def. "enable stage tool routines" = off

> this line in peof = pbld, n$, first_tool$, protretinc, e$

 

I get NO first tool output. If I force first tool(*first_tool$) I get T0 . If I turn on tool staging in the control def, I get T# output at every tool change, which I can’t have.

 

Am I crazy(ok don't answer that), missing something here, or does mpmaster not track first_tool$ if tool staging is off?

 

Thanks,

Link to comment
Share on other sites

Hi Tom,

 

When you force the "first_tool$" variable, you are getting T0, because the value of the first tool variable is "0" at that point in the posting process.

 

You should setup a custom variable to hold the value of "first_tool$" in the 'psof' section of the post.

 

Something like:

 

myfirsttool = first_tool$

 

You'll have to initialize the variable and setup a format assignment string as well.

 

This custom variable will hold the first tool's number as there is no other mechanism in the post to reset it's value.

 

HTH,

Link to comment
Share on other sites
Guest CNC Apps Guy 1

Normally when I have a machine that does not support staged tools, I still turn on Stage Tools, but then I remove the next_tool$ calls, then at the end of the program I put in first_tool$, "M6", e$ and it does what I need.

 

HTH

Link to comment
Share on other sites

Thanks guys. I finally got the output, using James' suggestion was easiest way.

 

In the process I did some more searching/testing and found this. Since it is different then pre-X versions it had me confused. confused.gif Thought I'd pass it along for others.

 

The "enable staged tool routines" checkbox in the CDef = bldnxtool$ used in pre-X posts. So, if bldnxtool$ = 0, first_tool$ & next_tool$ is not assigned a value. Then, when bldnxtool$ = 0,forcing *first_tool$ produces the T0.

 

It's just onther one of those things that was moved from the .pst to the MDef/CDef, but not named the same, so ya have figure what it is.

 

Recommended reference McamX4 NCI Parameter Ref.pdf !!!

Link to comment
Share on other sites
Guest CNC Apps Guy 1

quote:

...It's just onther one of those things that was moved from the .pst to the MDef/CDef, but not named the same, so ya have figure what it is.

Oh joy... I just love those. 8-/

 

Always glad to help. cheers.gif

Link to comment
Share on other sites

.

 

quote:

I finally got the output, using James' suggestion was easiest way.

That's the way I have mine set up also. I put a forced M0 at the beginning of the program with a note alerting the operator what tool should be in the spindle because on the Fanuc controllers the tool changer goes wacko if you have an M6 with the same tool that's in the spindle.

 

.

Link to comment
Share on other sites
Guest CNC Apps Guy 1

john316, on some machines the M6 error if the same tool is in the spindle is a Keep Relay setting (On older Mori Seiki machines), or Data Bits. You shoudl be able to change that behaviour.

 

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