95 lines
2.7 KiB
C
95 lines
2.7 KiB
C
/**************************************************************************
|
|
Description: Âñÿêèå ðàçíûå ïåðåêëþ÷àòåëè è óñòàâêè.
|
|
|
|
Àâòîð: Óëèòîâñêèé Ä.È.
|
|
Äàòà ïîñëåäíåãî îáíîâëåíèÿ: 2021.11.08
|
|
**************************************************************************/
|
|
|
|
#ifndef _APP_CONFIG
|
|
#define _APP_CONFIG
|
|
|
|
// ðàñêîììåíòèðîâàòü, åñëè åñòü ñäâèã ìåæäó îáìîòêàìè ÃÝÄ (30 ãðàä.)
|
|
#define SHIFT
|
|
|
|
#define ALG_MODE_SIMULINK ALG_MODE_FOC_OBOROTS
|
|
/*
|
|
ALG_MODE_UF_CONST,
|
|
ALG_MODE_SCALAR_OBOROTS,
|
|
ALG_MODE_SCALAR_POWER,
|
|
ALG_MODE_FOC_OBOROTS,
|
|
ALG_MODE_FOC_POWER
|
|
*/
|
|
#define SIMULINK_SEQUENCE V_PWM24_PHASE_SEQ_NORMAL_ABC
|
|
/* V_PWM24_PHASE_SEQ_NORMAL_ABC,
|
|
V_PWM24_PHASE_SEQ_NORMAL_BCA,
|
|
V_PWM24_PHASE_SEQ_NORMAL_CAB,
|
|
V_PWM24_PHASE_SEQ_REVERS_ACB,
|
|
V_PWM24_PHASE_SEQ_REVERS_CBA,
|
|
V_PWM24_PHASE_SEQ_REVERS_BAC
|
|
*/
|
|
|
|
|
|
|
|
// êîíñòàíòû äëÿ âû÷èñëåíèÿ âñÿêîãî
|
|
#define PI2 6.283185307179586476925286766559 //pi*2
|
|
#define SQRT2 1.4142135623730950488016887242097 //sqrt(2)
|
|
#define SQRT3 1.7320508075688772935274463415059 //sqrt(3)
|
|
#define ISQRT3 0.57735026918962576450914878050196 //1./sqrt(3)
|
|
// Íîìèíàëüíûå âåëè÷èíû ÃÝÄ
|
|
// ... ìîùíîñòü íà âàëó, Âò
|
|
#define P_NOM (6300e3)
|
|
// ... ëèíåéíîå íàïðÿæåíèå, Â (ampl)
|
|
#define U_NOM (3300.*SQRT2)
|
|
// ... ìåõàíè÷åñêàÿ ñêîðîñòü, îá/ìèí
|
|
#define N_NOM 180.
|
|
// ... ÷èñëî ïàð ïîëþñîâ
|
|
#define PP 6.
|
|
// ... êîýôôèöèåíò ìîùíîñòè
|
|
#define COS_FI_ 0.87
|
|
// ... ÊÏÄ
|
|
#define EFF 0.968
|
|
// ... ïðèâåäåííûé ê âàëó ìîìåíò èíåðöèè, êã*ì^2
|
|
#define J (87e3*0.50)
|
|
// ... ïîëíàÿ ìîùíîñòü, ÂÀ
|
|
#define S_NOM (P_NOM/(COS_FI_*EFF))
|
|
// ... ìåõàíè÷åñêàÿ ñêîðîñòü, ðàä/ñ
|
|
#define WM_NOM (N_NOM/60.*PI2)
|
|
// ... ìîìåíò íà âàëó, Í*ì
|
|
#define M_NOM (P_NOM/WM_NOM)
|
|
|
|
|
|
// Áàçîâûå âåëè÷èíû ÃÝÄ
|
|
// ... ïîëíàÿ ìîùíîñòü, BA
|
|
#define S_BAZ S_NOM
|
|
// ... ëèíåéíîå íàïðÿæåíèå, Â (ampl)
|
|
#define U_BAZ U_NOM
|
|
// ... ôàçíûé òîê, À (ampl)
|
|
#define I_BAZ (S_BAZ*2./(U_BAZ*SQRT3)*0.5) //0.5 - ò.ê. îáìîòîê äâå
|
|
// ... ìåõàíè÷åñêàÿ ñêîðîñòü, îá/ìèí
|
|
#define N_BAZ N_NOM
|
|
// ... ìåõàíè÷åñêàÿ ñêîðîñòü, ðàä/ñ
|
|
#define WM_BAZ (N_BAZ/60.*PI2)
|
|
// ... ýëåêòðè÷åñêàÿ ñêîðîñòü, ðàä/ñ
|
|
#define WE_BAZ (WM_BAZ*PP)
|
|
// ... ìîìåíò íà âàëó, Í*ì
|
|
#define M_BAZ (S_BAZ/WM_BAZ)
|
|
// ... ïîòîêîñöåïëåíèå ñòàòîðà, Âá
|
|
#define PSI_BAZ (U_BAZ/(WE_BAZ*SQRT3))
|
|
// ... èíäóêòèâíîñòü, Ãí
|
|
#define L_BAZ (PSI_BAZ/I_BAZ)
|
|
// ... ñîïðîòèâëåíèå, Îì
|
|
#define R_BAZ (U_BAZ/(I_BAZ*SQRT3))
|
|
|
|
|
|
// äëÿ ïåðåñ÷¸òà èç àìïëèòóäû ôàçíîãî íàïðÿæåíèÿ â åäèíèöû ñèãíàëà óïðàâëåíèÿ
|
|
#define U_2_Y (T1_PRD*SQRT3/U_BAZ)
|
|
|
|
// íàïðÿæåíèå â çâåíå ïîñò. òîêà, êîòîðîå äàëî áû íà âûõîäå ÀÖÏ çíà÷. 2048, Â
|
|
#define UDC_SENS_MAX (U_BAZ*1.15*1.3)
|
|
// âûõîäíîé òîê, êîòîðûé äàë áû íà âûõîäå ÀÖÏ çíà÷. 2048, À (ampl)
|
|
#define IAC_SENS_MAX (I_BAZ*1.5)
|
|
#define IDC_SENS_MAX 5000.0
|
|
|
|
|
|
#endif //_APP_CONFIG
|