
Downloaded from www.Manualslib.com manuals search engine
11 3-9
Cylinder Head Removal and Installation
< Remove left and right interior ventilation ducts (left shown):
Release ventilation filter cover latch (A) and remove cover.
Release plastic locking tab
(6) or release locking tabs on
top of duct (later models).
Rotate duct counterclockwise to unlock from bulkhead and
remove (arrow).
Disconnect electrical connector from hood switch
(C).
Release spring lock (D).
Slide filter housing away from inner fender to remove.
Removal of right side ventilation duct is similar.
Remove rear bulkhead panel: Remove rubber sealing
gasket (arrow).
0 Remove 3 mounting clips (A).
Remove
4 retaining screws (6).
Lift out panel.
< Remove complete air filter housing:
Loosen
intake duct hose clamp (A) at throttle assembly.
Loosen clamp and remove idle control hose from
~ntake
duct (6) and disconnect Idle speed control valve electr~cal
harness connector.
Disconnect
electr~cal harness connector (C) from mass alr
flow sensor.
Remove air filter housing mounting screw (D).
Disconnect vent tube
(E).
Loosen air intake duct clamp (F).
Carefully lift air filter housing out of engine bay.
4 Remove positive battery cable and intake manifold cover:
Remove protective cover from positive (+)jumper post (A).
Loosen and remove battery lead mounting nut.
Remove battery lead and push down through intake mani-
fold.
Remove trim caps (arrows) from fuel injector cover.
Remove cover hold down fasteners and lift off cover.

Downloaded from www.Manualslib.com manuals search engine
- --
Cylinder Head Removal and Installation 1 --
< Remove complete air filter housing assembly with mass air
flow sensor:
Loosen
intalte duct hose clamp (A) at throttle assembly.
Loosen clamp and remove idle control line from intake duct
(B) and disconnect idle speed control valve electrical har-
ness connector.
Disconnect electrical harness connector
(C) from mass air
flow sensor.
Remove air filter housing mounting screw
(D).
Disconnect vent tube (E).
. Loosen air intalte duct clamp (F).
Carefully lifl air filter housing, mass air flow sensor, and in-
take duct hose out of engine bay.
4 Disconnect positive battery cable and remove intake rnani-
fold cover:
Remove protective cover from positive (+)jumper post.
Loosen and remove battery lead mounting nut (A).
Remove lead and push down through intake manifold.
* Remove trim covers (arrows) from fuel injector cover.
Remove cover hold down fasteners and lifl off cover.
4 Worlting above engine, disconnect the following:
Vent line from cylinder head cover. To remove, pinch clips
(arrows).
Electrical harness connector from VANOS solenoid valve
(A).
- Remove oxygen sensors and exhaust manifolds. See 180
Exhaust System.
CAUTION-
Remove oxygen sensors before removing exhaust mani-
fold to prevent damage.
Label oxygen sensor harness connectors so that they
can be reassembled correctly Do not interchange con-
nectors.
NOTE-
Front exhaust manifold must be removed before rear
manifold.

Downloaded from www.Manualslib.com manuals search engine
Camshaft Timing chain1
< Remove Automatic Stability Control (ASC) throttle body:
Disconnect electrical harness from throttle position sensor.
Disconnect ASC actuator cable (arrow).
Remove
3 mounting fasteners and remove throttle body.
4 Disconnect fuel tank vent valve line and cap off line (arrow).
- Drain engine coolant and remove hoses from thermostat
housing. See
170 Radiator and Cooling System.
- Remove water pump and thermostat housing. See 170 Ra-
diator and Cooling System.
- Remove left side upper timing chain cover retaining bolts and
remove cover.
4 Counter hold right intake camshaft
CAUTION-
Counter hold camshaft with a 27mm open-end wrench while
loosening sprocket bolts. Grind wrench if necessary to pre-
vent damage to head.

Downloaded from www.Manualslib.com manuals search engine
120-3
Ignition System
Warnings and cautions
The ignition system produces dangerous high voltage. In ad-
dition the sensitive electronic components can be damaged
if
proper precautions are not adhered to.
WARNING-
* Do not touch or disconnect any cables from the coils while
the engine is running or being
cranked by the starter.
The ignition system produces high voltages that can be
fatal. Avoid contact with exposed terminals. Use ex-
treme caution when working on a car with the ignition
switched on or the engine running.
- Connect and disconnect tlie DME system wiring and
test equipment leads only when the ignition is
OFF:
Before operating the starter without starting the engine
(for example when
making a compression test) always
disable the ignition.
CA
U TIOW-
Do not attempt to disable the ignition by removing the coils
from the spark plugs.
Connect or disconnect ignition system wires, multiple
wire connectors, and ignition test equipment leads only
while the ignition is
off Switch multimeter functions or
measurement ranges only with the test probes discon-
nected.
* Do not disconnect the battery while the engine is run-
ning.
A high impedance digital multimeter should be used for
all voltage and resistance tests. An LED test light
should be used in place of an incandescent-type test
lamp.
In general, make test connections only as specified by
BMW as described in this manual, or as described by
the instrument manufacturer.
Engine management
BMW €39 engines use an advanced engine management
system known as Digital Motor Electronics (DME). DME in-
corporates on-board diagnostics, fuel injection, ignition and
other engine control functions. DME variants are listed in
Table a. Engine management systems.
Second generation On-Board Diagnostics
(OED II) is incor-
porated into the engine management systems used on the
cars covered by this manual. Use a BMW-specific electronic
scan tool, or a "Generic"
OED II scan tool to access Diagnos-
tic Trouble Codes (DTCs). DTCs can help pinpoint ignition
ine management problems.

