Position and pressure controllable ultrasonic spot welding machine based on stepping motor driving
By adopting a stepper motor-driven control system in an ultrasonic spot welding machine, the precise position and pressure control of the pressure rod is achieved, and the problem of rapid and precise control difficulty in the existing technology is solved, the welding quality and speed are improved, and the equipment cost is reduced.
Patent Information
- Application Number
- CN202510596158.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-09
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2045-05-09
AI Technical Summary
Existing ultrasonic spot welders are difficult to achieve fast and precise position and pressure control, especially when taking into account high speed and low impact requirements, and the equipment costs are high.
The stepper motor-based control system is adopted, and the micro-step drive module of the stepper motor is combined with the encoder and gear transmission to achieve precise position and pressure control of the pressure rod.
The precise control of the position, pressure and processing time of the ultrasonic spot welding machine press rod is achieved, which improves the welding quality and speed, while reducing equipment costs and avoids dependence on the gas source.
Smart Images

Figure CN120095307A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of ultrasonic spot welding machines, and in particular relates to an ultrasonic spot welding machine driven by a stepping motor and with controllable position and pressure. Background Art
[0002] Ultrasonic spot welding is widely used in the welding of thermoplastic materials. Compared with traditional processes (such as gluing, electric ironing or screw fastening, etc.), it has significant advantages such as high production efficiency, good welding quality, environmental protection and energy saving. The common ultrasonic spot welding machine pressure rod adopts cylinder control. Cylinder control can achieve basic pressure control, but there are many disadvantages: in addition to the disadvantages of needing an air source and high working noise, the cylinder, especially the small diameter cylinder, is affected by variables such as air source pressure, ambient temperature, humidity, etc., and its characteristics vary greatly. It is difficult to stably control the pressure and processing time, which seriously affects the quality of spot welding. For example, the Chinese patent application with publication number CN112756767A provides an ultrasonic spot welding machine, which uses a cylinder, a grating ruler and a pressure sensor to achieve position control and pressure control, but it is difficult to achieve fast and accurate position and pressure control by controlling the cylinder through a pressure regulating valve, and it is difficult to take into account the requirements of high speed and low impact.
[0003] The stepper motor is a commonly used actuator in the industrial field. It directly controls the rotation angle of the motor through the input electric pulse signal and is widely used in open-loop position control systems. In order to improve the position control accuracy, the position closed-loop control of the stepper motor can be achieved by adding a low-cost encoder. Replacing the cylinder used for the pressure rod control of the existing ultrasonic spot welding machine with a stepper motor can easily achieve the position control of the pressure rod, but the pressure control problem of the pressure rod needs to be solved. For example, the Chinese patent application with publication number CN115415660A provides a servo motor loaded ultrasonic spot welding machine, which uses a servo motor, a grating ruler and a pressure sensor to achieve position control and pressure control, but the use of the servo motor and its driver and the pressure sensor greatly increases the equipment cost.
[0004] Therefore, it is a key technical problem to be solved in this field to achieve precise position and pressure control simultaneously with a stepper motor control system without increasing hardware costs. Summary of the invention
[0005] In view of the above, the present invention provides an ultrasonic spot welding machine driven by a stepper motor with controllable position and pressure, which can simultaneously achieve precise position and pressure control and has the advantages of simple structure, low cost, no need for gas source, and low noise.
[0006] An ultrasonic spot welding machine driven by a stepper motor and with controllable position and pressure, which consists of two parts: a mechanical device and a control unit. The mechanical device includes a stepper motor with an encoder, a base plate, a gear, a rack, a guide rail, a slider and a pressure rod. Limit blocks are provided at both ends of the guide rail. The stepper motor and the guide rail are mounted and fixed on the base plate. The gear is fixed on the main shaft of the stepper motor. The slider is arranged on the guide rail. A connecting plate is fixed on the slider. The pressure rod is mounted on the bottom of the connecting plate. The rack is mounted on the side of the connecting plate and meshes with the gear. When working, the main shaft of the stepper motor rotates and the slider slides on the guide rail through the above connection relationship, thereby driving the pressure rod to move up and down. The control unit includes a microcontroller and a stepper motor micro-step driving module. The microcontroller automatically detects and sets the reference point position and the working point position of the pressure rod through an initialization program after power-on. During normal working, the position control mode is used to make the pressure rod quickly move down to the working point position, and the pressure control mode is switched to perform spot welding processing. After the processing is completed, the position control mode is switched to make the pressure rod quickly return to the reference point position. During the entire control process, the microcontroller sends corresponding pulses to the stepper motor micro-step driving module. The stepper motor micro-step driving module controls the rotation of the stepper motor spindle according to the received pulses, and controls the pressure rod through transmission.
[0007] Furthermore, in the position control mode, the microcontroller determines the pulse direction and calculates the total number of pulses required according to the current position and target position of the stepper motor rotor. Combined with the speed requirements, a pulse sequence is generated in an acceleration-constant speed-deceleration mode (by setting the number of pulses and pulse period in each stage), and these pulses are sent in sequence to the stepper motor micro-step drive module to control the rotation of the stepper motor spindle so that the pressure rod reaches the target position.
[0008] Furthermore, the microcontroller needs to calculate the current misalignment angle of the stepper motor before sending each pulse. i ,like- i m ≤ i ≤ i m , the pulse is sent normally; otherwise, the pulse is temporarily postponed and re-sent after a certain interval. i m is the misalignment angle corresponding to the maximum output torque. This ensures that the misalignment angle of the stepper motor remains within a safe range, avoids step loss, and enables the stepper motor to exert its maximum output torque.
[0009] Furthermore, when the microcontroller has sent all the pulse sequences, it starts the target position positioning mode and periodically compares the current position of the stepper motor rotor. D and target location D 1 ,likeD < D 1 - e , the microcontroller sends a positive pulse to the stepper motor micro-step drive module; if D > D 1 + e , the microcontroller sends a reverse pulse to the stepper motor micro-step drive module; if D 1 - e ≤ D ≤ D 1 + e , it means the positioning is successful and the target position has been reached. e The allowable deviation of the set position.
[0010] Furthermore, the current position and target position of the stepper motor rotor are represented by an encoder in the form of pulse counts.
[0011] Furthermore, in the pressure control mode, the microcontroller periodically compares the current output torque of the stepper motor. T and target torque T 1 ,like T < T 1 - s , the microcontroller sends a positive pulse to the stepper motor micro-step drive module; if T > T 1 + s , the microcontroller sends a reverse pulse to the stepper motor micro-step drive module; if T 1 - s ≤ T ≤ T 1 + s , it means that the target pressure has been reached. s The permissible deviation of the set torque.
[0012] Furthermore, the current output torque T and target torque T 1 The calculation expression is as follows:
[0013]
[0014] in: T max is the maximum output torque of the stepper motor at rated current, i m is the misalignment angle corresponding to the maximum output torque, i is the current misalignment angle of the stepper motor, r is the pitch circle radius of the gear, F 1 is the target pressure.
[0015] Furthermore, in the initialization program, the microcontroller uses the pressure control mode to send pulses to the stepper motor micro-step drive module, and the pressure rod is gradually moved upward by rotating the stepper motor main shaft. When the output torque of the stepper motor reaches the target torque T 2 When the slider is supported by the limit block at the upper end of the guide rail, the current position of the stepper motor rotor plus an appropriate deviation is used as the reference point position of the pressure rod; then the microcontroller also adopts the pressure control mode, and the pressure rod is gradually moved downward by rotating the stepper motor spindle. When the output torque of the stepper motor reaches the target torque T 3 When the pressure rod is supported by the workpiece to be spot welded, the current position of the stepper motor rotor minus an appropriate deviation is taken as the pressure rod working point position.
[0016] Furthermore, the target torque T 2 =- K 2 × T max , target torque T 3 = K 3 × T max ,in K 2 and K 3 It is a proportional coefficient set between 0 and 1.
[0017] Based on the above technical solution, the present invention has the following beneficial technical effects: 1. The present invention can realize accurate control of the position, pressure and processing time of the pressure rod of the ultrasonic spot welding machine, thereby greatly improving the processing quality and processing speed of the ultrasonic spot welding.
[0018] 2. The spot welding machine of the present invention has a simple structure and low cost. Compared with the solution using a servo motor and a pressure sensor, the microcontroller, stepper motor micro-step control module and stepper motor with encoder used in the present invention are all widely used and low-cost products in the market.
[0019] 3. The spot welding machine of the present invention has an automatic detection function of the processing position and is easy to use. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 1 is a schematic diagram of the structure of the mechanical device of the ultrasonic spot welding machine of the present invention, wherein 1 is a base plate, 2 is a stepping motor with an encoder, 3 is a gear, 4 is a connecting plate, 5 is a rack, 6 is a slider, 7 is a guide rail, 8 is an upper limit block, 9 is a lower limit block, and 10 is a pressure rod.
[0021] Figure 2 It is a schematic diagram of the control flow of the microcontroller in the present invention. DETAILED DESCRIPTION
[0022] In order to describe the present invention more specifically, the technical solution of the present invention is described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0023] like Figure 1 As shown, the ultrasonic spot welding machine driven by a stepper motor and with controllable position and pressure of the present invention includes a mechanical device and a control unit. The mechanical device includes: a substrate 1, a stepper motor 2 with an encoder, a gear 3, a connecting plate 4, a rack 5, a slider 6, a guide rail 7, an upper limit block 8, a lower limit block 9, and a pressure rod 10; the control unit includes a microcontroller and a stepper motor micro-step driving module.
[0024] The stepper motor 2 is fixed on the base plate 1, the gear 3 is fixed on the main shaft of the stepper motor 2, the rack 5, the slider 6 and the pressure rod 10 are fixed on the connecting plate 4, the guide rail 7 is installed on the side of the base plate 1, and the upper limit block 8 and the lower limit block 9 are fixed on the guide rail 7.
[0025] Stepper motor 2 uses a two-phase hybrid stepper motor model 42BYG47-2004-M1000 with a step angle of 1.8 degrees ( i m =1.8 degrees), rated current 2A, maximum holding torque T max =0.5Nm, 1000-line encoder (two-phase quadrature mode 4000PPR).
[0026] Pitch circle radius of gear 3 r =10mm, maximum telescopic stroke of the robot arm L =150mm; The microcontroller model used is STM32F103VET6, the advanced timer TIM1 is configured in 16-bit quadrature encoder mode, the position register of TIM1 is TIM1_CNT, and the other timer TIM2 is configured in software timer mode to send pulse sequences in timed interrupt mode.
[0027] The stepper motor micro-stepping drive module uses the model TB6600, which is set to a constant current 1 / 16 micro-stepping function (64 beats / tooth, equivalent to 3200 pulses / turn of the motor), with an output current peak of 2A.
[0028] like Figure 2 As shown, in this embodiment, the microcontroller needs to complete the following initialization after power-on: (1) The clockwise rotation direction of the motor is defined as the positive direction, and the downward movement of the robot arm is defined as the positive direction; (2) Configure the advanced timer TIM1 to the orthogonal encoder mode, and the clockwise direction of the motor is the encoder positive counting direction; (3) Configure timer TIM2 to software timer mode; (4) Enable TB6600 output; (5) Initialize the stepper motor rotor position angle i R and the electron current vector angle i I ; At this time, the pressure rod has no load, and the stepper motor is at a near zero torque output, and can be initialized. i R = i I =0, the count value of the position register TIM 1_ CNT =0X8000, the specific calculation formula is as follows:
[0029]
[0030] Where: Δ i i The motor stator current vector angle corresponding to the pulse command i I Change value, n is the number of pulses; i When it is a positive pulse command, Δ i i =360 / 3200; pulse i When it is a reverse pulse command, Δ i i =-360 / 3200.
[0031] In this embodiment, the maximum stroke of the pressure rod L =150mm, gear pitch circle radius r =10mm, so the range of the quadrature encoder timer count value within the full stroke is:
[0032] TIM 1_ CNT After initialization and assignment of 0X8000, it can ensure that the whole stroke TIM 1_ CNT The value is within the range of 16-bit unsigned numbers, which is convenient for processing.
[0033] (6) Automatically detect and set the reference point of the pressure rod P 0 ; The microcontroller executes the stepper motor torque control program, and the TIM2 interrupt program (timing interrupt interval 0.1ms) calculates the current output torque. The specific calculation formula is as follows:
[0034] if T <-0.75 T max , send a positive pulse command; if T >-0.65 T max , send reverse pulse command; until -0.75 T max ≤ T ≤-0.65 T max , the stepper motor reaches the target torque and the pressure rod reaches the upper limit position.
[0035] Distance below the upper limit L 0 =1mm is set as the reference point P 0 , the specific calculation formula is as follows:
[0036] (7) Automatically detect and set the working point position P 1 (The judgment basis is that the downward resistance of the pressure rod reaches 0.7 T max ); The microcontroller executes the stepper motor torque control program to set the target torque T 1 =0.7 T max , the pressure rod moves downward to the working limit point (i.e. it contacts the workpiece to be spot welded) and moves at a distance above the working limit point. L 1 =0.5mm is set as the working point, and the specific calculation formula is as follows:
[0037] (8) Return to the reference point P0 ; The microcontroller executes the stepper motor position control mode and calculates the target position. The specific calculation formula is as follows:
[0038] Calculate the number of pulses required to reach the target position from the current position N =( TIM 1_ CNT - P 0 )×3200 / 4000, combined with the speed requirements, the pulse sequence data (including the total number of pulses in each stage of acceleration, constant speed and deceleration and the period of each pulse) is calculated according to the acceleration-constant speed-deceleration mode, the TIM2 timing interrupt is started, and these pulses are sent to the stepper motor micro-step drive module in sequence to control the stepper motor to rotate and drive the pressure rod to reach the target position.
[0039] Before each pulse is sent, the microcontroller calculates the current misalignment angle of the stepper motor i = i I(n) - i R ,if- i m ≤ i ≤ i m , send the pulse normally; otherwise, postpone sending the pulse and try again at the next interruption.
[0040] When the pulse sequence is sent, the control system enters the target position positioning. The specific process is as follows: if TIM 1_ CNT < TIM 1_ CNT 1 -2, send a positive pulse command; if TIM 1_ CNT > TIM 1_ CNT 1 +2, send reverse pulse command; if TIM 1_ CNT 1 -2≤ TIM 1_ CNT ≤ TIM 1_ CNT 1 +2, the stepper motor reaches the target position and the positioning action is completed.
[0041] After initialization, the ultrasonic spot welding machine pressure rod control system enters the normal working mode. After receiving the working instruction, the stepper motor enters the position control mode and quickly descends to the working point position. P 1 ; Arrive at the working point P 1 Then the stepper motor enters the torque control mode, and the target torque T 1 = F 1 / r ( r is the gear pitch circle radius, F 1 is the target pressure); when the target pressure is reached, the processing time countdown starts, and when the stepper motor enters the position control mode, it quickly returns to the pressure rod reference point P 0 , one work is completed.
[0042] In summary, the ultrasonic spot welding machine driven by a stepper motor and with controllable position and pressure can realize automatic detection of welding position, controllable welding pressure and controllable welding time.
[0043] The above description of the embodiments is to facilitate the understanding and application of the present invention by those skilled in the art. It is obvious that those skilled in the art can easily make various modifications to the above embodiments and apply the general principles described herein to other embodiments without creative work. Therefore, the present invention is not limited to the above embodiments. Improvements and modifications made by those skilled in the art to the present invention based on the disclosure of the present invention should be within the protection scope of the present invention.
Claims
1. An ultrasonic spot welding machine driven by a stepper motor with controllable position and pressure, consisting of a mechanical device and a control unit, characterized in that: The mechanical device comprises a stepper motor with an encoder, a base plate, a gear, a rack, a guide rail, a slider and a pressure rod, both ends of the guide rail are provided with limit blocks, the stepper motor and the guide rail are mounted and fixed on the base plate, the gear is fixed on the main shaft of the stepper motor, the slider is arranged on the guide rail, a connecting plate is fixed on the slider, the pressure rod is mounted on the bottom of the connecting plate, the rack is mounted on the side of the connecting plate and meshes with the gear; when working, the main shaft of the stepper motor rotates and the slider slides on the guide rail through the above connection relationship, thereby driving the pressure rod to move up and down; The control unit includes a microcontroller and a stepper motor micro-step driving module. The microcontroller automatically detects and sets the reference point position and the working point position of the pressure rod through an initialization program after power-on. During normal working, the position control mode is used to make the pressure rod quickly move down to the working point position, and the pressure control mode is switched to perform spot welding processing. After the processing is completed, the position control mode is switched to make the pressure rod quickly return to the reference point position. During the entire control process, the microcontroller sends corresponding pulses to the stepper motor micro-step driving module. The stepper motor micro-step driving module controls the rotation of the stepper motor spindle according to the received pulses, and controls the pressure rod through transmission.
2. According to claim 1, an ultrasonic spot welding machine driven by a stepper motor and with controllable position and pressure, characterized in that: In the position control mode, the microcontroller determines the pulse direction and calculates the total number of pulses required according to the current position and target position of the stepper motor rotor. Combined with the speed requirements, a pulse sequence is generated in an acceleration-constant speed-deceleration mode, and these pulses are sent in sequence to the stepper motor micro-step drive module to control the rotation of the stepper motor spindle so that the pressure rod reaches the target position.
3. The ultrasonic spot welding machine driven by a stepper motor and with controllable position and pressure according to claim 1, characterized in that: The microcontroller needs to calculate the current misalignment angle of the stepper motor before sending each pulse. θ ,like- θ m ≤ θ ≤ θ m , then the pulse is sent normally; Otherwise, postpone sending this pulse and try to send it again after a certain period of time. θ m is the misalignment angle corresponding to the maximum output torque.
4. The ultrasonic spot welding machine driven by a stepper motor and with controllable position and pressure according to claim 2, characterized in that: When the microcontroller has sent all the pulse sequences, it starts the target position positioning mode and periodically compares the current position of the stepper motor rotor. D and target location D 1. If D < D 1- ε , the microcontroller sends a positive pulse to the stepper motor micro-step drive module; if D > D 1+ ε , the microcontroller sends a reverse pulse to the stepper motor micro-step drive module; like D 1- ε ≤ D ≤ D 1+ ε , it means the positioning is successful and the target position has been reached. ε The allowable deviation of the set position.
5. The ultrasonic spot welding machine driven by a stepper motor and with controllable position and pressure according to claim 2, characterized in that: The current position and target position of the stepper motor rotor are represented by an encoder in the form of pulse counts.
6. The ultrasonic spot welding machine driven by a stepper motor and with controllable position and pressure according to claim 1, characterized in that: In the pressure control mode, the microcontroller regularly compares the current output torque of the stepper motor T and target torque T 1. If T < T 1- σ , the microcontroller sends a positive pulse to the stepper motor micro-step drive module; if T > T 1+ σ , the microcontroller sends a reverse pulse to the stepper motor micro-step drive module; if T 1- σ ≤ T ≤ T 1+ σ , it means that the target pressure has been reached. σ The permissible deviation of the set torque.
7. The ultrasonic spot welding machine driven by a stepper motor and with controllable position and pressure according to claim 6, characterized in that: The current output torque T and target torque T The calculation expression of 1 is as follows: ; ; in: T max is the maximum output torque of the stepper motor at rated current, θ m is the misalignment angle corresponding to the maximum output torque, θ is the current misalignment angle of the stepper motor, r is the pitch circle radius of the gear, F 1 is the target pressure.
8. The ultrasonic spot welding machine driven by a stepper motor and with controllable position and pressure according to claim 1, characterized in that: In the initialization program, the microcontroller uses the pressure control mode to send pulses to the stepper motor micro-step drive module, and the pressure rod is gradually moved upward by rotating the stepper motor spindle. When the output torque of the stepper motor reaches the target torque T 2. The slider is held by the limit block at the upper end of the guide rail. At this time, the current position of the stepper motor rotor plus an appropriate deviation is used as the reference point position of the pressure rod. Then the microcontroller also adopts the pressure control mode to rotate the stepper motor spindle to make the pressure rod gradually move downward. When the output torque of the stepper motor reaches the target torque, T At 3, the pressure rod is supported by the workpiece to be spot welded. At this time, the current position of the stepper motor rotor minus an appropriate deviation is used as the pressure rod working point position.
9. The ultrasonic spot welding machine driven by a stepper motor and with controllable position and pressure according to claim 8, characterized in that: The target torque T 2=- K 2× T max , target torque T 3= K 3× T max ,in K 2 and K 3 is the proportional coefficient set between 0 and 1.
Citation Information
Patent Citations
Ultrasonic vertical metal spot welding machine
CN112756767A
Servo motor loading type ultrasonic spot welding machine
CN115415660A
Full-servo ultrasonic welding machine
CN107262907A
Servo pressure device for metal ultrasonic welding force regulation and control
CN111014941A
Ultrasonic welding machine
CN112692424A