Optimization of the unloading bridge working cycle