It now works,
echo:Home X/Y before Z
I then homed X and Y then Z worked perfectly.
Just did a G28 then hit the home Z and it too worked perfectly.
-----------
I did notice that the G29 code in the file is missing the enhanced code so I take it we are starting from scratch?