Typically, it is not possible to set the retain level for the values/signals in a Function Block program in the same way as you do for a system object, such as an analog value. Mer information finns i Retain Level .
For some blocks though, the retain level can be set to cold start if they are made public in the Inspector.
You can set the retain level to cold start for the blocks and public constants in the table list below if they are made public. The list differs between server Function Block program and device Function Block program. The reason is that when you download a Function Block program and related objects to a device, you do not want to overwrite the values currently used in the device.
Block Name |
Server |
Device |
BI |
Yes |
Yes |
BO |
Yes |
No |
RBO |
Yes |
No |
II |
Yes |
Yes |
IO |
Yes |
No |
RIO |
Yes |
No |
PI |
Yes |
Yes |
PO |
Yes |
No |
RI |
Yes |
Yes |
RO |
Yes |
No |
RRO |
Yes |
No |
NCYC |
Yes |
No |
PVB |
Yes |
Yes |
PVI |
Yes |
Yes |
PVR |
Yes |
Yes |
SHB |
Yes |
No |
SHI |
Yes |
No |
SHR |
Yes |
No |
FILT |
Yes |
No |
RAMP |
Yes |
No |
ACUM |
Yes |
No |
INTEG |
Yes |
No |
RT |
Yes |
No |
Constants |
Yes |
Yes |
Function block objects have their own backup function. The backup function in Function Block overrides the retain level in EcoStruxure BMS for a warm start. Mer information finns i Edit Block Dialog Box .
When a warm start is performed on a server, the Function Block objects themselves determines the start value to set in the end. This is done regardless of the set Backup status, and it also overrides any retain level set to cold start. The Function Block object sets the value to the initial value, if such a value exists, when the Backup function is not selected.
When a warm start is performed on a device, as opposed to on a server, the Function Block objects do not override any retain level set to cold start when the Backup function is not selected.