The present invention provides a rectangular baler (10) having a bale-forming chamber (16), a piston (62) that is reciprocatable in the bale-forming chamber (16) for compressing biomass to form bales. The dimensions of part of the interior of the bale-forming chamber (16) are adjustable under the influence of at least one actuator (18) the energization of which is controllable. A controller (58) for controlling the energization of the at least one actuator (18) is adapted for generating a least a first control signal (PWM1 ) in accordance with a target pressure mode of the baler, a second control signal (PWM2) in accordance with a target force mode of the baler, and a third control signal (PWM3) in accordance with a target weight mode of the baler. The controller (58) is furthermore adapted for determining a final control signal (PWMfinal) from at least the first control signal and a weight factor associated therewith, the second control signal and a weight factor associated therewith and the third control signal and a weight factor associated therewith, the final control signal being for use to control the energization of the at least one actuator of the rectangular baler. By making a combination of the first, second and third control signals for generating the final control signal, and attributing weights to the control signals, control strategies can be mixed, thereby offering numerous alternatives to deal with situations where state of the art choices of control systems fall short.La présente invention concerne une presse à balles rectangulaires (10), dotée dune chambre de formation de balles (16), dun piston (62) pouvant effectuer un mouvement de va-et-vient dans la chambre de formation de balles (16) pour comprimer une biomasse afin de former des balles. Les dimensions dune partie de lintérieur de la chambre de formation de balles (16) peuvent être ajustées sous linfluence dau moins un actionneur (18), dont lalimentation en énergie peut être contrôlée. Un cont