Downloaded from www.Manualslib.com manuals search engine
I Ignition System
Camshaft position sensors
The camshaft position sensors are used by the englne man-
agement system for VANOS control, sequential fuel injection
and knock control.
Intake camshaft position sensor, replacing
(M52,M52 TU
and M54 engines)
- Make certain ignition has been turned off.
- Remove plastic cover from above fuel injectors by prying off
bolt covers and removing cover mounting bolts.
Remove complete air filter housing:
Disconnect electrical harness connector on mass air flow
sensor
(A).
Detach vacuum line at intake boot (B).
Loosen hose clamp at intake boot and detach air duct con-
nections
(C).
* Disconnect cold air duct tube (D).
Remove filter housing mounting screws (E).
- Disconnect harness connector from VANOS solenoid and
unscrew solenoid from VANOS control unit. Be prepared with
shop rags to catch oil released from VANOS unit.
Remove camshaft sensor (arrow) from
left front of cyl~nder
head, next to top of oil filter housing.
Disconnect camshaft sensor harness from under intake
manifold. Prior to removal, attach a stiff piece of wire to the
harness connector end to preserve proper routing of harness
for reinstallation.
Installation is reverse of removal, noting the following:
Use new O-rings when installing sensor and solenoid.
Be sure wiring is rerouted in same orientation.
Use scan tool to read out and clear
ECM fault memory
Tightening torques
-
Intake camshaft sensor to cylinder head 10 Nrn (7 ft-lb)
VANOS solenoid to VANOS control unit 30 Nm (22 ft-lb)

Downloaded from www.Manualslib.com manuals search engine
I Battery, Starter, Alternator
- Check for battery voltage at terminal 50 of starter motor with
key in start position. If voltage is not present, check wiring be-
tween ignition switch and starter terminal. Check the EWS
system and other inputs that disrupt terminal
56 to the start-
er. See ELE Electrical
Wiring Diagrams. If voltage is
present and no other visible wiring faults can be found, prob-
lem is most likely in starter motor.
Starter, removing and installing
(6-cylinder engine)
The starter is removed from below. Access to starter bolts is
difficult. Be sure to have the proper tools on hand before pro-
ceeding.
NOTE-
Access to the starter wiring is very limited. Forbetteraccess,
it may be necessary to remove the intake manifold.
- Disconnect negative (-) battery cable.
CAUTIOI\C
Prior to disconnecting the battern read the baltery discon-
nection cautions
in OOlGeneral Cautions and Warnings.
Remove complete air filter hous~ng:
Loosen intake duct hose clamp (A) at throttle assembly.
Loosen clamp and remove idle control hose from intake
duct
(B) and disconnect idle speed control valve electrical
harness connector.
Disconnect electrical harness connector
(C) from mass air
flow sensor.
Remove air filter housing mounting screw (D)
Disconnect vent tube
(E).
Loosen air intake duct clamp (F).
Carefully lift air filter housing out of engine bay.
Disconnect throttle cable.
Raise vehicle and support safely.
WARNING-
Make sure the car is stable and well supported at all times.
Use a professional automotive
lift orjack stands designed for
the purpose. A
floorjaclc is not adequate support
- Working underneath car, remove engine splash shield
- Disconnect fuel lines and harness connectors from retaining
brackets, as necessary.

