ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
Variable
Retain variable
141
8.1 Retain
variable
3131
Retain variables can be saved automatically or on request (via a FB) in a protected memory area and
be reloaded automatically during a reboot or on request (via a FB).
Typical applications for retain variables are for example:
Operating hours which are counted up and retained while the machine is in operation,
position values of incremental encoders,
preset values entered in the PDM,
machine
parameters,
i.e. all variables whose values must not get lost when the device is switched off.
All variable types, also complex structures (e.g. timers), can be declared as retain.
►
To do so, activate the control field [RETAIN] in the variable declaration (
window).