function for crusher hydraulic cylinder