A method, system and device for preventing stepping motor from losing step

By monitoring and adjusting the motion state of the stepper motor and using photoelectric switches for closed-loop control, the problem of stepper motor failure is solved, and smooth operation and precise step count control is achieved, adapting to a variety of environments and scenarios.

CN114244204BActive Publication Date: 2024-11-26XIAN RUIFENG PHOTOELECTRIC TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202111520301.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-13
Publication Date
2024-11-26
Estimated Expiration
2041-12-13

AI Technical Summary

Technical Problem

Stepper motors are prone to step loss. Existing solutions cannot effectively avoid step loss and step loss, and cannot determine the number of steps lost and solve problems, so they cannot achieve the precise step control required by users.

Method used

By receiving the position information of the stepper motor, photoelectric switch, first limiter and second limiter, analyzing and sending driving instructions, monitoring the status of the photoelectric switch and limiter, obtaining the last step number, judging and adjusting the number of steps To ensure the accurate movement of the stepper motor, closed-loop control is used with photoelectric switches to avoid losing steps.

Benefits of technology

The smooth operation of the stepper motor is achieved, the phenomenon of step loss is avoided, the uniform acceleration and uniform deceleration process is ensured at each start and stop, the stability and accuracy of the system are enhanced, and the adaptability to various environments and scenarios is not affected by the outside world. Effects of electromagnetic interference.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114244204B_ABST
    Figure CN114244204B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system and device for preventing a stepper motor from losing step, including: receiving position information of a stepper motor, a photoelectric switch, a first stopper and a second stopper collected by a host computer; parsing the received information and sending a driving instruction including the number of steps and direction to the stepper motor, driving the stepper motor to move; monitoring the state of each photoelectric switch, the state of the first stopper, the state of the second stopper and the travel position of the stepper motor, receiving information fed back by each photoelectric switch, the first stopper and the second stopper, obtaining the last step of the stepper motor; judging whether the last step of the stepper motor is greater than the minimum step of acceleration and deceleration, and completing the operation of the last step of the stepper motor. The present invention ensures that the stepper motor starts and stops according to acceleration and deceleration, and effectively prevents the stepper motor from losing step.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of stepper motor control and relates to a method, system and device for preventing a stepper motor from losing steps. Background Art

[0002] Stepper motors use the number of pulses and pulse frequency to achieve open-loop control of the position and speed of the motor, and are increasingly widely used in the field of automation control. During normal operation, each control pulse received moves one step angle, that is, one step forward. If the control pulses are continuously input, the motor will rotate continuously accordingly. However, since stepper motors are not closed-loop controlled, improper selection or use may easily cause stepper motors to lose steps. Stepper motors lose steps, including lost steps and overstepped steps. When lost steps, the number of steps the rotor moves forward is less than the number of pulses, and the pulses are missed and the motor does not move to the specified position; when overstepped steps, the number of steps the rotor moves forward is more than the number of pulses, and the motor moves beyond the specified position. The number of steps lost and overstepped steps is equal to an integer multiple of the number of running beats. When lost steps are serious, the rotor will stay at one position or vibrate around one position. When overstepped steps are serious, overshoot will occur.

[0003] The rotor of the stepper motor is a permanent magnet. When current flows through the stator winding, the stator winding generates a vector magnetic field. This magnetic field drives the rotor to rotate an angle, so that the direction of a pair of magnetic fields of the rotor is consistent with the direction of the magnetic field of the stator. When the vector magnetic field of the stator rotates an angle, the rotor also rotates an angle with the magnetic field. For each input of an electric pulse, the motor rotates an angle and moves forward one step. The angular displacement it outputs is proportional to the number of pulses input, and the speed is proportional to the pulse frequency. Changing the order in which the windings are energized will reverse the motor. Therefore, the rotation of the stepper motor can be controlled by controlling the number of pulses, frequency, and the order in which the windings of each phase of the motor are energized.

[0004] There are many reasons why stepper motors lose steps. Generally, the reasons that cause stepper motors to lose steps are as follows:

[0005] 1) The stepper motor itself does not have enough working torque and is not capable of driving the load;

