Sorry I forgot to add that you also need to set your soft limits - in Config > Homing/Limits. Here you add the dimensional limits of your machine.

Also, you can always run Mach3 without soft limits. But especially if you're just starting out, soft limits are your friend. Otherwise your machine can hit a limit and lose steps and you have to start everything again.