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:

Rotary output problem


wdg5555
 Share

Recommended Posts

I'm programming a part to mill a diameter with the rotary at 90 degrees and use the rotary to spin the part while cutting.

My problem is the code does not out put correctly. It starts at 90 degrees and starts to incrementally go up and then it starts to go down to -270. Below is a section of the code.

G0G18G90X-.2062Y0.S1426M3
G56H237Z2.9672
G17Z1.0672
G1Z1.0422F6.33
Z1.0172
Z.9922
Z.9672
C91.528
C93.055
C94.583
C96.111
C97.638
C99.166
C100.694
G42D237C102.218
X-.1793C102.116
X-.1528C101.804       <------------------------Here it starts decreasing the C value.
X-.1273C101.29
X-.1031C100.583
 

This post is from the generic 5 axis post that I converted over for an Okuma mill. When I load up the generic 5 axis machine I get the same result. Not sure if its an issue in the post or my programming.

I've attached the mastercam file.

Thanks for any help!

T.mcam

Link to comment
Share on other sites
1 hour ago, lowcountrycamo said:

What type of tool path did you use?  Are your planes set to top/top or top/with indexing tool planes? We need more info.

I used a contour toolpath. The WCS is set to the top plane and the C and T planes are set to the 90 degree plane. I used Axis substitution with the unroll option. The contour is just a simple circle.

You may Have missed the mastercam file I attached in the first post?

Link to comment
Share on other sites

After I removed the the lead in and lead out I realized what the problem is. The post isn't designating what direction for the rotary to spin. So at the machine it was rotating 360 degrees everytime it read a C value.

Anyone know how to add direction M codes to the generic 5 axis post? I looked through the top section of the post and I did not see an option in there.

Link to comment
Share on other sites

After some searching and re-reading the generic 5 axis information I found the answer. For the Okuma machine I set the multi-turn option under the rotary to on in the parameters which makes it so the rotary always takes the shortest path while moving. After setting this the output is correct.

Thanks for the help.

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