Patent ID: 7085620

Claim:
A servo controller for driving a servomotor in accordance with a command inputted from a host controller, comprising: learning control means which includes a learning memory, storing correction data obtained in accordance with a position deviation between a command position inputted from the host controller and a detected position of a driven body driven by the servomotor, and performs learning control by correcting the position deviation in accordance with the correction data stored in the learning memory, wherein the learning control means discriminates a learning control start command and a learning control end command inputted from any other external apparatus than the host controller and updates and stores the correction data in the learning memory with every given period as the servomotor is driven during a time interval from the learning control start command to the learning control end command, and the drive of the servomotor during the time interval from the learning control start command to the learning control end command is subjected to learning control based on a position command inputted from the host controller and the correction data for each given period stored in the learning memory.