Post Processor 5axis Bug?

Post Processor 5axis Bug?

zakzbroja
Participant Participant
590 Views
7 Replies
Message 1 of 8

Post Processor 5axis Bug?

zakzbroja
Participant
Participant

Hi all,

I seem to be getting a bug in my post processor when trying to do 5axis simultaneous swarf toolpaths. In the code, the c-axis (this is a Okuma M460-5ax, trunnion and turntable style) normally goes to 360 degrees then wraps back around to 0, but its recently been going over 360 degrees, then seemingly randomly, it will wrap to 30 or 40 degrees instead of 0. This causes errors in the machine as it doesn't want to read any code over 360 degrees. In the post is does mention the limits being 360 degrees so you would think it would know not to go over that value. If anyone's had anything like this or knows a way to fix this that would be awesome. Thanks

 

Zak

0 Likes
Accepted solutions (1)
591 Views
7 Replies
Replies (7)
Message 2 of 8

a.laasW8M6T
Mentor
Mentor

can you share your post processor here?

 

are you using a Machine configuration in Fusion or just the post processor?

0 Likes
Message 3 of 8

BrandonTBFBF
Collaborator
Collaborator

He is using my post. I'd like to see if anyone knows what's going on with this.

 

Post attached.

0 Likes
Message 4 of 8

a.laasW8M6T
Mentor
Mentor

possibly that the axis is set as cyclic, but the range is -360, 360.

var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], cyclic:true, range:[-360, 360], preference:0});
 
I would have thought a cyclic axis should have a range of 0,360
var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], cyclic:true, range:[0, 360], preference:0});

 

0 Likes
Message 5 of 8

BrandonTBFBF
Collaborator
Collaborator

Valid point but the OP is still getting moves in the -370 to -385 degree range.

0 Likes
Message 6 of 8

a.laasW8M6T
Mentor
Mentor

Yea you're totally right, I thought it may have been a source of the error, in that Fusion was interpreting the angles in an odd way. But it should never output angles outside of those limits.

 

I have tried several simultaneous toolpaths with that post and am not able to get any outputs greater than +-360 degrees

 

If Zak can upload a problem Fusion file that has this output then maybe @serge.quiblier can have a look as he's pretty good with this sort of stuff.

0 Likes
Message 7 of 8

zakzbroja
Participant
Participant

Hi, sorry I didn't see your response @a.laasW8M6T, I am using Brandon's post, I'll attach a file with the problematic toolpath, using Brandons post it outputs over -360 about mid way through. Let me know what you find out, thanks.

0 Likes
Message 8 of 8

bob.schultz
Alumni
Alumni
Accepted solution

Hello Zak,

 

There is an issue in the post engine where it will output angles past the range when the tool axis is near the singularity of the machine.  It has been reported to development.

 

You can work around this issue in your post by changing the following definitions in the post.

 

var cFormat = createFormat({decimals:3, forceDecimal:true, scale:DEG, cyclicLimit:Math.PI * 2});
...
var cOutput = createVariable({prefix:"C"}, cFormat);

 



Bob Schultz
Sr. Post Processor Developer