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:

Mikron Heidenhain TOOL DEF using Tool Description


Recommended Posts

Up until now our Mikron C400U (Heidenhain iTNC-530) has been programmed with another programming system (Featurecam). I am transitioning to Mastercam, which is what I am proficient in. The previous programs have been set up to use TOOL CALL and to pre-tool with TOOL DEF using descriptions rather than Tool number. i.e.:  "EM-.375X1.020_3FL-AL_#2054". I don't want to change that.
My problem is that - although I can use strtool$ for the TOOL CALL- I haven't been able to figure out how to return the next tool's description to pre-tool in TOOL DEF. Is there a way to tell strtool$ to find the next tool? Or some other way to accomplish this?

Featurecam's post has a pre-defined variable called <NEXT-TL-NAME>. I can find no similar pre-defined string in MP.
Any help would be greatly appreciated.
John

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

but immediately ran into this snag

If you look in the what's new section of the 2018 MP docs, you will find a list of updated parameters for the tool page.

Not all the fields have associated parameters so you might have to use a different field to get the result you want.

Link to comment
Share on other sites
33 minutes ago, crazy^millman said:

Hum never done it that way where I need the tool description to call the tools.

[quote] Featurecam's post has a pre-defined variable called <NEXT-TL-NAME>. I can find no similar pre-defined string in MP. [/quote]

Depending on the post ptoolcomment is the equivalent.

True, but ptoolcomment only returns the current tool, not the next tool. Correct?

Link to comment
Share on other sites
7 minutes ago, jbailey2003 said:

True, but ptoolcomment only returns the current tool, not the next tool. Correct?

Yes, and that is where you would need to create a buffer process to store that information so it can then be recalled. Maybe the newer ptool process doesn't need a buffer, but I am not familiar with buffers enough to even be sure since I have never been able to master them. I know almost nothing about the new process so just going off what I have read and seen on the different forums over the year to help plant seeds and put attention to this thread so I can learn from the more knowledgeable than myself.

Link to comment
Share on other sites
1 hour ago, crazy^millman said:

What about tt_ variables for accessing data? I didn't see Tool Description listed in that as one of the items.

Then I look at t_list and think it might give the user what they need in this situation.

 

The tt_ variables are only numeric if I recall correctly.  The opinfo function is the way to go here.

  • Thanks 1
  • Like 1
Link to comment
Share on other sites
19 hours ago, Zaffin_D said:

You don’t need a buffer.  Search the documentation for opinfo, you can query the next operations tool description easily.

Thanks Zaffin_D, you have me on the right track, I think. It's a little out of my wheelhouse but this is what I have so far.

strquot        : "" #returns the character ( " )
snxt_tl_nam    : "" #returns next tool's name Param 10094

strquot = no2asc(34)
snxt_tl_nam = opinfo(10094,?,????)

pbld, pn, "TOOL DEF ", *strquot, no_spc$, *snxt_tl_nam, no_spc$, *strquot, pe

My problem on the opinfo query is this:

?: The source' value. The # of next ops with null toolchanges varies so how do I determine the desired source (next tool) by offset of current tool?

????: Is there a "license plate" mode that will parse just the ops with actual toolchanges?

Link to comment
Share on other sites

I’m riffing this (I don’t have access to a PC till next week), so I expect it to be about 80% correct.

Get the next tool number using opinfo, if you want the next operation, use a 1 for the number of ops to look ahead.  Compare that to the current tool number, if they are equal (or the next tool number is -99999) do nothing.  If the next tool number is different than the current tool number (and not -99999), get the next tool’s description and output it.

You always want to look ahead to the next operation, and there is no easy license plate setting to get the next operations parameter if the tool changed.

 

 

  • Like 1
Link to comment
Share on other sites
32 minutes ago, Zaffin_D said:

I’m riffing this (I don’t have access to a PC till next week), so I expect it to be about 80% correct.

Get the next tool number using opinfo, if you want the next operation, use a 1 for the number of ops to look ahead.  Compare that to the current tool number, if they are equal (or the next tool number is -99999) do nothing.  If the next tool number is different than the current tool number (and not -99999), get the next tool’s description and output it.

You always want to look ahead to the next operation, and there is no easy license plate setting to get the next operations parameter if the tool changed.

 

 

Thanks again for your help. I will work on this. LIke you, I will not have access to a computer (vacation) for a couple weeks after today.  I hope vacation is the reason for you too, and if so, REALLY appreciate you taking the time.
John

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