| Zakładka z wyszukiwarką danych komponentów |
|
UM1561 Arkusz danych(PDF) 29 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1561 Arkusz danych(HTML) 29 Page - STMicroelectronics |
|
29 / 39 page ![]() UM1561 Digital closed loop control and diagnostic functions implemented Doc ID 023556 Rev 1 29/39 The ExecControlInitParamOffset() calculates the offset value of the I/O variables, in particular the DC-components (DC_PanelVoltage, the DC_PanelCurrent) and the AC- components (AC_LineVoltage, AC_LineCurrent). The offset values are calculated reading the I/O information for a fixed time (5 seconds). It is done to achieve the accuracy of the AC values. No manual calibration is needed. void ExecControlInitParamOffSet() { DataSensing_sum.DC_PanelVoltage += (u16)(DataSensingIO.DC_PanelVoltage); DataSensing_sum.DC_PanelCurrent += (u16)(DataSensingIO.DC_PanelCurrent); DataSensing_sum.AC_LineVoltage += (u16)(DataSensingIO.AC_LineVoltage); DataSensing_sum.AC_LineCurrent += (u16)(DataSensingIO.AC_LineCurrent); if (DataInitCount < (MAX_DATA_INIT_COUNT-1)) DataInitCount++; else if(DataInitCount==(MAX_DATA_INIT_COUNT-1)) { ((vu16*)&DataSensingOffSet)[0] = DataSensing_sum.AC_LineCurrent / (DataInitCount+1); ((vu16*)&DataSensingOffSet)[1] = DataSensing_sum.AC_LineVoltage / (DataInitCount+1); ((vu16*)&DataSensingOffSet)[2] = DataSensing_sum.DC_PanelCurrent / (DataInitCount+1); ((vu16*)&DataSensingOffSet)[3] = DataSensing_sum.DC_PanelVoltage / (DataInitCount+1); DataInitCount++; } } where: ● if (DataInitCount < (MAX_DATA_INIT_COUNT-1)) is (Time for offset estimation (5 seconds)). The firmware is based on state machines architecture able to indicate the real operation of the power board for each instant. switch (State_Control) { case STOPPING: sprintf(strLineMessage, "STOPPING"); break; case STOP: sprintf(strLineMessage, "STOP"); break; case START: sprintf(strLineMessage, "START"); break; case BUS_FAULT: |
|
Link URL |
| Czy Alldatasheet okazała się pomocna? [ DONATE ] |
O Alldatasheet | Reklama | Kontakt | Polityka prywatności | Link do karty katalogowej | Linki | Lista producentów All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |