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:

Generic Fanuc 5X post X MR2


TuxedoMask
 Share

Recommended Posts

Hey everyone I got around to trying to modify the Generic Fanuc 5x Post to work for my HAAS Trunnion rotary table but I've ran into a bit of a problem. There no machine defition for a VMC TABLE / TABLE so I'm using the HMC TABLE / TABLE MM.MMD machine definition.

 

I'm sort of stuck now. I've gotten my B and A to come out okay, but now my X AND Y's are completely off.

 

What I don't understand is that my post seems to work okay for some of my toolpaths and then it seems like it get's confused halfway and starts messing up my X and Y'S.

 

This it what it comes out as.

 

G20

G0 G17 G40 G80 G90 G94 G98

G0 G28 G91 Z0.

G0 G90 G54 X-28.

( 1/2" FLAT VARIMILL TOOL - 1 DIA. OFF. - 1 LEN. - 1 DIA. - .5 )

( B-30.204 A-5.508 )

M8

T1 M6

M11

M13

G0 G54 G90 X.0356 Y-.3497 B-30.204 A-5.508 S605 M3

M10

M12

G43 H1 Z12.

Z3.2732

 

But it should really be.

 

G20

G0 G17 G40 G80 G90 G94 G98

G0 G28 G91 Z0.

G0 G90 G54 X-28.

( 1/2" FLAT VARIMILL TOOL - 1 DIA. OFF. - 1 LEN. - 1 DIA. - .5 )

( B-30.204 A-5.508 )

M8

T1 M6

M11

M13

G0 G54 G90 X.0356 Y-.3497 B-30.204 A-5.508 S605 M3

M10

M12

G43 H1 Z12.

Z3.2732

 

I'm not quite sure what's going on. I'm use to seeing inverted coordinates but those are just way off. If someone has had this experience before and could help me I'd really appreciate it.

 

Thanks.

 

Oh and here is a part of my post.

 

# --------------------------------------------------------------------------

# 5 Axis Rotary Settings

# --------------------------------------------------------------------------

#Assign axis address

str_pri_axis "B"

str_sec_axis "A"

str_dum_axis "C"

 

#Toolplane mapped to top angle position strings

str_n_a_axis "B"

str_n_b_axis "A"

str_n_c_axis "C"

 

#Misc. String settings

sopen_prn "(" #String for Open Parenthesis "("

sclose_prn ")" #String for Close Parenthesis ")"

sextnc$ NC #String for program extension

 

#Machine rotary routine settings

mtype : 0 #Machine type (Define base and rotation plane below)

#0 = Table/Table

#1 = Tilt Head/Table

#2 = Head/Head

#3 = Nutator Table/Table

#4 = Nutator Tilt Head/Table

#5 = Nutator Head/Head

 

head_is_sec : 1 #Set with mtype 1 and 4 to indicate head is on secondary

 

#Preferred setup is pri. zero matches sec. zero/direction

#Zero machine and determine the planes perp. to axis rotations

#These plane combinations are valid:

#Primary plane XY XZ YZ

#Secondary or XZ XY XY

#Secondary YZ YZ XZ

 

#Primary axis angle description (in machine base terms)

#With nutating (mtype 3-5) the nutating axis must be the XY plane

rotaxis1$ = -vecy #Zero

rotdir1$ = vecx #Direction

 

#Secondary axis angle description (in machine base terms)

#With nutating (mtype 3-5) the nutating axis and this plane normal

#are aligned to calculate the secondary angle

rotaxis2$ = vecz #Zero

rotdir2$ = vecy #Direction

 

#NOTE: Use of 'top_map' requires the dealer match the

# above settings below. These must match initial settings!!!

p_nut_restore #Postblock, restores original axis settings

result = updgbl(rotaxis1$, "-vecy")#Zero

result = updgbl(rotdir1$, "vecx")#Direction

result = updgbl(rotaxis2$, "vecz")#Zero

result = updgbl(rotdir2$, "vecy")#Direction

 

 

Thanks again.

Link to comment
Share on other sites

crap. sorry about that haha...let me change the "what it should be"

 

it should be.

 

But it should really be.

 

G20

G0 G17 G40 G80 G90 G94 G98

G0 G28 G91 Z0.

G0 G90 G54 X-28.

( 1/2" FLAT VARIMILL TOOL - 1 DIA. OFF. - 1 LEN. - 1 DIA. - .5 )

( B-30.204 A-5.508 )

M8

T1 M6

M11

M13

G0 G54 G90 X-.1445 Y-.3205 B-30.204 A-5.508 S605 M3

M10

M12

G43 H1 Z12.

Z3.2732

 

 

Thanks

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