Thanks, I've changed the Refallhome macro but now the Y axis homes negative to the left and the X axis tries to home negative to the front of the machine. The A axis remains stationary and I have to stop the machine. I was wrong in my previous message the X and A axis are slaved not the Y and A. I've attached a simple diagram of what the machines doing; the red arrows indicate the movement when the Refallhome button is pressed.