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 CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by