Cancel
Showing results for 
Search instead for 
Did you mean: 

[Post Builder] two vector angle value

Solution Partner Builder Solution Partner Builder
Solution Partner Builder

Hi

 

Machine is Horizontal BC 5axis type.

In Baxis is 30, Caxis is rotating and drilling.

 

operation.jpg

 

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"

 

martix is

22.jpg

 

Vector-1 is
mom_tool_axis(0) : -0.0213876645487178
mom_tool_axis(1) : 0.0943023524727549
mom_tool_axis(2) : 0.995313836999795

Vector-2 is
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:

33.jpg

 

Finally, we can get the angle between two vectors.

 

55.jpg

 

I applied it to Post Builder and output it, but the value is output differently.
Could you tell me what the cause is?

 

66.jpg

5 REPLIES

Re: [Post Builder] two vector angle value

Gears Phenom Gears Phenom
Gears Phenom

Angles generated by PB/NX are good, why want you to calculate your own ?

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: [Post Builder] two vector angle value

Solution Partner Builder Solution Partner Builder
Solution Partner Builder

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.
thank you.

Re: [Post Builder] two vector angle value

Gears Phenom Gears Phenom
Gears Phenom

OK but why you want to calculate  rotations from tool axis vector when you have angle pos. generated by nx?

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: [Post Builder] two vector angle value

Phenom
Phenom

The alternate angle solutions are already calculated

 

From the post bulder MOM Varibles Browser

 

mom_alt_pos

 

Numeric Array(5)

 

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..

 

 

Re: [Post Builder] two vector angle value

Gears Phenom Gears Phenom
Gears Phenom

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.

---------------------------------------------
#♫ PB, 5ax, itnc, nx, vericut ♫ #

Learn online





Solution Information