[0006] 2) The stepper motor and the load it carries have inertia, and the acceleration process during starting and stopping is not sufficient. The stepper motor loses steps during acceleration and skips steps during deceleration;

[0007] 3) The power supply of the stepper motor is not enough, resulting in insufficient input power of the stepper motor, causing loss of step, insufficient drive voltage or too low drive current setting;

[0008] 4) The driver or controller receives signal interference, the program is defective, and the stepper motor loses steps;

[0009] 5) The continuous operation of the motor system causes system resonance. The dynamic error is the largest near the control pulse and the inherent resonance frequency of the stepper motor, which may cause the stepper motor to lose steps.

[0010] 6) The backlash or backlash error of the synchronous wheel or reducer is not compensated in the program or the compensation value is incorrect;

[0011] 7) The signals of the driver and controller do not match.

[0012] The existing solutions for stepper motor out of step are:

[0013] 1) Calculate the torque of the load and refer to the stepper motor pitch-frequency diagram to see if the stepper motor has sufficient torque to drive the load at the corresponding speed. However, torque analysis involves factors such as acceleration, deceleration, load change, and the influence of gravity when rising and falling, which cannot meet the needs of different scene changes;

[0014] 2) Reserve more than 30% margin for the stepper motor power supply current and submit the drive voltage to avoid losing steps during acceleration due to insufficient drive, which will make it easier to overstep during deceleration;

[0015] 3) Signal interference and resonance are difficult to avoid in the system and are inherent phenomena that are prone to recurrence in long-term operation;

[0016] 4) Due to the accuracy problem of synchronous wheel or reduction box, there will be a certain amount of error accumulation, which cannot be reasonably compensated in the control program;

[0017] 5) Monitor the working current of the stepper motor and analyze the abnormal current changes that cause the stepper motor to lose step; the loss of step can be detected but the fault cannot be solved, and the impact caused by the loss of step cannot be quantitatively changed;

[0018] The above solutions such as adjusting the power supply and adding a reducer cannot solve the inherent disadvantages of the stepper motor. The use of current monitoring closed-loop operation can detect the step-out phenomenon of the stepper motor, but it cannot determine the number of steps lost and solve the problem to complete the number of steps required by the user. Summary of the invention

[0019] The purpose of the present invention is to solve the problems in the prior art and to provide a method, system and device for preventing a stepping motor from losing step, which can effectively prevent the stepping motor from losing step.

[0020] In order to achieve the above object, the present invention adopts the following technical solutions:

[0021] A method for preventing a stepping motor from losing steps, comprising:

[0022] Receiving position information of the stepping motor, the photoelectric switch, the first stopper and the second stopper collected by the host computer;

[0023] Parse the received information to determine the starting position of the stepper motor, the minimum number of steps for acceleration and deceleration of the stepper motor, the position of each photoelectric switch, the position of the first limiter, the position of the second limiter, and the segmentation of the number of steps;

[0024] Send a driving instruction including the number of steps and direction to the stepper motor to drive the stepper motor to move;

[0025] Based on the starting position of the stepper motor, the number of steps of the stepper motor, the position of each photoelectric switch, the position of the first stopper, the position of the second stopper and the segmentation of the number of steps, the state of each photoelectric switch, the state of the first stopper, the state of the second stopper and the moving position of the stepper motor are monitored, and the information fed back by each photoelectric switch, the first stopper and the second stopper is received to obtain the last number of steps of the stepper motor;

[0026] Determine whether the last step of the stepper motor is greater than the minimum step of acceleration and deceleration; if so, the stepper motor completes the last step; if not, the stepper motor moves according to the last step plus the minimum step, and then reverses the minimum step to return to the expected position, and the stepper motor completes the last step.

[0027] A further improvement of the present invention is:

[0028] The host computer collects position information of the stepper motor, the photoelectric switch, the first limiter and the second limiter. Specifically, the host computer calibrates the positions of the stepper motor, the photoelectric switch, the first limiter and the second limiter, and the calibrated values ​​are stored in the flash of the host computer respectively.

[0029] The specific segmentation of the number of steps is as follows: based on the position of each photoelectric switch and the starting position of the stepper motor, the number of steps of each segment is obtained, and the response of the photoelectric switch that triggers the current segment is used as the completion mark of the current segment.

[0030] Monitor the status information of each photoelectric switch. Specifically, when the stepper motor passes the photoelectric switch, the photoelectric switch generates a switch signal to provide feedback on the stepper motor's operation to the current position.

[0031] Monitor the status of the first limiter and the status of the second limiter, specifically: when the stepper motor moves to the position of the first limiter, the first limiter generates a contact signal, and provides feedback that the stepper motor has run to the current position, and the stepper motor stops moving; when the stepper motor moves to the position of the second limiter, the second limiter generates a contact signal, and provides feedback that the stepper motor has run to the current position, and the stepper motor stops moving.

[0032] The last step number of the stepper motor is obtained, specifically: the difference between the step number of the stepper motor and the position of the photoelectric switch which is opposite to the moving direction of the stepper motor and closest to the moving position of the stepper motor.

[0033] A system for preventing a stepping motor from losing steps, comprising:

[0034] A receiving module, the receiving module is used to receive position information of the stepping motor, the photoelectric switch, the first stopper and the second stopper collected by the host computer;

[0035] An analysis module is used to analyze the received information to determine the starting position of the stepper motor, the minimum number of steps for acceleration and deceleration of the stepper motor, the position of each photoelectric switch, the position of the first stopper, the position of the second stopper, and the segmentation of the number of steps;

[0036] A driving module, the driving module is used to send a driving instruction including a step number and a direction to the stepper motor, so as to drive the stepper motor to move;

[0037] An acquisition module, which monitors the state of each photoelectric switch, the state of the first stopper, the state of the second stopper and the travel position of the stepper motor based on the starting position of the stepper motor, the number of steps of the stepper motor, the position of each photoelectric switch, the position of the first stopper, the position of the second stopper and the segmentation of the number of steps, receives information fed back by each photoelectric switch, the first stopper and the second stopper, and acquires the last number of steps of the stepper motor;

[0038] The judging module is used to determine the number of steps that the stepping motor completes in the last section, and ensure that the stepping motor starts and stops according to acceleration and deceleration.

[0039] A device for preventing a stepping motor from losing step, comprising: a host computer, a controller, a motor driver, a photoelectric switch, a driving shaft, a first stopper, a second stopper and a stepping motor;

[0040] The upper computer is connected to the controller, the controller is connected to the motor driver; the motor driver is connected to the stepper motor; the stepper motor is arranged between the first limiter and the second limiter, and the first limiter and the second limiter are used to limit the movement range of the stepper motor; the photoelectric switch is arranged between the first limiter and the second limiter, and the photoelectric switch is located on the driving shaft; the photoelectric switch is connected to the controller; the first limiter and the second limiter are connected to the controller.

[0041] The driving shaft is a horizontal driving shaft; the first limiter and the second limiter are respectively located at two ends of the horizontal driving shaft; and the stepping motor is located at one side of the horizontal driving shaft.

[0042] The driving shaft is a 360° driving shaft; the first limiter and the second limiter are respectively located on the side of the 360° driving shaft; the photoelectric switch is located on the side of the 360° driving shaft and is located in the same interval formed by the first limiter and the second limiter.

[0043] Compared with the prior art, the present invention has the following beneficial effects:

[0044] The present invention controls the movement and stop of the stepper motor by monitoring the running state of the stepper motor and receiving information fed back by the photoelectric switch and the first limiter and the second limiter, and determines the running state of the last section of the stepper motor, so that each start and stop of the stepper motor has a uniform acceleration and deceleration process, thereby ensuring that the system always runs smoothly and avoiding the stepping motor from losing steps.

