You dont have to type any G-code just press the button select which axis you want to calibrate. It will then ask for distance you want to travel. The relevant axis should then move and MACH will ask how far it actually travelled and then update the axis calibration for you. Far simpler to do than to explain. Just have a play with it.