Downloaded from www.Manualslib.com manuals search engine
130-1
130 Fuel injection
General ........................... .I3 0.2
Tools and test equipment .............. .I3 0.3
Warnings and cautions ................ .I3 0.5
Fuel Supply ....................... .I3 0.6
Relieving system fuel pressure .......... .I3 0.6
Siemens MS 41 . 1. ................... 1 30-7
ECM relay. testing .................... .I3 0.7
Mass air flow (MAF) sensor.
checking and replacing
................ .I3 0.9
Engine coolant temperature (ECT) sensor.
testing and replacing
.................. 130-10
Intake air temperature (IAT) sensor.
testing and replacing
................. .I3 0.1 1
Throttle position sensor (TPS).
testing and replacing
.................. 130-1 2
ldle speed control valve.
checking and replacing
............... .I3 0.1 3
Fuel injectors. checking and replacing .... 130-15
Evaporative emissions. overview ....... .I3 0.1 6
Secondary air injection. overview ....... .I3 0-17
Engine control module (ECM).
removing and installing
................ 130-18
Siemens MS 41.1 ECM pin assignments . .I3 0.19
Siemens MS 42.0 and MS 43.0. ..... .I3 0.23
ECM relay. testing ................... .I3 0.27
Mass air flow (MAF) sensor.
checking and replacing
............... .I3 0.28
Engine coolant temperature (ECT) sensor.
testing and replacing
................. .I3 0.30
Intake air temperature (IAT) sensor.
testing and replacing
................. .I3 0.31
MS 42.0 throttle valve assembly. replacing . 130-32
MS 43.0 throttle valve assembly. replacing . 130-35
Throttle cable. adjusting (MS 42.0) ...... .I3 0.38
ldle speed control valve. checking
and replacing
....................... .I3 0.38
Evaporative emissions control diagrams . . 130- 39
Evaporative emissions control.
(MS
42.0 and MS 43.0). .............. .I3 0.39
Engine control module (ECM).
removing and installing
................ 130-40
Siemens MS 42.0 and MS 43.0
ECM pin assignments ................. 130-41
Bosch M5.2 (M62 up to 911997)
BOSC~ M5.2.1 (M62 911997 to 911998) 130-46
M5.2 system features ................. 130-47
M5.2.1 system features ............... 130-47
ECM relay. testing ................... 130-49
Oxygen sensors. checking ............. 130-51
Fuel injectors. checking and replacing .... 130-52
Mass air flow (MAF) sensor. replacing .... 130-53
ldle speed control valve. testing
and replacing
....................... 130-54
Throttle position sensor (TPS).
testing and replacing
................. 130-55
Engine coolant temperature (ECT) sensor.
testing and replacing
................. 130-55
Intake air temperature (IAT) sensor.
testing and replacing
................. 130-57
Auxiliary throttle valve (ADS) (M62 and
M62 TU engine). replacing ..... 130-57
Evaporative system pressure
leak diagnosis. overview
(5.2.1 only) ..... 130-58
Bosch 5.2 ECM pin assignments
(M62 UP to 911 997) ................... 130-59
~osch 5.2.1 ECM pin assignments
(M62 911 997 to 911 998) ............... 130-62
BOSC~ ME 7.2 ..................... 1 30-66
ME 7.2 system overview ............... 130-67
EDK adaptation ..................... 130-69
ECM relay. checking .................. 130-69
Engine coolant temperature
(ECT) sensor. testing
................. 130-71
Engine coolant temperature
(ECT) sensor. replacing
............... 130-71
Oxygen sensors. replacing ............. 130-72
Fuel injectors. removing and installing .... 130-72
Mass air flow (MAF) sensor.
removing and installing
................ 130-73
Evaporative system pressure
leak diagnosis. overview
............... 130-74
Secondary air injection. overview ........ 130-75
Bosch ME 7.2 ECM pin assignments .... 130-76

Downloaded from www.Manualslib.com manuals search engine
130-2
/Fuel Injection
This repair group covers service and repair of the Bosch and
Siemens engine management systems used on
1997
through 2002 E39 models. Additional engine management
service and repair information may also be found in the fol-
lowing repair groups:
0 020 Maintenance
120 Ignition System
160 Fuel Tank and Fuel Pump
610 Electrical Component Locations
OBD On Board Diagnostics
NOTE-
Camshaft position sensor, crankshaft speed sensor and
knoclc sensors are covered in 120 Ignition System.
Table a. Engine management system applications
- - ~ ~
1 ~odellmodel year / Engine IDME system I - I
5281, 1997-1 998 IM52. 2.8 liter ISiemens MS 41 .I I 1
528i. 1999ZO00 1~52 TU, 2.8 liter ]siemens MS 42.0 I I
5251, 2001-2002 1~54, 2.5 liter 1 Siemens MS 43.0 I I
530i, 2001-2002 1~54, 3.0 liter ISiemens MS 43.0
5401 1999-2001 1~62 TU, 4.4 liter l~osch ME 7.2
I
OBI) II software and hardware is incorporated in the engine
management control systems. The
OED II system monitors
components that influence exhaust and evaporative emis-
sions. If a problem is detected, the
OED I1 system stores the
associated fault code and condition.
540i. 1997
4 If vehicle emission levels exceed 1.5 times Federally mandat-
ed criteria, the
OED II system illuminates a malfunction indi-
cator light
(MIL) in the instrument cluster.
For the
E39 cars covered by this manual, three different
MIL symbols were used, depending on year and model.
See illustration.
When faults arise, or if the malfunction indicator lamp (MIL) is
illuminated, begin troubleshooting by connecting BMW ser-
vice tester
DISplus, MoDiC, GTl or equivalent scan tool. The
capabilities of OBD
II software has the potential to save hours
540i. 1998 IM62, 4.4 liter /Bosch M5.2.1
M62, 4.4 liter Bosch M5.2