Attribute no_instance_in_retain

Overview

The pragma {attribute 'no_instance_in_retain'} helps to avoid that the instance of a certain function block instance is stored in the retain memory area.

Insert it as first line of the declaration of the function block. This has the effect that a message is created in case any instance of the POU is declared as a RETAIN variable.

Syntax

{attribute 'no_instance_in_retain'}