[0045] At the same time, the present invention adopts a photoelectric switch, does not use an electromagnetic sensitive device, has strong environmental adaptability, and is not affected by external electromagnetic environment interference. The photoelectric switch device is simple, is not affected by the electromagnetic radiation of the stepper motor's own coil and other single machines, and can still work normally even in a space environment with a complex single particle environment. Meet various environmental application requirements. At the same time, with limited cost, the closed-loop control of the stepper motor is effectively realized through the photoelectric switch; the photoelectric switch can also be controlled by other switches, and the software principle is consistent. The present invention has strong portability and is convenient for use in various scenarios. It is not limited by the size of the equipment and the direction of operation. It can be applied to circular tracks, vertical tracks, and environments with or without reducers; the present invention adapts to mass production requirements and has no additional special requirements for installation accuracy. Through software calibration, each photoelectric switch of the assembled equipment is calibrated, and the calibrated value is stored in the flash of each device itself. After the software is run, the value in the flash is automatically read, that is, the various limitations of the structure are compensated by software calibration. The present invention has a feedback mechanism during the operation process, and has a verification function for the stepper motor and the entire system. If the number of operating steps exceeds the error range, an alarm prompt is issued. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0047] Figure 1 A structural diagram of a device for preventing a stepping motor from losing step according to an embodiment of the present invention;

[0048] Figure 2 This is a structural diagram of a 360° drive shaft according to an embodiment of the present invention;

[0049] Figure 3 A structural diagram of a photoelectric switch according to an embodiment of the present invention;

[0050] Figure 4 A flow chart of a method for preventing a stepping motor from losing step according to an embodiment of the present invention;

[0051] Figure 5 Another flow chart of the method for preventing a stepping motor from losing step according to an embodiment of the present invention;

[0052] Figure 6 The structure flow chart of the system for preventing stepping motor from losing step according to an embodiment of the present invention.

[0053] Among them: 1-host computer, 2-controller, 3-motor driver, 4-first limiter, 5-second limiter, 6-stepping motor, 7-horizontal drive axis, 8-360° drive axis, 9-photoelectric switch. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0055] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0057] In the description of the embodiments of the present invention, it should be noted that if the terms "upper", "lower", "horizontal", "inner", etc. indicate an orientation or positional relationship based on the orientation or positional relationship shown in the drawings, or the orientation or positional relationship in which the product of the invention is usually placed when in use, it is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.

[0058] In addition, if the term "horizontal" appears, it does not mean that the component must be absolutely horizontal, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", which does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0059] In the description of the embodiments of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0060] The present invention is further described in detail below in conjunction with the accompanying drawings:

[0061] See also Figure 1 The present invention discloses a device for preventing a stepping motor from losing step, comprising:

[0062] The specific implementation of the present invention includes three stages: system environment construction, system calibration and software implementation. The matters of each stage are explained one by one below.

[0063] (I) Environment Construction

[0064] The environment construction includes the host computer 1, controller 2, motor driver 3, photoelectric switch 9, first limiter 4, second limiter 5, stepper motor 6 and the selection and design of the drive shaft:

[0065] The host computer 1 is connected to the controller 2, and the controller 2 is connected to the motor driver 3; the motor driver 3 is connected to the stepper motor 6; the stepper motor 6 is arranged between the first limiter 4 and the second limiter 5, and the first limiter 4 and the second limiter 5 are used to limit the movement range of the stepper motor 6; the photoelectric switch 9 is arranged between the first limiter 4 and the second limiter 5, and the photoelectric switch 9 is located on the driving shaft; the photoelectric switch 9 is connected to the controller 2; the first limiter 4 and the second limiter 5 are connected to the controller 2.

[0066] The driving shaft is a horizontal driving shaft 7 ; the first limiter 4 and the second limiter 5 are respectively located at two ends of the horizontal driving shaft 7 ; and the stepping motor 6 is located at one side of the horizontal driving shaft 7 .

[0067] The controller 2 is a software carrier and conditionally completes the functions of the software, including receiving information transmitted by the host computer 1, collecting the values ​​of the first limiter 4 and the second limiter 5 at the extreme position, sampling the positions of N photoelectric switches 9, completing the segmentation of the number of steps, controlling the stepper motor 6, and monitoring the status of the photoelectric switch 9. This solution can also be implemented for the 360° movement direction of the drive shaft 8 without being restricted by the structure.

[0068] See also Figure 2 The driving shaft is a 360° driving shaft 8; the first limiter 4 and the second limiter 5 are respectively located on the sides of the 360° driving shaft 8; the photoelectric switch 9 is located on the side of the 360° driving shaft 8 and is located in the same interval formed by the first limiter 4 and the second limiter 5.

