The homing is set in the machine settings as there are several options. You can hone each axis independently or all at once. They should be NC switches for all at once.
You can also use the lim switch for n/o switches, but they cannot all be homed at the same time.
Limits should be N/C and wired through estp, not home.
Fred Smith - IMService