NaN in G code
Posted: Sat Oct 12, 2013 8:47 pm
Hi James, others,
Thanks for your great looking software; I'm trying it but have a problem.
For the first time I took a simple rectangle of 30 by 40 mm:
(Generated by ColiCAM Version: 3.54 Revision: 2013/01/20)
(TOOL LIST:)
(T3 3.000mm Id=81 Flat end mill ø 3,00 mm)
G94
G00 Z20.000
G00 X0.000 Y0.000
(Id=81 Flat end mill ø 3,00 mm 3.000mm)
T03
G97 M03 S24000
G00 Z20.000
G00 X0.000 Y0.000
G00 Z0.500
G01 Z-1.000 F15.000
G01 X40.000 Y0.000 F96.000
G01 X40.000 Y30.000
G01 X0.000 Y30.000
G01 X0.000 Y0.000
G00 Z20.000
M05
G00 Z20.000
G00 X0.000 Y0.000
M02
M30
1. I did put in Autoleveler and could not set there the metric units (the rectangle there on top of the list is blanc and refuses any settinsg as mm's etc.
2. Nevertheless I generated/created the probing code, goes well.
Go to the mach3 mill and it stops early in the code because it's FULL of "NaN' which MACH3 does (of course) not understand.
What am I doing wrong. Thanks for your help in advance,
Hessel Oosten , The Netherlands
Below the converted code after autoleveler, see all "NaN'.
I did cut some lines because the max lines in this message.
(AutoLeveller, Version: 0.7.7, http://autoleveller.co.uk)
(Copyright 2013 James Hawthorne PhD)
(Original file: 3040.gcd)
(Creation date: 12/10/2013 time: 21:55)
(This program and any of its output is licensed under GPLv2 and as such...)
(AutoLeveller comes with ABSOLUTELY NO WARRANTY; for details, see sections 11 and 12 of the GPLv2)
(prerequisites)
(1. need a working probe)
(2. tool needs to be within 3/8" of copper board for the 1st probe, )
(i.e. Z0.000 should be no more than 3/8" above the board initially)
(Note: The first probe will touch off Z to 0.000 when it first touches to copper, )
(all other probe values are relative to this first point)
G21 (metric)
G90 (absolute distance mode, not incremental)
(begin initial probe and set Z to 0)
G0 XNaN Y0 Z0
G31 Z-0.375 F100
G92 Z0
G0 Z2
G31 Z-1 F50
G92 Z0
G0 Z2
G0 XNaN Y0
G31 Z-1 F100
#500=#2002
G0 Z2
G0 XNaN Y11.20267
G31 Z-1 F100
#501=#2002
G0 Z2
G0 XNaN Y22.40533
G31 Z-1 F100
#502=#2002
G0 Z2
G0 XNaN Y33.608
G31 Z-1 F100
#503=#2002
G0 Z2
G0 XNaN Y0 Z20
(Set S value to ensure Speed has a value otherwise the spindle will not start on an M3 command)
S20000
(The program will pause to allow the probe to be detached)
(press cycle start to resume from current line)
M0
(The original mill file is now rewritten with z depth replaced with a)
(bilinear interpolated value based on the initial probing)
(Generated by ColiCAM Version: 3.54 Revision: 2013/01/20)
(TOOL LIST:)
(T3 3.000mm Id=81 Flat end mill ø 3,00 mm)
G94
G0 Z20
G0 X0 Y0
(Id=81 Flat end mill ø 3,00 mm 3.000mm)
T3
G97 M3 S24000
G0 Z20
G0 X0 Y0
G0 Z0.5
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 Z[#100 + -1] F15
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X0.187 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X0.374 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X0.561 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X0.748 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X0.935 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X1.122 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X1.309 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X1.496 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X1.683 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X1.87 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X2.057 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X2.244 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
Thanks for your great looking software; I'm trying it but have a problem.
For the first time I took a simple rectangle of 30 by 40 mm:
(Generated by ColiCAM Version: 3.54 Revision: 2013/01/20)
(TOOL LIST:)
(T3 3.000mm Id=81 Flat end mill ø 3,00 mm)
G94
G00 Z20.000
G00 X0.000 Y0.000
(Id=81 Flat end mill ø 3,00 mm 3.000mm)
T03
G97 M03 S24000
G00 Z20.000
G00 X0.000 Y0.000
G00 Z0.500
G01 Z-1.000 F15.000
G01 X40.000 Y0.000 F96.000
G01 X40.000 Y30.000
G01 X0.000 Y30.000
G01 X0.000 Y0.000
G00 Z20.000
M05
G00 Z20.000
G00 X0.000 Y0.000
M02
M30
1. I did put in Autoleveler and could not set there the metric units (the rectangle there on top of the list is blanc and refuses any settinsg as mm's etc.
2. Nevertheless I generated/created the probing code, goes well.
Go to the mach3 mill and it stops early in the code because it's FULL of "NaN' which MACH3 does (of course) not understand.
What am I doing wrong. Thanks for your help in advance,
Hessel Oosten , The Netherlands
Below the converted code after autoleveler, see all "NaN'.
I did cut some lines because the max lines in this message.
(AutoLeveller, Version: 0.7.7, http://autoleveller.co.uk)
(Copyright 2013 James Hawthorne PhD)
(Original file: 3040.gcd)
(Creation date: 12/10/2013 time: 21:55)
(This program and any of its output is licensed under GPLv2 and as such...)
(AutoLeveller comes with ABSOLUTELY NO WARRANTY; for details, see sections 11 and 12 of the GPLv2)
(prerequisites)
(1. need a working probe)
(2. tool needs to be within 3/8" of copper board for the 1st probe, )
(i.e. Z0.000 should be no more than 3/8" above the board initially)
(Note: The first probe will touch off Z to 0.000 when it first touches to copper, )
(all other probe values are relative to this first point)
G21 (metric)
G90 (absolute distance mode, not incremental)
(begin initial probe and set Z to 0)
G0 XNaN Y0 Z0
G31 Z-0.375 F100
G92 Z0
G0 Z2
G31 Z-1 F50
G92 Z0
G0 Z2
G0 XNaN Y0
G31 Z-1 F100
#500=#2002
G0 Z2
G0 XNaN Y11.20267
G31 Z-1 F100
#501=#2002
G0 Z2
G0 XNaN Y22.40533
G31 Z-1 F100
#502=#2002
G0 Z2
G0 XNaN Y33.608
G31 Z-1 F100
#503=#2002
G0 Z2
G0 XNaN Y0 Z20
(Set S value to ensure Speed has a value otherwise the spindle will not start on an M3 command)
S20000
(The program will pause to allow the probe to be detached)
(press cycle start to resume from current line)
M0
(The original mill file is now rewritten with z depth replaced with a)
(bilinear interpolated value based on the initial probing)
(Generated by ColiCAM Version: 3.54 Revision: 2013/01/20)
(TOOL LIST:)
(T3 3.000mm Id=81 Flat end mill ø 3,00 mm)
G94
G0 Z20
G0 X0 Y0
(Id=81 Flat end mill ø 3,00 mm 3.000mm)
T3
G97 M3 S24000
G0 Z20
G0 X0 Y0
G0 Z0.5
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 Z[#100 + -1] F15
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X0.187 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X0.374 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X0.561 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X0.748 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X0.935 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X1.122 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X1.309 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X1.496 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X1.683 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X1.87 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X2.057 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]
G1 X2.244 Y0 Z[#100 + -1] F96
#102=#500
#101=#500
#100=[#102+NaN*#101-NaN*#102]