There is a possibility of a broken wire or loose connection. You should check the DIR pulse connections, but it is more likely that you have a break in one of the connecting wires to the Z motor. This is what I had.