Welding control method, device and equipment and computer storage medium
Through automated welding control methods, including position initialization and real-time monitoring, the problems of low efficiency and unstable quality of steel wire welding are solved, and an efficient and accurate welding process is achieved.
Patent Information
- Application Number
- CN202510330163.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2025-05-09
AI Technical Summary
In the prior art, wire welding efficiency is low, manual operation leads to large differences in welding points, affecting the quality of the wire mesh.
Position initialization is performed by obtaining control instructions, using sensor detection signals to ensure the position is accurate, and then welding is automatically started. Monitor the change in the position of the workpiece during the welding process in real time, adjust the welding parameters dynamically, and ensure the stability and accuracy of the welding process.
It improves welding efficiency and accuracy, reduces welding defects and safety problems caused by manual operation, and reduces production costs.
Smart Images

Figure CN119952356A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of welding equipment, and in particular to a welding control method, device, equipment and computer storage medium. Background Art
[0002] With the development of modern industry, the demand for product diversification is constantly increasing. Steel wires are welded to form wire mesh, which has different welding forms.
[0003] In the related art, the steel wire needs to be welded manually. The manual welding method has low welding efficiency and different welding conditions of different workers are also different, which easily leads to large differences in welding points and uneven quality of the wire mesh. Summary of the invention
[0004] In order to improve welding efficiency, the present application provides a welding control method, device, equipment and computer storage medium.
[0005] In the first aspect, a welding control method provided by the present application adopts the following technical solution: A welding control method, comprising: Obtaining a first control instruction; Performing position initialization based on the first control instruction; Acquire a first detection signal transmitted by an initialization sensor; Determining whether the position initialization is completed based on the first detection signal; If the position initialization is completed, determining whether a welding instruction is received; If the welding instruction is received, a start signal is sent based on the welding instruction to control the start of welding.
[0006] By adopting the above technical solution, the first control instruction is obtained and the position is automatically initialized, so that the preliminary automation of the welding process is realized to prepare for welding; the first detection signal transmitted by the initialization sensor is used to determine whether the position initialization is completed, ensuring that the preparation work before welding meets the precise requirements, which helps to improve the accuracy and reliability of welding and reduce welding defects caused by improper position. After receiving the welding instruction, the welding process and work can be started automatically, which can greatly improve the welding efficiency and reduce the cost of welding work compared to manual welding. And the overall operation can be automated without human intervention, which can also reduce safety issues caused by improper manual operation.
[0007] Optionally, after sending a start signal based on the welding instruction to control the start of welding, the method further includes: Get the distance value transmitted by the distance sensor; Calculating a distance change value based on the distance values at adjacent moments; Determining whether the distance change value is equal to a preset moving distance value; If the distance change value is not equal to the preset moving distance value, calculating a first difference value based on the distance change value and the preset moving distance value; assigning the first difference value to an error value; Output error value and stop welding signal.
[0008] By adopting the above technical solution, the distance value transmitted by the distance sensor is obtained in real time, and the position change of the workpiece during the welding process can be monitored in real time, which helps to ensure the accuracy of the welding operation and avoid welding defects caused by position offset. The distance change value is calculated based on the distance value at adjacent moments, and compared with the preset moving distance value, so that the deviation of the position movement can be discovered in time. By calculating the first difference and assigning it to the error value, the welding parameters are dynamically adjusted or error compensation is performed to correct the deviation, thereby maintaining the stability and accuracy of the welding process. When the distance change value is not equal to the preset moving distance value, the error value and the stop welding signal are output. A safety protection mechanism is set for the welding process, which can stop welding in time when a significant position deviation is detected to prevent equipment damage or workpiece scrapping caused by position errors. With real-time monitoring and dynamic adjustment, the system can ensure that the position change during the welding process meets the preset requirements, thereby improving the welding quality and consistency and achieving high-precision welding. More intelligent and automated, reducing manual participation and improving efficiency.
[0009] Optionally, before outputting the error value and stopping the welding signal, the method further includes: Acquire a corresponding absolute value based on the first difference; Determining whether the absolute value exceeds a first preset range; If the absolute value exceeds the first preset range, a first adjustment signal is output based on the error value; and it is determined in real time whether a positioning signal transmitted by a positioning sensor is received; If the positioning signal is received, the output of the first adjustment signal is stopped and a welding electrode movement signal is output to perform welding.
[0010] If the absolute value does not exceed the first preset range, a first adjustment signal is output based on the error value and then a welding electrode movement signal is output to perform welding.
[0011] By adopting the above technical solution, calculating the absolute value of the first difference and comparing it with the first preset range, the error size in the welding process can be judged more accurately, so as to judge whether it meets the dynamic adjustment situation. The dynamic adjustment mechanism can reduce the error accumulation in the welding process and improve the welding quality and consistency. When the absolute value exceeds the first preset range, it indicates that the error is large. At this time, it is judged in real time whether the positioning signal is received, that is, in addition to outputting the adjustment signal, it is also necessary to use the additional positioning signal for judgment to ensure that welding is performed after accurate positioning, which further enhances stability and reliability.
[0012] Optionally, after sending a start signal based on the welding instruction to control the start of welding, the method further includes: Acquire a first current pressure value transmitted by the pressure sensor; Determining whether the first current pressure value exceeds a second preset range; If the first current pressure value exceeds the second preset range, outputting a signal for stopping powering on the welding electrode; outputting a second adjustment signal based on the first current pressure value so that the first current pressure value is within the second preset range; Wherein, the second adjustment signal is output to the driving unit of the welding electrode to control the movement of the driving unit so as to adjust the first current pressure value; The welding electrode power-on signal is output to complete the welding action.
[0013] By adopting the above technical solution, the first current pressure value transmitted by the pressure sensor is obtained in real time and compared with the second preset range, so that the system can accurately control the pressure during the welding process. Appropriate pressure is essential to ensure the quality of the weld, and can avoid problems such as deformation of the workpiece due to excessive pressure or loose welding due to too little pressure. When the first current pressure value exceeds the second preset range, the system responds quickly and outputs a signal to stop the welding electrode from being powered on to avoid continuing welding under poor pressure. Based on the first current pressure value, a second adjustment signal is output, and the pressure value is adjusted by controlling the movement of the driving unit of the welding electrode to return it to the preset range. The addition of pressure monitoring and adjustment steps actually improves the overall production efficiency, corrects pressure deviations in a timely manner, and avoids rework and waste caused by poor welding, thereby saving time and cost.
[0014] Optionally, before outputting the second adjustment signal based on the first current pressure value, the method further includes: Acquire a first moment when the first current pressure value exceeds the second preset range; Acquire a first actual stroke of the driving unit based on the first moment; Determining whether the first actual stroke is less than a preset stroke; Outputting a first control signal to control the driving unit to continue moving; Get the first delay time; Acquire a second time based on the first delay time and the first time; determining whether the first actual stroke increases based on the second moment; If the first actual stroke increases, obtaining the upper pressure limit value; outputting a second control signal based on the upper pressure limit value to control the driving unit to continue moving; When the first current pressure value is equal to the pressure upper limit value, determining whether the first actual stroke is equal to the preset stroke; If the first actual stroke is equal to the preset stroke, outputting the welding electrode power-on signal to complete the welding action; If the first actual stroke is not equal to the preset stroke, a homing signal is output to make the driving unit return; and an alarm signal is output.
[0015] By adopting the above technical solution, the first moment when the first current pressure value exceeds the second preset range is obtained, and the first actual stroke of the driving unit is obtained based on the moment. When the first actual stroke is less than the preset stroke, although the actual pressure value exceeds the second preset range, the first control signal is still output to control the driving unit to continue to move. After the first delay time, the second moment is obtained, and then it is judged whether the first actual stroke increases at the second moment, that is, whether the driving unit continues to move successfully. If the first actual stroke increases, the upper limit value of pressure is obtained, and then the second control signal is output based on the upper limit value of pressure to control the driving unit to continue to move. There may be a situation where the welded part is bent, and the arc of the welded part is upward, resulting in the actual stroke not reaching the preset stroke, but the pressure value exceeds the range. When the first current pressure value is equal to the upper limit value of pressure, the electronic device determines whether the first actual stroke is equal to the preset stroke, that is, whether the bending of the welded part is suppressed by increasing the pressure to reach the preset stroke. If the first actual stroke is equal to the preset stroke, it means that the welding conditions are met at this time, so the welding click power-on signal is output at this time to complete the welding. On the contrary, if the first actual stroke is not equal to the preset stroke, it means that even if the maximum pressure value has been reached, the bent part of the welded part cannot be pressed down and the welding condition cannot be achieved, so an alarm signal is output to prompt the user.
[0016] Optionally, after outputting the welding electrode power-on signal to complete the welding action, the method further includes: Get the first current welding point position; Acquire the position of the adjacent welding point based on the first current welding point position; Determine whether the adjacent welding points have been welded; If the adjacent welding point position has been welded, output a re-welding signal to re-weld the adjacent welding point position; Acquire a second actual stroke and a second current pressure value of the driving unit during re-welding; determining whether the second actual itinerary is consistent with the preset itinerary; If the second actual stroke is equal to the preset stroke, determining whether the second current pressure value is within the second preset range; If the second current pressure value is within the second preset range, a continue welding control signal is output.
[0017] By adopting the above technical solution, the first current welding point position is obtained, that is, the position where the abnormality occurs, and then the position of the adjacent welding point of the first current welding point position is obtained to determine whether the adjacent welding point position has been welded. If the adjacent welding point position has been welded, the adjacent welding point position is re-welded. Because the abnormal position may be due to the bending of the welded part, the bending part is pressed down by adjusting the pressure, which may affect the welded position, so re-welding is required to ensure the stability of the welding and avoid open welding due to stress.
[0018] Optionally, when the first actual stroke does not increase, the method further includes: Get the second current welding point position; Acquire a current welding portion based on the second current welding point position; An interval welding control signal is output based on the current welding portion.
[0019] By adopting the above technical solution, when the first actual stroke does not increase, it indicates that even if the pressure is adjusted, the part that may be bent cannot be pressed down, so the second current welding point position is obtained, and then the current welding part is obtained based on the second current welding point position, and then the interval welding signal is output based on the current welding part, that is, in the subsequent welding process, the current welding part is skipped.
[0020] In the second aspect, the present application provides a welding control device adopting the following technical solution: A welding control device, comprising: A first acquisition module, used to acquire a first control instruction; An initialization module, used for performing position initialization based on the first control instruction; A second acquisition module, used for acquiring a first detection signal transmitted by an initialization sensor; A first judgment module, used for judging whether the position initialization is completed based on the first detection signal; if the position initialization is completed, entering into a second judgment module; A second judgment module is used to judge whether a welding instruction is received; if the welding instruction is received, the output module is transferred; The output module is used to send a start signal based on the welding instruction to control the start of welding.
[0021] In a third aspect, the present application provides an electronic device that adopts the following technical solution: An electronic device comprises a processor, wherein the processor is coupled to a memory; the processor is used to execute a computer program stored in the memory, so that the electronic device executes the method described in the first aspect.
[0022] In a fourth aspect, the present application provides a computer-readable storage medium that adopts the following technical solution: A computer-readable storage medium includes a computer program or an instruction. When the computer program or the instruction is executed on a computer, the computer is caused to execute the method according to the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a flow chart of the welding control method of an embodiment of the present application.
[0024] Figure 2 It is a block diagram of a welding control device according to an embodiment of the present application.
[0025] Figure 3 It is a block diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0026] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. Technical users in this field can make non-creative modifications to the present embodiment as needed after reading this specification. However, as long as it is within the scope of the claims of the present application, it is protected by the patent law.
[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technical users in the field without creative work are within the scope of protection of this application.
[0028] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0029] The embodiment of the present application discloses a welding control method. The welding control method can be executed by an electronic device. The electronic device can be a server or a terminal device, wherein the server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. The terminal device can be a smart phone, a tablet computer, a desktop computer, etc., but is not limited thereto.
[0030] The present application embodiment discloses a welding control method. Figure 1 , a welding control method includes the following main process description (S100~S600): Step S100, obtaining a first control instruction; Step S200, initializing the position based on the first control instruction; Step S300, obtaining a first detection signal transmitted by an initialization sensor; Step S400, judging whether the position initialization is completed based on the first detection signal; if the position initialization is completed, proceeding to step S500; Step S500, determining whether a welding instruction is received; if a welding instruction is received, proceeding to step S600; Step S600: sending a start signal based on the welding instruction to control the start of welding.
[0031] The electronic device obtains the first control instruction, and performs position initialization based on the first control instruction, that is, each part of the welding device is reset and is in the initial state and position ready for welding. Then the electronic device obtains the first detection signal transmitted by the initialization sensor. The initialization sensor can detect whether each part is in the initial position, and judge whether the position initialization is completed based on the first detection signal. By setting the initialization sensor for detection, it can accurately know whether the initialization process is completed. If it is determined that the position initialization is completed, it means that welding can be performed at this time, so the electronic device determines whether the welding instruction is received. If the welding instruction is received, the electronic device sends a start signal based on the welding instruction to start welding, that is, the electronic device outputs the start signal to control and start the welding process.
[0032] As an optional implementation manner of an embodiment of the present application, after sending a start signal based on a welding instruction to control the start of welding, the distance value transmitted by the distance sensor is obtained; the distance change value is calculated based on the distance values at adjacent moments; it is determined whether the distance change value is equal to a preset moving distance value; if the distance change value is not equal to the preset moving distance value, a first difference is calculated based on the distance change value and the preset moving distance value; the first difference is assigned to an error value; and the error value and a stop welding signal are output.
[0033] After the electronic device sends a start signal based on the welding instruction to start welding, the electronic device obtains the distance value transmitted by the distance sensor, the distance value is the distance between the welded part and the initial position, the electronic device calculates the distance change value based on the distance values at adjacent moments, that is, the electronic device calculates the distance each time the welded part moves, and the electronic device determines whether the distance change value is equal to the preset moving distance value. If the distance change value is not equal to the preset moving distance value, the electronic device calculates the first difference value based on the distance change value and the preset moving distance value, and then assigns the first difference value to the error value, and the electronic device outputs the error value and also outputs a stop welding signal. Since there is a problem with the moving distance of the welded part, the electronic device outputs the error value to prompt the user and stops welding at the same time to avoid the subsequent continuous abnormal moving distance causing the entire welded part to be scrapped.
[0034] The first difference may be a positive number or a negative number, and can represent different error directions. For example, when the first difference is a positive number, it means that the moving distance of the welded part exceeds the preset moving distance value, and when the first difference is a negative number, it means that the moving distance of the welded part does not reach the preset moving distance value.
[0035] As an optional implementation manner of an embodiment of the present application, before outputting the error value and stopping the welding signal, it also includes: obtaining the corresponding absolute value based on the first difference; judging whether the absolute value exceeds the first preset range; if the absolute value exceeds the first preset range, outputting a first adjustment signal based on the error value; and judging in real time whether a positioning signal transmitted by the positioning sensor is received; if the positioning signal is received, stopping outputting the first adjustment signal and outputting a welding electrode movement signal for welding; if the absolute value does not exceed the first preset range, outputting the first adjustment signal based on the error value and then outputting a welding electrode movement signal for welding.
[0036] Before the electronic device outputs the stop welding signal, the electronic device obtains the corresponding absolute value based on the first difference, and then determines whether the absolute value exceeds the first preset range, that is, determines whether the distance between the weldment and the preset position is too large. If the absolute value exceeds the first preset range, the electronic device outputs the first adjustment signal based on the error value, and the electronic device determines in real time whether it has received the positioning signal transmitted by the positioning sensor. Because the distance error is too large, in addition to adjusting based on the error value, it is also necessary to use the positioning sensor for positioning. If the electronic device receives the positioning signal of the positioning sensor, it indicates that the position adjustment of the weldment is completed and the position is accurate, so the electronic device stops outputting the first adjustment signal and outputs the welding electrode movement signal to complete the welding work. If the absolute value does not exceed the first preset range, the electronic device outputs the first adjustment signal and then outputs the welding electrode movement signal to complete the welding work.
[0037] As an optional implementation of an embodiment of the present application, after sending a start signal based on a welding instruction to control the start of welding, it also includes: obtaining a first current pressure value transmitted by a pressure sensor; determining whether the first current pressure value exceeds a second preset range; if the first current pressure value exceeds the second preset range, outputting a welding electrode power-on signal; outputting a second adjustment signal based on the first current pressure value to make the first current pressure value within the second preset range; wherein the second adjustment signal is output to a drive unit of the welding electrode to control the movement of the drive unit to adjust the first current pressure value; and outputting a welding electrode power-on signal to complete the welding action.
[0038] After the electronic device sends a start signal based on the welding instruction, the electronic device obtains the first current pressure value transmitted by the pressure sensor. The pressure sensor is arranged at the drive unit and is used to detect the pressure between the welding electrode and the weldment. The electronic device determines whether the first current pressure value exceeds the second preset range. If the first current pressure value exceeds the second preset range, it indicates that the pressure is abnormal at this time, so the electronic device outputs a signal to stop powering on the welding electrode, thereby stopping the welding work. The electronic device outputs a second adjustment signal based on the first current pressure value to make the first current pressure value within the second preset range, that is, adjusts the drive unit to change the first current pressure value, and outputs a welding motor power-on signal after the adjustment is completed to complete the welding action.
[0039] As an optional implementation manner of an embodiment of the present application, before outputting a second adjustment signal based on a first current pressure value, it also includes: obtaining a first moment when the first current pressure value exceeds a second preset range; obtaining a first actual stroke of the drive unit based on the first moment; judging whether the first actual stroke is less than the preset stroke; if the first actual stroke is less than the preset stroke, outputting a first control signal to control the drive unit to continue moving; obtaining a first delay time; obtaining a second moment based on the first delay time and the first moment; judging whether the first actual stroke increases based on the second moment; if the first actual stroke increases, obtaining a pressure upper limit value; outputting a second control signal based on the pressure upper limit value to control the drive unit to continue moving; when the first current pressure value is equal to the pressure upper limit value, judging whether the first actual stroke is equal to the preset stroke; if the first actual stroke is equal to the preset stroke, outputting a welding electrode power-on signal to complete the welding action; if the first actual stroke is not equal to the preset stroke, outputting a homing signal to return the drive unit; and outputting an alarm signal.
[0040] Before the electronic device outputs the second adjustment signal based on the first current pressure value, the electronic device obtains the first moment when the first current pressure value exceeds the second preset range, and the electronic device obtains the first actual stroke of the driving unit based on the first moment, and then determines whether the first actual stroke is less than the preset stroke. If the first actual stroke is less than the preset stroke, it may be that the weldment is bent, resulting in the pressure value exceeding the range but the first actual stroke is less than the preset stroke. Therefore, the electronic device outputs a first control signal to control the driving unit to continue to move, and then the electronic device obtains the first delay time, obtains the second moment based on the first delay time and the first moment, and then determines whether the first actual stroke increases based on the second moment, that is, determines whether the bent part is pressed down by continuing to move. If the first actual stroke increases, the electronic device obtains the upper limit value of pressure, that is, obtains the maximum pressure that the driving unit can withstand, and then outputs the second control signal based on the upper limit value of pressure to control the driving unit to continue to move. When the first current pressure value is equal to the upper limit value of pressure, the electronic device determines whether the first actual stroke is equal to the preset stroke. If the first actual stroke is equal to the preset stroke, the electronic device outputs a welding motor power-on signal to complete the welding action. If the first actual stroke is not equal to the preset stroke, the electronic device outputs a return signal to return the drive unit to its original position, that is, stops welding at this position, and at the same time the electronic device outputs an alarm signal to prompt the user.
[0041] As an optional implementation of an embodiment of the present application, after outputting a welding electrode power-on signal to complete the welding action, it also includes: obtaining a first current welding point position; obtaining an adjacent welding point position based on the first current welding point position; determining whether the adjacent welding point position has been welded; if the adjacent welding point position has been welded, outputting a re-welding signal to re-weld the adjacent welding point position; obtaining a second actual stroke and a second current pressure value of the driving unit during re-welding; determining whether the second actual stroke meets the preset stroke; if the second actual stroke is equal to the preset stroke, determining whether the second current pressure value is within a second preset range; if the second current pressure value is within the second preset range, outputting a continue welding control signal.
[0042] After the electronic device outputs the welding motor power-on signal to complete the welding action, the electronic device obtains the first current welding point position, and then obtains the adjacent welding point position based on the first current welding point position. The electronic device determines whether the adjacent welding point position has been welded. If the adjacent welding point position has been welded, the electronic device outputs a re-welding signal to re-weld the adjacent welding point position. Because the pressure adjustment may cause the welded parts to move, the adjacent welding points that have been welded may be affected by stress and cause open welding, so re-welding is performed. At the same time, the second actual stroke and the second current pressure value of the driving unit during re-welding are obtained, and the electronic device determines whether the second actual stroke meets the preset stroke. If the second actual stroke is equal to the preset stroke, the electronic device determines whether the second current pressure value is within the second preset range. If the second pressure value is within the second preset range, the electronic device outputs a continue welding control signal to perform subsequent welding work. The re-welding work is inspected to avoid the situation where the adjacent welding point position cannot be adjusted due to the adjustment of the first current welding point position.
[0043] As an optional implementation of the embodiment of the present application, when the first actual stroke has not increased, it also includes: obtaining a second current welding point position; obtaining a current welding part based on the second current welding point position; and outputting an interval welding control signal based on the current welding part.
[0044] When the first actual stroke has not increased, the electronic device obtains the second current welding point position, and the electronic device obtains the current welding part based on the second current welding point position, that is, when welding is performed, two metal parts are welded together, and the welding electrode at the drive unit needs to contact one of the parts. The current welding part obtained in this step is the part that the welding electrode at the drive unit contacts, and then the electronic device outputs an interval welding control signal based on the current welding part. When the first actual stroke has not increased, it indicates that the bend of the welded part cannot be pressed down by itself, so in order to complete the welding, the electronic device outputs an interval welding control signal, that is, the current welding part with problems is skipped, and only other normal parts are welded. After completing the welding work, when the user handles the part with problems, the problem welding points can be reduced.
[0045] Figure 2 A structural block diagram of a welding control device 700 provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the welding control device 700 includes: A first acquisition module 701, used to acquire a first control instruction; An initialization module 702, configured to perform position initialization based on a first control instruction; A second acquisition module 703 is used to acquire a first detection signal transmitted by an initialization sensor; A first judgment module 704 is used to judge whether the position initialization is completed based on the first detection signal; if the position initialization is completed, the process proceeds to a second judgment module 705; The second judgment module 705 is used to judge whether a welding instruction is received; if a welding instruction is received, the process proceeds to the output module 706; The output module 706 is used to send a start signal based on the welding instruction to control the start of welding.
[0046] In this optional embodiment, the welding control device 700 further includes: A first acquisition submodule is used to acquire the distance value transmitted by the distance sensor after sending a start signal based on a welding instruction to control the start of welding; A first calculation submodule, used for calculating a distance change value based on distance values at adjacent moments; A first judgment submodule is used to judge whether the distance change value is equal to the preset moving distance value; if the distance change value is not equal to the preset moving distance value, a first difference value is calculated based on the distance change value and the preset moving distance value; A first assignment submodule, used for assigning the first difference value to the error value; The first output submodule is used to output an error value and a welding stop signal.
[0047] In this optional embodiment, the welding control device 700 further includes: A second acquisition submodule, used for acquiring a corresponding absolute value based on the first difference before outputting the error value and the welding stop signal; The second judgment submodule is used to judge whether the absolute value exceeds the first preset range; if the absolute value exceeds the first preset range, a first adjustment signal is output based on the error value; if the absolute value does not exceed the first preset range, the first adjustment signal is output based on the error value and then a welding electrode movement signal is output for welding.
[0048] The third judgment submodule is used to judge in real time whether the positioning signal transmitted by the positioning sensor is received; if the positioning signal is received, the output of the first adjustment signal is stopped and the welding electrode movement signal is output to perform welding.
[0049] In this optional embodiment, the welding control device 700 further includes: A third acquisition submodule is used to acquire a first current pressure value transmitted by the pressure sensor after sending a start signal based on the welding instruction to control the start of welding; The fourth judgment submodule is used to judge whether the first current pressure value exceeds the second preset range; if the first current pressure value exceeds the second preset range, output a signal to stop energizing the welding electrode; A second output submodule, configured to output a second adjustment signal based on the first current pressure value so that the first current pressure value is within a second preset range; wherein the second adjustment signal is output to a driving unit of the welding electrode to control the movement of the driving unit to adjust the first current pressure value; The third output submodule is used to output a welding electrode power-on signal to complete the welding action.
[0050] In this optional embodiment, the welding control device 700 further includes: A fourth acquisition submodule, configured to acquire a first moment when the first current pressure value exceeds a second preset range before outputting a second adjustment signal based on the first current pressure value; a fifth acquisition submodule, configured to acquire a first actual stroke of the driving unit based on the first moment; if the first actual stroke is less than a preset stroke, output a first control signal to control the driving unit to continue moving; A sixth acquisition submodule, used to acquire a first delay time; A seventh acquisition submodule, configured to acquire a second moment based on the first delay time and the first moment; a fifth judgment submodule, configured to judge whether the first actual stroke increases based on the second moment; if the first actual stroke increases, obtaining the upper limit value of the pressure; A third output submodule, configured to output a second control signal based on the upper pressure limit value to control the driving unit to continue moving; The sixth judgment submodule is used to judge whether the first actual stroke is equal to the preset stroke when the first current pressure value is equal to the upper limit value of pressure; if the first actual stroke is equal to the preset stroke, output a welding electrode power-on signal to complete the welding action; if the first actual stroke is not equal to the preset stroke, output a homing signal to return the drive unit; and output an alarm signal.
[0051] In this optional embodiment, the welding control device 700 further includes: An eighth acquisition submodule, used for acquiring a first current welding point position after outputting a welding electrode power-on signal to complete a welding action; A ninth acquisition submodule, configured to acquire adjacent welding point positions based on the first current welding point position; The seventh judgment submodule is used to judge whether the adjacent welding point position has been welded; if the adjacent welding point position has been welded, a re-welding signal is output to re-weld the adjacent welding point position; A tenth acquisition submodule, used for acquiring a second actual stroke and a second current pressure value of the driving unit during re-welding; The eighth judgment submodule is used to judge whether the second actual stroke meets the preset stroke; if the second actual stroke is equal to the preset stroke, judge whether the second current pressure value is within the second preset range; if the second current pressure value is within the second preset range, output a continue welding control signal.
[0052] In this optional embodiment, the welding control device 700 further includes: An eleventh obtaining submodule is used to obtain a second current welding point position when the first actual stroke has not increased; A twelfth acquisition submodule, used for acquiring a current welding portion based on the second current welding point position; The fourth output submodule is used to output an interval welding control signal based on the current welding part.
[0053] Figure 3 The electronic device 800 is a block diagram of a structure of an electronic device 800 provided in an embodiment of the present application. The electronic device 800 may be a mobile phone, a tablet computer, a PC, a server, etc. Figure 3 As shown, the electronic device 800 includes a memory 801, a processor 802 and a communication bus 803; the memory and the processor 802 are connected via the communication bus 803. The memory 801 stores a computer program that can be loaded by the processor 802 and execute the welding control method provided in the above embodiment.
[0054] The memory 801 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 801 can include a program storage area and a managed data storage area, wherein the program storage area can store instructions for implementing an operating system, instructions for at least one function, and instructions for implementing the welding control method provided in the above embodiment, etc.; the managed data storage area can store managed data involved in the welding control method provided in the above embodiment, etc.
[0055] The processor 802 may include one or more processing cores. The processor 802 calls the managed data stored in the memory 801 by running or executing the instructions, programs, code sets or instruction sets stored in the memory 801, executes various functions of the present application and processes the managed data. The processor 802 may be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller and a microprocessor. It is understandable that for different devices, the electronic device used to implement the above-mentioned processor 802 function can also be other, and the embodiment of the present application is not specifically limited.
[0056] The communication bus 803 may include a path to transmit information between the above components. The communication bus 803 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The communication bus 803 may be divided into an address bus, a managed data bus, a control bus, etc. For ease of representation, Figure 3 Only one double arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0057] An embodiment of the present application provides a computer storage medium storing a computer program that can be loaded by a processor and execute the welding control method provided in the above embodiment.
[0058] In this embodiment, the computer storage medium may be a tangible device that holds and stores instructions used by the instruction execution device. The computer storage medium may be, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any combination thereof. Specifically, the computer storage medium may be a portable computer disk, a hard disk, a USB flash drive, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a podium random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, an optical disk, a magnetic disk, a mechanical encoding device, and any combination thereof.
[0059] The terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion such that a process, method, article, or apparatus that includes a list of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to such process, method, article, or apparatus.
Claims
1. A welding control method, characterized in that: include: Obtaining a first control instruction; Performing position initialization based on the first control instruction; Acquire a first detection signal transmitted by an initialization sensor; Determining whether the position initialization is completed based on the first detection signal; If the position initialization is completed, determining whether a welding instruction is received; If the welding instruction is received, a start signal is sent based on the welding instruction to control the start of welding; After sending a start signal based on the welding instruction to control the start of welding, the method further includes: Get the distance value transmitted by the distance sensor; Calculating a distance change value based on the distance values at adjacent moments; Determining whether the distance change value is equal to a preset moving distance value; If the distance change value is not equal to the preset moving distance value, calculating a first difference value based on the distance change value and the preset moving distance value; assigning the first difference value to an error value; Output error value and stop welding signal.
2. A welding control method according to claim 1, characterized in that: Before outputting the error value and stopping the welding signal, the method further includes: Acquire a corresponding absolute value based on the first difference; Determining whether the absolute value exceeds a first preset range; If the absolute value exceeds the first preset range, a first adjustment signal is output based on the error value; and it is determined in real time whether a positioning signal transmitted by a positioning sensor is received; If the positioning signal is received, stop outputting the first adjustment signal and output a welding electrode movement signal to perform welding; If the absolute value does not exceed the first preset range, a first adjustment signal is output based on the error value and then a welding electrode movement signal is output to perform welding.
3. A welding control method according to claim 1, characterized in that: After sending a start signal based on the welding instruction to control the start of welding, the method further includes: Acquire a first current pressure value transmitted by the pressure sensor; Determining whether the first current pressure value exceeds a second preset range; If the first current pressure value exceeds the second preset range, a signal for stopping powering on the welding electrode is output; outputting a second adjustment signal based on the first current pressure value so that the first current pressure value is within the second preset range; Wherein, the second adjustment signal is output to the driving unit of the welding electrode to control the movement of the driving unit so as to adjust the first current pressure value; The welding electrode power-on signal is output to complete the welding action.
4. A welding control method according to claim 3, characterized in that: Before outputting a second adjustment signal based on the first current pressure value, the method further includes: Acquire a first moment when the first current pressure value exceeds the second preset range; Acquire a first actual stroke of the driving unit based on the first moment; Determining whether the first actual stroke is less than a preset stroke; If the first actual stroke is smaller than the preset stroke, outputting a first control signal to control the driving unit to continue moving; Get the first delay time; Acquire a second time based on the first delay time and the first time; determining whether the first actual stroke increases based on the second moment; If the first actual stroke increases, obtaining the upper pressure limit value; outputting a second control signal based on the upper pressure limit value to control the driving unit to continue moving; When the first current pressure value is equal to the pressure upper limit value, determining whether the first actual stroke is equal to the preset stroke; If the first actual stroke is equal to the preset stroke, outputting the welding electrode power-on signal to complete the welding action; If the first actual stroke is not equal to the preset stroke, a homing signal is output to make the driving unit return; and an alarm signal is output.
5. A welding control method according to claim 4, characterized in that: After the welding electrode power-on signal is output to complete the welding action, the method further comprises: Get the first current welding point position; Acquire the position of the adjacent welding point based on the first current welding point position; Determining whether the adjacent welding points have been welded; If the adjacent welding point position has been welded, output a re-welding signal to re-weld the adjacent welding point position; Acquire a second actual stroke and a second current pressure value of the driving unit during re-welding; determining whether the second actual itinerary conforms to a preset itinerary; If the second actual stroke is equal to the preset stroke, determining whether the second current pressure value is within the second preset range; If the second current pressure value is within the second preset range, a continue welding control signal is output.
6. A welding control method according to claim 4, characterized in that: When the first actual stroke does not increase, the method further includes: Get the second current welding point position; Acquire a current welding portion based on the second current welding point position; An interval welding control signal is output based on the current welding portion.
7. A welding control device, characterized in that: include: A first acquisition module, used to acquire a first control instruction; An initialization module, used for performing position initialization based on the first control instruction; A second acquisition module, used for acquiring a first detection signal transmitted by an initialization sensor; A first judgment module, used for judging whether the position initialization is completed based on the first detection signal; if the position initialization is completed, entering into a second judgment module; A second judgment module is used to judge whether a welding instruction is received; if the welding instruction is received, the output module is transferred; An output module, used for sending a start signal based on the welding instruction to control the start of welding; A first acquisition submodule is used to acquire the distance value transmitted by the distance sensor after sending a start signal based on a welding instruction to control the start of welding; A first calculation submodule, used for calculating a distance change value based on distance values at adjacent moments; The first judgment submodule is used to judge whether the distance change value is equal to the preset moving distance value; If the distance change value is not equal to the preset moving distance value, calculating a first difference value based on the distance change value and the preset moving distance value; A first assignment submodule, used for assigning the first difference value to the error value; The first output submodule is used to output an error value and a welding stop signal.
8. An electronic device, characterized in that: The electronic device comprises a processor coupled to a memory; the processor is used to execute a computer program stored in the memory so that the electronic device executes the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The method comprises a computer program or an instruction, which, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 6.