Recently replaced the alternator and battery on my 2004 Ford F150 4.6 XLT. However having done that the engine light has come on and when idle I get low RPM.

Only things removed to get to old alternator was a radiator hose and air intake pipe. Intake was clean and coolant fluid was replaced. Tried to check as many cables, etc. to see if anything got loosened or knocked out of place but haven't come up with anything.
Took down to AutoZone(2 of them) to get the battery/alt/starter tested after doing the work and everything checked out. When they checked the engine light code (506) they come up with this:

Anyone have any other thoughts before I take this in to get checked out?
Edit: Could be mistaken but I think gas mileage has taken a hit
[This message has been edited by chipotle (edited 8/10/2013 2:03p).]

Only things removed to get to old alternator was a radiator hose and air intake pipe. Intake was clean and coolant fluid was replaced. Tried to check as many cables, etc. to see if anything got loosened or knocked out of place but haven't come up with anything.
Took down to AutoZone(2 of them) to get the battery/alt/starter tested after doing the work and everything checked out. When they checked the engine light code (506) they come up with this:

Anyone have any other thoughts before I take this in to get checked out?
Edit: Could be mistaken but I think gas mileage has taken a hit
[This message has been edited by chipotle (edited 8/10/2013 2:03p).]