fconst and fslipconstmax  [SOLVED]

Post Reply
User avatar
catphish
Posts: 954
Joined: Fri Oct 08, 2021 11:02 pm
Location: Dorset, UK
Has thanked: 93 times
Been thanked: 179 times

fconst and fslipconstmax

Post by catphish »

I'm preparing a configuration for my small drive unit, and I'm happy that I understand the parameters with two exceptions: fconst and fslipconstmax

Please could someone describe the difference between when fslipmax is used and when fslipconstmax is used?

In all the configurations I've seen, fconst is higher than fweak. The documentation suggests that in this case, fconst will not be used. But then what happens with fslipmax and fslipconstmax?

Thanks, and sorry for my incessant questions this week!
User avatar
catphish
Posts: 954
Joined: Fri Oct 08, 2021 11:02 pm
Location: Dorset, UK
Has thanked: 93 times
Been thanked: 179 times

Re: fconst and fslipconstmax

Post by catphish »

I've actually just read the source code and I think what's confusing me here is the documentation:
fconst - Frequency where slip frequency is derated to form a constant power region. Only has an effect when < fweak
Am I right in thinking that in fact fconst has an effect when it's greater then fweak?
User avatar
catphish
Posts: 954
Joined: Fri Oct 08, 2021 11:02 pm
Location: Dorset, UK
Has thanked: 93 times
Been thanked: 179 times

Re: fconst and fslipconstmax

Post by catphish »

The relevant code is https://github.com/jsphuebner/stm32-sin ... L105..L114

Code: Select all

         if (fstat > fweak) {
            float fconst = Param::GetFloat(Param::fconst);
            float fslipconstmax = Param::GetFloat(Param::fslipconstmax);
            //Basically, for every Hz above fweak we get a fraction of
            //the difference between fslipconstmax and fslipmax
            //of additional slip
            fslipmax += (fstat - fweak) / (fconst - fweak) * (fslipconstmax - fslipmax);
            fslipmax = MIN(fslipmax, fslipconstmax); //never exceed fslipconstmax!
         }
It seems like weird things would happen if fconst was actually < fweak. Anyway I think this makes sense to me now, but if I'm correct, then the documentation is confusing.
User avatar
johu
Site Admin
Posts: 5682
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: fconst and fslipconstmax

Post by johu »

See what you mean
Frequency where slip frequency is derated to form a constant power region. Only has an effect when < fweak
So should say
Frequency where slip frequency saturates to form a constant power region. Only has an effect when > fweak
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
catphish
Posts: 954
Joined: Fri Oct 08, 2021 11:02 pm
Location: Dorset, UK
Has thanked: 93 times
Been thanked: 179 times

Re: fconst and fslipconstmax

Post by catphish »

johu wrote: Sun Jul 03, 2022 4:40 pm See what you mean
Frequency where slip frequency is derated to form a constant power region. Only has an effect when < fweak
So should say
Frequency where slip frequency saturates to form a constant power region. Only has an effect when > fweak
I've updated the wiki:
fconst - Maximum slip is increased from fslipmax to fslipconstmax as frequency approaches this value. Only effective when greater than fweak.
fslipconstmax - Slip frequency at maximum throttle and fconst. Set equal to fslipmax to disable.
User avatar
catphish
Posts: 954
Joined: Fri Oct 08, 2021 11:02 pm
Location: Dorset, UK
Has thanked: 93 times
Been thanked: 179 times

Re: fconst and fslipconstmax

Post by catphish »

On a strongly related note, what is the *purpose* of fslipconstmax? Is this purely to reduce torque at lower RPM?
User avatar
johu
Site Admin
Posts: 5682
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: fconst and fslipconstmax  [SOLVED]

Post by johu »

Thanks for that.
catphish wrote: Sun Jul 03, 2022 10:37 pm On a strongly related note, what is the *purpose* of fslipconstmax? Is this purely to reduce torque at lower RPM?
It increases slip past fweak to slow down torque drop off. Running that kind of slip below fweak would over current the inverter (and perhaps the motor)
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply