Machine is Horizontal BC 5axis type.
In Baxis is 30, Caxis is rotating and drilling.
I want to output the C axis rotation value through two vector values.
So I set it as follows.
The axis unit vector is set to (0,1,0).
Theta_Deg is "30", theta_rad is "PI()*30/180"
mom_tool_axis(0) : -0.0213876645487178
mom_tool_axis(1) : 0.0943023524727549
mom_tool_axis(2) : 0.995313836999795
mom_tool_axis(0) : -0.0580503221750321
mom_tool_axis(1) : 0.182820391187503
mom_tool_axis(2) : 0.981431028988498
Applying the Baxis rotation value, Vector-1 and Vector-2 can get the following values:
Finally, we can get the angle between two vectors.
I applied it to Post Builder and output it, but the value is output differently.
Could you tell me what the cause is?
Angles generated by PB/NX are good, why want you to calculate your own ?
This is the same for B-axis rotation values. Only C-axis can be rotated and drilled. Please give me your e-mail address and we will send you a simple simulation video to try.
OK but why you want to calculate rotations from tool axis vector when you have angle pos. generated by nx?
The alternate angle solutions are already calculated
From the post bulder MOM Varibles Browser
The alternate machine tool coordinates (X,Y,Z,fourth axis,fifth axis) for the current GOTO. This value is different from mom_pos if the kinematics of the machine tool is five axis. Otherwise, mom_alt_pos will be the same as mom_pos. For five axis machine tools, there are always at least two valid solutions when converting the input coordinates (X,Y,Z,I,J,K) into machine tool coordinates (X,Y,Z,A,B). The optimal solution will be mom_pos, the alternate solution will be mom_alt_pos..
I think whn you have mcs in the midle of the part there is a correct rotation of axis, but XY not zeros.
When you has mcs in one hole – rotation is generated to this mcs.
So there could be diference.