Attribute ‘no-exit’ΒΆ

This 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

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.

See also