| CPC G01D 5/3473 (2013.01) [G01D 5/24476 (2013.01); G01D 5/2451 (2013.01)] | 14 Claims |

|
1. An electronic device comprising:
a motor;
a moving body on which a processing part of processing an object is mounted, the moving body being configured to move in conjunction with rotation of the motor by an action of a force from the motor;
a rotary encoder including a scale and a sensor, the rotary encoder being configured to output, as an encoder signal, a read signal of the scale generated by the sensor when the scale rotates relative to the sensor in conjunction with the rotation of the motor;
a memory configured to store information capable of identifying a rotation angle of the scale when the sensor is not able to normally read the scale; and
a controller configured to control the motor and the processing part based on the encoder signal received from the rotary encoder, wherein
the controller is configured to execute:
a detection process of detecting a position of the moving body based on the encoder signal;
a control process including a first control of controlling movement of the moving body by controlling the motor and a second control of controlling a processing operation on the object by the processing part in a constant speed movement section of the moving body, the control process being a process based on the position of the moving body detected by the detection process;
a determination process of determining a detection error of the position detected by the detection process generated in an acceleration section of the moving body temporally before the constant speed movement section based on the information stored in the memory; and
a correction process of correcting at least one of the first control and the second control based on the detection error determined in the determination process.
|