Dear Friends,
I'm working on PMSM Motor Control Project (with Encoder + FOC).
For that, I've imported the HVPM Sensored code from control-suit.
Now everything working fantastic, except for some issues.
As I'm giving some load when the motor rotating in Full FOC (BUILDLEVEL = 4, lsw = 3), the motor drags only few Amps Current, but at some higher speed, the motor gives full holding Torque, and drags enough current to reach for highest Duty Cycle.
How can I solve this? I need Constant Holding & Rotating Torque at every speed.
pid1_id.Kp = _IQ(1.0);
pid1_id.Ki = _IQ(T/0.04);
pid1_id.Kd = _IQ(0/T);
pid1_id.Kc = _IQ(0.2);
pid1_id.OutMax = _IQ(0.30);
pid1_id.OutMin = _IQ(-0.30);
// Initialize the PID_REG3 module for Iq
pid1_iq.Kp = _IQ(1.0);
pid1_iq.Ki = _IQ(T/0.04);
pid1_iq.Kd = _IQ(0/T);
pid1_iq.Kc = _IQ(0.2);
pid1_iq.OutMax = _IQ(0.8);
pid1_iq.OutMin = _IQ(-0.8);
Should I increase the
pid1_iq.OutMax = _IQ(0.8),
pid1_iq.OutMin = _IQ(-0.8);
pid1_id.OutMax = _IQ(0.3);
pid1_id.OutMin = _IQ(-0.3); values up to _IQ(1.0)?