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'
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...
Maxwell’s equations imply the following wave equation for the electric field $$\nabla^2\mathbf{E}-\frac{1}{c^2}\frac{\partial^2\mathbf{E}}{\partial t^2} = \frac{1}{\varepsilon_0}\nabla\rho+\mu_0\frac{\partial\mathbf J}{\partial t}.\tag{1}$$ I wonder if eqn.##(1)## can be split into the following transverse part $$\nabla^2\mathbf{E}_T-\frac{1}{c^2}\frac{\partial^2\mathbf{E}_T}{\partial t^2} = \mu_0\frac{\partial\mathbf{J}_T}{\partial t}\tag{2}$$ and longitudinal part...
Back
Top