I used the wiring shown in the picture for the CNC shield limit switch, but it closes the circuit and disables the motherboard.
If I simply connect the black and red wires to X- and X+ and leave the green wire free, it should work.
However, GRBL keeps reporting a hard limit problem.
The following GRBL settings are applied:
$5=1
$21=1
$22=1
As a result, when I issue a $H command, I only hear a beep, and the motors do not move.
When I move the axes individually and the switch is triggered, it immediately reports a hard limit error.
Do you have an alternative wiring suggestion, or what could be the issue?
