My postprocessor has a problem with calculate angle of fifth axis. When I generate NC code for only one operation, the angle is right, but when I generate NC code for two operations together, the angle is still -90 like on the attachment.
Angle in the second operation should be +90 :/
I dont know why postprocessor does not calculate this angle.
Its 4th axis milling machine
I try reset this angle, but it still return on previous position -90...
I would be very grateful if someone will know what's going on.
Solved! Go to Solution.
reset all motion variables to zero - in the end of operation.
in library posts or ootb posts there exists this custom command
Notice that probably next operation continue with A(B)0, so C-90 was already the nearest solution, so it outputs C-90.
B0 C-90 is solvable for machining from the top. With any C.
But now you have reset all motion variables to zero.
But sometime somebody dont want to reset it.
For example when you have 4axis machine you can drill holes around: 1,2,3,4 , change tool and counter sink holes in reverse order 4,3,2,1.
So no extra moves (A to zero) are in the nc program.
In either case use "ROTATE" ude
If the Post always resets 4th 5th axis to 0, use Rotate UDE ref to angle nearest prefered start angle.
For Post not resetting, Use Rotate UDE with Ref angle 0
You choose preference