Why Does Replacing Idle Air Control Valve on 2002 Ford F150 not correct Idle issue?

Got A check engine light. Code said Idle Air Contol Valve. Purchased A control valve at parts store. Replaced control valve with new one. Engine Idled up real high. Attempted driving, thought computer had to reset. Engine still idled up too high. Parts store said vehicle had to be driven for at least 20 miles for control valve to operate correctly. Drove truck 30 miles, engine started to surge. Put old control valve back in and engine does not idle high or surge but stalls out.( suggestions) ?

What were the codes?

Go return the ICV you bought and get a can of carburetor cleaner and spray off the carbon buildup in your original ICV. Also spray out the bore the ICV installs into because any carbon in there will also affect ICV operation.

I know that it takes three drive cycles to clear old codes on Chevy. Maybe so on Fords too.

Replaced the IACV in a SAAB and it wanted to race down the street at full power - turbo charged at that. Scariest ride of my life. Settled down after a few days. I don't remember how long it took, but it sounds like your OLD IACV may have failed. That's probably why you got a warning code on that.

Put the new one in and give it a chance. Just be careful and ready to shift into neutral in any emergency. Don't turn the key off though, could have other consequences. Neutral is a safe bet.

See a mechanic. The valve is either not getting feed voltage, the PCM is not commanding the valve to open (not providing ground), there's a wiring problem or the valve you bought is faulty.

Codes don't say what parts to replace, They give a code description as to what system is affected! Your TPS has failed or the base idle adjustment is out of specification,

If the TP (throttle position) voltage is too high, the Powertrain Control Module (PCM) will interpret it as part throttle. When it thinks the throttle is at part throttle, the operating strategy is to duty cycle the IAC up so that when the throttle is closed, the IAC acts as an "electronic dashpot" so that the throttle is not closed too quickly causing excessive emissions out of the tail pipe. If the idle is set too low, it will cause problems with the PCM idle strategy.

1. With the engine at operating temperature, and the IAC valve unplugged, the idle should be set at approximately 550-600 RPM. This puts the base idle within the operating strategy of the PCM. If the base idle can't be achieved, check for a wrong or defective Positive Crankcase Ventilation (PCV) valve, or a torn rubber PCV elbow @ the back of the intake.

2. With the idle set at 550-600 RPM, typical TPS voltage should be 0.9-1.0 volts, but not more than 1.0 volt.

3. After adjustments are made, the idle strategy (or KAM) needs to be cleared from the PCM by disconnecting the battery for about 10 minutes.

4. After the strategy has been cleared, test drive the vehicle for an idle relearn and retest.