[0069] The photoelectric switch 9 is a key component for realizing the software function, and it feedbacks the position of the stepper motor 6 in sections to realize the closed-loop control of the stepper motor 6. The photoelectric switch 9 consists of a light-emitting diode and a photodiode, see Figure 3 When there is no obstruction between the light-emitting diode and the photodiode, the photodiode receives light energy and conducts, and the signal output is a high level; when there is an obstruction between the light-emitting diode and the photodiode, the photodiode is not conducting, and the signal output is a low level.

[0070] In the system design, the stepper motor 6 can fix one or more obstructions to achieve one-dimensional or multi-dimensional position feedback. Each photoelectric switch 9 corresponds to one rising edge and one falling edge, which correspond to two positions or angles of the stepper motor 6, and feedback is given to the completed segments according to the two positions or angles, and the next segment is entered. If the difference between the current segment and the estimated step number exceeds the deviation, abnormal feedback is given.

[0071] The controller 2 realizes the calculation of the required operating position and number of stages of the stepper motor 6. The number of stages required to be operated is the number of stages that the photoelectric switch 9 at the corresponding position will respond. The number of steps of the last stage is calculated to determine whether the last stage meets the acceleration and deceleration process and whether it needs to be advanced and then reversed. The motor driver 3 controls the stepper motor 6 to complete the signal conversion, detects the photoelectric switch 9 signal in real time, and judges the working status of the stepper motor 6. If there is an abnormality, feedback is given to complete the human-computer interaction process.

[0072] (II) System calibration

[0073] After the system working environment is set up, the system is calibrated to complete the total movement range of the first limiter 4 and the second limiter 5 at the extreme position, and the number of rising and falling steps or angles corresponding to each photoelectric switch 9, as the basis for the final state. The photoelectric switch 9 closest to the limit switch is taken as the zero position, and the subsequent photoelectric switches 9 are calibrated based on this zero position. Taking the horizontal drive shaft 7 moving the photoelectric switch 9 as an example, the total movement range of the horizontal drive shaft 7 is 850000um, and the calibrated data table is as follows.

[0074] Table 1 Photoelectric switch calibration diagram

[0075] Serial number Photoelectric switch label Horizontal axis position (um) Remark 1. First limit switch position -1350 Limit switches 2. 01 switch rising edge 0 Starting zero position 3. 01 switch falling edge 15130 4. 02 switch rising edge 24750 5. …… …… 6. Second limit switch position 84320 Limit switches

[0076] The actual calibration value of the total movement distance is 85670um, the design value is 85000um, and 670um is the difference between the design theoretical value and the calibration value. Each set of equipment will have errors after installation, and better results can be achieved at a limited cost.

[0077] After the system calibration is completed, the software calculates the number of stages required to move to the target position based on the calibrated position value. The motion accuracy is determined by the number of steps of each step of the stepper motor 6. The use of harmonic reducers can effectively reduce the minimum displacement distance, thereby improving the motion accuracy. The reducer design is completed in the environment construction.

[0078] (III) Software Implementation

[0079] See also Figure 4 and Figure 5 The present invention discloses a method for motor out of step; comprising

[0080] The controller 2 software realizes all the functions of the system, including human interaction interface, command input, status feedback, command position analysis, segment number calculation, last segment work calculation, motor driver 3 control, stepper motor 6 working status monitoring and other functions.

[0081] The controller 3 receives the command sent by the host computer 1 through the human-computer interaction interface, receives the destination position of this operation, and calculates the direction of the stepper motor 6 operation, the required number of terminals, and whether the last section needs to reserve a reversal amount according to the position of the photoelectric switch 9. In order to ensure the smooth operation of the stepper motor 6, the stepper motor 6 starts and stops with uniform acceleration and uniform deceleration, which can be divided into 8, 16, 32, 64 and other levels according to the speed level. If the 64 level is used, at least 64 steps are required to complete an acceleration or deceleration process. The number of movement steps in the last section is determined by the destination position of the stepper motor and the movement distance of each step. If the number of steps at the last end is less than 64, the number of steps in the last section is the original number of steps plus 128, and then reversed by 128 after stopping. Through two uniform acceleration and deceleration processes, it runs smoothly in real time to overcome the loss of steps caused by insufficient torque or overshoot.

