Attribute 'no-exit'

The pragma suppresses the call of the FB_exit method of a function block for a certain of its instances.

Syntax: {attribute 'no-exit'}

Insertion location: Line before the declaration of the function block instance

Example:

The function block FB_Sample is added to the method FB_exit. Two instances of the function block FB_Sample are created in the MAIN program.

PROGRAM MAIN 
VAR 
    fbSample1 : FB_Sample;
    {attribute 'no-exit'} 
    fbSample2 : FB_Sample;
END_VAR

fbSample1.FB_exit is called, fbSample2.FB_exit is not called.

See also: