Fanuc/fanuc posprocessors: incorrect TWP Euler's angles for G68.2 (P0)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone
I'd like to report a potentially dangerous error in the "Fanuc / fanuc" postprocessor TWP implementation.
In short: the tests on a Fanuc Robodrill (AC-rotary/swing table) machine failed - the machine didn't turned the rotary axes as expected (fortunately no collision occurred).
My setup (A0. C0.):
The program starts with the straight op1 (executed successfully) and tilted op2, stopped with alarm, no rotary axes move observed.
Op1. straignt, Facing end of stock
Op2., tilted, Facing upper ridge
The output from the "Fanuc / fanuc" postprocessor I tested on the machine:
... (FACING END OF STOCK)
G69 ... (FACING UPPER RIDGE) G68.2 X0. Y0. Z0. I-90. J0. K-90. G53.1 G49 G00 X22.672 Y-13.162 G43 Z37. H01 ...
The alarm on the machine was generated by last visible line, G43 Z37.0 H01: "Z limit exceeded "
It seems that the Euler's angles are calculated incorrectly. Namely, the above TWP command
G68.2 X0. Y0. Z0. I-90. J0. K-90. generates coordinate system that is not tilted at all, but rotated around Z about -180deg (please correct me if I'm wrong - here is the Fanuc TWP instructory film ).
As far as I know stereometry, the correct values for my case would be : G68.2 X0. Y0. Z0. I-90. J-90. K0. , or even simpler to understand and check option P3: XZ-vectors:
G68.2 P3 Q1 X0. Y0. Z0. I0. J-1. K0. ;new X axis is the old -Y axis G68.2 P3 Q2 I1. J0. K0. ;new Z axis is the old X axis
And here is my kind request to the postprocessor developers: could you please correct me or the "Fanuc / fanuc" postprocessor, the wrong one 😉
Ps.
I tried the Fanuc /Robodrill postprocessor, but it doesn't output any TWP code and, just invalid direct moves (will report these errors in a separate post)