[0082] See also Figure 6 The present invention discloses a system for preventing a stepping motor from losing step, comprising:

[0083] A receiving module, the receiving module is used to receive position information of the stepping motor, the photoelectric switch, the first stopper and the second stopper collected by the host computer;

[0084] An analysis module is used to analyze the received information to determine the starting position of the stepper motor, the minimum number of steps for acceleration and deceleration of the stepper motor, the position of each photoelectric switch, the position of the first stopper, the position of the second stopper, and the segmentation of the number of steps;

[0085] A driving module, the driving module is used to send a driving instruction including a step number and a direction to the stepper motor, so as to drive the stepper motor to move;

[0086] An acquisition module, which monitors the state of each photoelectric switch, the state of the first stopper, the state of the second stopper and the travel position of the stepper motor based on the starting position of the stepper motor, the number of steps of the stepper motor, the position of each photoelectric switch, the position of the first stopper, the position of the second stopper and the segmentation of the number of steps, receives information fed back by each photoelectric switch, the first stopper and the second stopper, and acquires the last number of steps of the stepper motor;

[0087] The judgment module is used to determine the number of steps that the stepper motor completes in the last section, ensure that the stepper motor starts and stops according to acceleration and deceleration, and avoid the stepper motor from losing steps.

[0088] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for preventing a stepping motor from losing step, characterized in that: include: Receiving position information of the stepping motor, the photoelectric switch, the first stopper and the second stopper collected by the host computer; Parse the received information to determine the starting position of the stepper motor, the minimum number of steps for acceleration and deceleration of the stepper motor, the position of each photoelectric switch, the position of the first limiter, the position of the second limiter, and the segmentation of the number of steps; Send a driving instruction including the number of steps and direction to the stepper motor to drive the stepper motor to move; Based on the starting position of the stepper motor, the number of steps of the stepper motor, the position of each photoelectric switch, the position of the first stopper, the position of the second stopper and the segmentation of the number of steps, the state of each photoelectric switch, the state of the first stopper, the state of the second stopper and the moving position of the stepper motor are monitored, and the information fed back by each photoelectric switch, the first stopper and the second stopper is received to obtain the last number of steps of the stepper motor; Determine whether the last step of the stepper motor is greater than the minimum step of acceleration and deceleration; if so, the stepper motor completes the last step; if not, the stepper motor moves according to the last step plus the minimum step, and then reverses the minimum step to return to the expected position, and the stepper motor completes the last step.

2. The method for preventing a stepping motor from losing step according to claim 1, characterized in that: The position information of the stepper motor, photoelectric switch, first limiter and second limiter collected by the host computer is specifically as follows: the host computer calibrates the positions of the stepper motor, photoelectric switch, first limiter and second limiter, and the calibrated values ​​are respectively stored in the flash of the host computer.

3. The method for preventing a stepping motor from losing step according to claim 1, characterized in that: The step number segmentation is specifically as follows: based on the position of each photoelectric switch and the starting position of the stepper motor, the step number of each segment is obtained, and the photoelectric switch response that triggers the current segment is used as the completion mark of the current segment.

4. The method for preventing a stepping motor from losing step according to claim 1, characterized in that: The monitoring of the status information of each photoelectric switch is specifically as follows: when the stepper motor passes through the photoelectric switch, the photoelectric switch generates a switch signal to provide feedback that the stepper motor has run to the current position.

5. The method for preventing a stepping motor from losing step according to claim 1, characterized in that: The monitoring of the state of the first limiter and the state of the second limiter is specifically as follows: when the stepper motor moves to the position of the first limiter, the first limiter generates a contact signal, and provides feedback that the stepper motor has run to the current position, and the stepper motor stops moving; when the stepper motor moves to the position of the second limiter, the second limiter generates a contact signal, and provides feedback that the stepper motor has run to the current position, and the stepper motor stops moving.

6. The method for preventing a stepping motor from losing step according to claim 1, characterized in that: The obtaining of the last step number of the stepper motor is specifically: the difference between the step number of the stepper motor and the position of the photoelectric switch which is opposite to the moving direction of the stepper motor and closest to the moving position of the stepper motor.

