The next tasks are used in different transitions of the grafcet.
The action associated to the Filling_Start transition is as follows:
The action associated to the With_Default transition is as follows:
The action associated to the Reached_Level transition is as follows:
Filling_In_Progress transition
The action associated to the Filling_In_Progress transition is as follows:
The action associated to the Empty_Tank transition is as follows: