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:

Force tool change check


Recommended Posts

I'm trying to get an error to pop up during posting when force tool change button is not checked. Below is the code I am using.

if force_tlchg$ = no$, result = mprint(swdgftchg)

 

My problem is I can't find a good place to put it in the post where it correctly gives me the error when the tool change button is not checked or it gives me the error when the button is checked. I've tried ptlchg, ptlchg0, and the pwrtt sections. It seems the variable force_tlchg does not work as I think it does. I'm using the generic 5x post. Closest I came was it would correctly give the warning with drilling cycles but for some reason not on milling toolpaths.

Link to comment
Share on other sites
  • 3 weeks later...

This is what i did...

ForceToolChange: 0
#region Force Tool Change Check
sForceToolChange = "CUT# "+sToolPathNumber+" * You have FORCE TOOL CHANGE"
                   +no2asc(13)+"TOOL#"+no2str(t$)
                   +" ("+no2str(tldia$)+", "+s20001+")"
                   +no2asc(13)
                   +no2asc(13)+"Feed Rate: "+no2str(feed)+ " ***** #Teeth x Chip Load x RPM"
                   +no2asc(13)+"Plunge Rate: "+no2str(plunge)
                   +no2asc(13)+"RPM: "+no2str(speed)+" ***** (SFM x 3.82) / Tool Dia"
                   +no2asc(13)+"SFM: "+no2str(sfm)+" ***** .26 x RPM x Tool Dia"
                   +no2asc(13)+"ChipLoad: "+no2str(fpt)+" ***** Feed Rate (RPM x Flutes)"
                   +no2asc(13)
                   +no2asc(13)+"If you feel this is a mistake, do these following steps:"
                   +no2asc(13)+"Step 1 = Click on PARAMETERS"
                   +no2asc(13)+"Step 2 = Click on TOOL tab"
                   +no2asc(13)+"Step 3 = uncheck FORCE TOOL CHANGE"
                   +no2asc(13)
                   +no2asc(13)+"                                      OK to proceed posting."
                   +no2asc(13)+"                                      CANCEL to abort posting."
#endregion 

 

if ForceToolChange = 1, [if mprint(sForceToolChange, 2) = 2, exitpost$] #Force Tool change
if prmcode$ = 15108, ForceToolChange = rpar(sparameter$, 1)

 

 

 

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