Zenon Logic: Variables is resetting to ZERO each time I download a new program!

Zenon Logic: Variables is resetting to ZERO each time I download a new program!

Greetings all,

I wrote a code in Logic that do some calculations and I need to maintain the end result even if the RT is stopped or restarted. I have enabled Warm Start on the Logic project and whenever I stop or restart the RT, the retained variable is keeping its value. However, when I change something in the Logic and attempt to do a download, the retained variable is set back to zero. Is there a way to avoid this ?

Regards.