The accelerator switch is closing to ground when the pedal is pushed and open when the pedal is up.
The gearbox control box then tries to pull up wire 536 to 24V.
The pullup inside the control box is quite weak (2.2 kOhm) and a little moisture in the switch can easily win over 2.2 kOhm..
So adding an extra pullup resistor between wire 536 and wire 503 will help.
Personally I use a 2W control lamp for this. This lamp is mounted in the spare hole for the power take off control lamp.
Then you can also verify the function of the switch, lamp only on when the pedal is pushed.
When wire 536 is grounded the gearbox control box refuses to engage V or T in the distribution gearbox leaving the distribution gearbox in idle. This is confusing, if you dont know about this you would never suspect the accelerator switch.