So many CNC machines, and equipment where I retired from used tons of mil-spec Amphenol connectors which work good for multi-conductor cables. They have an endless choice of different configurations, with as many pins you want. They look like this style.

https://www.amazon.com/Amphenol-Indu...A21C4U5X700J66