Stepping motor control device, stepping motor control method, and stepping motor drive control system
阅读说明:本技术 步进马达的控制装置、步进马达的控制方法以及步进马达驱动控制系统 (Stepping motor control device, stepping motor control method, and stepping motor drive control system ) 是由 木村秀树 于 2019-08-26 设计创作,主要内容包括:一种步进马达的控制装置、步进马达的控制方法以及步进马达驱动控制系统。实施方式的步进马达的控制装置具备:表生成部,使用在变更驱动电流的设定值的切换信号的第一频率下产生的第一感应电压和在第二频率下产生的第二感应电压的值,在上述切换信号的频率比预定的频率低的动作区域生成与上述切换信号的频率成比例的阈值的数据表;以及电流控制部,根据上述阈值与检测到的感应电压的比较结果来控制上述驱动电流的值。(A control device for a stepping motor, a control method for a stepping motor, and a stepping motor drive control system. A stepping motor control device according to an embodiment includes: a table generating unit that generates a data table of a threshold value proportional to a frequency of a switching signal in an operation region in which the frequency of the switching signal is lower than a predetermined frequency, using values of a first induced voltage generated at a first frequency of the switching signal and a second induced voltage generated at a second frequency, the first frequency changing a set value of a drive current; and a current control unit for controlling the value of the drive current in accordance with a result of comparison between the threshold value and the detected induced voltage.)
1. A stepping motor control device is provided with:
a table generating unit that generates a data table of a threshold value proportional to a frequency of a switching signal in an operation region in which the frequency of the switching signal is lower than a predetermined frequency, using values of a first induced voltage generated at a first frequency of the switching signal and a second induced voltage generated at a second frequency, the first frequency changing a set value of a drive current; and
and a current control unit for comparing the threshold value with the detected induced voltage and controlling the value of the drive current according to the comparison result.
2. The control device of a stepping motor according to claim 1,
the first frequency is a lower limit frequency at which the induced voltage is saturated.
3. The control device of a stepping motor according to claim 1,
the magnetic resonance imaging apparatus includes a mode setting unit that changes the excitation mode to an excitation mode in which the cycle of the switching signal is increased when the time from the time when the drive current becomes zero to the time when the next switching signal is output is shorter than a predetermined time.
4. The control device of a stepping motor according to claim 2,
the magnetic resonance imaging apparatus includes a mode setting unit that changes the excitation mode to an excitation mode in which the cycle of the switching signal is increased when the time from the time when the drive current becomes zero to the time when the next switching signal is output is shorter than a predetermined time.
5. The control device of a stepping motor according to claim 4,
the mode setting unit changes the excitation mode to an excitation mode in which the cycle of the switching signal is increased when the number of times from the time when the drive current becomes zero to the time when the next switching signal is output is shorter than a predetermined time is equal to or more than a predetermined number of times.
6. The control device of a stepping motor according to claim 1,
the excitation control device includes a mode setting unit that changes the excitation mode to a shorter cycle of the switching signal when a time from a time point when the drive current becomes zero to a time point when a next switching signal is output is longer than a predetermined time.
7. The control device of a stepping motor according to claim 1,
the table generating unit generates a data table of the threshold value using values of the first induced voltage and the second induced voltage when the drive current is zero.
8. The control device of a stepping motor according to claim 2,
the table generating unit generates a data table of the threshold value using values of the first induced voltage and the second induced voltage when the drive current is zero.
9. The control device of a stepping motor according to claim 3,
the table generating unit generates a data table of the threshold value using values of the first induced voltage and the second induced voltage when the drive current is zero.
10. A control method of a stepping motor includes:
a step of generating a data table of a threshold value proportional to a frequency of a switching signal in an operation region in which the frequency of the switching signal is lower than a predetermined frequency, using values of a first induced voltage generated at a first frequency of the switching signal and a second induced voltage generated at a second frequency, the values of the first induced voltage and the second induced voltage being used to change a set value of a drive current; and
and comparing the threshold value with the detected induced voltage in an operation region in which the frequency of the switching signal is lower than the predetermined frequency, and controlling the value of the drive current according to the comparison result.
11. The control method of a stepping motor according to claim 10,
the step of generating the data table includes a step of generating the data table of the threshold value using values of the first induced voltage and the second induced voltage when the drive current is zero.
12. The control method of a stepping motor according to claim 10,
the method includes a step of changing the excitation pattern to an excitation pattern in which the cycle of the switching signal is increased when a time from a time point when the drive current becomes zero to a time point when a next switching signal is output is shorter than a predetermined time.
13. The control method of a stepping motor according to claim 11,
the method includes a step of changing the excitation pattern to an excitation pattern in which the cycle of the switching signal is increased when the number of times from the time when the drive current becomes zero to the time when the next switching signal is output is shorter than a predetermined time is equal to or more than a predetermined number of times.
14. The control method of a stepping motor according to claim 10,
the method includes a step of changing the excitation pattern to an excitation pattern in which the cycle of the switching signal is shortened when a time from a time point when the drive current becomes zero to a time point when a next switching signal is output is longer than a predetermined time.
15. A stepping motor drive control system is provided with:
a stepping motor having an exciting coil that generates a magnetic field by a drive current; and
a control device for controlling the drive current,
the control device includes:
a table generating unit that generates a data table of a threshold value proportional to a frequency of a switching signal in an operation region in which the frequency of the switching signal is lower than a predetermined frequency, using values of a first induced voltage generated at a first frequency of the switching signal and a second induced voltage generated at a second frequency, the first frequency changing a set value of the drive current; and
and a current control unit for comparing the threshold value with the detected induced voltage and controlling the value of the drive current according to the comparison result.
16. The stepping motor drive control system according to claim 15,
the first frequency is a lower limit frequency at which the induced voltage is saturated.
17. The stepping motor drive control system according to claim 15,
the magnetic resonance imaging apparatus includes a mode setting unit that changes the excitation mode to an excitation mode in which the cycle of the switching signal is increased when the time from the time when the drive current becomes zero to the time when the next switching signal is output is shorter than a predetermined time.
18. The stepping motor drive control system according to claim 17,
the mode setting unit changes the excitation mode to an excitation mode in which the cycle of the switching signal is increased when the number of times from the time when the drive current becomes zero to the time when the next switching signal is output is shorter than a predetermined time is equal to or more than a predetermined number of times.
19. The stepping motor drive control system according to claim 15,
the table generating unit generates a data table of the threshold value using values of the first induced voltage and the second induced voltage when the drive current is zero.
20. The stepping motor drive control system according to claim 15,
the excitation control device includes a mode setting unit that changes the excitation mode to a shorter cycle of the switching signal when a time from a time point when the drive current becomes zero to a time point when a next switching signal is output is longer than a predetermined time.
Technical Field
The present embodiment relates generally to a stepping motor control device, a stepping motor control method, and a stepping motor drive control system.
Background
In the past, in order to improve the efficiency of a stepping motor, a technique of controlling a drive current in accordance with a torque has been disclosed. In an attempt to reduce the drive current in a state where the required torque is reduced, the efficiency is improved. The stepping motor operates over a wide range from low-speed rotation to high-speed rotation. In order to avoid the step-out, a drive current having a margin with respect to a required torque is generally supplied. However, the supply of the excessive drive current increases the power consumption.
Disclosure of Invention
One embodiment provides a control device for a stepping motor, a control method for a stepping motor, and a stepping motor drive control system, which can improve the efficiency of a stepping motor in a wide range of operating states from low-speed rotation to high-speed rotation.
According to one embodiment, a stepping motor control device includes: a table generating unit that generates a data table of a threshold value proportional to a frequency of a switching signal in an operation region in which the frequency of the switching signal is lower than a predetermined frequency, using values of a first induced voltage generated at a first frequency of the switching signal and a second induced voltage generated at a second frequency, the first frequency changing a set value of a drive current; and a current control unit that compares the threshold value with the detected induced voltage and controls the value of the drive current according to the comparison result.
Drawings
Fig. 1 is a diagram showing an embodiment of a control device for a stepping motor.
Fig. 2 is a diagram showing a relationship between a drive current and a switching signal.
Fig. 3 is a diagram showing an example of a control method on the low speed side.
Fig. 4 is a diagram showing another example of the control method on the low speed side.
Fig. 5 is a flowchart of a control method on the low speed side.
Fig. 6 is a diagram illustrating an example of a control method on the high speed side.
Fig. 7 is a diagram illustrating an example of a change in the excitation pattern.
Fig. 8 is a flowchart of a control method on the high speed side.
Fig. 9 is a diagram illustrating the effect.
Detailed Description
Hereinafter, a control device for a stepping motor, a control method for a stepping motor, and a stepping motor drive control system according to embodiments will be described in detail with reference to the drawings. The present invention is not limited to the above embodiments.
(first embodiment)
Fig. 1 is a diagram showing an embodiment of a control device for a stepping motor. The structure of the amount of 1 phase is shown. The present embodiment includes
The source/drain circuits of the
Each of the MOS transistors 11-14 has a
The
A voltage detection circuit 21 is provided for detecting a voltage between the drain and the source of the
The
The voltage detection circuit 30 detects a drain-source voltage of the
The selection circuit 33 selects the output of either one of the voltage detection circuits 30 and 31 by the timing control circuit 34 and supplies the selected output to the
The timing control circuits 24, 34 control the timing of turning on/off the MOS transistors 11-14. For example, a charge mode in which the
The timing control circuits 24 and 34 supply switching signals for changing the set values of the drive currents in the respective micro-steps to the
When the excitation pattern is the same, the rotation frequency of the stepping motor changes according to the frequency of the switching signal. Thus, the
The timing control circuits 24 and 34 supply signals for controlling the timing of detecting the induced voltage or the drive current to the selection circuits 23 and 33. The selection circuits 23, 33 supply the outputs (induced voltage information) of the selected voltage detection circuits 20, 21, 30, 31 to the
The
The
The
The
The
The
The
The
The induced voltage appears as an output voltage when the drive current is zero. Thus, the induced voltage is detected by detecting the voltage of the
For example, when the drive current is zero, the
Therefore, the induced voltage is detected or the drive current is detected to be zero based on the on states of the
When the determination time is shorter than the predetermined time, the
According to the present embodiment, in the operation region where the induced voltage is small because the rotational frequency is low, the threshold value of the induced voltage is reduced in proportion to the frequency. This can widen the operating range in which the induced voltage can be detected, and thus can widen the control range of the drive current corresponding to the torque. Therefore, it is possible to avoid the offset and appropriately reduce the power consumption.
When the induced voltage is difficult to detect because the rotational frequency is high, the induced voltage can be detected by changing the excitation pattern to one having a wider width of micro steps. Thereby, the drive current is adjusted in accordance with the torque based on the detected induced voltage. That is, the drive current can be adjusted in accordance with the torque, and offset can be avoided and power consumption can be reduced.
In addition, both the threshold value correction on the low speed side and the cycle adjustment of the switching signal on the high speed side can be performed in real time in accordance with the actual operating state. That is, appropriate control according to the operating state of the stepping motor can be performed in a wide operating region.
Fig. 2 is a diagram showing a relationship between a drive current and a switching signal. The upper part shows the drive current waveform L1 in microsteps and the lower part shows the switching signal. On the rising edge of the switching signal, the steps switch. Fig. 2 shows an example of an excitation pattern in which the stepping motor is rotated by 1 rotation in 16 steps. For example, the control of changing the excitation pattern is performed by changing the number of steps using the switching signal.
The value of the drive current of each step is adjusted by adjusting the duty ratio of the PWM signal at each timing S1 to S16 of the switching signal. At timings S4 to S5 of fig. 2, the upper limit value of the drive current is adjusted according to the duty ratio of the PWM signal.
The value of the drive current in each step is maintained by controlling the on/off of each MOS transistor 11-14. In the step where the drive current is set to zero, the induced voltage is detected or the timing at which the drive current becomes zero is detected. That is, the step in which the drive current is set to zero (0%) is a detection period for detecting the induced voltage and performing control corresponding to the torque. The detection period shown in fig. 2 is a step between the timings S8 to S9, and between the timings S16 to S1.
In the excitation pattern having the same number of steps, the rotation frequency of the stepping motor is changed in accordance with the frequency of the switching signal. That is, by increasing the frequency of the switching signal, the rotational frequency of the stepping motor increases. Therefore, the frequency of the switching signal becomes an index indicating the rotational frequency of the stepping motor.
Fig. 3 is a diagram showing an example of a control method on the low speed side. The horizontal axis shows the rotation frequency of the stepping motor, and the vertical axis shows the threshold value of the induced voltage. That is, the rotation frequency of the horizontal axis corresponds to the frequency of the switching signal. The same applies to the following. The solid line L2 shows the induced voltage.
The frequency of the switching signal when the stepping motor is operated in a no-load state and the induced voltage is saturated is set to the rotation frequency f 3. The induced voltage V3 at the rotation frequency f3 at this time is detected. When the induced voltage is larger than the detected induced voltage V3, the driving current is excessively supplied to the required torque. Therefore, the induced voltage V3 is set as a threshold value for controlling the drive current at a rotation frequency higher than the rotation frequency f 3.
Next, for example, the frequency of the switching signal is lowered to the rotation frequency f1, and the induced voltage V1 at this time is detected. The rotation frequency f1 is 1/2 of the rotation frequency f 3.
The threshold correction data line L3 at the rotation frequency f is expressed by equation (1) in accordance with the values of the rotation frequencies f1 and f3 and the induced voltages V1 and V3. V0 is calculated as a threshold value when the rotation frequency is zero (0). The calculation of expression (1) is performed by the
V=V0+[(V3-V1)/(f3-f1)]×f (1)
The threshold V obtained by equation (1) is compared with the value of the induced voltage detected at the corresponding rotation frequency f. When the induced voltage is higher than the threshold value, control is performed to reduce the drive current. Conversely, when the induced voltage is lower than the threshold value, control is performed to increase the drive current. By the above control, it is possible to appropriately adjust the drive current in accordance with the torque while avoiding the step-out during the low-speed operation.
Fig. 4 is a diagram showing another example of the control method on the low speed side. The horizontal axis represents the rotation frequency of the stepping motor, and the vertical axis represents the threshold value of the induced voltage. The solid line L4 represents the induced voltage. As in the case of fig. 3, the induced voltage V3 at the rotation frequency f3 when the induced voltage is in the saturated state is detected and recorded.
The frequency of the switching signal is lowered to a rotation frequency f1, for example, half of the rotation frequency f 3. When the induced voltage cannot be detected, the rotation frequency is increased until the induced voltage can be detected. The lower limit of the detected induced voltage, the rotation frequency f2, and the induced voltage V2 at that time are recorded.
The threshold correction data line L5 is expressed by equation (2) in accordance with the rotation frequencies f2 and f3 and the values of the induced voltages V2 and V3 at that time.
V=V0+[(V3-V2)/(f3-f2)]×f (2)
In the low speed operation range of the rotation frequencies f2 to f3, the threshold value obtained by equation (2) is compared with the induced voltage detected at the corresponding rotation frequency f. When the induced voltage is higher than the threshold value, control is performed to reduce the drive current. Conversely, when the induced voltage is lower than the threshold value, control is performed to increase the drive current. By the above control, it is possible to appropriately adjust the drive current in accordance with the torque while avoiding the step-out during the low-speed operation.
In the above example of the control method, the case of one correction data line is described, but a plurality of correction data lines may be provided. For example, in the example of fig. 3, the correction data line in the range from the rotation frequency f3 to the intermediate rotation frequency and in the range from the intermediate rotation frequency to the rotation frequency f1 may be calculated in the same manner as in expression (1) using the intermediate rotation frequency between the rotation frequencies f1 and f3 and the value of the induced voltage at that time. The rotation frequency f1 is not limited to 1/2 of the rotation frequency f3, and may be 1/3 or the like, and may be arbitrarily set.
Fig. 5 is a flowchart of a control method on the low speed side. Corresponding to the control method described above. The threshold value on the low speed side is set, and the operation is started, for example, in a no-load state (S101). The initial value is stored in the
It is determined whether the induced voltage becomes maximum (S103). That is, whether the induced voltage is saturated or not is detected. When the induced voltage becomes maximum (S103: YES), the rotation frequency f3 and the induced voltage V3 at that time are recorded (S104). When the induced voltage is not at the maximum (S103: NO), the rotation frequency is further increased. Next, the frequency of the switching signal is decreased to decrease the rotation frequency (S105).
When the rotation frequency is f3/2 (S106: YES), the induced voltage is detected. When the generation of the induced voltage is detected (S107: YES), the rotation frequency f1 at that time and the detected induced voltage V1 are recorded (S108).
When the induced voltage is not detected (S107: NO), the rotation frequency is increased (S109). When the induced voltage is generated by the rise of the rotational frequency (S110: YES), the rotational frequency f2 at that time and the value of the detected induced voltage V2 are recorded (S111). When no induced voltage is generated (S110: NO), the rotation frequency is increased.
Using the formula (1) or the formula (2), the threshold corrected for each rotation frequency is calculated, and a correction table is created (S112). Equation (1) is used when an induced voltage is generated, and equation (2) is used when an induced voltage is not generated. The correction table is stored in the
By the flow of the control described above, the range of the control corresponding to the torque on the low speed side can be expanded based on the corrected threshold value. Therefore, since the drive current is controlled in real time in accordance with the required torque, it is possible to avoid the step-out and reduce the power consumption.
Fig. 6 is a diagram for explaining a control method on the high-speed side. The upper solid line L6 represents the drive current, the dot-dash line L7 represents the output voltage, and the lower part represents the switching signal. Corresponding to the step between the timings S8 to S9 in fig. 2, that is, the step in which the set value of the drive current is zero (0%).
The induced voltage is detected as an output voltage after the drive current becomes zero. Therefore, in fig. 6, the rising amount of the output voltage during the determination time t from the time t0 when the drive current becomes zero to the timing S9 when the next switching signal is supplied indicates the induced voltage.
When the frequency of the switching signal increases and the high-speed operation is performed, the period T between steps becomes short. The drive current is reduced with a certain time delay with respect to the falling edge of the output voltage. Therefore, if the period T is shortened, the determination time T is shortened, and the detection of the induced voltage becomes difficult. Therefore, when the determination time T is shorter than the predetermined detectable time, the excitation pattern is changed to an excitation pattern having a longer period T. For example, the 4W 1-2 phase excitation is changed to 2W 1-2 phase excitation.
This control makes it possible to reliably detect the induced voltage, and to appropriately control the drive current by comparing the induced voltage with the threshold value. That is, by expanding the detection range of the induced voltage on the high-speed side, the drive current is reduced when the induced voltage is high with respect to the threshold value, and thus power consumption can be reduced.
Fig. 7 is a diagram illustrating an example of a control method for changing the excitation pattern. The left side shows a state before changing the excitation pattern, and the right side shows a state after changing the excitation pattern.
The drive current waveform L8 shown on the left side has a step corresponding to the drive current becoming small in accordance with the transition of the switching signal from the timings S0, S01 toward S07.
The drive current waveform L9 shown on the right side is changed to an excitation pattern having a long step width corresponding to a step of 2 steps of the drive current waveform L8 in accordance with the switching signal after the frequency change. For example, the pattern of 4W 1-2 phase excitation shown on the left side is changed to the pattern of 2W 1-2 phase excitation shown on the right side.
By changing the excitation pattern, the period between the switching signals is increased, and the determination period of the induced voltage can be extended. Thus, the induced voltage is detected and the drive current is adjusted based on the detected induced voltage, so that the drive current can be appropriately controlled in accordance with the torque.
In addition, even if the excitation pattern is changed, the rotation frequency can be made the same. For example, by changing the excitation pattern of the step in which the drive current is changed by 1 step from 1 switching signal to the excitation pattern of the step in which the drive current is changed by 2 steps, the rotational frequency of the stepping motor can be made the same even if the frequency of the switching signal is 1/2. Therefore, even if the excitation pattern is automatically changed when the determination time is shortened, the rotation frequency of the stepping motor can be made the same, and therefore, the user can use the stepping motor without being aware of the change of the excitation pattern.
Fig. 8 is a flowchart of a control method on the high speed side. The rotational frequency of the stepping motor is increased, the operation on the high speed side is started, and the step in which the set value of the drive current is zero is detected (S201).
It is detected whether the output voltage is zero (S202). When the output voltage is detected to be zero (S202: YES), the timing at which the drive current becomes zero is detected (S203). When the output voltage is not zero (S202: NO), the detection is continued. When it is detected that the drive current is zero (YES in S203), a determination time, which is a time period from the time point when the drive current becomes zero to the time point when the next switching signal is supplied, is compared with a predetermined set time (S204). When the drive current is not zero (S203: NO), the detection is continued.
When the determination time is shorter than the set time (YES in S204), the number of determinations that the excitation pattern can be changed is counted (S205). When the determination time is longer than the set time (NO in S204), the excitation pattern is changed to an excitation pattern with an increased number of steps (S206). That is, the excitation pattern is changed to a shorter step. By increasing the number of steps, the characteristics achieved by microsteps for finely controlling the rotation angle can be utilized.
When the counted number of determination times is equal to or greater than a predetermined number of times (YES in S207), the excitation pattern is changed to an excitation pattern in which the number of steps is decreased, that is, the number of steps is increased (S208). This lengthens the time during which the induced voltage can be detected, and therefore the induced voltage can be reliably detected. By performing control to change the excitation pattern when the number of times is equal to or more than a predetermined number of times, the reliability of the determination as to whether or not the change of the excitation pattern is possible can be improved. When the counted number of times of determination is less than the predetermined number of times (S207: NO), the process of comparing the determination time with the set time is continued.
By changing the excitation pattern based on the comparison between the determination time and the predetermined set time, the induced voltage can be reliably detected on the high-speed side. Accordingly, the drive current can be appropriately controlled according to the detected induced voltage, and therefore, supply of an excessive drive current to a required torque can be avoided, and power consumption can be reduced.
Fig. 9 is a diagram for explaining the effect of the present embodiment. The horizontal axis shows the rotation frequency relatively, and the vertical axis shows the effect of reducing the drive current relatively. According to the stepping motor control device and the stepping motor control method of the present embodiment, the drive current can be appropriately controlled in accordance with the torque by detecting the induced voltage on the low-speed operation side LA and the high-speed operation side HA.
That is, in the low-speed side LA, the threshold of the induced voltage is decreased in proportion to the frequency, and thus the region in which the drive current corresponding to the torque can be controlled can be expanded from the broken line L10 to the solid line L11 as described in fig. 3. In the high-speed side HA, the period of the switching signal is increased, and thus the operating region in which the induced voltage can be detected can be similarly expanded from the broken line L10 to the range shown by the solid line L11.
That is, the range of control that can reduce excessive drive current and achieve low power consumption can be expanded from DW3 to DW 1. Since the drive current is appropriately adjusted in accordance with the required torque in a wide operating region, it is possible to avoid the step-out and achieve low power consumption.
While several embodiments of the present invention have been described above, the above embodiments are merely presented as examples, and are not intended to limit the scope of the invention. The above-described new embodiments can be implemented in various other ways, and various omissions, substitutions, and changes can be made without departing from the spirit of the invention. The above-described embodiments and modifications thereof are included in the scope and gist of the invention, and are included in the invention described in the claims and the equivalent scope thereof.