The effect of this pragma is that the variable to which the pragma is applied is initialized with each online change.




NOTICE

For compiler version 3.5.0.0 and later, a fast online change is performed for minor
changes. In this case, only the modified blocks are compiled and downloaded. In particular,
no initialization code is generated. This means that also no code is generated when
variables with the init_on_onlchange
attribute are initialized. As a rule, this has no effect because the attribute is
used primarily for initializing variables with addresses. However, it cannot happen
that a variable changes its address during an online change.
To secure the effect of the init_on_onlchange
attribute in the entire application code, you must deactivate the fast online change
in general for the application by using the compiler definition no_fast_online_change
. To do this, insert the definition in the application “Properties” (“Build” tab).
Syntax:
{attribute 'init_on_onlchange' }
Insert location: The line above the line with the declaration of the variables.
See also