There is a PTO switch and a safety switch for the PTO
An electric PTO switch has 6 wires
A safety interlock one for a manual clutch has 4
Purple pair are for the cranking circuit & found on both types
The white ones are for the safety cut offs also on both
The yellow ones are the actual PTO Clutch found only on the electric clutches
Do yourself a big favour & buy the technical manual for your mower from JD.
People think they are expensive but the dearest one I bought was 4 hours of my labour charges or a touch over 2 hours of a JD dealers labour charge out rate