No, wiring polarity of a mechanical switch does not matter, sounds like your input pin is not working correctly, if you have another you can connect to try that.
Hood
I did try other pins, I switch the wires (Black & Red) and nothing worked, status line says (Limit switch Triggered). Switching the active low ON or OFF does not correct the situation and when I press the Reset on the screen it always has on the status line the same message (Limit switch Triggered).
I use the “Auto Set of Input Signals” on the inputs screen to set the limit switch and when I press with my finger the switch the message on the screen says “Select Next Signal” which means to me that the switch communicates with mack3.
Also I noticed that when the switch is connected the diagnostic screen has the light on Enable 1 OFF. When the switch is not connected the same light is ON.
Finally I decided to switch the connections on the limit switch from COM + NC to COM + NO. Now it works well and when I press the Reset it clears the status line message and when I move the Z axis down and trigger the switch the machine stops and by hitting the reset (after I move the trigger lever from the switch) it clears the status line.
With this setup, the Active Low for the Z axis limit switch is now ticked. My Estop is connected with COM + NC and the Active Low is not ticked. On the diagnostic screen the Enable 1 light is ON.
To me all seems to work fine now but I don’t understand why the limit switch must be connected with COM + NO and have the Active Low ticked and the Estop with COM + NC and have the Active Low not ticked.
I attach my xml file in case it is needed.
Nicolas