Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Siemens PLM Community
- NX Manufacturing
- Discussion Forum - NX Manufacturing
- Re: tool vector calculation

Options

- Start Article
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

tool vector calculation

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-23-2017 09:56 PM

Hello,

Can someone know how to calculate the tool vector angle?

For instant:

CL File: GOTO 12.3, 50.2, 30.5 0, -0.5625358,0.99525365

NC File: G0 X12.3 Y50.2 Z30.5 A?? C??

Thanks!

-----------------------------------------

UG3.0

UG6.0

NX10.0.35

NX11.0.1

UG_NX is my favorite !!!!!!

UG3.0

UG6.0

NX10.0.35

NX11.0.1

UG_NX is my favorite !!!!!!

8 REPLIES 8

Re: tool vector calculation

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-25-2017 04:17 AM

You no need to calc this angles manually (of course, you can do it if you want, but - no need). Open PostBuilder and create new postprocessor for your cnc machine. Define type of machine - table-table, table-head, head-head. Set axis for each table-head - C around Z, A around X etc. Save postprocessor and prostprocess any path. You will see needed angles. Thats all.

Another way - trigonometryc formulas, paper and pencil.

Re: tool vector calculation

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-25-2017 08:00 PM

-----------------------------------------

UG3.0

UG6.0

NX10.0.35

NX11.0.1

UG_NX is my favorite !!!!!!

UG3.0

UG6.0

NX10.0.35

NX11.0.1

UG_NX is my favorite !!!!!!

Re: tool vector calculation

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-26-2017 05:26 AM

That would be good to know.

I suppose there must be machine axis vector and tool axis vector in that calculation.

And after calculating some matrix - you need to extract angles.

Also calculate XYZ positions from mcs goto according to rotation matrix.

I am really curious about it too.

---------------------------------------------

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

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

Highlighted
#

Not so difficult.

IJK is tool axis vector.

If K not equal 1.00000 (or < 0.9999999999) calc length = sqrt(i*i + j*j)

Divide i and j to length, normalize ij vector.

For AC table machine C will be arcsin(j/length), use i value to define sign and value for c angle (+- 3.141592...)

A will be arccos(K).

If you can use ugopen c angle will be UF_VEC3_angle_between( Y, ij_vector, Z) and you get C from 0.....360

Y is 0,1,0

Z is 0,0,1

Re: tool vector calculation

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-26-2017 06:41 AM - edited 06-26-2017 06:46 AM

IJK is tool axis vector.

If K not equal 1.00000 (or < 0.9999999999) calc length = sqrt(i*i + j*j)

Divide i and j to length, normalize ij vector.

For AC table machine C will be arcsin(j/length), use i value to define sign and value for c angle (+- 3.141592...)

A will be arccos(K).

If you can use ugopen c angle will be UF_VEC3_angle_between( Y, ij_vector, Z) and you get C from 0.....360

Y is 0,1,0

Z is 0,0,1

Re: tool vector calculation

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-26-2017 07:56 AM

Re: tool vector calculation

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-26-2017 08:21 AM

Re: tool vector calculation

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-26-2017 10:35 AM

The postprocessor should output these angles. The calculations based onthe kinematics of the machine are part of NX.

Retired Siemens

Re: tool vector calculation

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

06-26-2017 10:38 AM

Absolutely agree and my first answer a same.

**Learning Advantage** Learn NX CAM online at your own pace (Login required)

**Manufacturing Tutorials**

Already have NX CAM installed? Get hands-on with the in-software tutorials

**Product Support**

Contact Global Technical Access Center (GTAC)

Follow Siemens PLM Software

© 2019 Siemens Product Lifecycle Management Software Inc