motorcontroldemo_028/Vinclude/V_MotorParams_DCM.h
2019-07-29 08:18:57 +03:00

55 lines
2.9 KiB
C

/* Copyright 2017 ÀÎ "ÍÈÈÝÒ" è ÎÎÎ "ÍÏÔ ÂÅÊÒÎÐ"
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// V_motorParams_DCM.h
//Ôàéë ñ ìàññèâàìè ïàðàìåòðîâ ìîäåëè äëÿ ðàçëè÷íûõ âàðèàíòîâ ÄÏÒ
// !!! Âíèìàíèå! Ïðè ñîîòíîøåíèè ïàðàìåòðîâ Πñ ìàëîé èíäóêòèâíîñòü è áîëüøèì ñîïðîòèâëåíèåì ðàñ÷åò Πìîæåò âûïîëíÿòüñÿ íåêîððåêòíî
// !!! Êðèòè÷åñêîå ñîîòíîøåíèå ïàðàìåòðîâ Lf=6.3 ìÃí è Rf=125 Îì
// !!! Åñëè ÄÏÒ ñ ïîñòîÿííûìè ìàãíèòàìè, òî ïàðàìåòðû èíäóêòèâíîñòü è ñîïðîòèâëåíèå ÎÂ äîëæíû áûòü çàäàíû ðàâíûìè íóëþ.
//ñòðóêòóðà ñ ïàðàìåòðàìè äâèãàòåëÿ
struct Sdcm_param
{
float r_f; //!< ñîïðîòèâëåíèå ÎÂ
float l_f; //!< èíäóêòèâíîñòü ÎÂ, ìÃí
float l_m; //!< êîýôôèöèåíò ìàãíèòíîãî ïîòîêà (âçàèìíàÿ èíäóêòèâíîñòü)
float r_a; //!< ñîïðîòèâëåíèÿ ÿêîðÿ
float l_a; //!< èíäóêòèâíîñòü ÿêîðÿ, ìÃí
float RatedFluxCurrent;//!< íîìèíàëüíûé òîê ÎÂ
float RatedCurrent; //!< íîìèíàëüíûé òîê ÿêîðÿ
float j; //!< ìîìåíò èíåðöèè
float qep; //!< ÷èñëî ìåòîê ýíêîäåðà
float RatedPower; //!< íîìèíàëüíàÿ ìîùíîñòü (ñïðàâî÷íàÿ âåëè÷èíà, íå èñïîëüçóåòñÿ â ðàñ÷åòàõ)
float RatedSpeed; //!< íîìèíàëüíàÿ ñêîðîñòü (ñïðàâî÷íàÿ âåëè÷èíà, íå èñïîëüçóåòñÿ â ðàñ÷åòàõ)
};
typedef volatile struct Sdcm_param Tdcm_param;
// !!! Âíèìàíèå! Ïîñëåäíèé íàáîð ïàðàìåòðîâ â ìàññèâå ÎÁÿÇÀÒÅËÜÍÎ äîëæåí áûòü íóëåâûì!
Tdcm_param DCMDATA[] = {\
// |r_f |l_f |l_m |r_a |l_a |If |Current |j |qep |Power |Speed
{0, 0, 0.075073632, 70.2, 6.68, 0, 0.347, 0.0000012, 3000, 0.011, 3900},\
{0, 0, 0.070452941, 16.6, 2.22, 0, 0.659, 0.00000438, 3000, 0.02, 4210},\
{107, 6.197183099, 1.546863917, 0.423, 48.85355617, 1.42, 47, 0.3, 2000, 8.5, 870},\
{94, 8.25, 1.531438221, 0.266, 40.06358237, 1.6, 65, 0.425, 1000, 12, 790},\
{70, 7.727272727, 1.25299365, 0.177, 34.78965363, 2.2, 85, 0.8, 2000, 16, 710},\
{65, 10.20833333, 1.249697876, 0.1155, 29.29350547, 2.4, 110, 1.05, 3000, 21, 660},\
{58, 11.15384615, 1.019986658, 0.0545, 17.38016729, 2.6, 164, 1.87, 5000, 32, 760},\
{42, 12.5, 0.900878093, 0.0332, 15.1587913, 3.6, 233, 4, 10000, 46, 625},\
{36, 13.25581395, 0.802128868, 0.0204, 11.08986109, 4.3, 338, 8.25, 1000, 67, 590},\
{34.4, 20, 0.890579855, 0.0117, 9.550454994, 4.6, 470, 17, 2000, 95, 500},\
{24.4, 17.93650794, 0.693407611, 0.00745, 7.155498472, 6.3, 670, 32.5, 3000, 135, 470},\
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\
};