How to detect cold-restart of AC800M controller .
Voted best answer
To find if the conroller was cold-restarted is to have variable-flag with "retain" attribute. For instance "CR_detect" is boolean retain variable that getting true at controller startup. Default value of CR_detect is "false".
If CR_detect = false then
(*Write here your code if controller has been cold-restarted or initially started up*)
CR_detect := true;
(*Write here your code if controller has been warm-restarted*)