A motion controller using genetic algorithm and auto tuning method thereof are provided to facilitate control gain of motion controller by changing interface according to kind of device. A motion controller using genetic algorithm comprises a current control loop(100), a speed control loop(200), and a position control loop(300). The current control loop receives a supply current from a motor, and calculates a control gain through a current proportional integral controller(110) and a gain function(120). The speed control loop receives the number of rotation of an encoder per a control cycle of the motor, calculates a speed of the motor, and calculates a control gain through a speed proportional integral controller(210). The position control loop includes a feed forward controller(310) and a position proportional controller(320). The feed forward controller generates a speed of each position with a profile generation method by calculating a shifting distance of the motor. The position proportional controller performs a correction control about a position.
展开▼