Motor control system
By monitoring the load value and adjusting the speed in the control circuit of the stepper motor, the stall problem caused by the increase in load is solved, and the motor control is realized without sensors, which improves the reliability of the motor and reduces cost and design complexity.
Patent Information
- Application Number
- CN202410585193.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-16
- Filing Date
- 2024-05-13
- Publication Date
- 2024-11-22
AI Technical Summary
Existing stepper motors are prone to stalling due to power limitations of the drive circuit when load increases, and sensor-based closed-loop systems increase design workload and cost.
By monitoring the load value in the control loop, if the threshold is exceeded, the motor speed is reduced to avoid stalling, the stepper motor is operated in a sensorless manner, the motor coil current is received through the control unit and the analog-to-digital converter, and the motor speed is adjusted to adapt to load changes .
It effectively avoids motor stalling, improves the reliability of stepper motors, and reduces implementation costs and design workloads, and can be applied to open-loop or closed-loop systems without changing the existing control system.
Smart Images

Figure CN119010673A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to a method and a circuit arrangement for controlling an electric motor. In particular, the present application relates to a method and a circuit arrangement for controlling an electric motor (eg, a stepper motor) having a control loop to prevent the motor from stalling. Background Art
[0002] As is well known, in a stepper motor, a magnetic rotor is turned stepwise in small angular increments by a controlled rotating electromagnetic field generated by the motor's stator coils.
[0003] The maximum electrical power that can be driven into a stepper motor may be limited by the physics of: the motor (which defines the maximum current rating); the system supply voltage; and the maximum drive current of the motor drive circuit. Often, stepper motors are oversized so that the maximum current rating is greater than what is required for the stepper motor application.
[0004] Some stepper motors are operated in open loop, i.e. the control system receives no position or load feedback from the stepper motor. The stepper motor is controlled by the driver stage to provide the target current to the motor coils to move the mechanical load. However, open loop operation does not provide any way to avoid motor stalling (which results in lost steps) caused by errors between the commanded position and the actual rotor position.
[0005] Sensor-based closed-loop systems are known to provide a means of avoiding motor stalling. Such methods are known to receive input from the stepper motor itself using a sensor (e.g., an encoder) that can detect the position of the rotor (which can be compared to a continuously commanded position). Sensor-based closed-loop methods of controlling stepper motors have higher associated implementation costs and design effort than open-loop methods. Summary of the invention
[0006] The present disclosure describes a new method and circuit arrangement for operating a motor in a control loop to prevent the motor from stalling. The motor has at least a first motor coil and a second motor coil. A target speed of the motor is set, and the motor is operated at a speed equal to the target speed. A load value associated with the motor load is received. It is determined whether the load value is greater than a load value threshold. Based on the determination that the load value is greater than the load value threshold, the speed of the motor is reduced to a speed less than the target speed. When compared to a motor (e.g., an open-loop motor) that does not implement the new method and circuit arrangement of the present disclosure, this prevents motor stalling / step loss due to exceeding the total power limit of the drive circuit of the motor. The motor can be a stepper motor.
[0007] According to a first aspect, there is provided a method of operating an electric motor in a control loop, the electric motor comprising at least a first motor coil and a second motor coil, the method comprising:
[0008] operating the motor at a speed equal to a target speed;
[0009] receiving a load value associated with a motor load; and
[0010] determining whether the load value is greater than a load value threshold; and
[0011] Based on the load value being greater than the load value threshold, the speed of the motor is reduced to a speed less than the target speed.
[0012] Optionally, the method further comprises: receiving a first motor coil current from the first motor coil; and receiving a second motor coil current from the second motor coil, wherein the load value is proportional to absolute values of the first and second coil currents.
[0013] Optionally, the method further comprises receiving a load angle of the motor, wherein the load value is proportional to the load angle.
[0014] Optionally, the load value threshold is an upper load value threshold. The method optionally further comprises: determining whether the load value is less than a lower load value threshold; and based on the determination that the load value is less than the lower load value threshold, increasing the speed of the motor to a target speed.
[0015] Optionally, the upper load value threshold is between the lower load value threshold and the stall load value, and if the stall load value is exceeded, the motor will stall.
[0016] Optionally, the upper load value threshold is greater than the lower load value threshold.
[0017] Optionally, the maximum rate at which the velocity decreases over time is greater than the maximum rate at which the velocity increases over time.
[0018] Optionally, the step of increasing the speed of the motor to the target speed is performed in response to a fixed acceleration rate.
[0019] Optionally, the step of increasing the speed of the motor to the target speed is performed in response to a variable acceleration rate, wherein the variable acceleration rate is determined by a PI regulator.
[0020] Optionally, the step of reducing the speed of the motor to a speed less than the target speed is performed in response to a fixed deceleration rate.
[0021] Optionally, the step of reducing the speed of the motor to a speed less than the target speed is performed in response to a variable deceleration rate, wherein the variable deceleration rate is determined by a PI regulator.
[0022] Optionally, the load value threshold is selected to be between 70% and 100% of the stall load value. Optionally, the load value threshold is selected to be between 80% and 100% of the stall load value. Optionally, the load value threshold is selected to be between 90% and 100% of the stall load value.
[0023] Optionally, the control loop of the motor operates in a sensorless manner.
[0024] Optionally, the motor is a stepper motor.
[0025] According to a second aspect, there is provided a circuit arrangement for operating an electric machine in a control loop, the electric machine comprising at least a first motor coil and a second motor coil, the circuit comprising:
[0026] A control unit, the control unit being configured to:
[0027] operating the motor at a speed equal to a target speed;
[0028] receiving a load value associated with a motor load; and
[0029] determining whether the load value is greater than a load value threshold, and
[0030] Based on the load value being greater than the load value threshold, the speed of the motor is reduced to a speed less than the target speed.
[0031] Optionally, the circuit arrangement further comprises an analog-to-digital converter configured to receive a first motor coil current from the first motor coil; and to receive a second motor coil current from the second motor coil, wherein the load value is proportional to absolute values of the first and second coil currents.
[0032] Optionally, the load value threshold is an upper load value threshold, wherein the control unit is configured to: determine whether the load value is less than a lower load value threshold and an upper load value threshold, and based on the result of determining that the load value is less than the upper load value threshold and the lower load value threshold, increase the speed of the motor to the target speed.
[0033] Optionally, increasing the speed of the motor to the target speed is in response to a variable acceleration rate, wherein the control unit comprises a PI regulator configured to determine the variable acceleration rate.
[0034] Optionally, increasing the speed of the motor to the target speed is in response to a fixed acceleration rate, wherein the control unit is further configured to determine the variable acceleration rate.
[0035] Optionally, reducing the speed of the motor to a speed less than the target speed is in response to a variable deceleration rate, wherein the control unit comprises a PI regulator configured to determine the variable deceleration rate.
[0036] Optionally, reducing the speed of the motor to a speed less than the target speed is in response to a fixed deceleration rate, wherein the control unit is further configured to determine the variable deceleration rate.
[0037] Optionally, the circuit arrangement operates as a sensorless arrangement.
[0038] Optionally, the motor is a stepper motor. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 A schematic block diagram of a circuit arrangement for operating an electric machine in an open-loop operating mode is shown.
[0040] Figure 2 Shown is a graph of the motor operating in open loop mode, showing the relationship between speed and torque.
[0041] Figure 3 A schematic block diagram of a circuit arrangement for operating an electric machine in a control loop is shown.
[0042] Figure 4 Shown is a graph of a motor control loop, showing how speed and load values vary over time.
[0043] Figure 5 Shown is based on Figure 4 Diagram of an operating motor control loop, showing the relationship between speed and torque.
[0044] Figure 6 A flow chart showing a method of operating an electric machine in a control loop is shown.
[0045] Figure 7 Shown for Figure 3 Schematic diagram of a control unit implemented in a circuit arrangement.
[0046] Figure 8 An alternative diagram representing a motor control loop is shown, showing how speed and load values vary over time.
[0047] Fig. 9 Shown for Figure 3 An alternative schematic block diagram of a control unit implemented in a circuit arrangement. DETAILED DESCRIPTION
[0048] definition
[0049] An operating mode with a control loop (i.e., an industrial control loop or closed-loop control) typically includes a process variable sensor for sensing a process variable of a process, a controller for receiving an input signal representing the process variable and generating an output signal based on the input signal and a set point signal representing a desired value of the process variable, and an actuator for receiving the output signal and adjusting the process in response to the output signal. The controller uses a control algorithm to compare the set point signal with the input signal from the previous iteration of the loop (e.g., at time t=-1) and generate an output signal for the current iteration of the loop (e.g., at time t=0). The actuator adjusts the process so that the process variable approaches the desired value represented by the set point signal, which will be used as an input for the next iteration of the loop (e.g., at time t=1). The controller can be implemented as a computer program executed on a processor, and the process variable sensor, actuator, and set point input can be connected to the controller via an electrical or communication link.
[0050] A voltage-based operating mode with a control loop is a control loop operating mode that uses a voltage signal to generate a control signal for operating a device. A current-based operating mode with a control loop is a control loop operating mode that uses a current signal to generate a control signal for operating a device.
[0051] Regulation involves correcting the error between the commanded setpoint and the actual value based on some type of feedback. That is, determining the output of a regulator that adjusts the actual value to the commanded setpoint at a new iteration of the control loop.
[0052] Operating a stepper motor involves providing voltage / current to the motor coils of the stepper motor to cause movement of the stepper motor rotor / stator.
[0053] Oversizing is a standard practice in industry where oversized (by NEMA standards) stepper motors are selected for industrial / consumer applications to ensure compliance.
[0054] The mechanical load is the effective load coupled to the rotating element (usually the rotor) of the stepper motor.
[0055] Motor stall occurs when a stepper motor (and / or associated circuitry) is operated beyond its power limits. For example, if the effective load is too large, the motor's rotor cannot rotate as commanded. This results in a loss of steps because the stepper motor cannot "step" when commanded, resulting in an error between the commanded position of the stepper motor's rotor and the actual rotor position. A motor stall event is one that causes the stepper motor to stall and a loss of steps may occur (if the controller is not receiving feedback about the actual rotor position, for example, in sensorless operation mode).
[0056] Details
[0057] As a brief non-limiting overview of the present invention, the present disclosure provides a method for operating a motor, such as a stepper motor, in a control loop. The stepper motor is operated to reach an operating speed suitable for a stepper motor application. If the mechanical load coupled to the stepper motor increases, in order to avoid the risk of motor stalling, the method monitors the torque load or a representation of the torque load (e.g., a scaled motor coil current based on the load). If the received torque load exceeds a threshold, the stepper motor is operated to reduce the motor speed, such as by decelerating the stepper motor rotor. This enables the stepper motor to increase its torque to overcome the increase in mechanical load while preventing the motor from stalling. The disclosed method can also be implemented with significantly reduced implementation costs and design effort. That is, the method can be directly applied to a simple open-loop (or closed-loop) stepper motor system without changing the existing operating control system, but also benefits from the increased resilience to motor stall events. Therefore, the reliability of any stepper motor system to which the method is applied can be improved accordingly. The torque load or a representation of the torque load will be referred to as a load value in this article.
[0058] Figure 1 An example of a schematic block diagram of a circuit arrangement 10 for a motor, such as a stepper motor, is shown. The circuit arrangement 10 shows a stepper motor 12 controlled by a control unit 16. The stepper motor 12 is controlled by a motor drive circuit 14, such as a voltage chopper. The motor drive circuit 14 generates a drive voltage for each coil of the stepper motor 12, for example, the drive voltage can be a pulse width modulated (PWM) voltage for operating the stepper motor 12.
[0059] In the simple case of a two-phase stepper motor 12, it can be assumed that one of the two coils (e.g., coil x) is subjected to a sinusoidal current process, while the other coil (e.g., coil y) is provided with a current process that is phase-shifted by 90° and is therefore co-sinusoidal. The stepper motor 12 can also be controlled in microstepping operation with a PWM voltage that produces substantially sinusoidal motor coil currents in the coils x, y. However, the following considerations also apply accordingly to alternative cases: non-sinusoidal motor coil currents; stepper motors with the same or different number of phases; the relative phase shift of the motor coil currents relative to each other is not 90°; and / or stepper motors operated in full-step and half-step operation.
[0060] The PWM voltage may be generated from the motor supply voltage such that the amplitude of the motor supply voltage defines the amplitude of the PWM voltage. In particular, the motor supply voltage may be pulse width modulated and applied to the motor coils x, y with corresponding polarity. The duty cycle of this modulation is controlled or adjusted such that the effective voltages generated across the motor coils each have an amount such that an instantaneous motor coil current value flows. Alternatively, other methods may be used to cause an instantaneous target motor coil current value to flow. Control of the PWM may be based on a voltage-based control signal using known methods.
[0061] As a component known per se, the circuit arrangement 10 comprises an integrated motor driver circuit 14, with which a first and a second bridge circuit 16a, 16b are controlled via outputs. The bridge circuit 16 is arranged between a supply voltage +VM and ground. To operate the stepper motor, a first PWM voltage signal is applied to the coil x and a second PWM voltage signal is applied to the coil y. The motor driver circuit 14 receives voltage-based control signals in order to control, for example, the amplitude or amount of the voltage applied to each coil, or the duty cycle of the PWM voltage, via a control unit 26. Since these motor driver circuit 14 units are known per se, they do not need to be described in more detail.
[0062] The stepper motor 12 can be operated so that the power on its rotating motor shaft is linearly proportional to the speed under a certain external force;
[0063]
[0064] where is the torque τ, the angular velocity ω, the external force F, and r is the radius of the stepper motor shaft.
[0065] Figure 2 A representation of an open loop operating mode is shown on graph 20. The speed of the stepper motor is shown on the x-axis and the stepper motor torque is shown on the y-axis.
[0066] The graph 20 shows a line 22 representing the maximum power output of the stepper motor 12. Line 22 also represents the limitation of electrical power and the dependence of mechanical power on speed in combination with an externally applied force. Thus, there is a tradeoff between the maximum allowable speed and the maximum allowable torque. If the stepper motor 12 is operated to exceed line 22, a motor stall will occur. All stepper motors can be characterized in that line 22 represents the maximum power output of any stepper motor and can be determined (e.g., by experiment) or can generally be easily obtained (e.g., from a data sheet).
[0067] It is generally known to operate a stepper motor in open loop with a safety margin as shown by the dashed safety margin line 24. The purpose of the safety margin line 24 is to place an artificial limit on the drive operation of the stepper motor 12, so that if a momentary increase in mechanical load is provided to the stepper motor, the torque can increase beyond the safety margin line 24, but within the line 22, without the motor stalling temporarily. This reduces the risk of the motor stalling, however, it also reduces the power handling of the stepper motor 12 because it is not operated near its maximum power. This leads system designers to over-size the stepper motor for certain applications.
[0068] Graph 20 shows that high torque requirements How to limit the maximum allowed speed to In contrast, The high speed requirement limits the maximum permissible torque to
[0069] The problem with the known operating mode is that if the control system is operated to target a specific speed, and the load on the stepper motor increases, then in order to maintain the target speed, the torque of the stepper motor must increase. The combination of high speed and torque may require more power than the driver circuit can provide (or the rated power of the stepper motor), which may cause the motor to stall, also known as loss of steps.
[0070] In addition, a known closed-loop system can be implemented that uses an encoder to detect the position of the rotor of the stepper motor 12. Such a system can eliminate the need for a safety margin and operate the stepper motor close to the line 22. However, such a system requires significantly higher design effort, mold space, and implementation costs. In addition, the encoder may not be suitable for all applications and may require additional calibration.
[0071] The present invention solves the above problems by a stepping motor control method. The present invention is described below.
[0072] Figure 3 A circuit arrangement 28 according to one example of the present invention is shown. Figure 3 The circuit arrangement 28 is similar to Figure 1 For the sake of brevity, the following description will focus on the differences, and the same components are given the same reference numerals.
[0073] The circuit arrangement 28 operates the stepper motor 12 in a control loop. The control loop can be implemented with, for example, a hysteresis controller or a PI regulator. The control unit 26 receives feedback signals from the stepper motor 12 via the feedback arrangement 25, such as coil currents (for one or more motor coils of the stepper motor 12) and / or sensor measurements from an encoder, etc.
[0074] For example, the control unit 26 may receive a measurement of the actual motor coil current to adjust the duty cycle of the PWM voltage applied to the corresponding motor coil via a voltage-based closed-loop operating mode (i.e., a voltage-based operating mode with a control loop). The actual motor coil current may be detected by the feedback device 25, for example, by an analog-to-digital converter (ADC), in order to control the amplitude or amount of the voltage applied to the coil, or the duty cycle of the PWM voltage, for example, via a regulator, preferably a PI regulator. Alternatively, the circuit arrangement 28 may be operated in a current-based operating mode with a control loop.
[0075] Optionally, if the control loop is a sensorless closed loop, the motor drive circuit 14 may also receive the coil current as an input via the feedback device 25 to help achieve the target current.
[0076] Now combine Figures 4 to 6 The operation of the stepper motor 12 is described. According to an example of the present invention, the control unit 26 may be configured to implement a method that may output a signal suitable for operating the stepper motor 12.
[0077] Figure 4 A graph 30 representing the operation of a stepper motor 12 controlled according to the present invention is shown. Time is represented along the x-axis, with six example events (1) to (6) for explanation. The blue line shows the speed 32 of the stepper motor 12 along the leftmost y-axis. The red line shows the load value 34 of the stepper motor 12 along the rightmost y-axis.
[0078] Figure 5 Shows the Figure 4 Graph 40 corresponds to graph 30 in FIG. Graph 40 shows line 22 ( Figure 2 ). Line 22 (or data representing line 22) may be predetermined and stored in a memory.
[0079] The load value may be proportional to the mechanical load on the stepper motor rotor, such that if the rotor requires more torque to rotate at a given speed, the load value will increase. The load value may be the motor coil current or the load angle of the stepper motor. Thus, the load value has a maximum load value L max Or a safety margin, the maximum load value may be equal to the maximum power output of the stepper motor (ie, the stall load value: the load value that causes the stepper motor 12 to stall). If a safety margin is used, then Figure 2 Compared to the safety margin of 24, the safety margin may be significantly reduced to achieve an equivalent (or even reduced) motor stall event. Upper load value threshold U TH Can be basically close to the maximum load value L max For example, the upper load value threshold U THcan be chosen to be at a maximum load value L max For example, the lower load value threshold L TH (If it is not equal to the upper load value threshold U TH ) can be selected to be at the maximum load value L max between 70% (or 60%, 50%) and 90% (or 80%, 70%).
[0080] The upper load value threshold may be different from the lower load value threshold. For example, the upper load value threshold may be between the lower load value threshold and the maximum load value L of the stepper motor. max Maximum load value L max It may be a load value that, if exceeded, causes the motor of the stepper motor 12 to stall. In one example, the maximum load value L max The load value may represent a torque of 1 Nm, and the upper load value threshold and the lower load value threshold may represent values of 0.9 Nm and 0.7 Nm, respectively.
[0081] In one example, the load value may be associated with (e.g., proportional to) the torque produced by a single motor coil current. Alternatively, the load value may also be determined based on a function of the first motor coil current and the second motor coil current, for example, if the current is scaled (increased or decreased) according to the load value by an optional additional control loop. If the load value is represented by the motor coil current of the stepper motor 12, the maximum load value L max May correspond to the maximum drive current of the motor drive circuit 14. The control unit 18 may receive a first motor coil current from the first stepper motor coil x and a second motor coil current from the second stepper motor coil y. The load value may be associated with (e.g., proportional to) the absolute torque output produced by the first and second coil currents. This is an example of a sensorless implementation, i.e., the control loop of the stepper motor operates without using a rotor position sensor (e.g., the circuit arrangement 28 does not receive input from the rotor position sensor), i.e., in a sensorless arrangement. The upper load value threshold and the lower load value threshold may represent torque limits, e.g., 0.9 Nm and 0.7 Nm, respectively.
[0082] In another example, if the load value is the load angle of the stepper motor, the maximum load value L maxIt can be the maximum load angle of the stepper motor without stalling, that is, 90 degrees. The control unit 18 receives the load angle of the stepper motor 12 through the feedback device 25. The load angle can be derived from at least the known characteristics of the stepper motor 12 and the coil current and / or encoder reading using a known method. Therefore, the load value can be proportional to the load angle. The upper load value threshold and the lower load value threshold can be angles, for example, 85 degrees and 75 degrees, respectively. Depending on how the load angle is derived, this example can be sensor-based (for example, if an encoder is used) or sensorless (such as, if the coil current is used). Alternatively, the load value is the load reserve of the stepper motor, the load reserve, where the load reserve is the load angle minus 90° (that is, 0° represents the maximum load reserve of the stepper motor without stalling). The upper load value threshold and the lower load value threshold can be angles, for example, -5 degrees and -15 degrees, respectively.
[0083] return Figure 4 The control unit 26 determines (eg, the control unit 26 may set, determine, obtain, or receive) a target speed V of the stepper motor 12. T Target speed V T is the speed at which the stepper motor 12 should ideally operate for a given application. That is, the speed at which the stepper motor 12 should ideally operate if there is no power limitation, or the speed at which the stepper motor 12 would operate if the load value does not exceed a maximum load value (e.g., a load value threshold).
[0084] At point (0), the stepper motor 12 starts at a speed of 0. The stepper motor 12 can then be operated to an enabling speed V according to a startup procedure. EN . Enable speed V EN The minimum speed at which the circuit arrangement 28 can operate the stepper motor 12 in the control loop may be the minimum speed at which the circuit arrangement 28 can operate the stepper motor 12 in the control loop. EN Hereinafter, the stepper motor 12 may be operated in open loop control. EN Can be zero.
[0085] After the start-up process (if necessary), the stepper motor 12 is driven at a speed equal to the target speed V T As shown between time points (1) and (2), the stepper motor 12 is operated at a speed of V. When the stepper motor 12 is operated in the control loop, the control unit 26 receives a load value associated with the stepper motor load (i.e., the mechanical load coupled to the stepper motor). The graph 30 shows that between time points (1) and (2), the load value 34 increases. This indicates that more torque is required to operate at the target speed V. T .Operate the stepper motor 12. Figure 5 Graph 40 shows the torque increase between points (1) and (2).
[0086] The control unit 26 determines whether the load value 34 is greater than the upper load value threshold U TH In addition, if the load value 34 is greater than the lower load value threshold U TH , the control unit 26 operates the stepper motor 12 in response to the command deceleration to reduce the speed of the stepper motor to a speed less than the target speed V T This prevents motor stalling / loss of steps due to exceeding the power limit of circuit arrangement 28. Graph 30 shows that between time points (2) and (3), the speed of stepper motor 12 is reduced at a fixed deceleration rate. Figure 5 The graph 40 shows the speed drop between points (2) and (3). The reduction in speed allows the stepper motor 12 to increase its torque without exceeding the power limit of the stepper motor or motor drive circuit 14 until the increased stepper motor load is overcome. The fixed reduction rate allows the available torque to also increase at a proportional rate, supported by the flywheel mass of the moving motor, thereby improving the likelihood of overcoming temporary high mechanical loads. This improves the reliability of the stepper motor control.
[0087] In one example, the control unit 26 may also determine whether the load value 34 is less than a lower load value threshold L TH ..Lower load threshold L TH Can be less than the upper load value threshold U TH , so that the upper load value threshold U TH The load value at the lower load value threshold L TH The load value at . is closer to the maximum load value L of the stepper motor 12 max In addition, if the load value 34 is less than the lower load value threshold L TH , the control unit 26 operates the stepper motor 12 in response to the commanded acceleration to increase the speed to the target speed. This indicates that the stepper motor 12 has overcome the high torque requirement and allows the stepper motor 12 to return to the target speed V without exceeding the power limit of the circuit device 28. T The graph 30 shows that between time points (3) and (4), the speed 32 of the stepper motor 12 increases at a fixed acceleration. Figure 5 The graph 40 shows the increase in speed 32 between points (3) and (4). The decrease in the detected load value 34 allows the stepper motor 12 to increase its speed without exceeding the power limit of the stepper motor or motor drive circuit 14 until the target speed V is reached. T Or the load value 34 exceeds the upper load value threshold U TH The fixed acceleration rate allows the available torque to also decrease at a proportional rate. The slower acceleration rate improves the reliability of the system, however, it also reduces the speed at which the stepper motor can reach its target speed V T The percentage of time it runs.
[0088] Figure 4 and Figure 5 It is also shown how the load value 34 changes between points (4) and (6), and how the speed 32 reacts according to some examples. Nevertheless, it can be seen that the process is similar to the process between points (1) and (3) described above.
[0089] In one example, the upper load value threshold U TH Can be equal to the lower load value threshold L TH . However, if the thresholds for the upper load value and the lower load value are different, a hysteresis control can be implemented. The hysteresis control is enabled when the load value reaches the upper load value threshold, and the hysteresis control can be disabled when the load value reaches the lower load value threshold. The hysteresis control advantageously allows increased reliability. The upper load value threshold U TH and the lower load value threshold L TH The difference between φ and φ may be predetermined or actively controlled based on the application of the stepper motor 12 .
[0090] Control unit 26 may determine a commanded acceleration (ie, the rate at which speed increases) and / or a commanded deceleration (ie, the rate at which speed decreases). Figure 4 The command acceleration is shown as a fixed acceleration, while the command deceleration is a fixed deceleration. The control unit 26 can command the speed of the stepper motor 12 to move toward zero or the enabling speed V EN If the speed of the stepper motor 12 decreases to zero or below the enabling speed V EN , the speed can be increased to the enabling speed V according to the startup process EN Alternatively, if the speed of the stepper motor 12 is reduced to the enabling speed V EN Below this, the stepper motor can then be operated in open loop to further reduce the speed to zero.
[0091] In one example, the maximum rate of commanded deceleration is greater than the maximum rate of commanded acceleration. max This provides the advantage of a rapid increase in available torque when Figure 5 22), and more cautiously return to the target speed V T (i.e., slowly moving towards Figure 5 Center line 22). Thus, a more reliable operation of the stepper motor 12 is provided.
[0092] Figure 6 A flow chart of a method according to an example is shown. The method can be applied to other stepper motor control schemes to improve the reliability of a stepper motor by reducing the possibility of motor stall in a stepper motor including at least a first motor coil and a second motor coil. Figure 6 As shown, this method may include the following steps:
[0093] S1: Receive a load value associated with the stepper motor load and determine whether the load value is greater than an upper load value threshold U TH .
[0094] S2: Based on the load value being greater than the upper load value threshold U TH In response to the commanded deceleration, the speed of the stepper motor 12 is reduced to a value less than the target speed V T speed.
[0095] S3: receiving a load value associated with the stepper motor load, and determining whether the load value is less than a lower load value threshold L TH .
[0096] S4: Based on the load value being less than the lower load value threshold L TH and upper load value threshold U TH The speed of the stepper motor 12 is increased to the target speed V in response to the commanded acceleration. T .
[0097] Figure 7 and Fig. 9 Two example implementations of a control unit are shown, which can implement the method according to the example. Figure 7 As shown in Figure 1, the control loop can be implemented using a hysteresis controller. Fig. 9 As shown, the control loop can be implemented using a PI regulator.
[0098] Figure 7 A control unit 26a is shown which can operate as follows Figure 4 and Figure 5 The stepper motor 12 is shown. The control unit 26a includes a hysteresis block 44, a speed limit block 46 and a ramp controller block 48. The blocks 44, 46, 48 of the control unit 26a may be implemented in software or hardware.
[0099] The control unit 26a receives the load value at its input. The load value is provided to the hysteresis block 44. The hysteresis block 44 is configured to determine whether the load value was previously less than a lower load value threshold L TH , and whether the current load is greater than the upper load threshold U TH , and determine whether the load value is greater than the upper load value threshold U TH , and whether the current load value is less than the lower limit threshold L TH (like Figure 6 The output of the hysteresis block 44 is based on Figure 6The output of the hysteresis block 44 is input into a speed limit block 46, which can set and output a speed limit at which the stepper motor 12 operates. The speed limit is a command speed that can be reduced with a command deceleration (i.e., the speed of the stepper motor 12 will operate at the command speed). Therefore, hysteresis control is enabled when the load value reaches an upper load value threshold, and hysteresis control can be disabled when the load value reaches a lower load value threshold. The output of the speed limit block 46 is input into a ramp controller block 48. The ramp controller block 48 also receives a target ramp parameter. When the speed limit is raised, the ramp controller block 48 is configured to move toward a target speed V according to the target ramp parameter (i.e., command acceleration). T Increase speed. Therefore, the output of the control unit 26a is the speed at which the stepper motor 12 operates.
[0100] In addition, the speed limit block 46 can set a speed limit that can be increased to follow the limited command acceleration. The limited command acceleration can have an acceleration that is less than the rate of acceleration determined by the target ramp parameter. This can avoid oscillations between acceleration and deceleration states, thereby achieving more efficient stepper motor control. The limited command acceleration can have a higher acceleration than the acceleration determined by the target ramp parameter. This can improve the overall dynamics of the system (maximum acceleration) and the response to dynamic changes in the payload.
[0101] Figure 8 A graph 50 representing the operation of a stepper motor 12 controlled according to the present invention is shown. Time is represented along the x-axis, and there are four example events (1) to (4) for explanation. The blue line shows the speed 52 of the stepper motor 12 along the y-axis. The red line shows the load value 34 of the stepper motor 12 along the y-axis (also shown in FIG. 3 ). Figure 4 The control of the stepper motor 12 is similar to Figure 4 The control shown in , except for three differences: a single load value threshold, the command acceleration is a variable acceleration, and the command deceleration is a variable deceleration. Each of these differences can be implemented independently and can be combined with features of other examples.
[0102] After the start-up process (if necessary), the stepper motor 12 is driven at a speed equal to the target speed V T , as shown between time points (1) and (2). Graph 50 shows that between time points (1) and (2), the load value 34 increases. This indicates that more torque is required to operate at the target speed V T The stepper motor 12 is operated.
[0103] If the load value 34 is greater than the load value threshold U TH, the control unit operates the stepper motor 12 to reduce the speed of the stepper motor 12 to a speed less than the target speed V in response to the commanded deceleration. T This can prevent motor stalling / loss of steps due to exceeding the stepper motor driver current limit. Graph 50 shows that between time points (2) and (3), the speed of the stepper motor 12 is reduced at a variable deceleration rate. The variable deceleration rate allows the available torque to also increase at a rapid rate to provide an improved response to sudden mechanical overload conditions.
[0104] If the load value 34 is less than the load value threshold U TH , the control unit operates the stepper motor 12 to increase the speed of the stepper motor 12 to the target speed in response to the commanded acceleration. This allows the stepper motor 12 to return to the target speed V without exceeding the power limit of the circuit device 28. T The graph 50 shows that between time points (3) and (4), the speed 32 of the stepper motor 12 increases at a variable acceleration rate until the target speed V T (or the load value 34 exceeds the load value threshold U TH ). Variable rate acceleration can improve the response of the stepper motor to reach the target speed V T This enables the stepper motor 12 to operate as fast as possible while still achieving reduced motor stall events.
[0105] Fig. 9 A control unit 26b is shown which can operate as follows Figure 8 The stepper motor 12 is shown. The control unit 26a comprises a PI regulator block 56, a speed limit block 46 and a ramp controller block 48. The blocks 56, 46, 48 of the control unit 26a may be implemented in software or hardware. Fig. 9 The speed limit block 46 and ramp controller block 48 in are similar to Figure 7 The speed limit block 46 and the ramp controller block 48 in FIG. 5 are described below. For the sake of brevity, the following description will focus on the differences and similar parts are given the same reference numerals. The variable rate of acceleration and / or deceleration can be determined by a PI regulator block 56 .
[0106] The control unit 26b receives a load value at its input. The load value is provided to a PI regulator block 56. The PI regulator block 56 is configured to determine whether the load value is greater than or less than a load value threshold value U THThe output of the PI regulator block 56 is a command to increase or decrease speed with respect to time (i.e., acceleration or deceleration rate). The output of the PI regulator block 56 is input into the speed limit block 46. The PI regulator block 56 may implement PID (proportional integral derivative) control for commanded deceleration, and / or the PI regulator block 56 may implement PI (proportional integral) control for commanded acceleration. Figure 7 and Fig. 9 Other implementations than those shown.
[0107] Depending on the specific technical application of the stepper motor, any combination of fixed and variable rate acceleration or deceleration can be achieved.
[0108] The output of the control unit 26a, 26b represents the command speed. This can be achieved by a voltage-based control signal or a current-based control signal. In addition, the output can also represent the motor position using a known micro-step sequencer (not shown).
[0109] Figure 4 and Figure 8 The speed 32, 52 acceleration / deceleration curves shown are smooth and continuous. However, depending on the implementation of the exemplary method, the acceleration and / or deceleration may be implemented as a step change in speed. The step changes in speed may be averaged to obtain Figure 4 and Figure 8 Speed 32, 52 acceleration / deceleration curves shown.
[0110] Numbered clauses
[0111] By way of non-limiting example, some aspects of the disclosure are set forth in the following numbered clauses.
[0112] Clause 1 - A method of operating an electric motor in a control loop, the electric motor comprising at least a first motor coil and a second motor coil, the method comprising:
[0113] operating the motor at a speed equal to a target speed;
[0114] receiving a load value associated with a motor load; and
[0115] determining whether the load value is greater than a load value threshold; and
[0116] Based on the load value being greater than the load value threshold, the speed of the motor is reduced to a speed less than the target speed.
[0117] Clause 2-The method of Clause 1, further comprising:
[0118] receiving a first motor coil current from the first motor coil;
[0119] A second motor coil current is received from the second motor coil, wherein the load value is proportional to absolute values of the first and second coil currents.
[0120] Clause 3-The method of Clause 1 also includes: receiving a load angle of the motor, wherein the load value is proportional to the load angle.
[0121] Clause 4 - The method of any preceding clause, wherein the load value threshold is an upper load value threshold, the method further comprising:
[0122] A determination is made as to whether the load value is less than a lower load value threshold, and based on the determination that the load value is less than the lower load value threshold, the speed of the motor is increased to a target speed.
[0123] Clause 5-The method of Clause 4, wherein the upper load value threshold is between the lower load value threshold and the stall load value, and if the stall load value is exceeded, the motor stalls.
[0124] Clause 6-The method of Clause 5, wherein the upper load value threshold is greater than the lower load value threshold.
[0125] Clause 7—The method of any of clauses 4 to 6, wherein the maximum rate at which velocity decreases over time is greater than the maximum rate at which velocity increases over time.
[0126] Clause 8—The method of any of clauses 4 to 7, wherein the step of increasing the speed of the motor to the target speed is performed in response to a fixed acceleration rate.
[0127] Clause 9—The method of any of clauses 4 to 7, wherein the step of increasing the speed of the motor to the target speed is performed in response to a variable acceleration rate, wherein the variable acceleration rate is determined by a PI regulator.
[0128] Clause 10—The method of any preceding clause, wherein the step of reducing the speed of the motor to a speed less than the target speed is performed in response to a fixed deceleration rate.
[0129] Clause 11 - The method of any preceding clause, wherein the step of reducing the speed of the motor to a speed less than the target speed is performed in response to a variable deceleration rate, wherein the variable deceleration rate is determined by a PI regulator.
[0130] Clause 12—The method of any preceding clause, wherein the load value threshold is selected to be between 70% and 100% of the stall load value.
[0131] Clause 13 - The method of any preceding clause, wherein the control loop of the motor operates in a sensorless manner.
[0132] Clause 14 - The method of any preceding clause, wherein the motor is a stepper motor.
[0133] Clause 15 - A circuit arrangement for operating an electric motor in a control loop, the electric motor comprising at least a first motor coil and a second motor coil, the circuit comprising:
[0134] A control unit, the control unit being configured to:
[0135] operating the motor at a speed equal to a target speed;
[0136] receiving a load value associated with a motor load; and
[0137] determining whether the load value is greater than a load value threshold, and
[0138] Based on the load value being greater than the load value threshold, the speed of the motor is reduced to a speed less than the target speed.
[0139] Clause 16-The circuit arrangement of clause 15, further comprising an analog-to-digital converter, the analog-to-digital converter being configured to:
[0140] receiving a first motor coil current from the first motor coil;
[0141] A second motor winding current is received from the second motor coil, wherein the load value is proportional to absolute values of the first and second coil currents.
[0142] Clause 17—The circuit arrangement of clause 15 or 16, wherein the load value threshold is an upper load value threshold, wherein the control unit is configured to:
[0143] It is determined whether the load value is less than a lower load value threshold and an upper load value threshold, and the speed of the motor is increased to a target speed based on the determination that the load value is less than the lower load value threshold and the upper load value threshold.
[0144] Clause 18 - The circuit arrangement of clause 17, wherein increasing the speed of the motor to the target speed is in response to a variable acceleration rate, wherein the control unit includes a PI regulator configured to determine the variable acceleration rate.
[0145] Clause 19 - The circuit arrangement of clause 17, wherein increasing the speed of the motor to the target speed is in response to a fixed acceleration rate, wherein the control unit is further configured to determine the variable acceleration rate.
[0146] Clause 20 - The circuit arrangement of any one of clauses 15 to 19, wherein reducing the speed of the motor to a speed less than the target speed is in response to a variable deceleration rate, wherein the control unit includes a PI regulator configured to determine the variable deceleration rate.
[0147] Clause 21 - The circuit arrangement of any one of clauses 15 to 19, wherein reducing the speed of the motor to a speed less than the target speed is in response to a fixed deceleration rate, wherein the control unit is further configured to determine the variable deceleration rate.
[0148] Clause 22—The circuit arrangement of any one of clauses 15 to 21, wherein the circuit device operates as a sensorless device.
[0149] Clause 23—The circuit arrangement of any one of clauses 15 to 22, wherein the motor is a stepper motor.
[0150] General terms
[0151] Figure 7 and Fig. 9 The display and definition of each block in is for explanation purposes only, and it should be well understood that the algorithm or function represented by each block can be implemented in many other ways as long as the described functions exist. For example, Figure 7 and / or Fig. 9 The blocks may be combined and implemented as part of a circuit arrangement, on a single integrated circuit, processor, or computer, or by multiple circuit arrangements, integrated circuits, processors, and / or computers.
[0152] Although the above examples are with reference to stepper motors, it should be appreciated that due to the structural similarities of other types of motors such as brushless DC (BLDC) motors or permanent magnet synchronous motors (PMSM), the methods and circuit arrangements of the embodiments disclosed herein may also be applied to other types of motors including at least a first motor coil and a second motor coil. In particular, the methods and circuit arrangements of the embodiments disclosed herein may control stepper motors as well as continuously commutated BLDC / PMSM motors. In addition, the motor may have two or more motor coils.
[0153] Unless the context clearly requires otherwise, throughout the specification and claims, the terms "comprising," "including," "containing," "having," and the like are to be interpreted in an inclusive sense rather than an exclusive or exhaustive sense; that is, in the sense of "including but not limited to."
[0154] As used herein, the words "coupled" or "connected" generally refer to two or more elements that may be directly connected or connected through one or more intermediate elements. In addition, the words "herein," "above," "below," and words of similar meaning as used in this application shall refer to this application as a whole and not to any particular part of this application. Where the context permits, words used in the singular or plural in the detailed description may also include the plural or singular, respectively. When referring to a list of two or more items, the word "or" is intended to cover all of the following interpretations of the word: any item in the list, all items in the list, and any combination of items in the list.
[0155] It should be appreciated that one or more features from one or more of the above described embodiments may be combined with one or more features from another or more of the above described embodiments to form further embodiments within the scope of the appended claims.
Claims
1. A method of operating an electric motor in a control loop, the electric motor comprising at least a first motor coil and a second motor coil, the method comprising: operating the motor at a speed equal to a target speed; receiving a load value associated with a motor load; determining whether the load value is greater than a load value threshold; and Based on the load value being greater than the load value threshold, the speed of the motor is reduced to less than the target speed.
2. The method according to claim 1, further comprising: receiving a first motor coil current from the first motor coil; and A second motor coil current is received from the second motor coil, and wherein the load value is proportional to absolute values of the first motor coil current and the second motor coil current. 3 . The method of claim 1 , further comprising receiving a load angle of the motor, and wherein the load value is proportional to the load angle.
4. The method according to claim 1, wherein: The load value threshold is an upper load value threshold; and Further including: Determining whether the load value is less than a lower load value threshold; and Based on the load value being less than the lower load value threshold, the speed of the motor is increased to the target speed. 5 . The method according to claim 4 , wherein the upper load value threshold is between the lower load value threshold and the stall load value, and if the stall load value is exceeded, the motor of the motor is caused to stall. The method according to claim 5 , wherein the upper load value threshold is greater than the lower load value threshold. 7 . The method of claim 4 , wherein the motor is operated such that a maximum rate at which the motor speed decreases over time is greater than a maximum rate at which the motor speed increases over time. 8 . The method of claim 4 , wherein increasing the speed of the motor to the target speed comprises increasing the motor speed at a fixed acceleration rate. 9 . The method of claim 4 , wherein increasing the speed of the motor to the target speed comprises increasing the motor speed at a variable acceleration rate, and wherein the variable acceleration rate is determined by a PI regulator. 10 . The method of claim 1 , wherein reducing the speed of the motor to less than the target speed comprises reducing the speed of the motor at a fixed deceleration rate.
11. The method of claim 1, wherein reducing the speed of the motor to less than the target speed comprises reducing the motor speed at a variable deceleration rate, and wherein the variable deceleration rate is determined by a PI regulator.
12. The method of claim 1, wherein the load value threshold is selected to be between 70% and 100% of a stall load value.
13. The method of claim 1 further comprising operating a control loop of the motor in a sensorless arrangement.
14. The method of claim 1, wherein the motor is a stepper motor.
15. A circuit arrangement for operating an electric machine in a control loop, the electric machine comprising a first motor coil and a second motor coil, the circuit arrangement comprising a control unit, the control unit being configured to: operating the motor at a speed equal to a target speed; receiving a load value associated with a motor load; determining whether the load value is greater than a load value threshold; and Based on the load value being greater than the load value threshold, the speed of the motor is reduced to less than the target speed.
16. The circuit arrangement according to claim 15, further comprising an analog-to-digital converter, the analog-to-digital converter being configured to: receiving a first motor coil current from the first motor coil; and A second motor coil current is received from the second motor coil, and wherein the load value is proportional to absolute values of the first motor coil current and the second motor coil current.
17. The circuit arrangement according to claim 15, wherein the load value threshold is an upper load value threshold; wherein, The control unit is configured to: Determining whether the load value is less than a lower load value threshold; and Based on the load value being less than the lower load value threshold and the upper load value threshold, the speed of the motor is increased to the target speed.
18. The circuit arrangement of claim 17, wherein the control unit is configured to increase the speed of the motor to the target speed at a variable acceleration rate, and wherein the control device comprises a PI regulator configured to determine the variable acceleration rate.
19. The circuit arrangement of claim 15, wherein the circuit arrangement operates in a sensorless arrangement.
20. The circuit arrangement of claim 15, wherein the motor is a stepper motor.
