How about telling the software in the " input signal" , which Pin on your driver board you use for the limit switches in series
X++, Y++ and Z-- should use the same PIN number. - if your Z axis limit is negativ. I have to check that - i`ll be back.
Adam