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
- CSE: How to get the distance in Z from Machine zer...

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

CSE: How to get the distance in Z from Machine zero to zero piece.

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

01-26-2018 06:57 AM

Hello, I need to know the distance in Z from Machine zero to zero piece after a table rotation is performed.

I know how to get the distance from machine zero to zero piece at the begining of the program with setOffsetSysVar, but after moving (for example) the table, the distance between the zero piece and zero Machine is not the same. How can I kown the new distance?

Regards

Frank

5 REPLIES 5

Re: CSE: How to get the distance in Z from Machine zero to zero piece.

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

01-26-2018 08:54 AM - edited 01-26-2018 08:55 AM

Hi Frank,

are you talking about this?

Thomas

Re: CSE: How to get the distance in Z from Machine zero to zero piece.

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

01-26-2018 09:56 AM

Thanks for your quick answer.

Not exactly, I didn't explained it very well.

I need to know what is the distance (in Z or other joints), if all transformations were deactivated.

During the simulation some transformations causing "Displace origin", I need to know the distance between the zero piece and zero machine like if all transformations causing displace origin were deactivated.

Regards

Frank.

Re: CSE: How to get the distance in Z from Machine zero to zero piece.

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

01-26-2018 10:20 AM

What´s the intention or which problem do you have that you need this? Maybe there is another approach possible.

From my point of you you are able calculate this with the ikslinears calculation + the local offset values within the coordinate object?

The IKS linears calculating the deviation due to the rotation from machine zero to tool plus an optional offset. Which can be in your case the offset vom machine to local offset.

Thomas

Re: CSE: How to get the distance in Z from Machine zero to zero piece.

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

01-29-2018 04:09 AM

Hello,

I will try to explain a little bit better my problem, perhaps as you said, there is another approach.

I have two axes, Z and W, Z axis is under W, so when I move W, Z axis is moved too.

I need to freeze Z axis in Z=0 and move W so the tip of Z axis moves to coordinates piece.

For example if I programed "L W0 FMAX" the W axis must move a a distance that makes the tip of Z axis goes to Z=0 coordinates piece. That's why I need to know what is the distance Z axis would move and move the W axis instead.

Frank.

Re: CSE: How to get the distance in Z from Machine zero to zero piece.

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

01-29-2018 04:54 AM

AAHHH now I understand. Maybe we should talk the next time the other way around ;-)

Look at the sim17 OOTB sample. There is a sample for W-Axis compensation. It is for Sinumerik but can easily adapted for each controller.

In your case I could imagine that you introduce a transformation for the W axis compensation which is written with the calulcated values of W and Z when local offset (CYCL DEF 7 or 247) is active. The axis values can be retrieved by getJointValue("AXISNAME", "machine") in machine coordinates should be enough. You only need the delta between both axes.

Thomas

**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