FUNCTION_BLOCK FB25
VAR_TEMP
END_VAR
VAR
    TR: ARRAY[0..1] OF BOOL; // tableau de transition
END_VAR

//Transition
TR[0]:= "G7_GestionSection".section_3[0] AND B_ASI50B1_presenceP0 AND NOT B_ASI50B2_presenceP1 AND "GestionChariotDB".nbChariotSection[4] < 2; // TR 0 vers 1
TR[1]:= "G7_GestionSection".section_3[1] AND NOT B_ASI50B1_presenceP0; // TR 1 vers 0

//etape
IF TR[0] THEN // 0 vers 1
    "G7_GestionSection".section_3[0]:= false;
    "G7_GestionSection".section_3[1]:= true;
END_IF;
IF TR[1] THEN // 1 vers 0
    "G7_GestionSection".section_3[1]:= false;
    "G7_GestionSection".section_3[0]:= true;
END_IF;   
  
END_FUNCTION_BLOCK

