G code question when running autolevel
- kenwoodhf
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 0
26 Apr 2022 19:56 #241325
by kenwoodhf
G code question when running autolevel was created by kenwoodhf
I am running LinuxCNC 2.8.2.11 and Autolevel 0.8.7
I get a error when I load a autolevel file
Near line 281 of..........AL6X6.ngc
Unknown word unary operation could be
N11 Z0.118
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
N12 G1Z[#100 + -0.1] F3.937 (this is Line 281)
#102=#500
#101=[#500+0*#507-0*#500]
#100=[#102+0*#101-0*#102]
N16 X0Y0 Z[#100 + -0.1]
#102=[#500+0*#507-0*#500]
#101=[#501+0*#508-0*#501]
#100=[#102+0.187*#101-0.187*#102]
N13 X0.187Y0 Z[#100 + -0.1] F20
I do not understand what the line is trying to tell me or how to change it.
Any help would be welcome
Jan
I get a error when I load a autolevel file
Near line 281 of..........AL6X6.ngc
Unknown word unary operation could be
N11 Z0.118
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
N12 G1Z[#100 + -0.1] F3.937 (this is Line 281)
#102=#500
#101=[#500+0*#507-0*#500]
#100=[#102+0*#101-0*#102]
N16 X0Y0 Z[#100 + -0.1]
#102=[#500+0*#507-0*#500]
#101=[#501+0*#508-0*#501]
#100=[#102+0.187*#101-0.187*#102]
N13 X0.187Y0 Z[#100 + -0.1] F20
I do not understand what the line is trying to tell me or how to change it.
Any help would be welcome
Jan
Please Log in or Create an account to join the conversation.
- MaHa
- Offline
- Platinum Member
Less
More
- Posts: 405
- Thank you received: 163
26 Apr 2022 20:38 - 26 Apr 2022 20:41 #241330
by MaHa
Replied by MaHa on topic G code question when running autolevel
This Line is highly suspicious, containing unknown gcode
#100=[#102+NaN*#101-NaN*#102]
#100=[#102+NaN*#101-NaN*#102]
Last edit: 26 Apr 2022 20:41 by MaHa.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19479
- Thank you received: 6532
26 Apr 2022 21:24 #241338
by tommylight
there is a + and a - in front of 0.1, not sure if that is the issue but never seen both signs in a value for gcode.
Replied by tommylight on topic G code question when running autolevel
N12 G1Z[#100 + -0.1] F3.937 (this is Line 281)
Please Log in or Create an account to join the conversation.
- kenwoodhf
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 0
26 Apr 2022 22:10 #241342
by kenwoodhf
Replied by kenwoodhf on topic G code question when running autolevel
Thanks for the comment
-0.1 is the Z depth of the cut in the program. I assume the line means #100 plus -0.1. but I am maybe just guessing
Jan
-0.1 is the Z depth of the cut in the program. I assume the line means #100 plus -0.1. but I am maybe just guessing
Jan
Please Log in or Create an account to join the conversation.
- kenwoodhf
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 0
26 Apr 2022 22:15 #241344
by kenwoodhf
Replied by kenwoodhf on topic G code question when running autolevel
Thanks for the reply
I have no idea what NaN even means but it only shows up once in 816 line program.
Jan
I have no idea what NaN even means but it only shows up once in 816 line program.
Jan
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19479
- Thank you received: 6532
26 Apr 2022 23:14 #241345
by tommylight
Replied by tommylight on topic G code question when running autolevel
Just a stab in the dark:
NaN = Not a Number ???
NaN = Not a Number ???
Please Log in or Create an account to join the conversation.
- kenwoodhf
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 0
27 Apr 2022 17:19 #241387
by kenwoodhf
Replied by kenwoodhf on topic G code question when running autolevel
Thanks
You could be right. I don't know why this line came up but it doesn't when I load other autolevel files. Must be a quirk in this file. I did delete the line and the program seemed to run fine.
Thanks again
Jan
You could be right. I don't know why this line came up but it doesn't when I load other autolevel files. Must be a quirk in this file. I did delete the line and the program seemed to run fine.
Thanks again
Jan
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
28 Apr 2022 23:29 #241585
by andypugh
Replied by andypugh on topic G code question when running autolevel
NaN is, indeed "Not a Number". It's a specific value in IEEE floating point:
en.wikipedia.org/wiki/NaN
It is an interesting thing. For example NaN = NaN is false.
That's probably more than you need to know, but it is generally the result of a divide-by-zero. It seems that autoleveller is parsing NaN into G-code strings in such a way that NaN becomes the string "NaN". It really ought to either error out, or put a zero in. Or something else.
en.wikipedia.org/wiki/NaN
It is an interesting thing. For example NaN = NaN is false.
That's probably more than you need to know, but it is generally the result of a divide-by-zero. It seems that autoleveller is parsing NaN into G-code strings in such a way that NaN becomes the string "NaN". It really ought to either error out, or put a zero in. Or something else.
Please Log in or Create an account to join the conversation.
Time to create page: 0.058 seconds