Energy consumption and efficiency of electrical drives became an increasingly important issue. This issue encourages many researchers to develop new control techniques to reduce the energy consumption in electrical drives. Some of those techniques are more effective than others; some of them could save energy but will affect the response of the drive. DB-DTFC control has the fastest possible response, allowing for direct and independent control of the actual motor states. Using this controller, it is possible to select the optimum stator flux linkage each switching period to minimize the motor losses dynamically. Many algorithms were derived for motors that are not operating at the voltage limit. This paper will present an algorithm that can be used to minimize motor losses without affecting the performance of the electrical drive. The proposed algorithm works even at the voltage limit during flux weakening operation. It is also easy to implement, doesn't require any lookup tables that require significant effort to obtain, can also be applied to any kind of PM motor, and it is feasible in real-time for different operating conditions.