An electron beam welding method, apparatus, and storage medium
By predicting the electron beam deflection angle through three-dimensional magnetic field measurement and multiphysics simulation software, and combining this with the arrangement of counteracting magnetic field coils, the problem of welding defects caused by magnetic field influence in electron beam welding was solved, achieving high-quality welding results.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CFHI DALIAN HYDROGENANT REACTOR
- Filing Date
- 2023-12-29
- Publication Date
- 2026-07-03
AI Technical Summary
During electron beam welding of ferromagnetic materials, the movement of the electron beam is affected by the electromagnetic field, causing the welding trajectory to deviate and resulting in weld defects.
A three-dimensional magnetic field measuring instrument is used to measure the magnetic field strength of the welded parts, multiphysics simulation software is used to predict the electron beam deflection angle, and the magnetic field influence at the welding position is offset by arranging counteracting magnetic field coils, thereby achieving precise control of electron beam welding.
It effectively eliminates the influence of residual magnetism in the welded parts on the electron beam, avoids defects such as porosity at the weld root, and improves welding quality and precision.
Smart Images

Figure CN117680801B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of welding technology, and more specifically, to an electron beam welding method, apparatus, and storage medium. Background Technology
[0002] In modern manufacturing, welding technology plays a vital role. Electron beam welding, with its unique advantages and superior performance, has a wide range of applications in high-end manufacturing fields such as aviation, aerospace, nuclear energy, and microelectronics.
[0003] Electron beam welding utilizes a high-energy electron beam as a heat source, possessing extremely high energy density. This results in extremely high heating and cooling rates, leading to ultra-high welding precision and strength. However, especially when welding ferromagnetic materials, the electron beam's movement is significantly affected by the electromagnetic field, potentially causing trajectory deviations during welding. Demagnetization of ferromagnetic materials is necessary. However, incomplete demagnetization can leave residual magnetism, still causing slight electron beam deviations and resulting in weld defects. Summary of the Invention
[0004] The problem addressed by this invention is how to improve the quality of electron beam welding.
[0005] To address the above problems, the present invention provides an electron beam welding method, apparatus, and storage medium.
[0006] In a first aspect, the present invention provides an electron beam welding method applied to an electron beam welding system, the electron beam welding system comprising a three-dimensional magnetic field measuring instrument, a welding device, and a magnetic field cancelling coil;
[0007] The electron beam welding method includes:
[0008] Obtain the segmented measurement results of the welded parts measured by the three-dimensional magnetic field measuring instrument;
[0009] Based on multiphysics simulation software, the electron beam deflection angle at each welding position is obtained according to the segmented measurement results;
[0010] The canceling magnetic field coils are arranged at the welding position according to the electron beam deflection angle.
[0011] The welding device is used to weld the welding positions where the canceling magnetic field coils are arranged.
[0012] Optionally, before obtaining the segmented measurement results of the welded component measured by the three-dimensional magnetic field measuring instrument, the method further includes:
[0013] The welded parts are demagnetized, and then the demagnetized welded parts are segmented and spot-welded.
[0014] The welded parts after the segmented welding points are solidified are measured using the three-dimensional magnetic field measuring instrument to obtain the segmented measurement results.
[0015] Optionally, obtaining the electron beam deflection angle at each welding position based on the segmented measurement results using multiphysics simulation software includes:
[0016] The segmented measurement results are input into the COMSOL Multiphysics simulation software, which outputs the electron beam deflection angle at each welding position.
[0017] Optionally, arranging the canceling magnetic field coils at the welding position according to the electron beam deflection angle includes:
[0018] Based on the comparison result between the electron beam deflection angle and the preset threshold, it is determined whether to set the canceling magnetic field coil;
[0019] If so, the canceling magnetic field coils are arranged at the welding position, and the magnetic field strength of the canceling magnetic field coils is determined according to the electron beam deflection angle and the preset canceling magnetic field relationship.
[0020] Optionally, determining whether to set the canceling magnetic field coil based on the comparison result between the electron beam deflection angle and a preset threshold includes:
[0021] When the electron beam deflection angle is less than the preset threshold, it is determined that the canceling magnetic field coils need to be arranged at the welding position.
[0022] When the electron beam deflection angle is greater than or equal to the preset threshold, it is determined that it is not necessary to arrange the canceling magnetic field coil at the welding position, and the welded part is demagnetized.
[0023] Optionally, arranging the canceling magnetic field coils at the welding position includes:
[0024] The electron beam deflection direction is determined based on the electron beam deflection angle;
[0025] The position of the canceling magnetic field coil is determined based on the electron beam deflection direction.
[0026] Optionally, the canceling magnetic field relationship satisfies:
[0027] C = α × A;
[0028] Where C is the magnetic field strength, A is the electron beam deflection angle, and α is the magnetic field strength coefficient.
[0029] Secondly, an electron beam welding apparatus includes:
[0030] The acquisition module is used to acquire the segmented measurement results of the welded parts measured by the three-dimensional magnetic field measuring instrument;
[0031] The simulation module is used to obtain the electron beam deflection angle at each welding position based on the segmented measurement results using multiphysics simulation software.
[0032] The processing module is used to arrange anti-magnetic field coils at the welding position according to the electron beam deflection angle;
[0033] The control module is used to weld the welding positions where the offset magnetic field coils are arranged via a welding device.
[0034] Thirdly, an electronic device including a memory and a processor;
[0035] The memory is used to store computer programs;
[0036] The processor is configured to implement the electron beam welding method described in the first aspect when executing the computer program.
[0037] Fourthly, a computer-readable storage medium storing a computer program that, when executed by a processor, implements the electron beam welding method as described in the first aspect.
[0038] The beneficial effects of the electron beam welding method, apparatus, and storage medium of the present invention are as follows: By acquiring the results of segmented measurements using a three-dimensional magnetic field measuring instrument, i.e., the magnetic field strength of the welding material on both sides of each welding position, the influence of the magnetic field strength at the welding position on the electron beam deflection can be accurately determined based on the segmented measurement results. The electron beam deflection angle during the welding process is simulated using multiphysics simulation software to obtain the predicted electron beam deflection angle. This electron beam deflection angle can more intuitively and accurately obtain the degree and direction of electron beam deflection under the action of a magnetic field. Furthermore, the arrangement of canceling magnetic field coils is based on the electron beam deflection angle, and the canceling magnetic field coils cancel each other out with the magnetic field at the welding position, thereby eliminating the influence of residual magnetism in the welded part on the electron beam. Finally, the welding device is used to weld the welding positions with the canceling magnetic field coils, so that electron beam welding is carried out without the influence of a magnetic field, avoiding welding defects such as porosity at the weld root caused by electron beam deflection, and improving the quality of electron beam welding. Attached Figure Description
[0039] Figure 1 This is a schematic flowchart of an electron beam welding method according to an embodiment of the present invention;
[0040] Figure 2This is a schematic diagram of electron beam deflection according to an embodiment of the present invention;
[0041] Figure 3 This is a schematic diagram of the electron beam deflection after the arrangement of the magnetic field coils in an embodiment of the present invention.
[0042] Figure 4 This is a schematic diagram of an electron beam welding apparatus according to an embodiment of the present invention. Detailed Implementation
[0043] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Although some embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the accompanying drawings and embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of protection of the present invention.
[0044] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0045] The term "comprising" and its variations as used herein are open-ended, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments"; the term "optionally" means "optional embodiments". Definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc., mentioned in this invention are used only to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies.
[0046] It should be noted that the terms "a" and "a plurality of" used in this invention are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0047] like Figure 1 As shown, in order to solve the above-mentioned technical problems, the present invention provides an electron beam welding method, which is applied to an electron beam welding system. The electron beam welding system includes a three-dimensional magnetic field measuring instrument, a welding device, and a magnetic field cancelling coil.
[0048] Specifically, the three-dimensional magnetic field measuring instrument is used to detect the magnetism of welded parts, which are usually ferromagnetic alloy welding materials, such as thick 2.25Cr-1Mo-0.25V steel, which can be used as the main material for hydrogenation reactors in petrochemical refining equipment. Multiple sections of welding materials are spliced together to form the required complete welded parts. At the splicing point, i.e. the welding position, welding is performed by a welding device that uses electron beam welding. The three-dimensional magnetic field measuring instrument measures the spliced welded parts segment by segment to obtain the magnetic field strength on both sides of the welding position. The canceling magnetic field coil is used to cancel the residual magnetism of the welded parts.
[0049] The electron beam welding method includes:
[0050] Step S1: Obtain the segmented measurement results of the welded parts measured by the three-dimensional magnetic field measuring instrument.
[0051] Specifically, the magnetic field strength is obtained by measuring the magnetism of the welding material on both sides of the welding position of each splicing segment of the welded component, as detected by a three-dimensional magnetic field measuring instrument.
[0052] Step S2: Based on multiphysics simulation software, obtain the electron beam deflection angle of each welding position according to the segmented measurement results.
[0053] Specifically, based on the detected segmented measurement results, the electron beam deflection during electron beam welding is simulated using multiphysics simulation software, such as finite element analysis software (Abaqus) and fluid dynamics analysis software, thereby obtaining the electron beam deflection angle corresponding to each welding position.
[0054] Step 3: Arrange the canceling magnetic field coils at the welding position according to the electron beam deflection angle.
[0055] Specifically, the electron beam deflection direction is determined based on the electron beam deflection angle. Based on both the electron beam deflection angle and direction, a counteracting magnetic field coil 2 is arranged at the welding position. The position of the counteracting magnetic field coil 2 corresponds to the electron beam deflection direction; that is, the position of the counteracting magnetic field coil 2 is the same as the electron beam deflection direction. Figure 2 As mentioned above, during electron beam welding, the electron beam 1 is affected by the residual magnetic field inside the weldment 3, resulting in beam deviation and thus incomplete welding defects at the weld root. When welding thick circumferential welds, porosity defects are prone to occur at the weld root. Figure 3 As shown, by setting up a canceling magnetic field coil 2 and aligning its position with the deflection direction of the electron beam 1, and placing it below the weldment 3 near the deflection position of the electron beam 2, the residual magnetism of the weldment at that weld location is canceled out. After the action of the canceling magnetic field coil 2, the electron beam will not be deflected.
[0056] Step 4: Weld the welding positions where the canceling magnetic field coils are arranged using the welding device.
[0057] Specifically, after the magnetic field coils for offsetting the welding position are arranged, the welding device is controlled to weld at that position.
[0058] For example, the welding process is as follows:
[0059] 1. Sealing: First, a small electron beam current (usually one-third of the electron beam current used during welding) is used to seal the weld, clean the weld, and further improve the assembly strength of the pipe fitting joint.
[0060] 2. Formal Welding: A strategy of gradually increasing the electron beam current during the lower beam phase and gradually decreasing it during the lower beam phase is adopted to improve the weld formation quality. The rising angle is no less than 60°, and the falling angle is no less than 120°. The maximum beam current welding angle is no less than 370°, using a lower focal length mode (focusing current is about 5%-10% less than the surface focusing current). During the lower beam phase, an electron beam variable focal length strategy is adopted. While the electron beam current gradually decreases, the lower focusing mode is adjusted to the upper focusing mode (focusing current is about 5% greater than the surface focusing current), and the focusing current is gradually increased by 10-15mA for every 30° rotation until the beam current is 0.
[0061] 3. Modification welding: The surface formation of the weld is modified by using an upper focusing (focusing current is about 20% greater than the surface focusing current) + scanning electron beam (scanning frequency 100-200 Hz, scanning amplitude slightly greater than the width of the formal weld) to improve the surface formation of the weld.
[0062] 4. After welding is completed, cool the vacuum chamber for 20-40 minutes, open the vacuum chamber door, and take out the weldment.
[0063] In this embodiment, the results of segmented measurements using a three-dimensional magnetic field measuring instrument are obtained, namely the magnetic field strength of the welding material on both sides of each welding position. Based on these segmented measurement results, the influence of the magnetic field strength at the welding position on the electron beam deflection can be accurately determined. The electron beam deflection angle during the welding process is simulated using multiphysics simulation software to obtain the predicted electron beam deflection angle. This electron beam deflection angle can more intuitively and accurately obtain the degree and direction of electron beam deflection under the action of a magnetic field. Furthermore, based on this electron beam deflection angle, a counteracting magnetic field coil is arranged, and the counteracting magnetic field coils cancel each other out with the magnetic field at the welding position, thereby eliminating the influence of residual magnetism in the welded part on the electron beam. Finally, the welding position with the counteracting magnetic field coils is welded using a welding device, so that electron beam welding is carried out without the influence of a magnetic field, avoiding welding defects such as porosity at the weld root caused by electron beam deflection, and improving the quality of electron beam welding.
[0064] In an optional embodiment, before obtaining the segmented measurement results of the weldment measured by the three-dimensional magnetic field measuring instrument, the method further includes:
[0065] The welded parts are demagnetized, and then the demagnetized welded parts are segmented and spot-welded.
[0066] The welded parts after the segmented welding points are solidified are measured using the three-dimensional magnetic field measuring instrument to obtain the segmented measurement results.
[0067] Specifically, a special demagnetizer is used to perform preliminary demagnetization on the front and back of multiple welded parts, so that the magnetic field on the weld surface reaches below 3 Gauss and below 10 Gauss at the sharp corners. Since the demagnetizer cannot completely demagnetize the welded material, there is still residual magnetism at the weld position of the welded parts, i.e., the weld surface.
[0068] Furthermore, after demagnetization, multiple welded parts are spliced and tack welded in sections according to welding requirements. For example, the Tungsten Inert Gas (TIG) method is used to tack weld the weld seams at the welding positions on the front and back sides in sections to achieve pipe-to-pipe assembly. Tack welding is performed every 300-400mm, with a tack weld length of 10-15mm. After tack welding, the gap between the butt joint surfaces does not exceed 0.1mm.
[0069] Furthermore, a three-dimensional magnetic field measuring instrument was used to measure the magnetic field distribution on the surface of the pipe joint in segments, thereby obtaining the segmented measurement results.
[0070] In this embodiment, by demagnetizing the welded parts, the ferromagnetism of the welding material is eliminated, and the influence of the magnetic field on electron beam welding is avoided, thereby improving the quality of electron beam welding. Furthermore, the welded parts after demagnetization are subjected to segmented inspection. The results of the segmented monitoring can be used to further determine the influence of the residual magnetic field strength on the electron beam during the welding process, thereby enabling preventive measures to be taken in advance to prevent the influence of residual magnetism on electron beam welding, avoid welding defects, and further improve the quality of electron beam welding.
[0071] In an optional embodiment, obtaining the electron beam deflection angle at each welding position based on the segmented measurement results using multiphysics simulation software includes:
[0072] The segmented measurement results are input into the COMSOL Multiphysics software to output the electron beam deflection angle at each welding position.
[0073] In an optional embodiment, arranging the canceling magnetic field coils at the welding position according to the electron beam deflection angle includes:
[0074] Based on the comparison result between the electron beam deflection angle and the preset threshold, it is determined whether to set the canceling magnetic field coil;
[0075] If so, the canceling magnetic field coils are arranged at the welding position, and the magnetic field strength of the canceling magnetic field coils is determined according to the electron beam deflection angle and the preset canceling magnetic field relationship.
[0076] In an optional embodiment, determining whether to set the canceling magnetic field coil based on the comparison result of the electron beam deflection angle and a preset threshold includes:
[0077] When the electron beam deflection angle is less than the preset threshold, it is determined that the canceling magnetic field coils need to be arranged at the welding position.
[0078] When the electron beam deflection angle is greater than or equal to the preset threshold, it is determined that it is not necessary to arrange the canceling magnetic field coil at the welding position, and the welded part is demagnetized.
[0079] In an optional embodiment, arranging the canceling magnetic field coils at the welding location includes:
[0080] The electron beam deflection direction is determined based on the electron beam deflection angle;
[0081] The position of the canceling magnetic field coil is determined based on the electron beam deflection direction.
[0082] In an optional embodiment, the canceling magnetic field relationship satisfies:
[0083] C = α × A;
[0084] Where C is the magnetic field strength, A is the electron beam deflection angle, and α is the magnetic field strength coefficient.
[0085] Specifically, based on the comparison between the electron beam deflection angle and the preset threshold, it is determined whether to arrange a canceling magnetic field coil at the welding position. For example, if the preset threshold is set to 5°, when the electron beam deflection angle is less than 5°, a canceling magnetic field coil needs to be set at the welding position. The canceling magnetic field coil cancels out the magnetic field at the welding position, so that the electron beam will not deflect when the welding position is subjected to electron beam welding. When the electron beam deflection angle is greater than or equal to 5°, it indicates that the welding position has a strong magnetic field strength, and the welded part needs to be demagnetized again. The above process is repeated on the demagnetized welded part until the obtained electron beam deflection angle is less than 5°.
[0086] Furthermore, when the deflection angle of the electron beam is less than a preset threshold, the deflection direction of the electron beam is determined based on the deflection angle. For example, if one side of the welding position is selected as the positive direction, the other side is the negative direction. When the deflection direction of the electron beam is positive, the corresponding deflection angle of the electron beam is positive. When the deflection angle of the electron beam is negative, the corresponding deflection angle of the electron beam is also negative. Therefore, when the deflection angle of the electron beam is positive, the canceling magnetic field coil is set on the positive side of the welding position, and when the deflection angle of the electron beam is negative, the canceling magnetic field coil is set on the negative side of the welding position.
[0087] Furthermore, based on the electron beam deflection angle and the relationship between the canceling magnetic field, the magnetic field strength of the canceling magnetic field coil is calculated. For example, if the electron beam deflection angle is 4° and the magnetic field strength coefficient is 0.01, then through the relationship between the canceling magnetic field, the magnetic field strength of the canceling magnetic field coil is obtained as 4 × 0.01 = 0.04 mT, that is, the magnetic field strength of the canceling magnetic field coil is 0.04 millitalas.
[0088] In this embodiment, the magnetic field strength of the canceling magnetic field coil to be set is obtained according to the electron beam deflection angle, and the specific position of the canceling magnetic field coil is determined according to the electron beam deflection angle and direction. This allows the canceling magnetic field coil to more accurately cancel the residual magnetic field at the welding position, ultimately preventing the electron beam from deflecting during welding, avoiding welding defects caused by electron beam deflection, and improving welding quality and welding efficiency.
[0089] like Figure 4 As shown, an embodiment of the present invention provides an electron beam welding apparatus, comprising:
[0090] The acquisition module is used to acquire the segmented measurement results of the welded parts measured by the three-dimensional magnetic field measuring instrument;
[0091] The simulation module is used to obtain the electron beam deflection angle at each welding position based on the segmented measurement results using multiphysics simulation software.
[0092] The processing module is used to arrange anti-magnetic field coils at the welding position according to the electron beam deflection angle;
[0093] The control module is used to weld the welding positions where the offset magnetic field coils are arranged via a welding device.
[0094] An electron beam welding apparatus in this embodiment of the invention has similar technical effects to the electron beam welding method described above, and will not be described in detail here.
[0095] An electronic device provided in this invention includes a memory and a processor;
[0096] The memory is used to store computer programs;
[0097] The processor is configured to implement the electron beam welding method as described above when executing the computer program.
[0098] An electronic device in this embodiment of the invention has similar technical effects to the electron beam welding method described above, and will not be described in detail here.
[0099] This invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the electron beam welding method described above.
[0100] A computer-readable storage medium in this embodiment of the invention has similar technical effects to the electron beam welding method described above, and will not be described in detail here.
[0101] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc. In this invention, the units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of this invention according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated units can be implemented in hardware or as software functional units.
[0102] While the present invention has been disclosed above, its scope of protection is not limited thereto. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, and all such changes and modifications will fall within the scope of protection of the present invention.
Claims
1. An electron beam welding method characterized by, Applied to an electron beam welding system, the electron beam welding system includes a three-dimensional magnetic field measuring instrument, a welding device, and a magnetic field cancelling coil; The electron beam welding method includes: Obtain the segmented measurement results of the welded parts measured by the three-dimensional magnetic field measuring instrument; Based on multiphysics simulation software, the electron beam deflection angle at each welding position is obtained according to the segmented measurement results; The canceling magnetic field coils are arranged at the welding position according to the electron beam deflection angle. The welding device is used to weld the welding positions where the magnetic field canceling coils are arranged. Before obtaining the segmented measurement results of the welded component measured by the three-dimensional magnetic field measuring instrument, the method further includes: The welded parts are demagnetized, and then the demagnetized welded parts are segmented and spot-welded. The welded parts after the segmented welding points are solidified are measured using the three-dimensional magnetic field measuring instrument to obtain the segmented measurement results; The step of arranging the canceling magnetic field coils at the welding position according to the electron beam deflection angle includes: Based on the comparison result between the electron beam deflection angle and the preset threshold, it is determined whether to set the canceling magnetic field coil; If so, the canceling magnetic field coils are arranged at the welding position, and the magnetic field strength of the canceling magnetic field coils is determined according to the electron beam deflection angle and the preset canceling magnetic field relationship. The step of determining whether to arrange the canceling magnetic field coils based on the comparison result between the electron beam deflection angle and a preset threshold includes: When the electron beam deflection angle is less than the preset threshold, it is determined that the canceling magnetic field coils need to be arranged at the welding position. When the electron beam deflection angle is greater than or equal to the preset threshold, it is determined that it is not necessary to arrange the canceling magnetic field coil at the welding position, and the welded part is demagnetized.
2. The electron beam welding method according to claim 1, characterized in that, The electron beam deflection angle at each welding position, obtained based on the segmented measurement results using multiphysics simulation software, includes: The segmented measurement results are input into the COMSOL Multiphysics simulation software, which outputs the electron beam deflection angle at each welding position.
3. The electron beam welding method according to claim 1, characterized by, The arrangement of the canceling magnetic field coils at the welding position includes: The electron beam deflection direction is determined based on the electron beam deflection angle; The position of the canceling magnetic field coil is determined based on the electron beam deflection direction.
4. The electron beam welding method according to claim 1, characterized by The relationship between the canceling magnetic fields satisfies: C = α × A; Where C is the magnetic field strength, A is the electron beam deflection angle, and α is the magnetic field strength coefficient.
5. An electron beam welding apparatus characterized by comprising: include: The acquisition module is used to acquire the segmented measurement results of the welded parts measured by the three-dimensional magnetic field measuring instrument; Before obtaining the segmented measurement results of the welded component measured by the three-dimensional magnetic field measuring instrument, the method further includes: The welded parts are demagnetized, and then the demagnetized welded parts are segmented and spot-welded. The welded parts after the segmented welding points are solidified are measured using the three-dimensional magnetic field measuring instrument to obtain the segmented measurement results; The simulation module is used to obtain the electron beam deflection angle at each welding position based on the segmented measurement results using multiphysics simulation software. The processing module is used to arrange anti-magnetic field coils at the welding position according to the electron beam deflection angle; The step of arranging the canceling magnetic field coils at the welding position according to the electron beam deflection angle includes: Based on the comparison result between the electron beam deflection angle and the preset threshold, it is determined whether to set the canceling magnetic field coil; If so, the canceling magnetic field coils are arranged at the welding position, and the magnetic field strength of the canceling magnetic field coils is determined according to the electron beam deflection angle and the preset canceling magnetic field relationship. The step of determining whether to arrange the canceling magnetic field coils based on the comparison result between the electron beam deflection angle and a preset threshold includes: When the electron beam deflection angle is less than the preset threshold, it is determined that the canceling magnetic field coils need to be arranged at the welding position. When the electron beam deflection angle is greater than or equal to the preset threshold, it is determined that it is not necessary to arrange the canceling magnetic field coil at the welding position, and the welded part is demagnetized. The control module is used to weld the welding positions where the offset magnetic field coils are arranged via a welding device.
6. An electronic device, comprising: Including memory and processor; The memory is used to store computer programs; The processor is configured to implement the electron beam welding method as described in any one of claims 1 to 4 when executing the computer program.
7. A computer readable storage medium characterized in that, The storage medium stores a computer program that, when executed by a processor, implements the electron beam welding method as described in any one of claims 1 to 4.