Thanks for resquest.
All that programming structure is because I'm setting the filling and draining three tanks of fuel controlled SCADA. To control this work the state machine would you use?
The programming is finished and the way I said above and it works fine. But this was only the first test and now I want to make it perfect so that no errors occur.
Regards