Short-term and long-term fuel trims
This entry covers short-term fuel trims (STFT) and long-term fuel trims (LTFT). The description applies not only to N43/N53 engines but to all modern BMW engines.
Short-term fuel trim
Short-term trim is an analog (older control modules) or digital (current control modules) control solution that stabilizes a parameter by closing a control loop.
Fuel trim works as follows:
- By reading the Lambda probe data, the engine control detects whether the fuel mixture is too lean or too rich.
- Depending on the Lambda reading, the engine control corrects the fuel supply in the opposite direction to compensate for the deviation.
As the name suggests, this is a short-term tool. It works continuously while the engine is running and is not stored in the engine control unit between driving sessions.
Long-term fuel trim
Long-term trim complements short-term trim. It differs in the following ways:
- It is changed immediately only if the short-term trim cannot handle its task within a certain time and a deeper, more extensive overall adjustment is needed.
- It is stored in the engine control unit and recalled every time the engine is started.
- Modern engines build multi-dimensional adaptation maps from data such as engine temperature, knock sensors, fuel mixture, ignition, VANOS, EGR and accelerator pedal.
By the way they act, both short-term and long-term trims can be one of two types:
- Offset (additive, +/-): a value is added to or subtracted from the current value to correct the situation.
- Multiplicative: the current value is multiplied or divided to reach the required result.
The image below shows how N series engines apply short-term and long-term fuel trims:
[[[KEEP1]]](https://bimmerprofs.com/wp-content/uploads/2017/06/BMW_STFT_and_LTFT_1.png)
Operating ranges of N series engines
As an example, N series engines form short-term and long-term trims separately for two ranges:
- Idle (up to approximately 1200 RPM).
- Working range (above 1300 RPM and/or loads above 5 .. 10%).
At idle, offset-type corrections (short-term trims) and adaptations (long-term trims) are used. Idle adaptations and compensations are performed per bank. In INPA they are visible in the adaptation menu (../F5/F6)*. Individual adaptations for each cylinder are visible in INPA at ../F5/Shift+F6/F1*. In ISTA D they appear in the Rough run menu (absolute values; efficiency measurements) and in the Stoichiometric correction menu (fuel mixture corrections for each cylinder).
At mid and high load, multiplicative short-term and long-term trims are used.
*Note: In the INPA Rough run menu (../F5/F7), INPA shows relative changes of efficiency for each cylinder. The average value of each cylinder should tend toward 0. Instantaneous differences indicate problems with the individual idle adaptations of the cylinders.
The ISTA D Rough run menu shows absolute register values. Here, a deviation from 0 shows the long-term deviation of each cylinder, while short-term deviations show short-term unevenness of performance (efficiency). The Stoichiometric correction menu shows the offset fuel mixture corrections for each cylinder.
Simplified mathematics
Injector opening time at idle:
Ton_total = Ton_calc + Ton_adapt + Ton_comp
Injector opening time in the working range:
Ton_total = Ton_calc * Ton_adapt * Ton_comp
Where:
- Ton_calc: the injector opening time theoretically calculated by the control unit.
- Ton_comp: the effect of short-term fuel trims.
- Ton_adapt: the effect of long-term fuel trims.
Short-term and long-term trim data differ between control units, but typical values are:
- Short-term trim range for fuel amount correction: +/-8 .. 25%. The long-term trim map is updated after 8 .. 15 seconds.
- Long-term trim range for fuel amount correction: +/-30 .. 45%.
The key relationship is that the maximum effect of long-term trims is significantly wider (3 .. 5 times) than the range of short-term trims.
How long-term trims are modified
Long-term trims can be modified in two ways:
- By force, for example when short-term trims go far out of range, or after the long-term trims have been deleted.
- With an integrator. The average value of the corrections over a longer period is calculated and written as the new middle point of the short-term trims.
On N53 engines, long-term trims are corrected by force in two cases:
- If the corrections exceed 15 .. 17% for more than 10 seconds.
- If the overwrite is performed on a warm engine that has been kept at idle for a longer time.
If the N53 detects conditions that require overwriting the long-term trims of one bank, the long-term trims of the second bank are also overwritten.
Interpreting short-term and long-term trim data
In INPA, open the engine section and choose the analog blocks: press F5, then open the adaptations sub-menu with F6. The example below is the N52/N53/N54 menu.
[[[KEEP2]]](https://bimmerprofs.com/wp-content/uploads/2017/06/BMW_INPA_adaptations_menu.jpg)
- Lines 1 and 2: heating parameters of the Lambda sensors. Line 1 is the wide-band (regulating) probe, line 2 the control probe. In normal operation the value is 20 .. 60%. Below 20% the probe is not heated to its proper working temperature, for example when the engine has not been started, or has just been started after deleting the long-term trims and the control probes are not yet heated.
- Line 3: offset-type long-term trims for idle. The closer the value is to 0,00 mg, the better, since it means the initial match is accurate. Above 0 the mixture is being enriched; below 0 the fuel supply is reduced.
- Line 4: multiplicative long-term trims for mid-to-high load. The closer to 0,000, the better. The exception is N43/N53 engines: with the INPA 1.01 loader these trims constantly show 0,000, so I recommend upgrading to loader 2.023, which displays them correctly. Above 0 the mixture is being enriched; below 0 the fuel supply is reduced.
- Line 5: the current correction (the value of the STFT integrator), as a percentage. If long-term trimming has worked successfully and nothing unusual has changed, corrections typically stay within -10 .. +10%. Here a value further from 0 is not a worse result, and it does not matter whether the correction is above or below 0. What matters is a significant, long-lasting deviation (typically above or below 10 .. 12% for more than 10 seconds). It means the long-term trim values need to be changed, and they will be. This is normal if the long-term trims have just been deleted and new ones are being learned. If the short-term trims stay far from 0 (more than 10 .. 12%) for a long time shortly after the long-term trims have been learned, it is a cause for concern. Something has changed in engine operation and the situation has to be investigated. Corrections above 0 enrich the mixture; corrections below 0 make it leaner.
- Line 6: Lambda value for wide-band (regulating) probes. L>1,0 means the mixture is lean; L<1,0 means it is rich.
- Line 7: voltages of the wide-band Lambda probes, from which the values in line 6 are calculated, so this line complements line 6. At Lambda 1,0 the voltage is usually 2,0 V. Interestingly, this differs from the very popular Bosch CJ110/CJ125 chipset, whose reference voltage is 1,5 V. As Lambda increases (the mixture gets leaner), the voltage also increases.
- Line 8: output voltages of the Lambda control probes. This is the good old classic: an average of 0,45 V at a stoichiometric mixture. As Lambda increases (the mixture goes leaner), the voltage decreases.
Note: for the N53B30 engine, 10% of idle short-term trim correction corresponds to approximately 0,7 mg.
Worked example
[[[KEEP3]]](https://bimmerprofs.com/wp-content/uploads/2017/06/BMW_STFT_and_LTFT_sample.jpg)
In the chart:
- Light blue: the total range of long-term trims, +/-35%.
- Dark blue: the correction range, about +/-10%.
- Black curve: the ideal correction of the fuel mixture.
For a new engine, or directly after deleting the long-term trims, the long-term trims are 0 and the short-term trims work in the range -10 .. +10%.
- At moment X the short-term trims cannot correct the mixture (event 1). For longer than 10 seconds the required correction is out of range. The DME calculates the necessary correction over those last 10 seconds and changes the long-term trim, raising the middle point of the short-term trims by +11% (the average value over period 1). From this moment the correction works in the range +1 .. +21%.
- At moment Y, some change has evidently occurred in the engine configuration, the fuel or the performance of a sensor, and the short-term trims leave the correction range (event 2). The problem lasts less than 10 seconds, so the long-term trim range is not changed.
- At moment Z the short-term trims again leave the correction range, this time for more than 10 seconds (event 3). The long-term trim is now corrected, raising the short-term middle point by a further +12%. The short-term trims now work in the range +13 .. +33% (absolute values).
When the engine starts a new session (switched off, then on), the short-term middle point will be +23%, and the short-term trims will work in the range +13 .. +33%.
Why two levels of trim?
Why is it all so complicated, and why are short-term trims alone not enough? Almost all engine self-regulation systems work like this: the short-term trim performs closed-loop (feedback) regulation. A sensor X measures a parameter Y and, according to the deviation from the ideal, commands a correction in the opposite direction. The main problem is that measuring and correcting take time, and the larger the deviation, the longer the correction takes. If the possible deviation can reach +/-40 .. 50% or more, the system’s reaction time becomes unacceptably long.
Long-term trims change this radically. They reduce the expected deviation by 3 .. 5 times, so the system reacts 3 .. 10 times faster. They also reduce the number of initial error messages, for example by preventing very large mixture deviations that can cause misfires, where unburned fuel gets into the exhaust system.