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:

Add Aggregate support to existing HAAS post


Recommended Posts

Good Day,

 

I have searched the forums for this subject and I wasn't able to find what I was looking for, so here we go.

 

We run all HAAS in our shop and I currently have some solid 3, 4, & 5 axis posts that output what we need. We are getting 2 indexable aggregate heads and 1 Right Angle Head here shortly and I would like to add the correct functionality to our existing posts. I understand the programming of the heads and I have added an aggregate component to the Machine Definition within Mastercam. I have set my planes as I would with rotation Ex: WCS: Top C/T: Right. I have gotten an angled head within the toolpath and all of that good stuff. G19 posts in the safety line but reverts to G17 further down. It also doesn't seem to recognize the tool axis length. I converted a router post to Mill and it seems to output correctly but I'm not sure how to add that functionality to my existing posts. I know enough to be dangerous with posts and I pretty much just need a solid nudge in the right direction please.

 

N1 T14 M6

( T14 - 180.00 / 90.00 - STATION # )

( RAH TEST PATH )

(OP.1)

N2 G0 G19 G20 G40 G49 G80 G90

N3 G0 G90 G54 X1.9375 Y2.875 A0. S5000 M3

N4 G43 H14 Z2. T4

N5 M8

N6 Z.2

N7 G1 Z0. F5.

N8 G41 D14 Y3. F10.

N9 G17 G2 X2.5 Y3.5625 I.5625 J0.

N10 X3.0625 Y3. I0. J-.5625

N11 X2.5 Y2.4375 I-.5625 J0.

N12 X1.9375 Y3. I0. J.5625

N13 G1 G40 Y3.125

N14 Z.2 F15.

N15 G0 Z2.

N16 M9

N17 M5

N18 G91 G28 Z0.

N19 M1

Link to comment
Share on other sites

As usual Colin, you're awesome. I thought that I had done all of that already and no matter what Tool Axis Length I used there was no change in the code. I also got a G17 on line N9 in the sample code I posted. But, I have a feeling that I'm jumping the gun and that I need to read your well laid out tutorial a bit better and it will be clearer.

 

Thank you for responding and I hope that the everything is still going great for you in CT. Sorry for almost falling asleep in your Post class, jet lag and all lol.

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

I've managed to get the logic implemented to our Mill post except for the "use_oal" logic. I'm having trouble tracking down where the math is done to offset the toolpath by the RAH gauge length and the tool overall length. I am using the MPRouter post as my inspiration and I have it narrowed down to the pxyzcout3 area, more specifically za and zshft. Does anyone have any reference documents they could point me towards for shift maps and mapping coordinates? We are an AS9100 shop with a very rigid QMS that dictates which code, and posts, we're allowed to use or I would just post with router and doctor the end code for HAAS. No doctoring allowed outside of Mastercam unfortunately. I have all of the values pulled for what I need, now it's just the vector math using our HAAS post. Any nudges and guidance is greatly appreciated.

 

Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 5913 StartFragment: 314 EndFragment: 5881 StartSelection: 314 EndSelection: 314

pxyzcout3 #Multisurf rotary axis motion & toolplane

if ra_type$ = 0 | fmtrnd(lng3(ra_svecx$) = zero),

[

#If you're not using the C-hook...

#your not getting C-Axis!

csav = zero

!cabs, !cinc

]

else,

[

if fmtrnd(vecz) = one,

[

c_tmp = atan2(m2$, m1$)

xshft = vequ(vzerox)

]

else,

[

csav = atan2(-ra_svecy$, -ra_svecx$)

ptfixx$ = vequ(vzerox)

axisx$ = vequ(caxisx)

tvecx = rotv(-csav, vecx)

csav = atan2(tvecy, tvecx)

axisx$ = vequ(caxisx)

c_tmp = csav

csav = atan2(vecy, vecx)

irotv = rotv(-csav, vecx)

bsav = atan2(irotv, krotv)

#Apply tool length

#(G43 is set with tool in Vertical for CA Head)

xshft = vequ(vzerox)

if ra_type$ = 1 | ra_type$ = 2, #If right angle or compound angle aggregate

[

if use_oal, zshft = tl_oal + gauge_length #Captured from 20007 & 20008 parameters

]

axisx$ = vequ(caxisx)

axisx$ = rotv(csav, baxisx)

ptfixx$ = vsub(xa, xshft)

xa = rotp(bsav, xa)

if set_g43_vert = 0, za = za + zshft

if set_g43_vert = 2 & ra_type$ = 1, za = za + zshft

]

csav = c_tmp

]

Link to comment
Share on other sites

On the FTP site ( Mastercam_forum/Training_file/) there is an aggregate tutorial (Aggregate Example.zip) that I did back in the X3 days and there is a converted router post in it that I used on a Haas. I don't remember how many other modifications I made to that post. Probably not very many.

 

I am sure that Colin's tutorial is more up to date, but there may be a pearl amongst the poo that you might find helpful.

 

There is also a sample toolpath and a listing of a couple of the "switches" in the post and how they affect the resulting NC file (use_ra_offs, and use_oal)

 

After having attended several of Colin's Post processor classes, I am sure that I could do a better job now. Kudos to Colin.

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