Need Math to Rotate XYZ Point Around A-B Rotary Axes

4 ビュー (過去 30 日間)
Randy Rauh
Randy Rauh 2020 年 1 月 22 日
コメント済み: Matt J 2020 年 1 月 22 日
I need help with some CNC Machine Tool logic that has to do with Coordinate Rotation. I have a known XYZ Point that I need to rotate around A(First Rotary) and B(Second Rotary) angles. The A-Axis is Parallel to "Z" and the B-Axis is Parallel to the "Y" Axis.
My logic for "Z" shown here works correctly to give me the pre-rotated Z-Axis value.
Z=(Z*(cos(Rotary B Angle)))-(X*(sin(Rotary B Angle))))
I can't come up with the correct formula for the same X-Y values.
Example:
This is a known value after Coordinate Rotate: X-8.8103 Y6.473 Z4.6117 A= -90 B= -45
I need a formula for the XYZ value BEFORE Coordinate Rotation which is: X6.473 Y9.4908 Z-2.96887
The Z Formula above works to properly convert Z4.6117 to Z-2.96887. I need help with a formula to do the same conversion for X-Y.
The software I am using to write the formula is a proprietary CAM Software with limited Math Operators such as ACS, ATN, COS, SIN, EXP, SQR, SQRT, TAN
  2 件のコメント
Matt J
Matt J 2020 年 1 月 22 日
The software I am using to write the formula is a proprietary CAM Software with limited Math Operators such as ACS, ATN, COS, SIN, EXP, SQR, SQRT, TAN
Does that mean that you are not working in Matlab? If so, this is probably not the right forum.
Matt J
Matt J 2020 年 1 月 22 日
Randy's comment moved here:
I am new to Matlab so I appologize for my question which was a plea for general Math help and not something that pertains only to working in Matlab. If you are a Moderator you can delete my non Matlab related question.

サインインしてコメントする。

採用された回答

Matt J
Matt J 2020 年 1 月 22 日
See Rodrigues' formula,
Also, though you are apparently not working in Matlab, you could use Matlab to verify your calculations using this FEX submission,

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by