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:

Post modify 202


Tony
 Share

Recommended Posts

Hello

I am stumped with this post edit..

All I want to do is Add Dwell to my

G84.2Tap.When I Modify/Butcher

my Post It outputs a G74 with Dwellnot G84.2

confused.gif

 

When I run this :

sg84.2d G84.2 # tap - With dwell(I want)

sg84d G74 # tap - with dwell

and,

ptap # Canned Tap Cycle (Rigid Tap)

 

pdrillref

n, *drillref, *sgdrill, pdrlxyrot, *refht, *depth, *frplunge ,pdwell

 

I get this:G98G74X-3.5Y-1.75R.25Z-.4F5.P2

 

When I edit to this:

sg84.2 G84.2 # tap - no dwell

And

ptap # Canned Tap Cycle (Rigid Tap)

 

pdrillref

n, *drillref, *sgdrill, pdrlxyrot, *refht, *depth, *frplunge

 

I get this(Which works but I have no Dwell)

"G98G84.2X-3.5Y-1.75R.25Z-.4F5."

 

Thanks once more

for Helping me out

Tony

Link to comment
Share on other sites

Which version of MC and which post?

MasterCam uses dwell to force lefthand threads in most posts. They usually say "0=R.H, 1=L.H.", but what happens is 0= RH and anything but 0 is LH.

The MPMaster post uses the tool selection to select rotation direction.Whe I get to work tomorrow I'll look at one of my posts to see the logic and how hard it would be to describe to you.

It can be done, just might take a bit of thinkin'

 

smile.gif

Link to comment
Share on other sites

Tony,

 

sg84.2d wont be recognized. These nci gcode "variables" are predefined. Two ways to go as far as I know.

 

Tap gcodes are unique to other drill cycles in that the g84d is for left hand not tap with dwell.

 

1. If all tapping is going to be rigid, simply substitute G84.1 for G84 in the line that reads:

 

sg84 G84 --- change to ---> sg84 G84.1 by far the easiest but you wont have the standard G84 available then.

 

2. If you want to be able to use both standard tapping and rigid tapping, you will need to use the misc. cycles or custom drillcycles available. I think this is what you are trying to do. In this scenario, my understanding (and this is how my posts are set up) you use the nci gcode that coresponds with the misc. cycle. for example mine is misc.2 so the gcode is sgm2. My controller wants to see G841 (after a G95 for ipm feed). In my post I have:

 

sgm2 G841 #misc #2 Rigid Tapping

 

So when the nci gcode for the misc. #2 cycle is encountered the post will output G841 as the drill cycle code.

 

My post section looks like this:

 

code:

pmisc2   #Canned Misc #2 Cycle - RIGID TAPPING

pdrlcommonb

rt_feed = (1 / n_tap_thds) #rt_feed is for 4 decimal place feed rate

"G95", e # ipm

pbld, n, *sgdrill, *sgdrlref, pxout, pyout, pfzout, pcout,

prdrlout, *rt_feed, e

pcom_movea

 

---------------------

pmisc2_2 #Canned Misc #2 additional points

pdrlcommonb

pcan1, pbld, n, pxout, pyout, pzout, pcout, prdrlout, dwell,

strcantext, e

pcom_movea

 

---------------------

pcanceldc #Cancel canned drill cycle

 

#Check for rigid tap/iprfeed and change to ipm / cancel rigid tapping

if drillcyc = 7, "G94", e # ADDED DG

result = newfs (three, zinc)

z = initht

if cuttype = one, prv_zia = initht + (rotdia/two)

else, prv_zia = initht

pxyzcout

!zabs, !zinc

prv_gcode = zero

pcan

pcan1, pbld, n, "G80", strcantext, e

pcan2

Now if you use custom drill cycles 8-19, they all use the nci gcode g81 and the pdrlcst postblock is used for all drill cycles. So in it you have to build conditionial statements like:

 

code:

 

pdrlcst

if drillcyc=8, pdrlcst8

if drillcyc=9, pdrlcst9

if drillcyc=10, pdrlcst10

 

pdrlcst8

Appropriate post code here includes hardcoding in "G84.1"

 


Im a hacker so the pro's will probable have more insight for you (and me as well).

 

HTH

Dave

 

[ 05-13-2003, 08:00 PM: Message edited by: CAMmando ]

Link to comment
Share on other sites

Actually, thinking about it for the past hour or so, there may be an easier way. You say this:

 

pdrillref

n, *drillref, *sgdrill, pdrlxyrot, *refht, *depth, *frplunge

 

works but no dwell.

If you ALWAYS want dwell and the same amount you can probably do this:

pdrillref

n, *drillref, *sgdrill, pdrlxyrot, *refht, *depth, *frplunge, "P2"

 

Let me know cheers.gif

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