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:

Haas C-axis retract


Recommended Posts

I have a problem with the post for my Haas Lathe. The c-axis drilling on Mastercam shows the tool retracting to X-1.1001 in between drilling cycles. The problem is that Haas lathes don't have a traditional G98 clearance plane. G98 in lathe is for feed per minute. So the tool only retracts out of the hole to the R plane. How can I make it cancel the canned cycle retract to the clearance plane and then recall up the canned cycle again?

 

N2 T0828
N3 M154
N4 M8
N5 G97 P2139 M133
N6 G98
N7 G00 G54 X-1.1001 C0.
N8 Z-.2107
N9 G241 X-.345 R-.585 F4.28

G80 X-1.1001
N10 C-180.

G241 X-.345 R-.585 F4.28
N11 G00 G80 X-1.1001
N12 M9
N13 M155
N14 M135
N15 G53 Z0.
N16 M30
%

 

How do I add the lines in red to my post?

Link to comment
Share on other sites

Program each hole as an operation for a quick fix. The Post need to have the 1st part of the drilling copied into the 2nd part of the drilling. In the 2nd part of the drilling you need to force everything to be output.

mdrill$          #Canned drill cycle, mill
      pdrlcommonb
      pcan1, pbld, n$, *sgdrlref, pgdrlout, pxout, pyout, pzout,
        pcout, prdrlout, dwell$, pffr, strcantext, e$
      pcom_movea

Things needs to be copied into mdrill_2$ and some forces processes added. Will need test to see if it covers all the different drilling cycles. If not then each _2$ cycle will need to be changed to mimic what mdrill_2$ is doing as shown here.

mdrill_2$      #Canned drill cycle repeat, mill old method
      pdrlcommonb
      pcan1, pbld, n$, pxout, pyout, pzout, pcout, prdrlout,
      dwell$, pfr, strcantext, e$
      pcom_movea

mdrill_2$      #Canned drill cycle repeat, mill repeat method for canned cycle calls
      pdrlcommonb
      pcan1, pbld, n$, *sgdrlref, pgdrlout, pxout, pyout, pzout, pcout, *prdrlout,
      dwell$, pffr, strcantext, e$
      pcom_movea

 

  • Like 1
Link to comment
Share on other sites

Also, in addition to what Ron is doing, you'll want to capture that "Clearance X Value", to be able to force it out, between the moves.

With those Post Block Calls, the 'mdrill$' block is "for the 1st hole" in the series. After you've output the "first hole", all subsequent holes are output through the 'mdrill_2$' Post Block. So, copying that logic from 'mdrill$' to 'mdrill_2$', is what allows you to force out the cycle call and parameters again.

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