Other Parts Discussed in Thread: MOTORWARE
Hi Expert,
Nice to talk with you.
F28054M-Q1 is under evaluation on customer side. The application is motor controller of Brake system. Here is the background for this customer:
1. MCU Platform: F280054M-Q1
2. CCS version: 10.4.0.00006
3. MotorWare version: motorware_1_01_00_18 (instaspin-motion)
4. Motor information: Voltage: 600V; Max Speed: 3500rpm; polar pair: 8
5. Issue Description:
When the motor speed is 3600rpm. all the function is OK;
When the motor speed increase to 3700rpm, motor speed gMotorVars.Speed_krpm change from IQ(3.7) to IQ(-3.1). It cause the PID out of control;
In order to verify this issue is not cause by the encoder, we change the encoder line from 1024 to 512, the issue still existed.
So customer confirm that this issue is cause by qep sample, so they change replace qep by observer which used to measure speed. So the software start to work well. Here is the code for the observer:
// get the speed estimate
gMotorVars.Speed_krpm = EST_getSpeed_krpm(obj->estHandle);
Customer also share the code of qep:
// get the speed from eQEP
gMotorVars.Speed_krpm = _IQmpy(STPOSCONV_getVelocityFiltered(stObj->posConvHandle), _IQ(ST_SPEED_KRPM_PER_PU));
For qep rotation speed acquisition, customer call the function in the red box in the figure below:
Here is the original code:
6. Support need
Could you share the original code of the function that marked by red line? So customer can find the detail cause of this issue.
Best Regards
Songzhen Guo