Space Engineers

Space Engineers

Power Management Script
"caught exeption during execution of script:input string was not in a correct format"
just ran the script was working but after about 5 mins the screen stopped updating and the programable block had the quoted error, anyone got any ideas on how to fix it?