Attribute no_instance_in_retainΒΆ

With this attribute you can prevent the instance of a certain function block from being stored in the retain area.

Syntax:

{attribute 'no_instance_in_retain'}

Insertion position:

Line above the FUNCTION_BLOCK declaration in the declaration part of the function block. An error message is then displayed if an instance of the function block is declared as a RETAIN variable.

See also