Pull a tractor into a heavy cultivator pass, engage a 1000 rpm PTO on a forage harvester, or switch on a big load on a generator, and the engine has to react in a fraction of a second to keep its speed. The part of the engine control unit (ECU) that does this is the governor. On modern diesels it is pure software, and this guide explains how it works and how to diagnose hunting, surging and poor PTO speed control.

Electronic diesel governor closed loop: speed set-point from hand throttle, pedal, PTO memory or TSC1, speed error, PID governor controller, fuel quantity request, limits, injectors, engine load and crankshaft speed sensor feedback
How the ECU governor closes the speed loop (simplified educational diagram, original illustration)

What a diesel governor does

A petrol engine’s power is controlled mainly by the amount of air it can draw in. A diesel has no throttle in the traditional sense: it breathes freely and its power is set by how much fuel is injected. Without control, an unloaded diesel would over-rev and a loaded one would stall. The governor’s job is to meter fuel so the engine holds the speed the operator asks for, does not drop below idle, and never exceeds its safe maximum speed.

Mechanical vs electronic governors

Older in-line and rotary injection pumps used a mechanical governor: flyweights spun by the pump shaft pushed against springs, and the balance between centrifugal force and spring force moved the fuel control rack. Speed lever position changed the spring preload and therefore the governed speed.

An electronic governor replaces the flyweights with a crankshaft speed signal and software. The ECU calculates the fuel quantity needed and commands it through a rack actuator, a metering valve or, on common rail and unit injector systems, the injector energising time. Being software, its response can vary with temperature, mode, gear and CAN messages.

All-speed vs min-max governing

Many modern trucks and tractors offer both: min-max for road work and all-speed (sometimes called PTO or work mode) for stationary or field work.

Droop versus isochronous governor characteristics: speed falling with load versus constant speed up to the maximum torque curve, plus all-speed and min-max governing
Droop vs isochronous governing and all-speed vs min-max (simplified educational diagram, original illustration)

Droop vs isochronous control

Droop means governed speed falls slightly as load increases. It is very stable and lets paralleled generators share load. Isochronous control holds the same speed from no load to full load, which is what a PTO-driven implement or a single generator supplying a fixed frequency needs. Electronic governors can usually switch between the two, and the amount of droop is a calibration value set by the manufacturer. Once the engine reaches its maximum torque curve, no governor can hold speed any more and the engine is lugged down.

PTO 540/1000, engine speed memory and hand throttle

Implements are designed around standard PTO shaft speeds of 540 or 1000 rpm (and economy variants on many tractors). The engine speed needed to reach them depends on the PTO gearing. To make this repeatable, tractors offer engine speed memory: the operator stores one or two speeds and recalls them with a button, often at the headland. The ECU then governs isochronously at that speed while the hand throttle or memory is active, and returns to pedal control when it is cancelled.

How the ECU closes the loop

Actual speed comes from the crankshaft position (CKP) sensor: the ECU measures the time between tone wheel teeth and converts it to rpm, often many times per revolution. It compares that with the target and the difference (the speed error) feeds a controller that works like a PID loop:

The output is a fuel quantity or torque request, which then passes through limits such as smoke limitation, maximum torque and component protection before reaching the injectors. Load anticipation improves response further: if the ECU knows a load is about to arrive, for example an air conditioning compressor or a hydraulic function signalled over CAN, it can add fuel before rpm sags. Our crankshaft and camshaft sensor guide explains the speed signal in more detail.

J1939 TSC1 requests from implements and the TCU

On trucks and agricultural machines the engine does not only obey the pedal. Other controllers can send a Torque/Speed Control 1 (TSC1) message over the SAE J1939 CAN bus, asking the engine for a specific speed or a torque limit. Transmissions use it during shifts, retarders and ABS to cut torque, and on tractors an implement can request engine speed through ISOBUS tractor-implement management. The ECU arbitrates between the operator and these requests according to priority rules in its software.

Overspeed protection

Every governor includes a maximum speed limit, and above it the ECU cuts fuel. A diesel can still overspeed if it is driven by the vehicle on a steep descent in too low a gear, or if it is fed from an uncontrolled source such as engine oil. That is why overspeed events are logged (P0219 or J1939 SPN 190 with FMI 0) and should always be investigated. Our ECU limiters guide covers rev and road speed limiters.

