SPRACO3 October 2019 INA240 , LMG5200 , TMS320F280021 , TMS320F280021-Q1 , TMS320F280023 , TMS320F280023-Q1 , TMS320F280023C , TMS320F280025 , TMS320F280025-Q1 , TMS320F280025C , TMS320F280025C-Q1 , TMS320F280040-Q1 , TMS320F280040C-Q1 , TMS320F280041 , TMS320F280041-Q1 , TMS320F280041C , TMS320F280041C-Q1 , TMS320F280045 , TMS320F280048-Q1 , TMS320F280048C-Q1 , TMS320F280049 , TMS320F280049-Q1 , TMS320F280049C , TMS320F280049C-Q1 , TMS320F28374D , TMS320F28374S , TMS320F28375D , TMS320F28375S , TMS320F28375S-Q1 , TMS320F28376D , TMS320F28376S , TMS320F28377D , TMS320F28377D-EP , TMS320F28377D-Q1 , TMS320F28377S , TMS320F28377S-Q1 , TMS320F28378D , TMS320F28378S , TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S
The outputs of the current regulators control the voltages applied on the d-axis and q-axis of the motor. The vector sum of the d and q outputs must be less than 1.0, which refers to the maximum duty cycle for PWM generation algorithm. In this particular application, the maximum allowed duty cycle is lesser than 1.0 due to the impact of ADC conversion time and PWM computation time. Higher computational speeds allow higher duty cycle operation and better use of the DC bus voltage.
The current regulator output is represented by the variable 'motorVars[0].pi_id.out' and 'motorVars[0].ptrFCL->pi_iq.out'. The regulator limits are set by 'motorVars[0].pi_id.Umax/min', and 'motorVars[0].ptrFCL->pi_iq.Umax/min'.
Bring the system to a safe stop by reducing the bus voltage to zero, taking the controller out of real-time mode, and resetting.