Wiring Your Compactlogix PLC
When integrating M12 sensors with your CompactLogix PLC, start by determining if you need a PNP or NPN sensor.
M12 connectors commonly follow a 4-pin configuration:
Pin 1 (Brown) is 24V+
Pin 3 (Blue) is 0V
Pin 4 (Black) is the signal output
Pin 2 (White) is often unused or for a secondary signal.