My X/Y/Z axis is moving in the wrong direction

The one way to make sure if the direction is correct is to press home for the axis in question and it then should move towards its end stop. The motor is turning in the wrong direction only if it moves away from its endstop when homing.