Global Preserve variables

You can preserve global variable values by using the optional Preserve parameter when you declare global variables.

Preserved variables are stored in the controller's SRAM.

If the data type of a preserved variable or the number of dimensions is changed, the variable values will be cleared.

KEY POINTS


Be careful about the backup battery power, because you will lose the data of global preserve variables stored in SRAM if the battery is weak.