Error in rounding toolpath

This forum is for general discussion about Aspire
Post Reply
M Queen
Vectric Apprentice
Posts: 86
Joined: Tue Jul 29, 2014 9:25 pm
Model of CNC Machine: WinCNC Hybrid
Location: Buckhannon, WV, USA
Contact:

Error in rounding toolpath

Post by M Queen »

A customer of ours sent me rounding toolpath file today. I couldn't post the file but these lines are part of the file.

G1 A171.466395 Y15.000000 Z1.769591
G1 A171.466395 Y-15.000000 Z1.769591
G1 A-nan(ind) Y-nan(ind) Z1.769591
G1 A-nan(ind) Y-nan(ind) Z1.750000
G1 A44.540982 Y-15.000000 Z2.674874
G1 A44.540982 Y-15.000000 Z2.455282

Can any one tell me what these alpha characters are doing in these G-Code lines in place of the numeric positions?

G1 A-nan(ind) Y-nan(ind) Z1.769591

This is actually the second time I've seen this and both times were from a rounding toolpath and from a recent version of Aspire. I can actually reproduce it from 9.015.

I will post the crv3d file.
Attachments
Wrapped Output.crv3d
(51.5 KiB) Downloaded 125 times
Mike Queen
Microsystems World CNC (WinCNC)
https://www.youtube.com/user/cncMike304

User avatar
BrianM
Vectric Staff
Posts: 1964
Joined: Mon May 16, 2005 10:15 am
Model of CNC Machine: A few ...
Location: Alcester U.K
Contact:

Re: Error in rounding toolpath

Post by BrianM »

Hi Mike,

I can reproduce this with the "CAMASTER-WrapX2A ATC(inch)(*.tap)" post and your file so we will have a look at the issue tomorrow.

Brian

M Queen
Vectric Apprentice
Posts: 86
Joined: Tue Jul 29, 2014 9:25 pm
Model of CNC Machine: WinCNC Hybrid
Location: Buckhannon, WV, USA
Contact:

Re: Error in rounding toolpath

Post by M Queen »

Thanks Brian.
Mike Queen
Microsystems World CNC (WinCNC)
https://www.youtube.com/user/cncMike304

M Queen
Vectric Apprentice
Posts: 86
Joined: Tue Jul 29, 2014 9:25 pm
Model of CNC Machine: WinCNC Hybrid
Location: Buckhannon, WV, USA
Contact:

Re: Error in rounding toolpath

Post by M Queen »

Something that might be a clue... If I set the pass depth too shallow, like the image on the right (0.02), I get the error. But if I increase it just a little, like the image on the left (0.05), it outputs the code correctly.
Attachments
Good Bad.jpg
Mike Queen
Microsystems World CNC (WinCNC)
https://www.youtube.com/user/cncMike304

Pete Cyr
Vectric Craftsman
Posts: 240
Joined: Sun May 15, 2011 4:19 pm
Model of CNC Machine: Camaster Stinger II

Re: Error in rounding toolpath

Post by Pete Cyr »

In some algorithms NAN stands for "not a number".
Usually represents an error (ie: not a number error).

That is the limit of my understanding of that type of error - and in previous experience you need a rocket scientist to resolve the error.

User avatar
Leo
Vectric Wizard
Posts: 4082
Joined: Sat Jul 14, 2007 3:02 am
Model of CNC Machine: 1300 x 1300 x 254 Chinese Made
Location: East Freetown, Ma.
Contact:

Re: Error in rounding toolpath

Post by Leo »

hmmmm, is it possible that perhaps the .02 was something else - like ,02 - or .o2 or some other non number entry?
Imagine the Possibilities of a Creative mind, combined with the functionality of CNC

gregk
Vectric Staff
Posts: 373
Joined: Mon Mar 05, 2018 12:34 pm
Model of CNC Machine: None

Re: Error in rounding toolpath

Post by gregk »

Hi All,

The issue is in the gadget. It incorrectly calculates the pass depth in some cases and as a result computes acos of something > 1 which is undefined - thus returning a NaN (not a number).
The end result is a toolpath containing invalid points as reflected in the outputted g-code. Thus gadget have to be fixed, but also the code that handles toolpaths need to be more vigilant against such invalid toolpath and report the error to user.

Best regards,
Greg K

M Queen
Vectric Apprentice
Posts: 86
Joined: Tue Jul 29, 2014 9:25 pm
Model of CNC Machine: WinCNC Hybrid
Location: Buckhannon, WV, USA
Contact:

Re: Error in rounding toolpath

Post by M Queen »

Thanks Greg.
Mike Queen
Microsystems World CNC (WinCNC)
https://www.youtube.com/user/cncMike304

Post Reply