摘要 |
PROBLEM TO BE SOLVED: To provide a means for performing switching control of a phase excitation mode of a stepping motor without increasing a load of interruption processing.SOLUTION: A motor controller includes: an excitation mode setting part to set an excitation mode; a pulse generation part to generate a plurality of pulse signals corresponding to a plurality of different excitation modes; a switching instruction generation part that outputs a switching instruction signal by synchronizing a pulse signal corresponding to an excitation mode before switching and a pulse signal corresponding to an excitation mode after switching when an excitation mode of the excitation mode setting part is changed; and a switching signal selection part that selects the pulse signal generated by the pulse generation part on the basis of the switching instruction signal, and outputs the signal to a stepping motor.SELECTED DRAWING: Figure 1 |