A method for draining pressure medium from an arrangement for feeding at least a part of a drilling machine in at least a first direction, the arrangement comprising a first end portion, a second end portion, an outer cylinder, a piston and a piston rod, wherein a first part of the arrangement is arranged to be attached to the drilling machine, a second part of the arrangement is arranged to be supported by the ground and the outer cylinder extends between the end portions, whereby the piston and the piston rod are displaceably arranged in the outer cylinder such that the piston along with the piston rod, the outer cylinder and the end portions delimits a first chamber and a second chamber for a pressure medium in the outer cylinder on a respective side of the piston, the method comprising:
- initiating a pressure increase in the second chamber,
- opening a valve connected to the first chamber as a function of the pressure increase, and
- draining of pressure medium through the valve, whereby the pressure in the first chamber is reduced.