An M7040 has a PTO light on whenever the ignition switch is on.
I have taken the pto lever assembly off and cleaned the debris out and checked it with an ohmmeter. The switch checks good electrically and mechanically. I do not have an electrical schematic to further diagnose. The wires,as far as...