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:

G81, G82 - MPMASTER


Recommended Posts

Could somebody please enlighten me as to where the mpmaster post switches output of a drill cycle from G81 to G82 when inputting a dwell?

 

If you don't ask for a dwell, it outputs G81.

 

If you do ask for a dwell, it outputs G82.

 

I added a couple of custom drill paramters to output 'I' and 'J' for our Mazaks but they only work with G82.

 

That means if I want to use them I have to ask for a dwell.

 

 

pdrill$          #Canned Drill Cycle
      feed_overide_dist = drl_prm1$ 
      feed_overide_percent = drl_prm2$ 
      pdrlcommonb
      pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl,
        prdrlout, [if dwell$, *dwell$], *feed, feed_overide_dist,
        feed_overide_percent, strcantext, e$ 
      pcom_movea

 

I know I can get over this by changing the G81 to G82 (below), but the OCD in me doesn't want to do it that way

 

# Canned drill cycle string select
sg81    : "G81"      #drill      - no dwell
sg81d   : "G82"      #drill      - with dwell
sg83    : "G83"      #peck drill - no dwell
sg83d   : "G83"      #peck drill - with dwell
sg73    : "G73"      #chip break - no dwell
sg73d   : "G73"      #chip break - with dwell
sg84    : "G84"      #tap        - right hand
sg84d   : "G74"      #tap        - left hand
sg85    : "G85"      #bore #1    - no dwell
sg85d   : "G89"      #bore #1    - with dwell
sg86    : "G86"      #bore #2    - no dwell

 

Thanks.

 

ps. I'm quite new to post editing...
 

Link to comment
Share on other sites

A standard MPMaster has it built like this....

 

2015-02-12_6-52-22_zpse3b35add.png

 

If you're seeing something different it has likely been tinkered with

 

You can set them up the same way.....this way they trigger with dwell

 

[if dwell$, dwell$,  *feed_overide_dist, *feed_overide_percent]

 

Then they should all trigger with the input of a value into dwell

Link to comment
Share on other sites

I'm no expert at post editing but there's one thing about your code that I wouldn't do. I would put the "if" statement on it's own line instead of putting it in with the rest of your drill output. It looks like you don't need to worry about the G81/G82 but rather whether the existence of the dwell is allowing or canceling the rest of your line (the custom drill parameters).

 

pdrill$          #Canned Drill Cycle
       feed_overide_dist = drl_prm1$
       feed_overide_percent = drl_prm2$
       pdrlcommonb
       pcan1, pbld, n$, *sgdrlref, *sgdrill, pdrlxy, pfzout, pcout, pindexdrl, prdrlout,

       if dwell$, *dwell$

       *feed, feed_overide_dist, feed_overide_percent, strcantext, e$
       pcom_movea

Link to comment
Share on other sites

vortx - you may have a valid point but that part of the post was already like that (standard mpmaster)

 

JParis (or anyone else) - how would I get it to trigger (and output G82 instead of G81) if I didn't want a dwell?

 

I'd like it to trigger when I activate my custom drill parameters and no dwell.

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

Could somebody please enlighten me as to where the mpmaster post switches output of a drill cycle from G81 to G82 when inputting a dwell?

 

 

 

 

 

pdrlcommonb     #Canned Drill Cycle common call, before

      

      if sav_dgcode = 81,

        [

        if drillcyc$ = three, drlgsel = fsg1(-ss$) + drillcyc$ * two

        else, drlgsel = fsg2(dwell$) + drillcyc$ * two   <<<<<<<<<<<<right here is where the string select is changed to G82 from G81 when inputting a dwell.

        if clearflg = one & clearstrt = zero, drillref = zero

        else, drillref = one

        if absinc$, result = force(refht_i, refht_i)

        else, result = force(refht_a, refht_a)

        ]

  • Like 1
Link to comment
Share on other sites
  • 2 months later...

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