Hello,

I apologize in advance if my question is too basic and the solution too obvious. I have very limited experience dealing with electronic components.


What I would like to do is using optical switches for the Homing operation of my CNC.

----------------------------------------------------


THE OPTICAL SWITCHES:


The optical switches are NPN and run on 24V. They have 3 connectors - GND (Ground), +24V and S1 (Signal).
In NC (Normally Closed) mode the S1 port is connected to the GND. Triggering the switch (interrupting the LCD light) would disconnect GND and S1.


In NO (Normally Open) mode S1 is disconnected. Triggering the switch would connect GND to S1.




THE CONTROLLER:


The CNC controller runs on 5V DC. It requires the GND port to be in NC (normally closed) mode with P1 (Port 1). If the line between GND and P1 is disconnected by a homing switch the controller would begin the homing operation.

----------------------------------------------------



I tried using a 24V relay. This solution works, however it introduces a significant signal delay that reduces the accuracy of the Homing operation.

I ordered 2 different Optical Isolation Boards online (see below), unfortunately I can’t figure out how they operate, how to wire them and whether or not I need additional components.



Please advice.