基于tms320f2812的永磁同步电动机svpwm空间矢量控制算法实现的源代码内容摘要:

= (int16)_IQtoIQ15()。 // MfuncC1 is in Q15 = (int16)_IQtoIQ15()。 // MfuncC2 is in Q15 = (int16)_IQtoIQ15()。 // MfuncC3 is in Q15 (amp。 pwm1)。 endif // (BUILDLEVEL==LEVEL2) // ***************** LEVEL3 ***************** if (BUILDLEVEL==LEVEL3) // // Connect inputs of the RMP module and call the Ramp control // calculation function. // = _IQ(SpeedRef)。 (amp。 rc1)。 // // Connect inputs of the RAMP GEN module and call the Ramp generator // calculation function. // =。 (amp。 rg1)。 // // Call the ILEG2_VDC read function. // (amp。 ilg2_vdc1)。 // // Connect inputs of the CLARKE module and call the clarke transformation // calculation function. // = _IQ15toIQ((int32))。 = _IQ15toIQ((int32))。 (amp。 clarke1)。 // // Connect inputs of the PARK module and call the park transformation // calculation function. // =。 =。 =。 (amp。 park1)。 // // Connect inputs of the PID_REG3 module and call the PID IQ controller // calculation function. // = _IQ(IqRef)。 =。 (amp。 pid1_iq)。 // // Connect inputs of the PID_REG3 module and call the PID ID controller // calculation function. // = _IQ(IdRef)。 =。 (amp。 pid1_id)。 // // Connect inputs of the INV_PARK module and call the inverse park transformation // calculation function. // =。 =。 =。 (amp。 ipark1)。 // // Connect inputs of the SVGEN_DQ module and call the spacevector gen. // calculation function. // =。 =。 (amp。 svgen_dq1)。 // // Connect inputs of the PWM_DRV module and call the PWM signal generation // update function. // = (int16)_IQtoIQ15()。 // MfuncC1 is in Q15 = (int16)_IQtoIQ15()。 // MfuncC2 is in Q15 = (int16)_IQtoIQ15()。 // MfuncC3 is in Q15 (amp。 pwm1)。 endif // (BUILDLEVEL==LEVEL3) // ***************** LEVEL4 ***************** if (BUILDLEVEL==LEVEL4) // // Connect inputs of the RMP module and call the Ramp control // calculation function. // = _IQ(SpeedRef)。 (amp。 rc1)。 // // Connect inputs of the RAMP GEN module and call the Ramp generator // calculation function. // =。 (amp。 rg1)。 // // Call the ILEG2_VDC read function. // (amp。 ilg2_vdc1)。 // // Connect inputs of the CLARKE module and call the clarke transformation // calculation function. // = _IQ15toIQ((int32))。 = _IQ15toIQ((int32))。 (amp。 clarke1)。 // // Checking LockRotorFlag=FALSE for spinning mode, LockRotorFlag=TRUE for locked rotor mode // if(LockRotorFlag==TRUE) // locked rotor mode if LockRotorFlag = 1 { // // Connect inputs of the PARK module and call the park transformation // calculation function. // =。 =。 = 0。 (amp。 park1)。 // // Connect inputs of the PID_REG3 module and call the PID IQ controller // calculation function. // = _IQ(IqRef)。 =。 (amp。 pid1_iq)。 //。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。