Attribute 'TcInitOnReset'
You can use the pragmas to define whether a persistent variable is to be reinitialized in case of a Reset cold.
Syntax: {attribute 'TcInitOnReset'}
Insertion location: Line above the declaration line of the affected variable
Available from TC3.1 Build 4024 |
Samples:
VAR PERSISTENT
nVar1 : UINT;
{attribute 'TcInitOnReset'}
nVar2 : UINT;
END_VAR
In case of a Reset cold, only nVar2 is reinitialized.