
FUNCTION FC48: BOOL
VAR_TEMP
    i: INT;
END_VAR
VAR_INPUT
    section: INT;
    typeRack: INT;
END_VAR

//renvois vrai si un chariot de type X se trouve dans la section Y
FC48:= false;
FOR i:=1 TO 9 DO
    IF "GestionChariotDB".chariot[i,0] = section AND "GestionChariotDB".chariot[i,1] = typeRack THEN
        FC48:= true;
    END_IF;    
END_FOR; 
END_FUNCTION
