Attribute 'enable_dynamic_creation'

The pragma is required in order to use the __NEW operator with function blocks/DUTs.

Syntax: {attribute 'enable_dynamic_creation'}

Insertion location: First line above the declaration part of the function block/DUT

Attribute 'enable_dynamic_creation' 1:

No type change is possible via online change

If you change the data layout of an FB/DUT in online mode that is marked with the 'enable_dynamic_creation' attribute, you cannot then log in with online change. The reason for this is that the memory area of the object instance has become invalid.

The data layout changes when new variables are added to the FB/DUT, existing variables are deleted or the data types of variables are changed. In this case, you can log in with download.

See also: