Attribute 'noinit'

The pragma is applied to variables that are not to be initialized implicitly.

Syntax:

{attribute 'no_init'}

{attribute 'no-init'}

{attribute 'noinit'}

Insertion location: Line above the declaration line of the affected variable

Example:

PROGRAM MAIN 
VAR 
    nA : INT; 
    {attribute 'no_init'} 
    nB : INT; 
END_VAR 

If the corresponding application is reset, the integer variable nA is once more implicitly initialized with 0, whereas the variable nB retains its current value.