BertZ wrote:The corresponding LED on the UCSB does not light up or go out when the limit switch is triggered.
This is why it's so important to understand the devices you're working with before trying to wire them into a CNC machine, and why it's so critical that you make sure the hardware is telling you it's alive before screaming about faulty software.
The documentation for the UCSB shows all the LEDs that are on the board, and describes the information relayed by each of them.
- Confirm you have +24v power arriving at the UCSB on the DCin power terminals, and that the LP1 light is lit.
- Confirm that you have +5v power available on the DCout terminals, and that the LP2 light is lit.
If you don't have power at those places, and those LEDs are not lit, then your UCSB will not respond to anything. Once you get proper power indications, then go back and directly connect +24v to I10+ and connect I10- directly to the common ground point. That should light up the LED for I10 (LI 10 on the above image). If it doesn't then you have a failure of the input terminal. If it lights up with power directly connected, then you can reconnect your switch and again confirm the I10 LED is lit when the switch is closed, and it extinguishes when the switch is open.
As I stated yesterday, ignore everything in the software until you get the hardware LED indications behaving correctly.