14
MCi210 User Guide
Issue Number: 2
Table 5-2 Module's menu 0 and custom menu locations on the drive
5.3
Parameter save and restore
Any user-save parameters in the option module's internal menus are stored in non-volatile memory
on the module and not in the drive. Therefore, if the module is moved to a different slot or to a
different drive then any saved parameter values will follow the module. If a module is to be
replaced, ensure that the parameter values for the module have been backed up before replacing
it.
5.4
Remanent variables
The module supports both Retain and Persistent variables. Both of these types of variable allow
values to be retained after a power-cycle or module reset, however there is a difference between
Retain and Persistent variables.
The following table indicates the behaviour of all variable types:
Key:
X = Value is maintained
- = Value is initialized
RETAIN variables are declared in MC Studio as shown below:
VAR RETAIN
iRem1 : INT; (* 1. Retain variable*)
END_VAR
PERSISTENT variables are declared in MC Studio as shown below:
VAR_GLOBAL PERSISTENT RETAIN
iVarPers1 : DINT; (* 1. PerRetain Variable App1 *)
bVarPers : BOOL; (* 2. PerRetain Variable App1 *)
END_VAR
Slot number
Module’s Menu 0 location
Custom / Application
menu location
1
15
25
2
16
26
3
17
27
Command
VAR
VAR RETAIN
VAR PERSISTENT
VAR RETAIN PERSISTENT
VAR PERSISTENT RETAIN
Reset warm
-
X
X
Reset cold
-
-
X
Reset origin
-
-
-
Online change
X
X
X
Reboot module
-
X
X