IEC metric screw sized connectors is a family of electrical connectors defined by IEC that are named according to their ISO metric screw thread, namely M5, M8 and M12.
However, the connectors are further classified by a so-called coding, denoted by one or more letters, which defines things like pin layout, shape of connecting surfaces and electrical properties.
[4] Each "coding" has a different keyway that prevents incorrect connection between incompatibly keyed connectors.
This means two panel-mount connectors will not fit together as they cannot be screwed in, however two cables are able to be joined together.
[1] All variants permit one or more pins to be removed to create differently keyed connectors.