Common symptoms

Six-step diesel governor diagnostic routine: define symptom, read codes including J1939 DM1 and DM2, log rpm and set-point source, check inputs and CAN, check fuel and air, then software
Governor complaint diagnostic routine (simplified educational diagram, original illustration)

Diagnostic routine

  1. Reproduce the complaint and note rpm, load, temperature and operating mode.
  2. Read codes in every module, including J1939 active (DM1) and stored (DM2) codes.
  3. Log actual speed, target speed and its source, injected quantity or torque, and fuel pressure.
  4. Check the speed sensor, throttle inputs, switches and CAN wiring.
  5. Check the fuel system and air intake before blaming the software.
  6. Check for manufacturer software updates and retest under real load.

Calibration concepts

Governor behaviour is defined by calibration data: target speed tables, droop values, controller gains and their dependence on temperature, gear and mode, plus the limits that apply to the final torque request. Any change must keep the protection limits, smoke limitation and all emissions systems fully intact and working as designed.

Related fault codes (DTCs)

Generic OBD-II/EOBD codes (SAE J2012) and common J1939 SPNs. Wording varies by manufacturer and off-highway machines often use their own code lists, so always confirm with service information.

CodeMeaningTypical causes
P0219Engine Overspeed ConditionEngine driven above its permitted speed: downhill overrun or wrong gear selection, sudden loss of load, a mechanical fault feeding extra fuel, or (rarely) an implausible speed signal
P0335Crankshaft Position Sensor “A” CircuitOpen or shorted sensor wiring, failed sensor, damaged connector, missing or damaged reluctor teeth
P0336Crankshaft Position Sensor “A” Circuit Range/PerformanceIncorrect air gap, debris on the sensor tip, damaged tone wheel, electrical noise from poor screening or a faulty alternator; can cause erratic governed speed
P0337 / P0338Crankshaft Position Sensor “A” Circuit Low / HighShort to ground or to supply, sensor supply fault on Hall-type sensors, connector corrosion
P0339Crankshaft Position Sensor “A” Circuit IntermittentChafed harness, loose terminals, signal dropouts that appear with vibration or heat; a classic cause of intermittent hunting or stalling
P0120 – P0123Throttle/Pedal Position Sensor/Switch “A” Circuit / Range/Performance / Low / HighWorn hand throttle or pedal sensor track, 5 V reference or ground fault, water in the connector, damaged wiring
P2135Throttle/Pedal Position Sensor/Switch “A”/”B” Voltage CorrelationThe two redundant tracks of a sensor disagree: worn sensor, poor ground, high-resistance connector; the ECU often limits speed or torque as a precaution
P0500Vehicle Speed Sensor “A”Missing or implausible road/ground speed signal, which can affect road speed governing, cruise and some transmission strategies
P0571Brake Switch “A” CircuitMisadjusted or failed brake switch, wiring fault; can cancel cruise or speed-hold functions on vehicles that use it
P0216Injector/Injection Timing Control CircuitTiming actuator or solenoid fault on electronically controlled injection pumps, wiring problems, internal pump wear
P0251Injection Pump Fuel Metering Control “A” (Cam/Rotor/Injector)Fuel quantity actuator or metering solenoid fault on electronically governed pumps, wiring, internal pump fault; often shows up as poor speed control
U0100 / U0101Lost Communication With ECM/PCM “A” / With TCMCAN wiring or termination fault, module power or ground loss; external speed or torque requests stop arriving
SPN 190J1939 Engine SpeedWith FMI 0 (above normal range, most severe) often reported as an overspeed event; FMI 2 points to an erratic or intermittent speed signal
SPN 91J1939 Accelerator Pedal Position 1With FMI 3 / FMI 4 (voltage above / below normal): sensor, reference or ground wiring faults on the pedal or hand throttle input

Closing

A governor is just a fast speed loop: a clean speed signal, correct set-point, healthy fuel supply and sensible calibration. Check them in that order and most hunting, droop and PTO speed complaints are solved without guesswork.

Need a custom engineered ECU or TCU file for a tractor, truck or car built from your original read? Upload your file at ECUFileMarket.

Leave a Reply

Your email address will not be published. Required fields are marked *