Supported platforms: CODESYS 2.3

 

Using Fast Parameter Backup

This feature makes a backup of your fast parameters. The backup is taken in use in case the fast parameters are corrupt (for example due to interrupted saving)

When enabled, the need for using the backup is checked using CRC check each time the project is started.

 

Fast parameter backup always returns the previous successfully saved backup values.

 

 

Required library versions:

  • 3606int.lib 1.6.1 or newer

  • 3610int.lib 1.0.1 or newer

  • 3720int.lib 1.0.1 or newer

  • 3724int.lib 1.6.1 or newer

  • 4602int.lib 1.6.1 or newer

 

 

For new projects, MultiTool Creator automatically generates the needed lines to the code template.

 

Before defining the variables below, check if the fast parameter backup is already in use in your code template. This can be checked in CODESYS project:

 

1. In CODESYS IDE, select Resources > Global variables > NVRAM_XXXX_FastParameters

2. Fast parameter backup is already in use, if the following lines are defined (see other hardware specific lines in the table at the end of this page):

 

 

G_3606_PARAM_SIZE:WORD:=1536; (* Parameter size is decreased by 256 bytes because

fast parameter backup is enabled *)

G_USE_FAST_PARAMETER_BACKUP:BOOL:=TRUE;

 

 

 

 

It is possible to take the fast parameter backup to use in existing projects without losing saving the normal parameters. This requires 256 bytes space available in normal parameter saving.

 

Fast parameter backup can be enabled or disabled without loosing any fast parameters.

 

 

Disabling fast parameters backup feature resets the normal parameters.

 

 

If the fast parameter backup is wanted to use, it is always mandatory to decrease the size of the parameter area by 256 bytes.

 

 

If the fast parameter backup isn't already in use, add the following constants to your project.

Remember to give clean all command and rebuild when the constants are added.

 

Unit Type

Added lines

4602

 

G_4602_PARAM_SIZE:WORD:=7680; (* Parameter size is decreased by 256 bytes because fast parameter backup is enabled *)

G_USE_FAST_PARAMETER_BACKUP:BOOL:=TRUE;

 

3724

 

G_3724_PARAM_SIZE:WORD:=7680; (* Parameter size is decreased by 256 bytes because fast parameter backup is enabled *)

G_USE_FAST_PARAMETER_BACKUP:BOOL:=TRUE;

 

3720

 

G_3720_PARAM_SIZE:WORD:=7680; (* Parameter size is decreased by 256 bytes because fast parameter backup is enabled *)

G_USE_FAST_PARAMETER_BACKUP:BOOL:=TRUE;

 

3610

 

G_3610_PARAM_SIZE:WORD:=1536; (* Parameter size is decreased by 256 bytes because fast parameter backup is enabled *)

G_USE_FAST_PARAMETER_BACKUP:BOOL:=TRUE;

 

3606

 

G_3606_PARAM_SIZE:WORD:=1536; (* Parameter size is decreased by 256 bytes because fast parameter backup is enabled *)

G_USE_FAST_PARAMETER_BACKUP:BOOL:=TRUE;

 

 

 

 

 

 

Source file topic100433.htm

Last updated 19-Dec-2024