Hi everyone,
I am using a Discrete PI controller for an FOC algorithm I am developing in Simulink using the Motor Control Blockset. I would like to use a Ki gain if 2. At the input of the block, I have an input labelled Ki*Ts. If I use my gain with a sampling period of, let's say 1ms, should Ki*Ts = 2e-3 ? What would be an appropiate sampling period (Ts) and what would be the reason for it ? Please any help would be really appreciated.
Discrete PI controller Documentation: https://www.mathworks.com/help/mcb/ref/discretepicontroller.html
OK, that documentation is a bit inadequate.
One question:
I would like to use a Ki gain if 2.
What are your units of measure of Ki? When you do engineering, everything has a unit of measure. A value of "2" by itself is not properly defined unless you state what its units are (which could be dimensionless).
The integral constant of a PI controller can have one of two units, typically: either "input units per output unit by time units" (Ti) or "output units per input unit per time unit" (Ki). If the input units are motor speed in rpm, the time units are seconds, and the output is percent of control range, then the units of Ki would be "%/rpm/sec" for example.
If we change the input units to percent of measurement range, then the units above would become "%out/%in/sec" and the percents cancel giving units of "1/sec". This is often called "repeats per second".
If we want Ki to be dimensionless, then we can multiply it by some scaling time (e.g. the sampling time Ts), and then Ki*Ts has units of (1/sec * sec) which becomes dimensionless. I suspect this is what is intended here.
But without seeing actual details of how the calculation is performed the documentation is insufficient and it would require either inspection or experimentation to find out exactly what the Ki parameter does.