Due to the mechanical build of my micro mill, I would like to change the homing order so that the homing order is Y, X, Z, A.
My requirement is that the Z axis homes, downwards, after the X and Y have homed to their normal positions. It is important for the X and Y to home first as they go to the position where the tool length sensor is. The Z axis can then home down onto the tool length sensor.
I am sure that the code to do this is very simple but I can't find which file the code should be in!

Can anyone tell me where I can find the file that should be edited?