Auto Levelling using G38.6
Auto levelling maps the surface of your material with the G38.6 digitising probe cycle, then uses the resulting height map to adjust your original G-code file. This page shows how to set up the third-party software AutolevellerAE to work with MASSO.
Uses
G38.6 digitising probe cycle
You need
Touch probe set up as a tool; AutolevellerAE
Download
INFORMATION
AutolevellerAE is open-source software and MASSO has no association with it. This page covers only the settings needed to use it with MASSO, not how to use the software itself. AutolevellerAE generates the probing G-code; you then load the resulting MASSO Probe data.txt file back into it with your project G-code to create an adjusted file.1. Set up the Z initialisation routine
1
Open Options › Z initialization routine.
2
Select Use Custom Block and enter your start-up routine (example below).
3
Press Apply, then OK.


Example custom Z initialisation block
This routine changes to the probe tool and uses G38.2 to zero Z at the correct starting height. Change it to suit your machine.
G21 MSG Load Probe G04 P2000 Tx M06 MSG Probing the Z axis G38.2 Z-150 F200 G92 Z0 G0 Z20 MSG Z axis now zeroed G04 P2000 MSG Press Cycle Start to begin M00
INFORMATION
Define a touch probe tool and select it while probing, even without an automatic tool changer. The touch probe tool disables the spindle while selected – an important safety feature.INFORMATION
The routine uses G92 to set Z zero. If you stop the file before it finishes, clear the temporary offset by running G92.1 in MDI.2. Custom controller options
Open Options › Custom Controller Options and enter:
Values in greyed-out fields can be ignored.

3. Create a probing mesh

When you're happy with the settings, press Generate PFG to create the probing G-code file.
INFORMATION
The same process captures point clouds of 3D objects. A finer point spacing gives a more detailed capture, which you can pass to other software to render a 3D model.4. Create an auto-levelled file
1
Load your G-code file (called the OGF in the software).
2
Load the captured
MASSO Probe data.txt from your MASSO flash drive via File › Raw Data File (RPF).3
Adjust the parameters as needed. See the AutolevellerAE manual for details.
4
Press Autolevel to generate the adjusted G-code file to run on MASSO.
WARNING
Incorrect use of this G-code can damage your probe and the item being probed, and can cause injury. Make sure you understand it and take care.