wherein c V is a weight coefficient that depends on the voltage Vdc(t) and a nominal DC-link voltage Vdcnom and on a highvoltage limit Vhigh; calculate a current value ( ) indicative of the difference between said active current (ia(t)) and said maximum allowable regeneration current (ialstAbs(t)); performing a proportional-integral function on said current value ( ) to calculate said torque limit (Tref_lim). 20. Laundry treating machine according to claim 19, wherein said inverter-based apparatus (la) further comprises comparator means (129) which are configured to: - receive in input the motor speed ( ) of said electric motor (2), - receive in input said torque limit (Tref_lim), - receive a torque target (Tt) which is indicative of a torque requested to said electric motor (2), - compare said torque target (Tt) with the said torque limit (Tref_lim), - set the torque reference (Tref(t)) with the torque limit (Tref_lim(t)), when said motor speed (co) is positive and said torque target (Tt(t)) is lower or equal to said torque limit (Tref_lim(t)). 21. Laundry treating machine according to claim 20, wherein said comparator means (129) are further configured to set the torque reference (Tref(t)) with the torque limit (Tref_lim(t)), when the motor speed is negative and the torque target (Tt(t)) is greater than, or equal to the torque limit (Tref_lim(t)). 22. Method to control a laundry treating machine (100) comprising: - a casing (103), - a laundry drum (104) mounted inside said casing (103) to rotate about a rotation axis, - an electric motor (2) designed to rotate said laundry drum (104) about said rotation axis, - an inverter-based apparatus (l)(la), which is configured to control said electric