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.
Error in rounding toolpath
-
- 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
- Attachments
-
- Wrapped Output.crv3d
- (51.5 KiB) Downloaded 125 times
Mike Queen
Microsystems World CNC (WinCNC)
https://www.youtube.com/user/cncMike304
Microsystems World CNC (WinCNC)
https://www.youtube.com/user/cncMike304
- 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
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
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
-
- 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
Thanks Brian.
Mike Queen
Microsystems World CNC (WinCNC)
https://www.youtube.com/user/cncMike304
Microsystems World CNC (WinCNC)
https://www.youtube.com/user/cncMike304
-
- 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
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.
Mike Queen
Microsystems World CNC (WinCNC)
https://www.youtube.com/user/cncMike304
Microsystems World CNC (WinCNC)
https://www.youtube.com/user/cncMike304
-
- Vectric Craftsman
- Posts: 240
- Joined: Sun May 15, 2011 4:19 pm
- Model of CNC Machine: Camaster Stinger II
Re: Error in rounding toolpath
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.
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.
- 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
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
Re: Error in rounding toolpath
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
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
-
- 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
Thanks Greg.
Mike Queen
Microsystems World CNC (WinCNC)
https://www.youtube.com/user/cncMike304
Microsystems World CNC (WinCNC)
https://www.youtube.com/user/cncMike304