RX72M Group
Single-Chip Motor Control via EtherCAT Communications
R01AN5434EJ0110 Rev.1.10
Page 46 of 85
Aug.31.2020
5.20 R_MTR_CtrlGainCalc
This function calculates the gain for the motor control parameters.
Format
void R_MTR_CtrlGainCalc(void)
Parameters
None
Return Values
None
Properties
The prototypes are declared in r_mtr_driver_acces.h.
Description
This function calculates the gain for PI control, IPD control, and velocity observer control.
Example
/* Motor gain calculation*/
R_MTR_CtrlGainCalc();