Hi,
I have a opto sensor (OMRON EE-672) and a limit switch (OMRON V-156-1A5).
I'd like to use them to detect the limit triggering of my stepper motor.
However I have no idea how to connect them to my DI module.
The sensor of OMRON EE-672 is powered by 5V, and outputs high signal when it detects the light blocked.
I wonder if I can connect it as this way:
For limit switch of OMRON V-156-1A5, it is just a mechanical switch.
When it is pressed, two of the terminals are short, should I use a resistor to measure the voltage across it?
I wonder if I can connect it as this way:
Do they works?