| Electronic Components Datasheet Search |
|
UM0324 Datasheet(PDF) 19 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0324 Datasheet(HTML) 19 Page - STMicroelectronics |
|
19 / 105 page ![]() UM0324 Getting started with the library 19/105 2.2.2 Drive control parameters: MC_Control_Param.h The MC_Control_Param.h header file gathers parameters related to: ● Power device control parameters on page 19 ● Flux and torque PID regulators sampling rate on page 19 ● Speed regulation loop frequency on page 19 ● Speed controller setpoint and PID constants (initial values) on page 20 ● Torque and flux controller setpoints and PID constants on page 20 ● Start-up torque ramp parameters on page 21 ● Linear variation of PID constants according to mechanical speed. on page 21 Power device control parameters ● #define PWM_FREQ Define here, in Hz, the switching frequency; in parallel, uncomment the maximum allowed modulation index definition (MAX_MODULATION_XX_PER_CENT) corresponding to the PWM frequency selection. ● #define DEADTIME_NS Define here, in ns, the dead time, in order to avoid shoot-through conditions. Flux and torque PID regulators sampling rate ● #define REP_RATE Stator currents sampling frequency and consequently flux and torque PID regulators sampling rate, are defined according to the following equation: In fact, because there is no reason for either executing the IFOC algorithm without updating the stator currents values or for performing stator current conversions without running the IFOC algorithm, in the proposed implementation the stator current sampling frequency and the IFOC algorithm execution rate coincide. Note: REP_RATE must be an odd number if currents are measured by shunt resistors (see Section A.2: Selecting PWM frequency for 3 shunt resistor configuration on page 98 for details); its value is 8-bit long; Speed regulation loop frequency #define PID_SPEED_SAMPLING_TIME The speed regulation loop frequency is selected by assigning one of the defines below: #define PID_SPEED_SAMPLING_500us 0 //min 500us #define PID_SPEED_SAMPLING_1ms 1 #define PID_SPEED_SAMPLING_2ms 3 //(4-1)*500uS=2ms #define PID_SPEED_SAMPLING_4.5ms 6 #define PID_SPEED_SAMPLING_10ms 15 #define PID_SPEED_SAMPLING_127ms 255 //max(255-1)*500us=127ms 1 _ _ 2 + ⋅ = RATE REP FREQ PWM rate sampling PIDs torque and Flux |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |