also engine light is only on when the key is turned to first position and then goes off when you crank it
That's not right - now, it might just be the way you have explained it... BUT, the process for EDC self test is:- key to position II - Check engine light and glowplug light* will illuminate. EDC does self test. no faults means check engine light goes off, and glow plug light* goes out too ( but not necessarily in that order) - THEN you can crank it over, and it should start.... IMHO, do NOT try to start it with the EDC doing its self test.
*= some EDC systems have the ability to see engine temp, and may not trigger the glow plugs on a warm engine.