The JST PUDP-40V-S is a 40-position receptacle from the PUD series, built on a 0.079" (2.00mm) pitch in a 2-row layout.
The 2.00mm pitch and 2-row layout mean the wire gauge is typically 22-28 AWG, though confirm with the terminal datasheet. The latch lock clicks into place on the mating header; a tug test after assembly verifies the lock is engaged.
