Ok your first problem is your Z Home switch is set up in Mach as the A axis home switch. I know this because when you are pressing the switch the M4 Home LED is lighting up, for the Z it should be the M3 Home LED.
So get that swapped in Ports and pins and the Z should home fine. However before you attempt to home also test your X and Y are set to the correct pins, if you press X home switch the M1 Home Led should light and for Y the M2 Home LED.
If you do not have the A Axis home switch set up in ports and pins by mistake then I think possibly you may have something in slaving which is affecting things. It would be easier to work out the issue if I saw the xml you were using at the present time, so if doing as I said above can not get your M1,M2, M3home LEDs working as they should then please attach your xml.
Its late here and I was actually away to shut down when I noticed you had replied so I decided to have a look, but wont be around for much longer so will check back in the morning if you do not reply in the next 10mins.
Hood
Hood