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 inspection for lathe tool paths


Recommended Posts

For starters throw this at the end of the prapidout postblock

 


       	if cur_cflg$ = 70000, 
         	[
         	pbld, "M00", e$
         	pbld, "(TOOL INSPECTION POINT)", e$
         	toolno = toolno - (t$ * 100)
         	pbld, n$, sg97, *sgcode, pfxout, pfyout, pfzout, *toolno, "M00", e$
         	toolno = toolno + (t$ * 100) 
         	pbld, *toolno, e$ 
         	pcssg50          	
         	pbld, n$, "M08", e$
         	]

 

Let me know what you get/don't get. I have more in mine, but I don't think you'll want it.

Link to comment
Share on other sites

 	

  	if cur_cflg$ = 70000, 
         	[
         	pbld, "M00", e$
         	pbld, "(TOOL INSPECTION POINT)", e$
         	toolno = toolno - (t$ * 100)
         	pbld, n$, sg97, *sgcode, pfxout, pfyout, pfzout, *toolno, "M00", e$
         	toolno = toolno + (t$ * 100) 
         	pbld, *toolno, e$ 
         	pcssg50          	
         	pbld, n$, "M08", e$
         	]

 

Still not right but closer...

Link to comment
Share on other sites

Josh, I have the M08 "hard coded" into the example above. If you want to force an M478, just replace the "M08" in the postings above with "M478". If that is not what you are after, you may have to leave that line out and call up the coolant the same way it is called up in the ptlchg_com postblock. I don't use xstyle coolant, so I really can't help much. The one thing I can tell you is that you will have to force the coolant code to be output somehow because it is modal and the post does not know that it got turned off during the tool inspection.

Link to comment
Share on other sites

I have a DuraTurn and a NL2500. I have high pressure coolant on the NL so I need the M478 to turn it on when I need it and M8 when I want regular coolant. I use the same post for both machines just make some small changes for the DuraTurn. It seems xcoolant is canned text I think I need to store the value, just not up to speed on buffers yet....

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