The X and Z axis reference does not "Complete / finish". This machine has left and right machining slides. The left machining slide (X and Z) can be referenced and on completion the controller says "Finished". When referencing the right machining slide, the x axis references first and then the z travels to the reference point where it will then stop, but the control does not indicate "Finished".
I do not understand what the action is waiting for? I assume that the Z axis has reached its known reference point and the incremental encoder marker pulse has been triggered and so the slide movement has stopped. What further confirmation is it looking for to trigger the "Finished" and allow the machine to be used in automatic?