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:

5 Axis Fanuc Generic post question: Primary axis does not reset on Top Plane


Recommended Posts

Hello, 

I'm working on the Fanuc 5-axis generic post to use it on an rotary table BC (C is the primary axis and B is the secondary axis).

I have 2 toolpaths: #1 and #2 using the same tool:

#1 toolpath: is a 2D toolpath, takes place on a user-defined tool plane - which requires both B anc C axis to rotate (e.g. B30. C30.)

#2 toolpath: is a 2D toolpath on the Top Plane.

When I post only #2 toolpath: I get B0 & C0 output on my NC program.

But when I post both #1 & #2 toolpaths, after finished #1 toolpath on the user defined plane (e.g. B30. C30.), the tool goes back to the Top Plane for #2 toolpath. But only the B axis changes back to 0, the C axis is unchanged (still kept at C30.). So the part is no longer aligned along the X and Y axis, and the 2D contour along the edges now take place on both X and Y (instead of X or Y). That is my problem, I'm not sure if can call it a problem.

My question is: Is the any quick way, or is there a "switch" that allows us to force the primary axis to reset (C0.) if the toolpath is using Top Plane? 

Thanks for reading.

image.thumb.png.cc01b3175f5f627e77ffdb1cc3623756.png

 

Link to comment
Share on other sites

One way that would absolutely work would be to put a manual entry op between the two operations, that was just G0 C0. B0. to index it that way. 

Without your specific post it's hard to test if this would work, but you could try playing with these misc values image.thumb.png.913eec2afd85f21d39db1ab50fd82545.png

You'd edit the second op and set these to a value.   What they're supposed to do is tell the post processor "start thinking about this toolpath as if the B & C are already at X degrees.   In your case, you can try putting a 1 in both of them and see if that adjusts your output.    It may not be hooked up correctly for your use case, though.


I've used it when I wanted it to do the opposite of whatever it was doing, i.e., it wants to go C+90, when I wanted it to go to C-270.

  • Like 2
Link to comment
Share on other sites

If you are using an updated copy of the Generic Fanuc 5X Mill from CNC Software, it has new switch that might help if you set it to yes$.
use_tool_plane_as_bias : no$  # Use the tool plane XY orientation as a bias when tool is vertical?
                                                     # When set to 'yes$' the operations' tool plane will be use to calculate
                                                      # the primary axis angle.

Link to Tech Exchange:
https://community.mastercam.com/TechExchange/Parts/3544#partTitle

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

Thank you all for the replies, I tried them all and here is some updates:

 

On 1/17/2024 at 9:46 PM, crazy^millman said:

Force A tool change between each operation.

Yes, this helps - but it also outputs some tool change codes in the program, which I want to hide.

 

On 1/17/2024 at 11:11 PM, Aaron Eberhard said:

One way that would absolutely work would be to put a manual entry op between the two operations, that was just G0 C0. B0. to index it that way. 

Without your specific post it's hard to test if this would work, but you could try playing with these misc values image.thumb.png.913eec2afd85f21d39db1ab50fd82545.png

You'd edit the second op and set these to a value.   What they're supposed to do is tell the post processor "start thinking about this toolpath as if the B & C are already at X degrees.   In your case, you can try putting a 1 in both of them and see if that adjusts your output.    It may not be hooked up correctly for your use case, though.


I've used it when I wanted it to do the opposite of whatever it was doing, i.e., it wants to go C+90, when I wanted it to go to C-270.

I tried this, it didn't help in this case

 

On 1/25/2024 at 2:32 AM, Craig-B said:

If you are using an updated copy of the Generic Fanuc 5X Mill from CNC Software, it has new switch that might help if you set it to yes$.
use_tool_plane_as_bias : no$  # Use the tool plane XY orientation as a bias when tool is vertical?
                                                     # When set to 'yes$' the operations' tool plane will be use to calculate
                                                      # the primary axis angle.

Link to Tech Exchange:
https://community.mastercam.com/TechExchange/Parts/3544#partTitle

I'm using an older version of the generic 5X post so it doesn't come with this switch, I will try out this new one, it looks giving me what I want. 

 

 

On 1/27/2024 at 12:59 AM, MIL-TFP-41 said:

There is a switch for that in the generic 5 axis post.

frc_cinit    : 1

 

I tried this switch, it didn't work with a null tool change, it only works when I have a real tool change.

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