I'm not sure what that part is. The homeall.g was generated by the online tool.
I've now changed it to
[c]
G91 ; Relative positioning
G1 S1 X-250 Y-185 F1800 ; Course home X or Y
G1 S1 X-250 ; Course home X
G1 S1 Y-185 ; Course home Y
G1 X5 Y5 F6000 : Move away from the endstops
G1 S1 X-250 F360 ; Fine home X
G1 S1 Y-185 ; Fine home Y
G1 Z5 F6000 ; Lift Z
G1 S1 Z-185 F200 ; fine home Z
G90 ; Absolute positioning
G92 X0 Y0 Z0.66
; Go to first bed probe point and home Z
;G1 X-36 Y-20 F6000
;G30
; Uncomment the following line to lift the nozzle after probing
;G1 Z5 F100[/c]
and it seems to be working OK.