Two-wire NPN near switch, switching power supply, and how to connect with Mitsubishi PLC?
You can not use the switching power supply, direct use of PLC input point
Using the source PLC. Close the switch to the common (COM) and input X
Two-wire NPN proximity switch, two lines, generally brown, blue.
24V switching power supply. Switching power supply 0V and PLC COM terminal short to form a total OV
Then PLC (COM) connected to the sensor blue line, the sensor brown line connected PLC X side
Another point I would like to point out. Two-wire proximity switch, regardless of the difference between NPN and PNP,
NPN blue OV brown x end
PNP brown 24V blue X end