EcoStruxure Machine Expert version 1.1 does not support the M258, LMC058 and LMC078 controllers.

Attribute no-exit

Overview

If a function block provides an FB_exit method , you can suppress its call for a special instance with the help of assigning the pragma {attribute no-exit} to the function block instance.

Syntax

{attribute 'no-exit'}

Example

Assume the method FB_Exit being added to a function block named POU:

G-SE-0023654.2.gif-high.gif

 

 

In the main program PLC_PRG, 2 variables of type POU are instantiated:

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

When variable bInCopyCode becomes TRUE within POU1, the method FB_Exit is called exiting an instance that will get copied afterwards (online change). The method FB_Exit is not called in context of the function block instance POU2.