Ruida 6432 Controller limit problems

Hi Iam upgrading the laser with 6432 controller. I have connected the limit switches and they work (red on diagnostic screen) but not turn off the motors. Also X motor works in opposite directions to the controller. What can be done with that?