Autoleveling feature is ability to probe user-defined areas for detect curved surface in your material.
This is especially useful for engraving metal surfaces with V-shaped cutters where any deviation in the Z-direction will result in wider or narrower traces. Eg for isolation milling PCBs where warpage would result in broken traces.
How it works ?
The intermediate values of Z values are obtained via bilinear interpolation between the four nearest points. All G-code commands (like G00 or G01) whose length exceeds the Grid Probe are split up into sections smaller. It means, the software will modify your original G-code program.
G-Codes supported by Autolleveling feature:
G00, G01 linear motion
G02, G03 arc motion
G20, G21 units
G90, G91 distance mode
S spindle speed
There are some G-codes unsupported in some scenarios, then if you use in your G-code, verify carefully the G-code autogenerated:
G28 and G30
G81 and G82
Verify the new G-code generted
There are a lot of CAM programs than can generate G-code, and it can generate a lot of differents scenarios. For this reason, Ultimate CNC have implement a internal G-code processor to understant your original G-code. This way, the software can safely modify your G-code with the news Z values.
However, Ultimate CNC give you some tools to verify that the conversion is correctly done:
See the "Probe" plane
This plane show you the new Z value when in the original G-code was Z = 0, therefore you can verify that all new Z values have been processed correctly.
See the lines colors in the 3D Viewer.
All motion commands (G2, G3, ...) are converted to G00 and G01. It you can see with G00 color "green" and G01 with color "pink".
Simulate the G-code.
The new G-code will be sent to Grbl, but it don't generate any motion in your CNC machine. If some value is missing, Grbl throw error.
To start "Autoleveling" click on the icon:
Autoleveling screen is enabled only when you are connected to Grbl board and you have load some g-code program.
Then will appears Autoleveling screen (Fig. 1), click on ① Start Probe
When finish to probe your board, you can repeat some probe point or continuing clicking in ② Autoleveling
① Start Probe
Start Z probing data on "Grid Probe"
Modify your G-code program to use the new Z positions.
Show / hide grid probe.
Show obtained surface from Z probe data. The Blue color show the maximum values of Z, Red the minimum value and Green it the medium values.
Enable / disable autoleveling.
The Z probe data can be loaded and saved as files using "① load" and "② save".