M12 connector
The round, screw-locked connector with a 12 mm thread that replaces RJ45 wherever there is vibration, dust or water.
M12 started out as a connector for sensors and actuators on factory floors and is standardised in IEC 61076-2-101. The thread keeps it seated on a vibrating machine, and its seal typically gives IP67. Different uses are kept apart by coding, a key that makes it physically impossible to plug the wrong cable into the wrong socket. A-coding is for sensors and low-voltage power, D-coding with four pins carries 100 Mbit/s Ethernet, and X-coding with eight pins and shielded pairs goes up to 10 Gbit/s.
D-coded M12 is the standard port for PROFINET and EtherNet/IP out on the plant floor, while RJ45 is confined to the inside of the control cabinet. Most installations mix both, with an adapter cable as the single weak point.