Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Get Euler Angles from .nci file


BernardoFreire
 Share

Recommended Posts

Dear all, 

Is it possible to calculate the Euler Angles (or the rotation matrix - three (or at least two) vectors defining the tool orientation) from a 5-axis .NCI file?
I can reach the tool axis (Z vector) but it is not enough to define the complete matrix, I need at least one more vector.
Also, is there some information in the .NCI file that tells me if the machine will privilege the rotary or the linear axis? 

Thank you in advance.

Best regards, 
Bernardo Freire

Link to comment
Share on other sites
39 minutes ago, BernardoFreire said:

Dear all, 

Is it possible to calculate the Euler Angles (or the rotation matrix - three (or at least two) vectors defining the tool orientation) from a 5-axis .NCI file?
I can reach the tool axis (Z vector) but it is not enough to define the complete matrix, I need at least one more vector.
Also, is there some information in the .NCI file that tells me if the machine will privilege the rotary or the linear axis? 

Thank you in advance.

Best regards, 
Bernardo Freire

Euler angles should only be needed at the start of the 5X path. Those angles can be calculated using the WCS Matrix (3 Vectors, arranged at right angles, to form a 9 variable Matrix). The WCS Matrix is output on the 1027 NCI Line. The Toolplane Matrix is output on NCI Line 1014.

It is important to understand how your machine parameters are set, as this will effect how the Euler angles are interpreted. I believe the default rotation is XZ'X''. (X, Z prime, X double prime). These 3 sequential rotations are used to orient the Feature Coordinate System. (G68.2)

Link to comment
Share on other sites

Typically when people talk about "Euler Angles", it is because they want to output "3 + 2" program paths. This allows the machine to position to "fixed angle pair", and then the machine can perform "planar cuts", which includes the ability to output 2D Cutter Radius Compensation.

For "live 5-Axis tool paths", these are typically Vector based. There are really two different formats for these Vector-based paths; either you are outputting the two rotary angles and XYZ, or you are outputting vector format, which is XYZ IJK. (The IJK is a Unit Vector, relative to the machine coordinate system.)

What NCI data are you trying to interpret? Is it Planar (Toolplane based), or Vector based (G11)?

It sounds like you are attempting to build your own 5-Axis Post, but you are starting with a 3-Axis Post. That is a lot of work to attempt. 

 

I would recommend contacting your Mastercam Reseller, to obtain a copy of the Generic Fanuc 5X Mill Post. This Post Processor is easy to configure (for an experienced Post Developer). This "master 5-Axis Post", can be configured for any 5-Axis machine type. (Gantry, Trunnion, Mixed-Mode, and even Nutating Machines can be configured. )

  • Like 1
Link to comment
Share on other sites
1 hour ago, Colin Gilchrist said:

I would recommend contacting your Mastercam Reseller, to obtain a copy of the Generic Fanuc 5X Mill Post.

this post can be downloaded from Mastecam.com for free once you have registered and have a working username and password

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...