Using a gear can cause inaccuracy when only the shaft is controlled.
A second encoder can be attached to the output shaft after the gear for an optimized position control.
Set the first encoder at the input shaft to “Commutation & Velocity”
Set the second encoder at the output shaft to “Position only”
Ensure that the gear ratio is set correctly in object 0x6091.
Object for indicating the revolutions of motor and shaft
Values Kp, Ki and Kd for Torque Controller
Values Kp, Ki and Kd for Cascaded Position Controller (Both loops: Position and Velocity)