Skip to main content

Attribute: no-exit

The attribute suppresses the call of the FB_Exit method of a function block for a certain one of its instances. To do this you insert the attribute in the line before the declaration of the function block instance.

Syntax:

{attribute 'no-exit'}

Example 282.

The method FB_exit is added to the function block POU_ex. Two instances of the function block POU_ex are created in the main program PLC_PRG.

PROGRAM PLC_PRG
VAR
    POU1 : POU_ex;
    {attribute 'no-exit'}
    POU2 : POU_ex;
END_VAR

POU1 is called, POU2 is not called.