While you wait for answers, we may have found some information which could help you.
Click here for Dell Latitude Computerdell inspiron 5040 plugged in not charging?
The Dell adapter can't be recognized?
How to fix dell Inspiron 5040 laptop windows 7?