Unexpected Restart causing tag value to change

Hi, I have a remote Flexy202 with some program in the Init Section of the IDE. This unit is experiencing this unexpected watchdog (timer) restart which causes one of the tag values to reset. What is the cause of this restart?

Anyone can shed some light on this?

A watchdog (timer) would indicate an issue with a timer on the Flexy that ran into an issue. It may be a timer misconfigured in the BASIC IDE but could be some internal process with an issue such as an IO server.

Reviewing the viewing the full logs for other errors may indicate the root cause. Changing the log level to trace could show you more details on what the ewon was doing prior to the reboot.

Could be a number of things as the basic program doesnt seem to handle some errors very gracefully. Without seeing the script it would be just a few guesses. Make sure any tags you are referencing in the program exist on the unit. Check and see if you are missing any closing statements for functions. Also could be ONCHANGE call and the tag is not being read yet in the Flexy. Do you have any ONCHANGE or ONALARM in the beginning of the program?