Can someone know how to calculate the tool vector angle?
CL File: GOTO 12.3, 50.2, 30.5 0, -0.5625358,0.99525365
NC File: G0 X12.3 Y50.2 Z30.5 A?? C??
You no need to calc this angles manually (of course, you can do it if you want, but - no need). Open PostBuilder and create new postprocessor for your cnc machine. Define type of machine - table-table, table-head, head-head. Set axis for each table-head - C around Z, A around X etc. Save postprocessor and prostprocess any path. You will see needed angles. Thats all.
Another way - trigonometryc formulas, paper and pencil.
That would be good to know.
I suppose there must be machine axis vector and tool axis vector in that calculation.
And after calculating some matrix - you need to extract angles.
Also calculate XYZ positions from mcs goto according to rotation matrix.
I am really curious about it too.