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:

Want to use G84 instead of G32


Recommended Posts

I'm using Mastercam 2021 with a a generic Haas TL 2 lathe post.  It uses a G32 tapping format and I want to convert it over to G84. Does anybody no what or how to change this in the post? I know were the canned tap cycle is in the post but have no idea what the G84 would look like.

This is the post for G32

 

ltap$            #Canned tap cycle, lathe
      gcode$ = zero
      prv_dwell$ = zero
      @dwell$
      comment$
      pcan
      pe_inc_calc
      xabs = vequ(refht_x)
      ps_inc_calc
      pcan1, pbld, n$, sgcode, pzout, strcantext, e$
      pe_inc_calc
      xabs = vequ(depth_x)
      ps_inc_calc
      opcode$ = 104 #thread address from feedrate
      pbld, n$, *sthdg32, pfzout, pffr, pnullstop, e$
      if dwell$, pdwell1
      pe_inc_calc
      xabs = vequ(refht_x)
      ps_inc_calc
      pswtchspin
      pbld, n$, *sthdg32, pfzout, *spindle_l, e$
      if dwell$, pdwell1
      prv_gcode$ = m_one
      pbld, n$, pnullstop, e$
      pswtchspin
      if refht$ <> initht$,
        [
        gcode$ = zero
        pe_inc_calc
        xabs = vequ(initht_x)
        ps_inc_calc
        pbld, n$, sgcode, pfzout, *spindle_l, e$
        ]
      pbld, n$, spindle_l, e$
      opcode$ = 81 #Restore opcode
      pcom_movea
Link to comment
Share on other sites
On 3/18/2021 at 7:18 AM, cosres1997 said:

Haas lathe also has G84 for rigid tapping.

Okay learned something.

Can either redefine the variable in here to G84 or create a new one and just call it. Odd after all the these years the Defauly 2X HAAS post is not using G84. I looked it up in the HAAS Lathe programming Manual and did find G84 for Peck Tapping on a HAAS 2 axis lathe. 

# --------------------------------------------------------------------------
# Select canned cycle type, profile is direction of finish profile vector
sthdg32 : "G32"      #Cycle type G32 <-- Change the G32 to G84
sthdg76 : "G76"      #Cycle type G76
sthdg92 : "G92"      #Cycle type G92
sthdg33 : "G32"      #Cycle type G32 with alternating position
sthdgcode : ""       #Target string

fstrsel sthdg32 thdtype$ sthdgcode 4 -1

 

  • Thanks 1
Link to comment
Share on other sites
  • 2 weeks later...

Just to let you know that if you change this G32 to G84 here,

# --------------------------------------------------------------------------
# Select canned cycle type, profile is direction of finish profile vector
sthdg32 : "G32"      #Cycle type G32 <-- Change the G32 to G84
sthdg76 : "G76"      #Cycle type G76
sthdg92 : "G92"      #Cycle type G92
sthdg33 : "G32"      #Cycle type G32 with alternating position
sthdgcode : ""       #Target string

fstrsel sthdg32 thdtype$ sthdgcode 4 -1

it will change the single point thread cycle (long hand) to G84 and not effect the tapping cycle at all. The code that I originally sent is were it needs to be changed. Over time, I have successfully made changes to the code G32 tapping to use the G84 canned tap cycle. I'm amazed that there is no information on any forum about this exact subject. This was a trial and error process. You were the only response I had on the subject from 2 different forums.

Link to comment
Share on other sites
On 3/31/2021 at 9:14 AM, cosres1997 said:

Just to let you know that if you change this G32 to G84 here,


# --------------------------------------------------------------------------
# Select canned cycle type, profile is direction of finish profile vector
sthdg32 : "G32"      #Cycle type G32 <-- Change the G32 to G84
sthdg76 : "G76"      #Cycle type G76
sthdg92 : "G92"      #Cycle type G92
sthdg33 : "G32"      #Cycle type G32 with alternating position
sthdgcode : ""       #Target string

fstrsel sthdg32 thdtype$ sthdgcode 4 -1

it will change the single point thread cycle (long hand) to G84 and not effect the tapping cycle at all. The code that I originally sent is were it needs to be changed. Over time, I have successfully made changes to the code G32 tapping to use the G84 canned tap cycle. I'm amazed that there is no information on any forum about this exact subject. This was a trial and error process. You were the only response I had on the subject from 2 different forums.

Most users end up going to their Mastercam Reseller, who just makes the necessary edits to fix the output.

I'm glad you got your Post edited, and the code coming out correctly.

Ron was mentioning that you can change the "string variable" output string, to get "G84" instead of "G32". I know you still have to make other edits in 'ltap$' post block, but it will also depend on if you are using a "Lathe Tap Tool Definition" (goes through 'ltap$' Post Block), or a "Mill Tap Tool Definition", which should be going through "mtap$'. Depending on the type of Lathe/Mill Op you are using, there are multiple places to edit inside a Mastercam Lathe Post.

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