Here is my home all file. When homing they go in order Z,X,Y for my main move and for fine adjustment they go reversed.
; homeall.g
; called to home all axes
;
; Relative positioning ; uncomment this line to lift the nozzle after homing
G91
; Course home Z
G1 Z725 F2500 S1
; Course home X
G1 X-675 F8000 S1
; Course home Y
G1 Y675 F8000 S1
; Move away from the endstops
G1 X5 Y-5 F400
G1 Z-5 F400
; Fine home X
G1 X-10 F400 S1
; Fine home Y
G1 Y10 F400 S1
;fine home Z
G1 Z10 f400 S1
; Absolute positioning
G90