You can configure a memory reserve for the online change of function blocks. After you have made modifications on the declaration of a function block (in particular after you have added a new variable), and you perform an online change, it is no longer necessary to copy the instances of the function block to a new memory area. Thus, the online change is performed faster and fewer errors are detected.
If the memory reserve you configured is depleted, a message is displayed before the online change is performed.
It is a good practice to configure the memory reserve for a function block before you download the application to the controller. If you configure the memory reserve when the application is already located on the controller, then you have to perform an online change that is even more time-consuming.
If you intend to perform later modifications on a function block that would require the function block instance to be copied to other memory locations when executing an online change, then you can use the
command.By default, the command is not available in the menus. Add this command via the menu.
Step |
Action |
Comment |
---|---|---|
1 |
Execute the command |
Result: The view opens. |
2 |
From the list of applications, select the suitable application. |
– |
3 |
Execute the command from the menu. |
– |
4 |
Click the button . |
– |
5 |
From the area, select the entry . |
Result: The function blocks of the application are displayed in the middle of the view. |
6 |
Select the function block for which you want to configure a memory reserve. |
If the application has not been downloaded to the controller yet, then the input field is editable.If the application is already available on the controller, then click the button in the area.
NOTE: If you modify the memory reserve of an application that is already available on the controller, then the instances of all affected function blocks must be copied.
|
7 |
Enter a value for the , and click the button. |
Result: The value you entered is displayed in the cell of the table. |
8 |
Execute the command from the menu. |
– |
9 |
Click the button . |
Result: The values of the cells , , and are updated in the list for the configured function block. |
When you download the application to the controller, the memory size that is reserved for the function block is calculated by the present size of the function block plus the memory reserve you configured in the
view.Future modifications to the function block can be downloaded to the controller with the online change without having to copy all instances of the function block to a new memory area.