You just need to go to Config menu then Ports and Pins then Inputs, press the screen button that says Auto Setup (or something like that) then choose for example X++ out of the list and press your X positive limit switch, Mach will see it and set the input accordingly. Move on to X-- and press the X negative limit switch, XHome and press the switch etc etc.
Hood