Hello,
a control system implemented in a digital computer is a discrete system. When designing a discrete controller, you have two options:
- To design the discrete controller directly from scratch.
- To design a continuous-time controller first and then find a discrete equivalent.
Since there is a vast body of knowledge available on continuous-control design, engineers typically take the option No. 2.
The AMMCLIB function GFLIB_ControllerPIrAW assumes that you have already designed your continuous-time controller and want to implement it in the digital computer. Based on your continuous-time gain values Kp and Ki, and the selected sampling period Ts, you can calculate the discrete controller parameters using any of the discretization methods:
- Forward rectangular rule
- Backward rectangular rule
- Trapezoid rule
Once you select the discretization method which best suits your needs, you can use the equations provided in the AMMCLIB User's Guide to calculate the required parameters f16CC1sc and f16CC2sc for your GFLIB_ControllerPIrAW_F16.
Refer to any textbook on discrete control theory to learn more about the discretization methods and their properties. You can also find plenty useful resources online, e.g.:
Regards,
Petr