Attribute no-exit
Lorsqu'un bloc fonction contient une méthode FB_exit, le fait d'attribuer le pragma {attribute no-exit} à cette instance de bloc fonction permet d'éviter qu'elle soit appelée.
La méthode FB_Exit est ajoutée à un bloc fonction appelé POU :
Deux variables de type POU sont instanciées dans le programme principal PLC_PRG :
PROGRAM PLC_PRG
VAR
POU1 : POU;
{attribute 'no-exit'}
POU2 : POU;
END_VAR
Lorsque la variable bInCopyCode devient TRUE dans POU1, la méthode FB_Exit est appelée, déclenchant alors la sortie d'une instance copiée par la suite (changement en ligne). La méthode FB_Exit n'est pas appelée dans l'instance de bloc fonction POU2.