I had my CNC router all working fine until I went away for a week. Came back, booted the PC it ran for about 10 mins then the motherboard died

Anyway reinstalled everything on another PC and it all seemed to be working ok until I ran the same peice of code that I ran before I went away.
It slammed the z axis 16mm further into the work peice (luckily it was MDF)
I re-zero'd the z axis and it did the same thing again...
It seems when Im zero'ing it is changing the x & y on the G54 fixture but zeroing the machine coordinates on the Z, then when the program runs the 16m machine offset for Z appears in the G54???
Any ideas as it was all working fine on the last PC so Im completely confused...