CNC mode, z axis levelling

This is what you are looking for, unfortunately its no ready to run solution: