
FUNCTION FC47 : void

VAR_input
    section: INT; 
    chariotType: INT;
END_VAR
VAR_TEMP
    i: INT;
end_var;

//change le type de chariot en position 0 de la section X: 0= sans rack; 1= rack vide; 2= rack plein
FOR i:=1 TO 9 DO 
    IF "GestionChariotDB".chariot[i,0] = section AND "GestionChariotDB".chariot[i,2] = 0 THEN
        "GestionChariotDB".chariot[i,1]:= chariotType;
    END_IF;
END_FOR;
    
END_FUNCTION
