BMW 540i 1998 E39 Workshop Manual
Page 431 of 1002
Downloaded from www.Manualslib.com manuals search engine 
. - 
Fuel Injection I 
Working inside E-box, disconnect ECM harness  connector 
(arrow)  by releasing  fastener and pivoting  connector  up and 
off  ECM. 
CA UTIOW 
Be  sure ignition  is OFF before disconnecting  or reconnecting 
DME system components. 
Remove  ECM from  retaining brackets and lift off  holder. 
Installation is  reverse of removal 
Before attempting  to start engine,  use 
BMW service  tester 
DISplus, MoDiC, GTl or equivalent: 
* Code  replacement  ECM with application  information (i.e 
engine code, transmission  type, etc.). 
Align  ECM to EWS  (electronic  immobilizer). 
Siemens MS 42.0  and MS  43.0 
ECM  pin assignments 
ECM  pin assignments are given  in Table  c. For engine  man- 
agement system schematics,  see 
ELE Electrical Wiring Di- 
agrams. 
/ CAUTIOW I 
Al~ays wait  at least one mfnule after turning  off the ignition 
before 
remov;ng [he connecror  irom rhe ECM. If the con- 
nector  is removed  before this time,  residual power 
in the 
system relay  may damage  the 
ECM. 
Always connect  or disconnect  the control  module con- 
nector  and meter probes  with the ignition  off. 
When making checks  at the ECM  itself, a 
breakout box 
should  be used  to allow  tests to be  made  with the connector 
attached  to the  ECM.  This also prevents damage  to the small 
terminals  in the  connector. As  an alternative, the  harness 
connector housing  can be separated so  that electrical checks 
can be made  from the back  of the  connector. 
Table 
c. Siemens  MS 42.0 and MS 43.0 ECM  pin assignments 
Pin 
lslgnal l~om~onentlfunction 1 Notes 
Connector 
X60001 9-pin black 
1 loutput I~erminai 15 I Unloeder  relay terminal 15 
2 I 1 Not used I 
3 Not used 
4 Ground 
Ground  Ground 
point    
Page 432 of 1002
Downloaded from www.Manualslib.com manuals search engine 
.- 
/Fuel Injection 
I ' I - I 
9 /ln~ut l~oltaqe supply I Fuse carrier, engine electronics 
Table 
c. Siemens  MS 42.0  and MS 43.0  ECM  pin assignments (continued) I ' I . I 
Connector X60002 24-pin 
1 linput IHeater, precatalyst oxygen sensor 1 I Heated oxygen sensor 1 in front  of cat. conv. 
I I I 
18 llnout IHeater, post-catalyst oxygen sensor 2 ]Heated oxygen sensor 2 behind  cat. conv. 
Notes 
Ground connector 
Ground connector 
B+ terminal 
Fuse carrier, engine electronics 
Pin 
5 
6 
7 
8 
I I I 
4 loutput l~hrottle valve supply  (MS 
42.0) I~hrottle valve (MS 42) 
Signal 
Ground 
Ground  Input 
lnout 
19 
20  21 
22 
23 
24 
Connector 
1 
2 
3 
I I I 
5 1 lnput ISignal, intake camshaft position sensor /camshaft position sensor 1 
Componentlfunction 
Ground 
Ground 
Terminal  30 
Voltaae 
SUDP~V 
input 
Ground 
Ground 
Ground 
Input 
Ground 
X60003 52-pin 
Input 
Input 
~ - 
Heater, post-catalyst oxygen sensor 2 
Ground, precatalyst oxygen sensor 
1 
Ground, precatalyst oxygen sensor 2 
Ground, post catalyst oxygen sensor 
1 
ECM  (DME  main) relay signal activation 
Ground, post catalyst oxygen sensor 2 
Signal, mass air 
flow sensor 
Signal,  exhaust camshaft sensor 
Not  used  Heated 
oxygen sensor 2 behind  cat. 
conv. 
Heated oxygen sensor 1 in front  of cat.  conv. 
Heated oxygen sensor 2  in front  of cat.  conv. 
Heated  oxygen sensor 
1 behind cat.  conv. 
ECM 
Heated oxygen sensor 2 behind cat.  conv. 
Hot film  mass air flow sensor 
Camshaft position sensor    
Page 433 of 1002
Downloaded from www.Manualslib.com manuals search engine 
130-43 
Fuel Injection ] 
I I I 
12 llnput IFeedback signal, engine start /Starter 
Table c. Siemens  MS 42.0 and MS 43.0 ECM  pin assignments  (continued) 
I I - I 
13 Input /I Alternator (generator) Notes 
Throttle 
valve 
Crankshaft position sensor 
Throttle  valve  (MS 
42.0) 
Throttle valve 
Pin 
6 
7 
8 
9 
10 
11 
14 
15 
16 
17 
18 
19 
20 
I 1- I 
23 l~round I~round, intaite air temperature sensor /Intake air temperature sensor 
Signal 
Output 
Input 
Input 
Input 
I  I I 
Component/function 
Not used 
Throttle  valve supply potentiometer 
2 
Signal, crankshaft position sensor 
Signal, 
pedal position sensor 2 (MS 42.0) 
Signal, throttle position sensor 1 
Not used 
Ground 
Ground 
Input 
Ground 
Ground 
Input 
Ground  Cranltshaft position sensor 
21 
24 
25 
26 
27 
28 
29 
30 
I 1- I 
33 1 input ISignal, cylinder 1 fuel injector /cylinder 1 fuel injector 
Ground, throttle position sensor (MS 
42.0) 
Ground, exhaust camshaftsensor I 
Signal, pedal position sensor 1 (MS 42.0) 
Ground, mass air flow sensor 
Ground, intake camshaft sensor 
1 
Signal, throttle potentiometer 1 
Ground, throttle position sensor 
22 loutput I~ignal, intake air temperature Ilntake air temperature sensor 
I I - I 
Throttle 
valve (MS 42.0) 
Camshaft position sensor  I 
Throttle  valve (MS 
42.0) 
Hot film mass air flow sensor 
Camshaft position sensor i 
Throttle  valve 
Throttle  valve 
Ground 
Output 
Ground  Input 
Output 
Ground 
Output 
Out~ut 
Ground, crankshaft position sensor 
Knoclt sensor 
31 
34 
35 
36 
37 
38 
39 
Signal, coolant temperature sensor 
Ground, coolant temperature sensor 
Signal, 
oil pressure 
Signal, engine 
oil temperature sensor 
Ground, engine oil  temperature sensor 
Signal, knock sensor 
Signal, knock sensor 
32 loutput ISignal, ltnock sensor l~nock sensor 
40 
41 
Coolant temperature sensor 
Coolant temperature sensor 
Oil pressure  switch 
Oil temperature sensor 
Oil temperature sensor 
Knoclt sensor 
I<noclt sensor 
Output 
Input 
input 
Input 
Input 
Input 
Inout 
Signal, knock sensor 
Input 
Input  Signal, cylinder 
2 fuel injector 
Signal, cylinder 
3 fuel  injector 
Signal, cylinder 
4 fuel injector 
Signal, cylinder 
5 fuel injector 
Signal, cylinder 
6 fuel injector 
Sianai, oil  level sensor  Cylinder 
2 fuel 
injector 
Cylinder 
3 fuel  injector 
Cylinder 
4 fuel injector 
Cylinder 
5 fuel injector 
Cylinder 
6 fuel injector 
Oil level sensor 
- 
Signal.  VANOS  inlet valve 
Signal.  VANOS  outlet valve  VANOS 
inlet valve 
VANOS  outlet valve    
Page 434 of 1002
Downloaded from www.Manualslib.com manuals search engine 
Fuel Injection 
Table c. Siemens  MS 42.0  and MS 43.0 ECM pin assignments (continued) 
Pin 
42 
43 
44 
45 
46 
47 
48 
49  50 
51 
52  Componentlfunction 
Signal, evaporative emissions valve 
Signal, throttle 
valve drive 
Signal, throttle  valve drive 
Signal, engine coolant thermostat 
Signal,  close idle  speed control valve 
Signal,  open idle  speed control  valve 
Signal, shield 
ltnock sensor 
Signal, resonance  valve 
intake system 
Not  used 
Not used 
Signal, secondary  air injection pump  valve 
Signal 
Input 
Input 
Input 
Input 
input 
Input 
Ground 
Input 
Input 
Notes 
Evaporative emissions  valve 
Throttle valve 
Throttle valve  Engine coolant thermostat (map controlled) 
idle  speed control  valve 
Idle speed control valve 
Shield, 
knock sensor 
Resonance  valve intake system 
Secondary  air injection  valve 
Connector 
X60004 40-pin  Notes 
instrument cluster control unit 
Instrument cluster control module 
Secondary air injection pump relay 
Electric (auxiliary) fan motor 
Pedal position sensor (PWG) (MS  43.0) 
Pedal position sensor (PWG) (MS  43.0) 
Pedal position sensor (PWG) (MS  43.0) 
Fuel pump relay 
1 
Instrument cluster control module 
ComponenVfunction 
Signal,  battery  charge indicator lamp 
Feedback signal, engine start 
Signal, secondary  air injection  pump 
Signal, electric cooling  fan 
Not  used 
Not  used 
Pedal position sensor (PWG)  (MS 43.0) 
Signal,  pedal position sensor  (PWG) (MS 43.0) 
Pedal position sensor (PWG)  (MS 43.0) 
Signal, 
fuel pump  relay 1 
Signal,  oil pressure switch 
Pin 
1 
2  3 
4 
5 
6 
7 
8 
9 
10 
11  Signal 
Input 
Input 
input 
input 
Input 
Input    
Page 435 of 1002
Downloaded from www.Manualslib.com manuals search engine 
Fuel Injection 
Table c. Siemens MS 42.0 and MS 43.0 ECM pin assignments (continued) 
40 
I I - . I - 
9 llnput /signal, ignition  coil 4 I Ignition coil 4 
Not used 
1 
2 
3 
4 
5 
6 
7 
8 
Connector X60005 9-pin 
Input 
Input 
Input 
Ground 
Ground 
Input 
Input 
Signal, ignition  coil 3 
Signal, ignition coil 2 
Signal, ignition coil 1 
Not used 
Ground  Ground 
Signal,  ignition coil 
6 
Signal, ignition coil 5 
Ignition coil 3 
Ignition coil 2 
Ignition coil 1 
Ground connector 
Ground connector 
Ignition coil 
6 
lqnition coil 5    
Page 436 of 1002
Downloaded from www.Manualslib.com manuals search engine 
130-46 
Fuel Injection 
When  system  faults are detected, a  diagnostic trouble code 
(DTC)  is stored  in the  engine  control module  (ECM). The MIL 
also  illuminates  if an emissions-related  fault  is detected. 
When  faults arise,  or 
if the malfunction indicator lamp  (MIL) is 
illuminated,  begin troubleshooting  by connecting  BMW ser- 
vice tester 
DISplus. MoDiC, GTI or  equivalent scan tool.  The 
capabilities  of 
OED II software has  the potential  to save hours 
of  diagnostic  time and to help  avoid  incorrect component  re- 
placement  and possible  damage to  system components. 
CA UTIOiU- 
The tests  in this section  may set fault codes (DTCs) in the 
ECM  and illuminate the MIL.  After ail testing is  completed, 
access  and clear  DTC  fault 
memory using an OED I/ or 
BMW  compatible  scan tool. See OBD  On-Board  Diag- 
nostics. 
Only  use a digital 
multimeter for electrical  tests. 
Relay  positions  can vary.  Be sure to confirm  relay 
posi- 
. tion by identifying  the wiring  in the  socket using  the wir- 
ing diagrams-found in ~~~~lectrical Wiring 
Diagrams. 
NOTE- 
OED I1 fault  memory  (including  an illuminated MIL) can 
only be reset 
using~the special scan  tool. Removing  the 
connector from the  ECM or disconnecting the battery  will 
not erase  the fault 
memory. 
The  BMW-dedicated  20-pin diagnostic link connector 
(DLC)  is in the right  rear of the engine  compartment. 
The  16-pin  OBD 
I1 diagnostic connector  (arrow) is located 
inside the  car on 
the lower left dash panel.    
Page 437 of 1002
Downloaded from www.Manualslib.com manuals search engine 
Fuel Injection 
M5.2 system features 
The Bosch M5.2  system used on 1997 540i  models uses  an 
88-pin control  unit. The 
M5.2 system has the following func- 
tions  and capabilities: 
Fully sequential cylinder-individual  fuel injection. 
Integrated adaptive knock control. 
Oxygen  sensor fuel mixture control. 
0 Self-diagnosis  and emergency operation characteristics. 
CAN-Bus  link. 
0 OED II functions  (misfire detection,  catalytic converter 
monitoring,  oxygen sensor monitor, and fuel  tank ventila- 
tion  system). 
Electronic vehicle immobilization via  EWS. 
One-touch starter function. 
Control  of characteristic  map thermostat. 
M5.2.1 system features 
The  Bosch M5.2.1 system is used  on 1998 540i  models. The 
M5.2.1  control module utilizes  the SKE (standard shell con- 
struction  housing) with 5 connectors and a combined total  of 
134  pins. 
The  M5.2.1  systefn  has 
tile following functions or capabilities: 
Separate power supply relay for ignition coils.  Leak diagnosis pump (LDP)  control and feedback 
rnonitor- 
ing for evaporative system leak testing. 
Fuel  evaporative system providing  ORVR (on-board refuel- 
ing  vapor  recovery) compliancy. 
Batterylalternator charge  logic  (idle speed varied  with the 
battery  state of charge). 
CAN-Bus  communications with  the instrument cluster 
EWS 
Ill "rolling code"  ISN interface. 
More  sensitive  ignition 
knock sensors. 
Pulse  width modulated (P-W-M) Heating and 
AIC (IHKA) 
status signal. 
Running  loss (312-way)  solenoid valve.    
Page 438 of 1002
Downloaded from www.Manualslib.com manuals search engine 
Fuel Injection    
Page 439 of 1002
Downloaded from www.Manualslib.com manuals search engine 
- Fuel Injection 
ECM relay, testing 
The engine control module (ECM) relay is energized via  the 
ECM and  supplies battery positive 
(B+) power to many  of the 
engine 
management components and subsystems.  If this re- 
lay is faulty,  the engine will not start. 
CAUTIOI\C 
Relay positions can vary. Be sure  to confirm relay position  by 
identifying  the wiring 
in the socket  using the wiring  diagrams 
in ELE Electrical Wiring  Diagrams. 
NOTE- 
The ECM relay is also referred  to as  the DME main  relay. 
ECM  relay powers: 
* ECM 
Ignition coils 
Fuel injection 
Evaporative leak detection  pump 
(5.2.1 only) 
Idle air actuator 
Camshaft sensors  Evaporative emissions  valve 
Hot film  mass air flow sensor 
Fuel pump  relay 
Oxygen  sensor  heaters 
4 Working  in right rear of engine compartment: 
Release interior ventilation filter cover latch 
(A) and re- 
move cover. 
Release plastic locking tab 
(B). 
Rotate  duct inward  (arrow)  to unloclc from bulk head  and 
remove  duct. 
0 Release  spring lock (C) to remove lower filter  housing. 
Slide filter  housing away from inner fender to  remove. 
- Remove electrical  box  (E-box) cover fasteners and remove 
cover.    
Page 440 of 1002
Downloaded from www.Manualslib.com manuals search engine 
130-50 
Fuel Injection 
Bosch M5.2 
ECM relay 
1 HoL al ail iirnel XOL a1 ail limes 
i--[-----i F109 (BOA) electronics I L.$.....: .I: 
ECM relay . . . . . . . . . , 
8,s 
:, 
6 1 .. ... ~~.~~. . ...... .-, Engine control ii~~-~.~~..~ ........ ~~~~~~.~~~~:. module relay -;I 
Of? 
,c,;,,, 
< With ignition  off, remove ECM relay  (arrow) in electronics 
box (E-box)  at right rear  of engine  compartment. 
NOTE- 
Relay locations can  vary. Conh relay identification  by 
matcliing  wiring colors  and terminal  numbers. 
4 Check for voltage  at terminal 6 of main  relay socket  (30-red 
wire).  On M5.2  cars also check  for battery  voltage  at terminal 
8. 
. . . . . . . . . , 
If  battery voltage  is present, continue  testing 
. 
If battery voltage  is not present, check  large red wire(s) in 
relay socltet. See 
ELE Electrical  Wiring Diagrams. 
%P,,tt 
- Reinstall  relay and turn  ignition on. Gain access to underside 
of  relay socket and 
checlc for  ground  at terminal 4 (85-brown 
wire). 
. . . . . . .  . . . . . - - - - - - - - - . - - - . . l ,,-. ; Engine i f .: , ; Fuse  carrier .,A . :engine /;is? /control L.!.!! .... 1.: ...... !.::..! I lij :module  electronics If 
ground is present, continue  testing 
If ground is not present, signal from  ECM is missing. Checic 
wire between  ECM and  relay. 
4 With ignition on and relay installed, check  for battery  voltage 
at terminal 
2 (87-redlwhite wire).  On M5.2.1  cars also checlc 
for battery  voltage  at terminal  5. 
If battery voltage is present, relay has energized and is 
functioning  correctly. 
If  battery  voltage  is not  present  and all earlier tests are  OK, 
relay is  faulty and should  be replaced.