Statistics for Control of Hydraulic Pulse System Based on the PLC and State Machine Programming