If machine as been working fine then suddenly started happening then Coupling on Z axis motor as probably come loose and is slipping. Does Z axis return to Zero after job is finished.?

Other than that then how machine is setup regards feeds etc could be problem. The DSP software could have gone tits up but I'm guessing at that.?