When you click on links to various merchants on this site and make a purchase, this can result in this site earning a commission. Affiliate programs and affiliations include, but are not limited to, the eBay Partner Network.
The first thing I would check is for a loose connector under the valve cover... Thats exactly what i found with a P1316 and SES light.. You might it fixed for only 50 cents.. ( two quarters as shims for the poor locking tabs)
Is your truck still running bad, or do you just have a left over check engine light from your old problem? I agree that the most common cause for the P1316 is a loose UVCH connector (the IDM may not have been needed), but if the new IDM fixed all your problems except for the CEL, then just disconnect both batteries for a while. That will clear the dash light.