Error in rounding toolpath

This forum is for general discussion about Aspire

Error in rounding toolpath

Postby M Queen » Mon Jul 09, 2018 9:47 pm

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 11 times
Mike Queen
Microsystems World CNC (WinCNC)
https://www.youtube.com/user/cncMike304
M Queen
Vectric Apprentice
 
Posts: 66
Joined: Tue Jul 29, 2014 9:25 pm
Location: Buckhannon, WV, USA
Model of CNC Machine: WinCNC Hybrid

Re: Error in rounding toolpath

Postby BrianM » Mon Jul 09, 2018 10:07 pm

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
Brian Moran
Managing Director
Vectric Ltd.
User avatar
BrianM
Vectric Staff
 
Posts: 1956
Joined: Mon May 16, 2005 10:15 am
Location: Redditch U.K

Re: Error in rounding toolpath

Postby M Queen » Tue Jul 10, 2018 3:53 am

Thanks Brian.
Mike Queen
Microsystems World CNC (WinCNC)
https://www.youtube.com/user/cncMike304
M Queen
Vectric Apprentice
 
Posts: 66
Joined: Tue Jul 29, 2014 9:25 pm
Location: Buckhannon, WV, USA
Model of CNC Machine: WinCNC Hybrid

Re: Error in rounding toolpath

Postby M Queen » Tue Jul 10, 2018 12:50 pm

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
M Queen
Vectric Apprentice
 
Posts: 66
Joined: Tue Jul 29, 2014 9:25 pm
Location: Buckhannon, WV, USA
Model of CNC Machine: WinCNC Hybrid

Re: Error in rounding toolpath

Postby Pete Cyr » Tue Jul 10, 2018 3:58 pm

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.
Pete Cyr
Vectric Craftsman
 
Posts: 158
Joined: Sun May 15, 2011 4:19 pm
Model of CNC Machine: Camaster Stinger II

Re: Error in rounding toolpath

Postby Leo » Tue Jul 10, 2018 4:16 pm

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

www.leosworkshop.com
User avatar
Leo
Vectric Wizard
 
Posts: 2609
Joined: Sat Jul 14, 2007 3:02 am
Location: East Freetown, Ma.
Model of CNC Machine: 1300 x 1300 x 254

Re: Error in rounding toolpath

Postby gregk » Tue Jul 10, 2018 4:52 pm

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
gregk
Vectric Staff
 
Posts: 2
Joined: Mon Mar 05, 2018 12:34 pm
Model of CNC Machine: None

Re: Error in rounding toolpath

Postby M Queen » Thu Jul 12, 2018 3:40 am

Thanks Greg.
Mike Queen
Microsystems World CNC (WinCNC)
https://www.youtube.com/user/cncMike304
M Queen
Vectric Apprentice
 
Posts: 66
Joined: Tue Jul 29, 2014 9:25 pm
Location: Buckhannon, WV, USA
Model of CNC Machine: WinCNC Hybrid


Return to Aspire - General

Who is online

Users browsing this forum: No registered users and 18 guests