there is a way to reverse the motors in Mach without messing with pins and stuff. I have done it on my machine for both Axis.

it's in some sort of options and there is a table and one of the options in the table is Reverse and you can just change it from a cross to the Tick and it will be sorted.

I will find out for you later.