Disconnect the battery negative cable from the battery and turn on the headlights for about 5 minutes. See if that clears the code 18. if it doesn't, you still have more work to do...
Code 18 - SPOUT out or wiring fault - look for short to ground in SPOUT wiring going
back to the computer. Possible bad TFI or defective 22 K resistor in the IDM wiring
This code can disable spark advance and reduce power and fuel economy.
Remove the passenger side kick panel and disconnect the computer connector.
There is a 10 MM bolt that holds it in place.
Disconnect the TFI module connector from the TFI and the measure the resistance between the yellow/lt green wire and ground.
You should see greater than 100 K (100000) ohms.
Check the resistance from Pin 4 on the computer connector (dark green/yellow) and the dark green/yellow wire on the TFI connector. You should see 20-24 K Ohms (20,000-24,0000 ohms). The resistor is located in the wiring harness about 6” from the connector. You will need solder and heat shrink to replace the resistor if it is bad.
Next measure the resistance between the yellow/lt green wire on the TFI module connector and
Pin 36 on the computer connector. With the SPOUT plug in place, you should see less than 2 ohms.
The following is a view from the computer side of the computer connector.
This diagram is the wire side of the computer connector.
Diagram courtesy of Tmoss & Stang&2birds
Code 13 - Key on Engine off - ISC did not respond properly (extends to touch throttle then retracts for KOEO) – ISC
Key on Engine running - Idle Speed Control motor or Air Bypass not controlling idle properly (generally idle too high)
If your idle is above 725 RPM, the computer will set this code. Normal idle speed is 650-725 RPM. Higher than that means that someone has mechanically set the idle speed by use of the idle speed screw, and has effectively disabled to computer’s ability to control idle speed.
Recommended procedure for cleaning the IAC/IAB:
Conventional cleaning methods like throttle body cleaner aren’t very effective. The best method is a soak type cleaner used for carburetors. If you are into fixing motorcycles, jet skis, snowmobiles or anything else with a small carburetor, you probably have used the one gallon soak cleaners like Gunk or Berryman. One of the two should be available at your local auto parts store for $22-$29. Take the solenoid off the body and set it aside: the carb cleaner will damages some types of plastic parts. Soak the metal body in the carb cleaner overnight. There is a basket to set the parts in while they are soaking. When you finish soaking overnight, twist the stem of the IAB/IAC that sticks out while the blocker valve is seated. This removes any leftover deposits from the blocker valve seat. Rinse the part off with water and blow it dry with compressed air. The IAC/IAB should seal up nicely now. Once it has dried, try blowing through the bottom hole and it should block the air flow. Reassemble and reinstall to check it out.
Gunk Dip type carb & parts soaker:
Setting the base idle speed:
First of all, the idle needs to be adjusted to where the speed is at or below 600 RPM with the IAC disconnected. Then the electrical signal through the IAC can vary the airflow through it under computer control. Remember that the IAC can only add air to increase the base idle speed set by the mechanical adjustment. The 600 RPM base idle speed is what you have after the mechanical adjustment. The IAC increases that speed by supplying more air under computer control to raise the RPM’s to 650-725 RPM’s
Remember that changing the mechanical idle speed adjustment changes the TPS setting too.
This isn't the method Ford uses, but it does work. Do not attempt to set the idle speed until you have fixed all the codes and are sure that there are no vacuum leaks.
Disconnect the battery negative terminal and turn the headlights on. Leave the battery negative terminal disconnected for 5 minutes or so. Then turn the headlights off and reconnect the battery. This erases the computer settings that may affect idle performance.
Warm the engine up to operating temperature, place the transmission in neutral, and set the parking brake. Turn off lights, A/C, all unnecessary electrical loads. Disconnect the IAC electrical connector. Remove the SPOUT plug. This will lock the ignition timing so that the computer won't change the spark advance, which changes the idle speed. Note the engine RPM: use the mechanical adjustment screw under the throttle body to raise or lower the RPM until you get the 600 RPM mark +/- 25 RPM. Changing the mechanical adjustment changes the TPS, so you will need to set it.
When you are satisfied with the results, turn off the engine, and re-install the SPOUT and reconnect the IAC. The engine should idle with the range of 650-750 RPM without the A/C on or extra electrical loads.