Attribute no_copy

Overview

Generally, an online change will require a reallocation of instances, for example of POUs. The value of the variables within this instance will get copied.

If, however, the pragma {attribute no_copy} is added to a variable, an online change copy of this variable will not be performed; this variable will be initialized instead. This can be reasonable in case of local pointer variable, pointing on a variable actually shifted by the online change (and thus having a modified address).

Syntax

{attribute 'no_copy'}