derekcook wrote:
In the sensored project it works just fine if I put the calculations for resistance, inductance and flux from the motor datasheet in. I can run position control and speed control just fine, and have been for around a month now. I am unsure why the automatic parameter flux measurement does not work? The inertia measurement works fine, and it will work if I set the parameter for flux identification to less than 5%, but it still does not spin smoothly, it makes a couple of quick jolts, and I do not trust this measurement.
Is your motor bare shaft when you are performing the motor parameter identification with the sensored project? As part of this identification the speed loop is utilized to spin the motor at the goal speed. And the speed loop is tuned to be not very stiff. I've seen issues when the motor is not bare shaft during this process.
Also when performing the flux identification using sensored control, the encoder must be aligned. Since you made changes to support the resolver, there could be something unexpected going on with this process.
derekcook wrote:
The measurement should be 0.895 Wb per my datasheet, but the calculation the KMS autotuning is giving me is 0.170 Wb.
What settings should I be looking at that may cause an incorrect flux calculation or a flux test to give me an overspeed fault?
Flux units can be very tricky things. Can you post your datasheet? I can probably help with confirming the units. Of the three motor parameters, flux is the least important. It is used to help with a correction factor for the estimator and to determine if the motor is spinning. It isn't directly leveraged for control purposes.
derekcook wrote:
When I put in the flux number from the datasheet in the sensorless project, 0.895 Wb I get a motor startup failure, whereas when I use the calculated number from the GUI 0.170 Wb, the motor runs fine. Is something different with the flux calculations between the sensored and sensorless project?
This isn't surprising given the difference between the datasheet flux and the identified flux. The startup algorithm uses the measured flux compared against the rated flux in order to determine if the motor is spinning. If the measured flux isn't at least 50% of the rated flux, it determines that the motor isn't spinning and will throw a startup fault. In the sensored project, this fault isn't part of the startup process as you don't need a startup with the sensored project.