lathe c-axis engraved text mirrored on parts

lathe c-axis engraved text mirrored on parts

jpopov17
Participant Participant
901 Views
4 Replies
Message 1 of 5

lathe c-axis engraved text mirrored on parts

jpopov17
Participant
Participant

 

I also posted in the post specific forum but figured I would try answer day here.

 

I am modifying a post for a c axis live tooled lathe.  I have got basics down from looking at other posts but am having a hard time figuring out how to fix this.

 

Say I want the engrave "TEST" on the face of a part. When machined it comes out as a mirror image of the word.  I believe this is because my c-axis values are positive when they should be negative and negative when they should be positive.  Basically I need to multiply my C numbers by -1

 

How can I do this with Javascript?

 

My part looks fine in on the computer so it is happening when I post it.  

 

Attached is my post. 

 

 

Thanks for any help!

0 Likes
Accepted solutions (1)
902 Views
4 Replies
Replies (4)
Message 2 of 5

ArjanDijk
Advisor
Advisor

have you tried: 

var cFormat = createFormat({decimals:3, forceDecimal:true, scale:(-1*DEG), cyclicLimit:Math.PI*2});

 

Have not tested it myself, but seems the easiest way to change the rotation direction. In this case rotation must also be wrong during indexing, so can you check that?


Inventor HSM and Fusion 360 CAM trainer and postprocessor builder in the Netherlands and Belgium.


Message 3 of 5

jpopov17
Participant
Participant
Accepted solution

Thanks you were on the right track and got me looking in the right place.  I tried that and no change.  Then I realized that because I am using polar coordinate interpolation I actually need to change my y axis instead of the c.

 

 

This solved my problem:

 

var yFormat = createFormat({decimals:(unit == MM ? 3 : 4), forceDecimal:true, scale:-1});

 

 

before it was:

 

var yFormat = createFormat({decimals:(unit == MM ? 3 : 4), forceDecimal:true, scale:1});

0 Likes
Message 4 of 5

HughesTooling
Consultant
Consultant

@jpopov17 wrote:

Thanks you were on the right track and got me looking in the right place.  I tried that and no change.  Then I realized that because I am using polar coordinate interpolation I actually need to change my y axis instead of the c.

 

 

This solved my problem:

 

var yFormat = createFormat({decimals:(unit == MM ? 3 : 4), forceDecimal:true, scale:-1});

 

 

before it was:

 

var yFormat = createFormat({decimals:(unit == MM ? 3 : 4), forceDecimal:true, scale:1});


 

Does that end up mirroring your Y axis for everything? Or where you only having trouble when you use the 4th axis. I'm pretty sure what you've done will mirror all toolpaths so your G02\G03 moves will now be wrong.

 

Mark

Mark Hughes
Owner, Hughes Tooling
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


0 Likes
Message 5 of 5

tisler
Enthusiast
Enthusiast

@HughesTooling  You are right. It messes up G02 in G03 moves.

I am having the same problem, do you have a solution?

0 Likes