autoleveller with nonconductive material

Help for setting up and using
neptunier
Posts: 21
Joined: Tue Sep 02, 2014 12:47 pm

autoleveller with nonconductive material

Post by neptunier »

hi all,
i am new here, my name is michael and i am from germany.
i just got a copy of the 0.8 autoleveller software which works fine.
however, my cnc setup is a little different then the pcb setup. i use two probes, which are switches. one i put on the material to get the 0-point, the other is attached to the z-axis a little below the endmill.
when i autolevel, i use the switch attached to the z-axis to create the probe file.
then i create the gcode and use the other switch to get my endmill to the correct position. that works fine but i had to change the o100 sub to the following:

M5 (make sure the spindle is stopped)
M0 (pause for any probe wires to be attached)
G0 X#500 Y#501 (move to X Y position)
G31 Z-10.0 F200.0 (probe)
G92 Z#502 (set Z to position)
G92 Z31.55 (hight of probe switch)
g0 Z38
M0 (pause for removing switch)
G0 Z2

is there a way to put this into the software, maybe importing a .txt file as a o100 sub? otherwise i would have to change it every time and i already killed one switch with the regular o100 :?

as i use a bigger working space (1000 x 500 mm) then a standard pcb the probe spacing in my case is 50mm. the autolevel processed gcode then adjusts the z hight every 50mm but a g1 x50 is processed into g1 x5 g1 x10 and so on.
is there a way to adjust the z hight every 5mm? i guess it would be a simple pythagoras calculation for the points between x=0 and x=50mm. probing every 5 mm takes a lot of time.

thanks,
michael
Attachments
IMG_0322.JPG
IMG_0322.JPG (145.41 KiB) Viewed 9085 times
daedelus
Site Admin
Posts: 387
Joined: Tue Oct 01, 2013 1:41 pm
Location: London, UK
Contact:

Re: autoleveller with nonconductive material

Post by daedelus »

Hi Michael,

First of all, you should probably change the code there to:

Code: Select all

M5 (make sure the spindle is stopped)
M0 (pause for any probe wires to be attached)
G0 X#500 Y#501 (move to X Y position)
G31 Z-10.0 F200.0 (probe)
G92 Z[31.55 + #502] (hight of probe switch + set Z to position)
g0 Z38
M0 (pause for removing switch)
G0 Z2
otherwise the G92 line for setting the probe switch height will just overwrite the previous G92 line.

The idea of setting custom sub procedures is a good one though as I am not happy with how I have done it currently. Custom subs make it more flexible which is nice :).

I think you mean, the height is adjusted every 5mm? Which is true, and you cannot change this value currently. I think you are trying to get the probe spacing to match this 5mm value, so where you want the probe spacing to be 50mm, you are changing it to 5mm to match more closely? You dont need to do this however, as the Autoleveller uses bi-linear interpolation and the height should be correctly adjusted anywhere is the 50mm square. It is OK to leave probe spacing at 50mm.
http://www.autoleveller.co.uk/. Software to probe and adjust a GCode file for PCB's or any probe-able surface.

http://www.autoleveller.co.uk/cnc-probe-guide/. A short guide to setting up the probe.

-James
neptunier
Posts: 21
Joined: Tue Sep 02, 2014 12:47 pm

Re: autoleveller with nonconductive material

Post by neptunier »

thanks for the corrected sub.
i looked again at my processed gcode. the first lines, he does not adjust the z height every 5 mm, it takes up to 30mm. from x25 to x30 the z height jumps 0.1mm. towards the end of the gcode every 5mm is a seperate z height calcalated.
here is the gcode:

Code: Select all

