A wood loading device

Nikita and Zhenya used a pump for lifting. The device moves with the help of an electrical motor. Ports A and B are for forward and backward movement. Ports 0 and 1 have been connected to lights. The parameter "power is the speed.

Here is the control program