Cylinder for agricultural machinery