7. A system for preventing a stepping motor from losing step, characterized in that: include: A receiving module, the receiving module is used to receive position information of the stepping motor, the photoelectric switch, the first stopper and the second stopper collected by the host computer; An analysis module is used to analyze the received information to determine the starting position of the stepper motor, the minimum number of steps for acceleration and deceleration of the stepper motor, the position of each photoelectric switch, the position of the first stopper, the position of the second stopper, and the segmentation of the number of steps; A driving module, the driving module is used to send a driving instruction including a step number and a direction to the stepper motor, so as to drive the stepper motor to move; An acquisition module, which monitors the state of each photoelectric switch, the state of the first stopper, the state of the second stopper and the travel position of the stepper motor based on the starting position of the stepper motor, the number of steps of the stepper motor, the position of each photoelectric switch, the position of the first stopper, the position of the second stopper and the segmentation of the number of steps, receives information fed back by each photoelectric switch, the first stopper and the second stopper, and acquires the last number of steps of the stepper motor; The judging module is used to determine the number of steps that the stepping motor completes in the last section, and ensure that the stepping motor starts and stops according to acceleration and deceleration.

8. A device for preventing a stepping motor from losing step, characterized in that: include: A host computer (1), a controller (2), a motor driver (3), a photoelectric switch (9), a drive shaft, a first stopper (4), a second stopper (5) and a stepping motor (6); The host computer (1) is connected to a controller (2), and the controller (2) is connected to a motor driver (3); the motor driver (3) is connected to a stepper motor (6); the stepper motor (6) is arranged between a first stopper (4) and a second stopper (5), and the first stopper (4) and the second stopper (5) are used to limit the range of motion of the stepper motor (6); the photoelectric switch (9) is arranged between the first stopper (4) and the second stopper (5), and the photoelectric switch (9) is located on the drive shaft; the photoelectric switch (9) is connected to the controller (2); the first stopper (4) and the second stopper (5) are connected to the controller (2); The controller (2) is used to receive information transmitted by the host computer (1), collect the values ​​of the first limiter (4) and the second limiter (5) at the extreme position, sample the positions of N photoelectric switches (9), complete the segmentation of the number of steps, control the stepping motor (6) and monitor the state of the photoelectric switch (9); The photoelectric switch (9) is used to provide segmented feedback of the position of the stepping motor (6) to achieve closed-loop control of the stepping motor (6); The controller (2) can control the movement and stop of the stepper motor (6) by monitoring the running state of the stepper motor (6) and receiving information fed back by the photoelectric switch (9) and the first limiter (4) and the second limiter (5), and can judge the running state of the last section of the stepper motor (6), so that each start and stop of the stepper motor (6) has a uniform acceleration and uniform deceleration process; The number of steps in the last section is calculated to determine whether the last section meets the acceleration and deceleration process and whether it needs to be advanced and then reversed. The motor driver (3) controls the stepper motor (6) to complete the signal conversion, detects the photoelectric switch (9) signal in real time, and reads the working state of the stepper motor (6). If there is any abnormality, feedback is given to complete the human-computer interaction process.

9. The device for preventing a stepping motor from losing step according to claim 8, characterized in that: The driving shaft is a horizontal driving shaft (7); the first limiter (4) and the second limiter (5) are respectively located at two ends of the horizontal driving shaft (7); and the stepping motor (6) is located on one side of the horizontal driving shaft (7).

10. The device for preventing a stepping motor from losing step according to claim 8, characterized in that: The drive shaft is a 360° drive shaft (8); the first limiter (4) and the second limiter (5) are respectively located on the side of the 360° drive shaft (8); the photoelectric switch (9) is located on the side of the 360° drive shaft (8) and is located in the same interval formed by the first limiter (4) and the second limiter (5).

Citation Information

Patent Citations

  • Stepping motor acceleration and deceleration control method

    CN106341063A

  • Microswitch position adjusting method for positioning space optical load stepping motor

    CN112737437A

  • Out-of-step detecting mechanism of stepping motor

    CN202014220U

  • Method for obtaining an indication, in particular an initial indication, of an impending step loss in a stepper motor

    DE102014212614A1

  • Out-of-step position detecting method for stepping motor driving type hand

    JP1998080884A