Other Parts Discussed in Thread: MOTORWARE, C2000WARE-MOTORCONTROL-SDK, C2000WARE
Dear Yanming Luo:
I want to integrate sensor and sensorless into one program and implement it through motorware lab10e. My plan is as follows:
1. Set the hardware and software of QEP according to Chapter 18 of InstaSPIN-FOC and InstaSPIN-MOTION User's Guide.
2. in main(),Add ENC _ Setup (....), although I still don't understand why this function needs to enter USER_ MOTOR_ NUM_ POLE_ PAIRS/ USER_ IQ_ FULL_ SCALE_ FREQ_ Hz/USER_ ISR_ FREQ_ Hz These parameters? But it does not affect my use.
3. in mainISR(),Add ENC_ run (...)/ENC_ CalcElecAngle(), using ENC_ getElecAngle (...)/ENC_ GetSpeedRPM (...) replaces EST_ getAngle_ pu(ctrlHandle->estHandle)/EST_ getFm_ pu(ctrlHandle->estHandle)。
4. In FS_ In run (...), use ENC_ GetSpeedRPM (...) replaces EST_ getFm_ pu(ctrl->estHandle)。
5. In updateGlobalVariables_ motor (...), use ENC_ GetSpeedRPM () replaces EST_ getSpeed_ krpm(obj->estHandle)。
Is the above Solution feasible? If possible, ENC_ getElecAngle (...)/ENC_ GetSpeedRPM (...) and EST_ getAngle_ pu(ctrlHandle->estHandle)/EST_ getFm_ pu (ctrlHandle ->estHandle)How do the units of match?
hope to get your help, thank you!
Regards,
Quan