Convert from unit vector to (maybe) special euler angles on a machine tool

AI Thread Summary
To position a part on a 5-axis milling machine, the user seeks to extract three angles from a unit vector to align a feature on a randomly oriented face. The machine's configuration includes three linear axes and two rotary axes, with the challenge being to make the local coordinate system's Z-axis parallel to the machine's Z-axis. The user has successfully calculated the A angle using the formula A=atan2(sqrt(z1*z1 + z2*z2), z3) but is seeking guidance on extracting the C angle and the third rotation needed for proper alignment. Another user expresses a similar challenge, specifically needing help with determining the C rotation after finding the A rotation. The discussion highlights the complexities of working with rotation matrices in a 5-axis milling context.
fennex
Messages
2
Reaction score
0
Hello,

I am trying to extract the 3 angles from a unit vector to position a part on a 5 axis milling machine:

This machine has 3 linear axes (x,y,z), direct coordinate system
It has 2 rotary axes:
A turns about the x (called 'tilt')
C is carried on the A axis (called 'rotary')
See picture of an example of such machine.

I want to machine a feature (ex: drill a hole) on a randomly oriented face
My CAD software gives me the unit matrix of the 'local' coordinate system:

x1 x2 x3
y1 y2 y3
z1 z2 z3

See the 2nd picture:
- blue face is the face (local xy plane) that has to be positionned parallel to the machine (brown lines) XY plane
-The machine only has 2 rotations so the best it can do is to make the local coordinate system Z axis parallel to the machine's Z axis (spindle)
Then I need to add the 3rd rotation by rotating (or mapping) the local coordinates around Z to express them in the machine's XYZ.

I am able to extract the 'A' value:
A=atan2( sqrt(z1*z1+ z2*z2),z3)

In the example picture, the cube is 2x2x1
In this particular case:
A = 35.264
C= 135

That brings the blue face (or the local z axis) parallel to the machine's Z axis.
But the part is rotated 180 degrees around z.
I can easily rotate the coordinates with a rotation matrix. This is the 3rd angle that is not physically there (like an Euler type machine) but can be implemented via matrices.

How do I extract the 'C' move?
How do I extract the 3rd angle?

Thank you,
Paul
 

Attachments

  • 5X-mill.gif
    5X-mill.gif
    32.2 KB · Views: 571
  • 5X-example.gif
    5X-example.gif
    15.1 KB · Views: 589
Physics news on Phys.org
Hello,

I found the answers, pretty easy actually after a few good nights thinking about it.

P
 
I have this exact same issue. Could you, or someone, show how this is done? I can find the rotation of the A axis fairly easily, but I'm stuck trying to determine the C rotation.

Thanks in advance,

Dan
 
Thread 'Gauss' law seems to imply instantaneous electric field propagation'
Imagine a charged sphere at the origin connected through an open switch to a vertical grounded wire. We wish to find an expression for the horizontal component of the electric field at a distance ##\mathbf{r}## from the sphere as it discharges. By using the Lorenz gauge condition: $$\nabla \cdot \mathbf{A} + \frac{1}{c^2}\frac{\partial \phi}{\partial t}=0\tag{1}$$ we find the following retarded solutions to the Maxwell equations If we assume that...
Thread 'Griffith, Electrodynamics, 4th Edition, Example 4.8. (First part)'
I am reading the Griffith, Electrodynamics book, 4th edition, Example 4.8 and stuck at some statements. It's little bit confused. > Example 4.8. Suppose the entire region below the plane ##z=0## in Fig. 4.28 is filled with uniform linear dielectric material of susceptibility ##\chi_e##. Calculate the force on a point charge ##q## situated a distance ##d## above the origin. Solution : The surface bound charge on the ##xy## plane is of opposite sign to ##q##, so the force will be...
Dear all, in an encounter of an infamous claim by Gerlich and Tscheuschner that the Greenhouse effect is inconsistent with the 2nd law of thermodynamics I came to a simple thought experiment which I wanted to share with you to check my understanding and brush up my knowledge. The thought experiment I tried to calculate through is as follows. I have a sphere (1) with radius ##r##, acting like a black body at a temperature of exactly ##T_1 = 500 K##. With Stefan-Boltzmann you can calculate...
Back
Top