//////////////////////////////////////////////////////////////////////////////////////////////
(AutoLeveller, Version: 0.8.3, http://autoleveller.co.uk)
(Copyright 2013-2014 James Hawthorne PhD)
(Original GCode file: 470x370.tap)
(Creation date: 28/08/2014 time: 15:15)

(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)

(Log file Name: C:\Dokumente und Einstellungen\m\Eigene Dateien\480x380probe.txt)
(The following shows the "point order" when the work-piece was probed)

(80 | 79 | 78 | 77 | 76 | 75 | 74 | 73 | 72 | 71)
(61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70)
(60 | 59 | 58 | 57 | 56 | 55 | 54 | 53 | 52 | 51)
(41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50)
(40 | 39 | 38 | 37 | 36 | 35 | 34 | 33 | 32 | 31)
(21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30)
(20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11)
(1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10)

(Match the "point order" with the XYZ position here)

(1  | X = 0,000000     Y = 0,000000     Z = 0,002500)
(2  | X = 53,447500    Y = 0,000000     Z = -0,062500)
(3  | X = 106,895000   Y = 0,000000     Z = -0,115000)
(4  | X = 160,342500   Y = 0,000000     Z = -0,205000)
(5  | X = 213,790000   Y = 0,000000     Z = -0,300000)
(6  | X = 267,237500   Y = 0,000000     Z = -0,390000)
(7  | X = 320,685000   Y = 0,000000     Z = -0,437500)
(8  | X = 374,132500   Y = 0,000000     Z = -0,480000)
(9  | X = 427,580000   Y = 0,000000     Z = -0,632500)
(10 | X = 481,027500   Y = 0,000000     Z = -0,775000)
(11 | X = 481,027500   Y = 54,432500    Z = -0,800000)
(12 | X = 427,580000   Y = 54,432500    Z = -0,710000)
(13 | X = 374,132500   Y = 54,432500    Z = -0,577500)
(14 | X = 320,685000   Y = 54,432500    Z = -0,550000)
(15 | X = 267,237500   Y = 54,432500    Z = -0,505000)
(16 | X = 213,790000   Y = 54,432500    Z = -0,430000)
(17 | X = 160,342500   Y = 54,432500    Z = -0,382500)
(18 | X = 106,895000   Y = 54,432500    Z = -0,287500)
(19 | X = 53,447500    Y = 54,432500    Z = -0,260000)
(20 | X = 0,000000     Y = 54,432500    Z = -0,167500)
(21 | X = 0,000000     Y = 108,865000   Z = -0,192500)
(22 | X = 53,447500    Y = 108,865000   Z = -0,277500)
(23 | X = 106,895000   Y = 108,865000   Z = -0,317500)
(24 | X = 160,342500   Y = 108,865000   Z = -0,395000)
(25 | X = 213,790000   Y = 108,865000   Z = -0,440000)
(26 | X = 267,237500   Y = 108,865000   Z = -0,505000)
(27 | X = 320,685000   Y = 108,865000   Z = -0,592500)
(28 | X = 374,132500   Y = 108,865000   Z = -0,640000)
(29 | X = 427,580000   Y = 108,865000   Z = -0,747500)
(30 | X = 481,027500   Y = 108,865000   Z = -0,780000)
(31 | X = 481,027500   Y = 163,295000   Z = -0,805000)
(32 | X = 427,580000   Y = 163,295000   Z = -0,745000)
(33 | X = 374,132500   Y = 163,295000   Z = -0,660000)
(34 | X = 320,685000   Y = 163,295000   Z = -0,595000)
(35 | X = 267,237500   Y = 163,295000   Z = -0,515000)
(36 | X = 213,790000   Y = 163,295000   Z = -0,455000)
(37 | X = 160,342500   Y = 163,295000   Z = -0,410000)
(38 | X = 106,895000   Y = 163,295000   Z = -0,312500)
(39 | X = 53,447500    Y = 163,295000   Z = -0,302500)
(40 | X = 0,000000     Y = 163,295000   Z = -0,190000)
(41 | X = 0,000000     Y = 217,727500   Z = -0,225000)
(42 | X = 53,447500    Y = 217,727500   Z = -0,277500)
(43 | X = 106,895000   Y = 217,727500   Z = -0,265000)
(44 | X = 160,342500   Y = 217,727500   Z = -0,352500)
(45 | X = 213,790000   Y = 217,727500   Z = -0,420000)
(46 | X = 267,237500   Y = 217,727500   Z = -0,502500)
(47 | X = 320,685000   Y = 217,727500   Z = -0,585000)
(48 | X = 374,132500   Y = 217,727500   Z = -0,627500)
(49 | X = 427,580000   Y = 217,727500   Z = -0,722500)
(50 | X = 481,027500   Y = 217,727500   Z = -0,792500)
(51 | X = 481,027500   Y = 272,160000   Z = -0,790000)
(52 | X = 427,580000   Y = 272,160000   Z = -0,685000)
(53 | X = 374,132500   Y = 272,160000   Z = -0,572500)
(54 | X = 320,685000   Y = 272,160000   Z = -0,542500)
(55 | X = 267,237500   Y = 272,160000   Z = -0,485000)
(56 | X = 213,790000   Y = 272,160000   Z = -0,407500)
(57 | X = 160,342500   Y = 272,160000   Z = -0,315000)
(58 | X = 106,895000   Y = 272,160000   Z = -0,220000)
(59 | X = 53,447500    Y = 272,160000   Z = -0,280000)
(60 | X = 0,000000     Y = 272,160000   Z = -0,260000)
(61 | X = 0,000000     Y = 326,592500   Z = -0,285000)
(62 | X = 53,447500    Y = 326,592500   Z = -0,305000)
(63 | X = 106,895000   Y = 326,592500   Z = -0,230000)
(64 | X = 160,342500   Y = 326,592500   Z = -0,305000)
(65 | X = 213,790000   Y = 326,592500   Z = -0,387500)
(66 | X = 267,237500   Y = 326,592500   Z = -0,452500)
(67 | X = 320,685000   Y = 326,592500   Z = -0,515000)
(68 | X = 374,132500   Y = 326,592500   Z = -0,547500)
(69 | X = 427,580000   Y = 326,592500   Z = -0,667500)
(70 | X = 481,027500   Y = 326,592500   Z = -0,790000)
(71 | X = 481,027500   Y = 381,025000   Z = -0,717500)
(72 | X = 427,580000   Y = 381,025000   Z = -0,637500)
(73 | X = 374,132500   Y = 381,025000   Z = -0,542500)
(74 | X = 320,685000   Y = 381,025000   Z = -0,477500)
(75 | X = 267,237500   Y = 381,025000   Z = -0,392500)
(76 | X = 213,790000   Y = 381,025000   Z = -0,330000)
(77 | X = 160,342500   Y = 381,025000   Z = -0,260000)
(78 | X = 106,895000   Y = 381,025000   Z = -0,255000)
(79 | X = 53,447500    Y = 381,025000   Z = -0,292500)
(80 | X = 0,000000     Y = 381,025000   Z = -0,115000)
G21 (millimeters)
G90 (absolute distance mode, not incremental)


(Set S value to ensure Speed has a value otherwise the spindle will not start on an M3 command)
S20000

(Set variables #500, #501, #502 to X Y and Z to be used by o100)
#500 = 0.0
#501 = 0.0
#502 = 0.00250
(Set Z before milling starts...)
M98 P100
M98 P200

( 470x370 )
( File created: Donnerstag, August 28, 2014 - 03:15 )
( for Mach2/3 from Vectric )
( Material Size)
( X= 500.000, Y= 400.000, Z= 3.000)
()
(Toolpaths used in this file:)
(Kontur 1)
(Tools used in this file: )
(1 = Furniermesser)
N100G0G21G17G90G40G49G80
N110G71G91.1
N120T1M6
N130 (Furniermesser)

N150G1 Z6 F600
N160S16000M3
N170G4 P5
N180(Toolpath:- Kontur 1)
N190()
N200G94
N210X0Y0F600
N220G0X0.223Y-0.865Z2
N230G1Z-0.9975F300
N240G1X5.223 Z-0.9975F600
N240G1X10.223 Z-0.9975F600
N240G1X15.223 Z-0.9975F600
N240G1X20.223 Z-0.9975F600
N240G1X25.223 Z-0.9975F600
N240G1X30.223 Z-1.0625F600
N240G1X35.223 Z-1.0625F600
N240G1X40.223 Z-1.0625F600
N240G1X45.223 Z-1.0625F600
N240G1X50.223 Z-1.0625F600
N240G1X55.223 Z-1.0625F600
N240G1X60.223 Z-1.0625F600
N240G1X65.223 Z-1.0625F600
N240G1X70.223 Z-1.0625F600
N240G1X75.223 Z-1.0625F600
N240G1X80.223 Z-1.115F600
N240G1X85.223 Z-1.115F600
N240G1X90.223 Z-1.115F600
N240G1X95.223 Z-1.115F600
N240G1X100.223 Z-1.115F600
N240G1X105.223 Z-1.115F600
N240G1X110.223 Z-1.115F600
N240G1X115.223 Z-1.115F600
N240G1X120.223 Z-1.115F600
N240G1X125.223 Z-1.115F600
N240G1X130.223 Z-1.115F600
N240G1X135.223 Z-1.205F600
N240G1X140.223 Z-1.205F600
N240G1X145.223 Z-1.205F600
N240G1X150.223 Z-1.205F600
N240G1X155.223 Z-1.205F600
N240G1X160.223 Z-1.205F600
N240G1X165.223 Z-1.205F600
N240G1X170.223 Z-1.205F600
N240G1X175.223 Z-1.205F600
N240G1X180.223 Z-1.205F600
N240G1X185.223 Z-1.205F600
N240G1X190.223 Z-1.3F600
N240G1X195.223 Z-1.3F600
N240G1X200.223 Z-1.3F600
N240G1X205.223 Z-1.3F600
N240G1X210.223 Z-1.3F600
N240G1X215.223 Z-1.3F600
N240G1X220.223 Z-1.3F600
N240G1X225.223 Z-1.3F600
N240G1X230.223 Z-1.3F600
N240G1X235.223 Z-1.3F600
N240G1X240.223 Z-1.3F600
N240G1X245.223 Z-1.39F600
N240G1X250.223 Z-1.39F600
N240G1X255.223 Z-1.39F600
N240G1X260.223 Z-1.39F600
N240G1X265.223 Z-1.39F600
N240G1X270.223 Z-1.39F600
N240G1X275.223 Z-1.39F600
N240G1X280.223 Z-1.39F600
N240G1X285.223 Z-1.39F600
N240G1X290.223 Z-1.39F600
N240G1X295.223 Z-1.4375F600
N240G1X300.223 Z-1.4375F600
N240G1X305.223 Z-1.4375F600
N240G1X310.223 Z-1.4375F600
N240G1X315.223 Z-1.4375F600
N240G1X320.223 Z-1.4375F600
N240G1X325.223 Z-1.4375F600
N240G1X330.223 Z-1.4375F600
N240G1X335.223 Z-1.4375F600
N240G1X340.223 Z-1.4375F600
N240G1X345.223 Z-1.4375F600
N240G1X350.223 Z-1.48F600
N240G1X355.223 Z-1.48F600
N240G1X360.223 Z-1.48F600
N240G1X365.223 Z-1.48F600
N240G1X370.223 Z-1.48F600
N240G1X375.223 Z-1.48F600
N240G1X380.223 Z-1.48F600
N240G1X385.223 Z-1.48F600
N240G1X390.223 Z-1.48F600
N240G1X395.223 Z-1.48F600
N240G1X400.223 Z-1.48F600
N240G1X405.223 Z-1.6325F600
N240G1X410.223 Z-1.6325F600
N240G1X415.223 Z-1.6325F600
N240G1X420.223 Z-1.6325F600
N240G1X425.223 Z-1.6325F600
N240G1X430.223 Z-1.6325F600
N240G1X435.223 Z-1.6325F600
N240G1X440.223 Z-1.6325F600
N240G1X445.223 Z-1.6325F600
N240G1X450.223 Z-1.6325F600
N240G1X455.223 Z-1.775F600
N240G1X460.223 Z-1.775F600
N240G1X465.223 Z-1.775F600
N240G1X469.777 Z-1.775F600
N250G1Y4.135 Z-1.747743
N250G1Y9.135 Z-1.751054
N250G1Y14.135 Z-1.754366
N250G1Y19.135 Z-1.757678
N250G1Y24.135 Z-1.760989
N250G1Y29.135 Z-1.764301
N250G1Y34.135 Z-1.767612
N250G1Y39.135 Z-1.770924
N250G1Y44.135 Z-1.774235
N250G1Y49.135 Z-1.777547
N250G1Y54.135 Z-1.780858
N250G1Y59.135 Z-1.780373
N250G1Y64.135 Z-1.779648
N250G1Y69.135 Z-1.778922
N250G1Y74.135 Z-1.778197
N250G1Y79.135 Z-1.777472
N250G1Y84.135 Z-1.776746
N250G1Y89.135 Z-1.776021
N250G1Y94.135 Z-1.775296
N250G1Y99.135 Z-1.77457
N250G1Y104.135 Z-1.773845
N250G1Y109.135 Z-1.773254
N250G1Y114.135 Z-1.775019
N250G1Y119.135 Z-1.776784
N250G1Y124.135 Z-1.778548
N250G1Y129.135 Z-1.780313
N250G1Y134.135 Z-1.782078
N250G1Y139.135 Z-1.783843
N250G1Y144.135 Z-1.785608
N250G1Y149.135 Z-1.787372
N250G1Y154.135 Z-1.789137
N250G1Y159.135 Z-1.790902
N250G1Y164.135 Z-1.792145
N250G1Y169.135 Z-1.790803
N250G1Y174.135 Z-1.789462
N250G1Y179.135 Z-1.78812
N250G1Y184.135 Z-1.786779
N250G1Y189.135 Z-1.785437
N250G1Y194.135 Z-1.784095
N250G1Y199.135 Z-1.782754
N250G1Y204.135 Z-1.781412
N250G1Y209.135 Z-1.780071
N250G1Y214.135 Z-1.778729
N250G1Y219.135 Z-1.77751
N250G1Y224.135 Z-1.776604
N250G1Y229.135 Z-1.775697
N250G1Y234.135 Z-1.774791
N250G1Y239.135 Z-1.773885
N250G1Y244.135 Z-1.772978
N250G1Y249.135 Z-1.772072
N250G1Y254.135 Z-1.771165
N250G1Y259.135 Z-1.770259
N250G1Y264.135 Z-1.769353
N250G1Y269.135 Z-1.768446
N250G1Y274.135 Z-1.767764
N250G1Y279.135 Z-1.767426
N250G1Y284.135 Z-1.767087
N250G1Y289.135 Z-1.766749
N250G1Y294.135 Z-1.766411
N250G1Y299.135 Z-1.766072
N250G1Y304.135 Z-1.765734
N250G1Y309.135 Z-1.765396
N250G1Y314.135 Z-1.765057
N250G1Y319.135 Z-1.764719
N250G1Y324.135 Z-1.764381
N250G1Y329.135 Z-1.761246
N250G1Y334.135 Z-1.755408
N250G1Y339.135 Z-1.74957
N250G1Y344.135 Z-1.743732
N250G1Y349.135 Z-1.737894
N250G1Y354.135 Z-1.732056
N250G1Y359.135 Z-1.726218
N250G1Y364.135 Z-1.720381
N250G1Y369.135 Z-1.714543
N250G1Y370.865 Z-1.712523
N260G1X464.777 Z-1.704297
N260G1X459.777 Z-1.696071
N260G1X454.777 Z-1.687845
N260G1X449.777 Z-1.679618
N260G1X444.777 Z-1.671392
N260G1X439.777 Z-1.663166
N260G1X434.777 Z-1.65494
N260G1X429.777 Z-1.646714
N260G1X424.777 Z-1.637873
N260G1X419.777 Z-1.628549
N260G1X414.777 Z-1.619225
N260G1X409.777 Z-1.609901
N260G1X404.777 Z-1.600578
N260G1X399.777 Z-1.591254
N260G1X394.777 Z-1.58193
N260G1X389.777 Z-1.572606
N260G1X384.777 Z-1.563283
N260G1X379.777 Z-1.553959
N260G1X374.777 Z-1.544635
N260G1X369.777 Z-1.538631
N260G1X364.777 Z-1.533117
N260G1X359.777 Z-1.527604
N260G1X354.777 Z-1.522091
N260G1X349.777 Z-1.516578
N260G1X344.777 Z-1.511064
N260G1X339.777 Z-1.505551
N260G1X334.777 Z-1.500038
N260G1X329.777 Z-1.494525
N260G1X324.777 Z-1.489012
N260G1X319.777 Z-1.483127
N260G1X314.777 Z-1.475568
N260G1X309.777 Z-1.468009
N260G1X304.777 Z-1.46045
N260G1X299.777 Z-1.452891
N260G1X294.777 Z-1.445333
N260G1X289.777 Z-1.437774
N260G1X284.777 Z-1.430215
N260G1X279.777 Z-1.422656
N260G1X274.777 Z-1.415097
N260G1X269.777 Z-1.407538
N260G1X264.777 Z-1.4008
N260G1X259.777 Z-1.39491
N260G1X254.777 Z-1.389019
N260G1X249.777 Z-1.383129
N260G1X244.777 Z-1.377238
N260G1X239.777 Z-1.371348
N260G1X234.777 Z-1.365457
N260G1X229.777 Z-1.359567
N260G1X224.777 Z-1.353676
N260G1X219.777 Z-1.347786
N260G1X214.777 Z-1.341895
N260G1X209.777 Z-1.335302
N260G1X204.777 Z-1.328535
N260G1X199.777 Z-1.321768
N260G1X194.777 Z-1.315001
N260G1X189.777 Z-1.308235
N260G1X184.777 Z-1.301468
N260G1X179.777 Z-1.294701
N260G1X174.777 Z-1.287934
N260G1X169.777 Z-1.281168
N260G1X164.777 Z-1.274401
N260G1X159.777 Z-1.268208
N260G1X154.777 Z-1.266518
N260G1X149.777 Z-1.264828
N260G1X144.777 Z-1.263138
N260G1X139.777 Z-1.261448
N260G1X134.777 Z-1.259758
N260G1X129.777 Z-1.258068
N260G1X124.777 Z-1.256378
N260G1X119.777 Z-1.254688
N260G1X114.777 Z-1.252998
N260G1X109.777 Z-1.251308
N260G1X104.777 Z-1.252097
N260G1X99.777 Z-1.25626
N260G1X94.777 Z-1.260423
N260G1X89.777 Z-1.264586
N260G1X84.777 Z-1.268749
N260G1X79.777 Z-1.272912
N260G1X74.777 Z-1.277075
N260G1X69.777 Z-1.281237
N260G1X64.777 Z-1.2854
N260G1X59.777 Z-1.289563
N260G1X54.777 Z-1.293726
N260G1X49.777 Z-1.284662
N260G1X44.777 Z-1.270807
N260G1X39.777 Z-1.256952
N260G1X34.777 Z-1.243098
N260G1X29.777 Z-1.229243
N260G1X24.777 Z-1.215388
N260G1X19.777 Z-1.201533
N260G1X14.777 Z-1.187678
N260G1X9.777 Z-1.173823
N260G1X4.777 Z-1.159968
N260G1X0.223 Z-1.147349
N270G1Y365.865 Z-1.162904
N270G1Y360.865 Z-1.17846
N270G1Y355.865 Z-1.194015
N270G1Y350.865 Z-1.20957
N270G1Y345.865 Z-1.225126
N270G1Y340.865 Z-1.240681
N270G1Y335.865 Z-1.256236
N270G1Y330.865 Z-1.271791
N270G1Y325.865 Z-1.284749
N270G1Y320.865 Z-1.282453
N270G1Y315.865 Z-1.280156
N270G1Y310.865 Z-1.27786
N270G1Y305.865 Z-1.275564
N270G1Y300.865 Z-1.273267
N270G1Y295.865 Z-1.270971
N270G1Y290.865 Z-1.268674
N270G1Y285.865 Z-1.266378
N270G1Y280.865 Z-1.264082
N270G1Y275.865 Z-1.261785
N270G1Y270.865 Z-1.259254
N270G1Y265.865 Z-1.256051
N270G1Y260.865 Z-1.252849
N270G1Y255.865 Z-1.249646
N270G1Y250.865 Z-1.246444
N270G1Y245.865 Z-1.243241
N270G1Y240.865 Z-1.240039
N270G1Y235.865 Z-1.236836
N270G1Y230.865 Z-1.233634
N270G1Y225.865 Z-1.230431
N270G1Y220.865 Z-1.227229
N270G1Y215.865 Z-1.22403
N270G1Y210.865 Z-1.220838
N270G1Y205.865 Z-1.217646
N270G1Y200.865 Z-1.214454
N270G1Y195.865 Z-1.211262
N270G1Y190.865 Z-1.20807
N270G1Y185.865 Z-1.204878
N270G1Y180.865 Z-1.201686
N270G1Y175.865 Z-1.198494
N270G1Y170.865 Z-1.195302
N270G1Y165.865 Z-1.19211
N270G1Y160.865 Z-1.190576
N270G1Y155.865 Z-1.190795
N270G1Y150.865 Z-1.191014
N270G1Y145.865 Z-1.191233
N270G1Y140.865 Z-1.191452
N270G1Y135.865 Z-1.191671
N270G1Y130.865 Z-1.191891
N270G1Y125.865 Z-1.19211
N270G1Y120.865 Z-1.192329
N270G1Y115.865 Z-1.192548
N270G1Y110.865 Z-1.192767
N270G1Y105.865 Z-1.191479
N270G1Y100.865 Z-1.189185
N270G1Y95.865 Z-1.186891
N270G1Y90.865 Z-1.184598
N270G1Y85.865 Z-1.182304
N270G1Y80.865 Z-1.180011
N270G1Y75.865 Z-1.177717
N270G1Y70.865 Z-1.175424
N270G1Y65.865 Z-1.17313
N270G1Y60.865 Z-1.170837
N270G1Y55.865 Z-1.168543
N270G1Y50.865 Z-1.156737
N270G1Y45.865 Z-1.14111
N270G1Y40.865 Z-1.125484
N270G1Y35.865 Z-1.109858
N270G1Y30.865 Z-1.094232
N270G1Y25.865 Z-1.078606
N270G1Y20.865 Z-1.062979
N270G1Y15.865 Z-1.047353
N270G1Y10.865 Z-1.031727
N270G1Y5.865 Z-1.016101
N270G1Y0.865 Z-1.000475
N270G1Y-0.865 Z-0.9975
N280G0Z2
N290G0Z6
N300G0X0Y0
N310M9
N320M30

(This is the sub-procedure used for resetting the Z position)
(Refer to the log table above if it exists to reset Z to any of the log index's)
(Example usage...)
(#500 = 12.123)
(#501 = 45.567)
(#502 = -0.0123)
(M98 P100)
O100 sub
	
	M5 (make sure the spindle is stopped)
	M0 (pause for any probe wires to be attached)
	G0 X#500 Y#501 (move to X Y position)
	G31 Z-10.0 F200.0 (probe)
	G92 Z#502 (set Z to position)
	G92 Z31.55
	g0  Z38
	M0 (pause for removing switch)
	G0  Z2
	
M99

(This is the sub-procedure used for returning to a position to continue engraving where you left off)
(Use this procedure to safely return to any X Y then continue the GCode file from that line)
(NOTE: The line number you return to must include X Y and Z coordinates)
(NOTE: You will need to continue from this line manually after this procedure completes)
(Example usage...)
(#500 = 12.123)
(#501 = 45.567)
(M98 P200)
O200 sub
	G0 Z2.0 (raise the tool above the board)
	M5 (make sure the spindle is stopped)
	M0 (pause for any probe wires to be detached)
	G0 X#500 Y#501 (move to input X Y position)
	M3 (make sure the spindle is started)
M99
(G0 Z2.0 (raise the tool above the board)    G0 Z32.0 (raise the tool above the board))
daedelus
Site Admin
Posts: 387
Joined: Tue Oct 01, 2013 1:41 pm
Location: London, UK
Contact:

Re: autoleveller with nonconductive material

Post by daedelus »

Firstly, You can put long code into blocks, and I have edited your post to do this. It just keeps the post shorter and tidier and I will add a sticky in the general section to explain how to do this and other things shortly.

The autoleveller will first break down long segments into 5mm sub-sections or 0.187 for inches so that each section can have its z height calculated. For example, a G1 line which is 13mm will be broken down into 3 parts, 5, 5, and the remaining 3mm. If a move is made where Z is above 0, it is not necessary to break this move down, which may be where you see large jumps.

The Autoleveller was originally designed for small PCBs and 5mm seemed like a good number to use at the time. For much larger files like yours, 5mm is probably too small and will result in much larger AL files. I will include the option to change this number in a future release.

I hope this explains something.
http://www.autoleveller.co.uk/. Software to probe and adjust a GCode file for PCB's or any probe-able surface.

http://www.autoleveller.co.uk/cnc-probe-guide/. A short guide to setting up the probe.

-James
neptunier
Posts: 21
Joined: Tue Sep 02, 2014 12:47 pm

Re: autoleveller with nonconductive material

Post by neptunier »

i understand that the software breaks down the g1 moves into 5mm sections. the problem in my gcode is that in the first part of the code it does not change the z values every 5mm, see here:

N240G1X5.223 Z-0.9975F600
N240G1X10.223 Z-0.9975F600
N240G1X15.223 Z-0.9975F600
N240G1X20.223 Z-0.9975F600
N240G1X25.223 Z-0.9975F600
N240G1X30.223 Z-1.0625F600
N240G1X35.223 Z-1.0625F600
N240G1X40.223 Z-1.0625F600
N240G1X45.223 Z-1.0625F600

starting at line? 250 it changes with every line, every 5mm:

N250G1Y4.135 Z-1.747743
N250G1Y9.135 Z-1.751054
N250G1Y14.135 Z-1.754366
N250G1Y19.135 Z-1.757678
N250G1Y24.135 Z-1.760989
N250G1Y29.135 Z-1.764301
N250G1Y34.135 Z-1.767612

that is the problem i wanted to point out. why is it inconsistent?

thanks, michael
daedelus
Site Admin
Posts: 387
Joined: Tue Oct 01, 2013 1:41 pm
Location: London, UK
Contact:

Re: autoleveller with nonconductive material

Post by daedelus »

OK, I understand, thanks.

This is because the Y value is set to -0.865 above. See:

Code: Select all

N180(Toolpath:- Kontur 1)
N190()
N200G94
N210X0Y0F600
N220G0X0.223Y-0.865Z2
N230G1Z-0.9975F300
N240G1X5.223 Z-0.9975F600
N240G1X10.223 Z-0.9975F600
N240G1X15.223 Z-0.9975F600
N240G1X20.223 Z-0.9975F600
N240G1X25.223 Z-0.9975F600
N240G1X30.223 Z-1.0625F600
N240G1X35.223 Z-1.0625F600
Your probe area starts at X0Y0 so Y-0.865 is outside this probe area and so it doesn't calculate Z as well for those points.

If you want to fix it, you can always make your probe generation file cover a slightly bigger area. Start at X-1Y-1 for example. It should not make a lot of difference though.
http://www.autoleveller.co.uk/. Software to probe and adjust a GCode file for PCB's or any probe-able surface.

http://www.autoleveller.co.uk/cnc-probe-guide/. A short guide to setting up the probe.

-James
neptunier
Posts: 21
Joined: Tue Sep 02, 2014 12:47 pm

Re: autoleveller with nonconductive material

Post by neptunier »

thanks, that solved the problem, i did not see the negative y value.

however, i found another strange thing. i had trouble converting a file with version 0.83 with a probe file into gcode. the result was something like 50000 lines of gcode, which did not load in mach3. and the autoleveller 0.83 did not close if i wanted to quit the programm.
i processed exactly the same files in version 0.80 and that gave me perfect results. the program closed fine.
i atttached the gcode file, the probe file and the two result files in a zip file.

does it matter with very big AL gcode files how many decimal numbers you have behind the point? you use 6, which is 1/100000 of a mm. does that need processing time in mach3?

thanks for your excellent support, i hope i dont annoy you with all these problems.

michael
Attachments
schreibunterlage jaguar.zip
(198.69 KiB) Downloaded 305 times
daedelus
Site Admin
Posts: 387
Joined: Tue Oct 01, 2013 1:41 pm
Location: London, UK
Contact:

Re: autoleveller with nonconductive material

Post by daedelus »

Not at all, we can point other users at these posts if they have similar problems so its all useful :)

0.83 breaks down arcs in the same way as it does with straight lines. v0.80 does not, it only breaks down straight lines. It seems to get stuck sometimes though and I have been working on this as a priority for the next version. I had thought the issue was with inch files as a previous poster had the same problem but after converting his original gcode to mm, it was fine. However, your file uses mm anyway and it still gets stuck, so there goes that theory. I am working on it though but maybe use v0.82 if you run into difficulties for now.

The fact that I use 6 decimal places is mainly for those using inches as units as you need a much smaller number to represent the same figure for inches as you do for mm. For example 0.1mm is ~0.00394 inches and with a PCB I want to allow as much precision as possible. 6dp seems to be a good compromise between accuracy and decimal places. So even though 6dp is used for mm as well, it probably isnt necessary to go to that extreme for mm, it usually doesnt harm anything either though.
http://www.autoleveller.co.uk/. Software to probe and adjust a GCode file for PCB's or any probe-able surface.

http://www.autoleveller.co.uk/cnc-probe-guide/. A short guide to setting up the probe.

-James
neptunier
Posts: 21
Joined: Tue Sep 02, 2014 12:47 pm

Re: autoleveller with nonconductive material

Post by neptunier »

thanks so much, so i wait for the next version and use version 0.82 till then.
neptunier
Posts: 21
Joined: Tue Sep 02, 2014 12:47 pm

Re: autoleveller with nonconductive material

Post by neptunier »

i found another problem with circles :roll:
the circles do not get processed corrctly, they got a big bump. attached are the gcodes, generated with 0.82 or 0.80.
how could i prevent this?
Attachments
schreibunterlage jaguar.zip
(204.16 KiB) Downloaded 331 times
Post Reply