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:

On lathe with c axis face contour can you force x axis to the positive side?


Leon82
 Share

Recommended Posts

6 minutes ago, Alex Dales said:

With Y-axis cutting? I think you will have you use a second op and twist the tool plane by 180 degrees to indicate the C180 to the post.

No y. Only c.

 

If the guy uses two ops it runs both on the plus side.i think we will check now

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

Even with transform it does the same .

No the one chain would have to be picked that is in the correct place. That operation would then need to be rotated. If the Chain is spread in such a way that trying to machine it in one operation is not possible then you have to make it one operation and transform rotate that operation to get the feature 180 from there. It also comes down to where and how you defined the operation and the planes to drive it. I did a sample file with MPfan and got the results I would expect to see. Have you tried using a Generic Post to see if it works?

Link to comment
Share on other sites
39 minutes ago, crazy^millman said:

No the one chain would have to be picked that is in the correct place. That operation would then need to be rotated. If the Chain is spread in such a way that trying to machine it in one operation is not possible then you have to make it one operation and transform rotate that operation to get the feature 180 from there. It also comes down to where and how you defined the operation and the planes to drive it. I did a sample file with MPfan and got the results I would expect to see. Have you tried using a Generic Post to see if it works?

I used the default lathe and it was the same. If I do a plain milling face contour it is correct. He may not have the plane correct. we sent a ziptogo off.

  • Like 1
Link to comment
Share on other sites

Hmm with a C-axis rotary style is seems very strange that your face milling is giving a negative X value at all. 

mplmaster calculates the C axis as follows:

          if abs(cuttype) = 2,
            [
            if fmtrnd(xa) = fmtrnd(prv_xa) & fmtrnd(ya) = fmtrnd(prv_ya), csav = prv_csav
            else, csav = atan2(ya, xa) + c$   #on the face you need to add c$ in case of twisted face plane
            ]

ya and xa are the rectangular coordinate on the face, so if your rectangles are 180 degrees apart, then the calculation should also be 180 off.

I would try commenting out the c$ and see if that makes any difference.

Link to comment
Share on other sites

It's using g112 and if keep tool down is not selected it keeps turning it on and off. All the other programs seem to turn it on at the beginning and off at the end. At some point the post-processor was updated.

 

But something like a hex it works perfectly fine. 

We're going to do an experiment tomorrow and then we'll have to see if they can modify it.  

1 hour ago, Alex Dales said:

Hmm with a C-axis rotary style is seems very strange that your face milling is giving a negative X value at all. 

mplmaster calculates the C axis as follows:


          if abs(cuttype) = 2,
            [
            if fmtrnd(xa) = fmtrnd(prv_xa) & fmtrnd(ya) = fmtrnd(prv_ya), csav = prv_csav
            else, csav = atan2(ya, xa) + c$   #on the face you need to add c$ in case of twisted face plane
            ]

ya and xa are the rectangular coordinate on the face, so if your rectangles are 180 degrees apart, then the calculation should also be 180 off.

I would try commenting out the c$ and see if that makes any difference.

I'll see if I can get my boss to download a shot too

Link to comment
Share on other sites

I have never seen G112 act like that and try to cross X0. Maybe it has something to do with the start/end points of the two passes and the machine is trying to avoid doing some sort of large rotation near X0. Could be a machine parameter, but nothing I have run into before.

Are you able to upload the code? Maybe there's something I'm missing.

Link to comment
Share on other sites

The on/off on the G112 does seem odd though. Is the C at 0 when G112 is being re-enabled? If there is already a C value when its activated then it can re-set the zero and act like a twist.

Try calling a C0 before the second G112. That seems like the most likely fix to me.

Link to comment
Share on other sites

Yeah there's something weird going on with it because the description for miscellaneous integer for has disappeared. This is the switch for g112.

After he handed the code turning it on and off only at the beginning and end it seemed to work good.

I wonder if somebody inadvertently overwrote something

Link to comment
Share on other sites
2 hours ago, Leon82 said:

Yeah there's something weird going on with it because the description for miscellaneous integer for has disappeared. This is the switch for g112.

After he handed the code turning it on and off only at the beginning and end it seemed to work good.

I wonder if somebody inadvertently overwrote something

Could be a permissions issue with the LMD and Post that Windows messed up.

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