Device for regulating a hydraulic machine, comprising a pump arrangement, a variable-rotational-speed pump drive, an accumulator, a hydraulic cylinder, two unblockable check valves (81, 82), and two pilot-control valves (91, 92) for unblocking the check valves (81, 82), wherein the pump arrangement comprises two pumps with reversible delivery direction, which are connected to the variable-rotational-speed pump drive in such a way that the pumps can be driven by the pump drive in both delivery directions, and the device furthermore comprising a collecting and compensation vessel, an emergency closure solenoid valve, an emergency closure switching slide, a check valve and at least 2 throttles (10, 11, 12), wherein the emergency closure switching slide is configured, and is connected to the pump arrangement, the hydraulic cylinder, the collecting and compensation vessel and the accumulator, in such a way that, in a first position of the emergency closure switching slide, a first connection of the first pump is connected to the opening side, and a first connection of the second pump is connected to the closure side of the hydraulic cylinder and the accumulator and the collecting and compensation vessel are decoupled from the hydraulic cylinder, and in a second position of the emergency closure switching slide, the collecting and compensation vessel is connected to the opening side, and the accumulator is connected to the closure side, of the hydraulic cylinder and the pump arrangement is decoupled from the hydraulic cylinder, and wherein furthermore the remaining connections of the pumps are respectively connected to the collecting and compensation vessel such that, in a drive direction of the pump drive, the first pump can deliver hydraulic fluid in the direction of the hydraulic cylinder from the collecting and compensation vessel and the second pump can deliver hydraulic fluid into the collecting and compensation vessel from the sides of the hydraulic cylinder, and wherein respectively one unblockable check valve (81, 82) is situated in one of the lines from the pumps to the hydraulic cylinder and is oriented in such a way that, in each state of the check valves (81, 82), hydraulic fluid can be passed through in the direction of the hydraulic cylinder, and the device furthermore comprising lines which connect the accumulator respectively to the two check valves (81, 82) and the emergency closure switching slide, in order for it to be possible to unblock the check valves (81, 82) and to keep the emergency closure switching slide in the first position, wherein said lines form, at least over a section, a single line, in which section the emergency closure solenoid valve is arranged in order, during the operation of the hydraulic system, to be permanently excited and to be open in this position, and wherein the pilot-control valves (91, 92) are respectively arranged in the separately running sections of the lines between the accumulator and the check valves (81, 82) and are designed to be electrically actuatable, and wherein one throttle is situated in the line to the opening side of the hydraulic cylinder in order, during each movement of the hydraulic cylinder, to be flowed through by hydraulic fluid, and the other throttle (11, 12) is situated either in the line between the collecting and compensation vessel and the emergency closure switching slide, or in the line between the accumulator and the emergency closure switching slide, and wherein the check valve is arranged in a line, which connects one of the lines from the pump arrangement to the hydraulic cylinder with the accumulator, in such a way that no hydraulic fluid from the accumulator can pass through the check valve.