In Building Operation, variable values are primarily stored in flash memory in order to have their values survive power fail and server shutdown. However, values that are often collected are only stored in the SDRAM memory. This is done to protect the flash memory in the SmartStruxure server device.
Variables have a retain level that controls if the value of the variable is retained after a restart of the server. There are three retain levels. The following table lists the retain levels and whether a variable is retained after cold start, warm start, or power failure.
Retain level |
Cold start |
Warm start |
Power failure |
No |
|
|
|
Warm start |
|
x |
x |
Cold start |
x |
x |
x |
In addition, the retain level also defines if and when a variable value is saved in the configuration database. A new value of a variable can either be configured by a user or by an application, for example Function Block or Script.
User written variable values with warm start retained and cold start retained levels are stored in the database. These variable values are part of a backup and restore of the database.
Application written variable values with cold start retained levels are stored in the database during certain activities, such as backup and export.
System Events and Activities |
Retain level: No |
Retain level: Cold start |
Retain level: Warm start |
Cold start command |
Default value a |
Variable retains last value configured by a user. Values set by an application are retained. |
Variable retains last value configured by a user. Values set by an application are lost. |
Warm start command |
Default value a |
Variable retains last value configured by a user. Values set by an application are retained. |
Variable retains last value configured by a user. Values set by an application are retained. |
Exporting & Importing |
Default value a |
Variable retains last value configured by a user. Values set by an application are retained. |
Variable retains last value configured by a user. Values set by an application are lost. |
Viewing Variable in Building Operation user interface |
Shows the last value configured by a user or set by an an application. |
Shows the last value configured by a user or set by an an application. |
Shows the last value configured by a user or set by an application. |
Backup & Restore |
Default value a |
Variable retains last value configured by a user. Values set by an application are retained. |
Variable retains last value configured by a user. Values set by an application are lost. |
Power loss and restore |
Default value a |
Variable retains last value configured by a user. Values set by an application are retained. |
Variable retains last value configured by a user. Values set by an application are retained. |
Upgrade |
Default value a |
Variable retains last value configured by a user. Values set by an application are retained. |
Variable retains last value configured by a user. Values set by an application are lost. |
Function block objects have there own backup function. The backup function in Function Block overrides the retain level in Building Operation. Para obtener más información, consulte Edit Block Dialog Box .