pin out ECM diagnostics for 2007 Ranger P5031 code after PCM replacement

2007 FORD RANGER
135,000 MILES • 4.0L • V6 • 4WD • AUTOMATIC
Avatar
GRIFFR
  • MEMBER
  • 1 POST
My 2007 Ford Ranger 4.0L automatic died with a code for ECM, replaced with a rebuilt, had keys programmed by mobile service, still would not start.
Found a thread that said to hook battery to a charger and turn key to on for 20-30 minutes, then do the same with the second key.
After doing so, the engine started but with a miss and coded P3501 coil A circuit open.
I replaced the coil with the same result.
I noticed the coil wiring connecter if 4 wire, I assume 1 power wire and three ground trigger wires controlled by the ECM?
Assuming that the trigger fires two coils at a time, one cyl on power stroke one on exhaust stroke, assuming as code is for cyl A only? looking for PCM pinout and diag procedure are node lights available for testing trigger signal?
Thanks for any and all guidance.
Dec 30, 2025 at 9:35 AM
Advertisement
Avatar
STEVE W.
  • CERTIFIED EXPERT
  • 15,119 POSTS
You are correct, the ignition uses one power feed (Purple wire) and three trigger wires Yellow/gray, White and a Blue/brown. In your case the Blue/brown wire is the trigger for the 1-5 coil. The ECM is programmed to read the current ramp that fires the coils and monitors it based on each cylinder firing. So when it fires the 1-5 coil it looks at which cylinder should be in position to fire and produce power and reads the return pulse to determine if the coils fired. If the coil returns a pulse different than expected you get the P0351 code because on that engine that code covers both primary and secondary ignition. That can be caused if there is an internal cylinder issue (lowered compression or poor fuel mix) or if something like the plug wire or plug are not firing because of a failure, like carbon tracking on a cracked plug or a damaged plug wire. Very rare for it to be the coil itself unless the tower for a wire is damaged. Because the system is waste spark and you are not seeing anything about cylinder 5 as well, it isn't the PCM or the wiring to the coils that is the issue, or you would have a 2 cylinder misfire (1 and 5). As you only have the code for cylinder one then I would look at the plug wire and plug for that cylinder. See if there is some damage to either one. I have seen this code for plugs that were gapped improperly or if they were damaged (commonly carbon tracking)
Dec 30, 2025 at 12:10 PM
Avatar
GRIFFR
  • MEMBER
  • 1 POST
Thanks for the fast reply, I have ordered plugs and wires, but heading out of town for the New Year, wouldn’t have suspected these as the vehicle ran fine before it just quit at a signal light on the road that coded for the ECU. Will install when back from Holiday and keep you appraised of outcome, thanks so much for your help.
Dec 31, 2025 at 8:45 AM
Advertisement
Avatar
STEVE W.
  • CERTIFIED EXPERT
  • 15,119 POSTS
We'll be here when you get back to it. Enjoy the holiday.
Dec 31, 2025 at 12:56 PM