Skip to main content

Attribute: no_instance_in_retain

The pragma has the effect that function modules decorated with it cannot be instantiated as a RETAIN variable. The pragma prevents the instance of a function block from being stored in the retain memory. Instead, an error message is displayed.

Syntax:

{attribute 'no_instance_in_retain'}

Insert location: Line above the FUNCTION_BLOCK declaration in the declaration part of the function block.