AN update on the problem, so like you sugested i printed the code that came with the printer but no luck. This means that the g code is not the problem. This leaves software, hardware or the motherboard. For the software i tried five differet versions of marlin and all had the same problem. For hardware i disconected the heated bed (i thought it might have been shorting the power supply), but that didn't help at all, i also checked all the conections and made shore nothing is overheating .The only thing teft is the motherboard, and i really hope it's not fried. The problem remains the same the