Code:
FUNCTION FC1 : BOOL
// Bausteinparameter
VAR_INPUT
    // Eingangsparameter
    bTimer : BOOL ;
END_VAR
    // Anweisungsteil
    IF bTimer then
        FC1 := TRUE;
    ELSE 
        FC1 := FALSE;
    END_IF ;
END_FUNCTION
(*----------------------------------------------*)
FUNCTION_BLOCK FB1
VAR
    // statische Variablen
    delay : SFB4 ;
    sfbstart : BOOL ;
END_VAR
    // Anweisungsteil
    delay.IN  := sfbstart ;
    delay (PT := T#2s);
    sfbstart := FC1(bTimer := delay.Q) ;  
END_FUNCTION_BLOCK
(*----------------------------------------------*)
DATA_BLOCK DB1  FB1
//
// Baustein-Kommentar ...
//
BEGIN
END_DATA_BLOCK
(*----------------------------------------------*)
ORGANIZATION_BLOCK OB1
VAR_TEMP
    // reserviert
    info : ARRAY[0..19] OF BYTE;
    // temporäre Variablen
END_VAR
    // Anweisungen
    FB1.DB1() ; 
END_ORGANIZATION_BLOCK
Gruß...