
FUNCTION FC60 : void

VAR_TEMP
    i: INT;
END_VAR    
    FOR i:= 1 TO 16 DO
        IF "GestionStock_DB".stock[i] THEN
            "GestionStock_DB".stockTimer[i]:= "GestionStock_DB".stockTimer[i]+1;
        ELSE
            "GestionStock_DB".stockTimer[i]:= 0;
        END_IF;
    END_FOR;
END_FUNCTION
