3D galvanometer plane processing control method, system and readable storage medium

By reading the fitted interpolation data on the 3D galvanometer and generating three-axis control signals, high-precision displacement welding and dynamic adjustment of welding focus height are achieved, and the problems of high consistency of welding surfaces and low focus efficiency in the prior art are solved.

CN118989570BActive Publication Date: 2025-03-18SHENZHEN ZHIBO INNOVATION TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411233178.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2025-03-18
Estimated Expiration
2044-09-04

AI Technical Summary

Technical Problem

The existing 3D galvanometer welding schemes have high requirements for the high consistency of the welding surface during welding, large differences can easily lead to inconsistent welding processes and low focus efficiency.

Method used

By realizing automatic mode on the 3D galvanometer, the fit interpolation data is read, including the surface fit interpolation coefficient, the Z-axis adjustment data is obtained, and the three-axis control signal is generated to achieve high-precision displacement welding and dynamic adjustment of the welding focus height.

Benefits of technology

It improves the focus efficiency, realizes high-precision displacement welding, and can quickly and dynamically adjust the welding focus height, solving the problem of height consistency of the welding surface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118989570B_ABST
    Figure CN118989570B_ABST
Patent Text Reader

Abstract

The present invention discloses a 3D galvanometer plane processing control method, system and readable storage medium, wherein the method comprises: after the 3D galvanometer is powered on, switching to automatic mode to read fitting interpolation data, wherein the fitting interpolation data specifically includes surface fitting interpolation coefficients; when reading the fitting interpolation data, loading the surface fitting interpolation data to identify the adjustment data of the three axes of coordinates; acquiring two-way data for position calculation to obtain the target data of the 3D galvanometer, wherein the target data corresponds to the position adjustment data of the Z axis with the XY axis; generating a three-axis control signal for motor movement based on the target data, and marking the 3D galvanometer based on the three-axis control signal. The present invention can quickly realize the dynamic adjustment of the welding focus height of the 3D galvanometer, improve the focusing efficiency and realize high-precision displacement welding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of manufacturing process technology, and more specifically, to a 3D galvanometer plane processing control method, system and readable storage medium. Background Art

[0002] Compared with 2D galvanometers, 3D galvanometers have added three-dimensional processing functions. They are mainly used in laser three-dimensional surface treatment, engraving, cleaning and other removal micro-processing, as well as welding, additive manufacturing and other scenarios. They are suitable for applications with complex three-dimensional shape processing.

[0003] However, the galvanometer welding solution can only weld on a quasi-plane at present, and has high requirements for the height consistency of the welding surface. Too much difference can easily lead to inconsistent welding processes. In addition, the existing technology often uses the Z-axis of the external servo to focus, but the focusing efficiency is low. Summary of the invention

[0004] The purpose of the present invention is to provide a 3D galvanometer plane processing control method, system and readable storage medium, which can quickly realize the dynamic adjustment of the welding focus height of the 3D galvanometer, improve the focusing efficiency and realize high-precision displacement welding.

[0005] A first aspect of the present invention provides a 3D galvanometer plane processing control method, comprising the following steps:

[0006] After the 3D galvanometer is powered on, the automatic mode is switched to read the fitting interpolation data, wherein the fitting interpolation data specifically includes the surface fitting interpolation coefficient;

[0007] When reading the fitting interpolation data, the surface fitting interpolation data is loaded to identify the adjustment data of the three axes of the coordinates;

[0008] Obtain two channels of data to perform position calculation to obtain target data of the 3D galvanometer, wherein the target data corresponds to position adjustment data of the Z axis along the XY axis;

[0009] A three-axis control signal for motor movement is generated based on the target data, and a 3D galvanometer is marked based on the three-axis control signal.

[0010] In this solution, the method further includes obtaining the fitting interpolation data, specifically including:

[0011] Obtain the drawn sampling grid based on the preset 3D software, and perform pattern scanning processing to obtain the galvanometer trajectory planning data;

[0012] Interpolate the galvanometer trajectory planning data, including scanning the XY axis motor plane and sampling the Z axis motor motion direction;

[0013] The sampled data is converted based on the preset 3D software, and the surface fitting interpolation calculation is performed to obtain the surface fitting interpolation coefficient;

[0014] The surface fitting interpolation coefficients are downloaded based on the preset 3D software, and solidified to obtain the fitting interpolation data.

[0015] In this solution, the interpolation of the galvanometer trajectory planning data specifically includes:

[0016] Generate the control signal of XY axis of the galvanometer based on FPGA program to scan the XY axis motor plane;

[0017] Acquire Z-axis height data based on preset 3D software, and generate Z-axis control signals based on the FPGA program;

[0018] The Z-axis motor movement direction data is sampled based on the Z-axis control signal to obtain the sampled data.

[0019] In this solution, the method also includes establishing a communication connection with a host computer to achieve information interaction with a preset 3D software, wherein the preset 3D software includes a 3D assistant.

[0020] In this solution, the acquisition of two data paths to perform position calculation to obtain the target data of the 3D galvanometer specifically includes:

[0021] Obtain the drawn 2D marking pattern based on 2D marking software;

[0022] Obtaining target values ​​of two data paths based on the 2D marking pattern transformation, wherein the target values ​​include DAC values, and the two data paths correspond to XY axes;

[0023] The target value is intercepted based on a preset protocol, and the Z-axis position data is calculated based on the intercepted XY-axis position data, wherein the preset protocol includes an XY2-100 protocol;

[0024] The target data is obtained based on the XY axis position data and the Z axis position data, and the target data is three-way XY2-100 protocol data.

[0025] In this solution, the three-axis control signal for motor movement is generated based on the target data, and the 3D galvanometer is marked based on the three-axis control signal, which specifically includes:

[0026] Based on the target data and the surface fitting interpolation coefficient, a preset conversion formula is used to perform coordinate transformation, wherein the conversion formula is as follows: , For conversion relationship;

[0027] Generate XYZ axis control signals using the FPGA program after conversion based on the conversion formula;

[0028] A three-axis control signal for the motor movement is generated based on the XYZ axis control signal, thereby generating a three-axis control signal for the motor movement based on the three-axis control signal.

[0029] The second aspect of the present invention further provides a 3D galvanometer plane processing control system, comprising a memory and a processor, wherein the memory comprises a 3D galvanometer plane processing control method program, and when the 3D galvanometer plane processing control method program is executed by the processor, the following steps are implemented:

[0030] After the 3D galvanometer is powered on, the automatic mode is switched to read the fitting interpolation data, wherein the fitting interpolation data specifically includes the surface fitting interpolation coefficient;

[0031] When reading the fitting interpolation data, the surface fitting interpolation data is loaded to identify the adjustment data of the three axes of the coordinates;

[0032] Obtain two channels of data to perform position calculation to obtain target data of the 3D galvanometer, wherein the target data corresponds to position adjustment data of the Z axis along the XY axis;

[0033] A three-axis control signal for motor movement is generated based on the target data, and a 3D galvanometer is marked based on the three-axis control signal.

[0034] In this solution, the method further includes obtaining the fitting interpolation data, specifically including:

[0035] Obtain the drawn sampling grid based on the preset 3D software, and perform pattern scanning processing to obtain the galvanometer trajectory planning data;

[0036] Interpolate the galvanometer trajectory planning data, including scanning the XY axis motor plane and sampling the Z axis motor motion direction;

[0037] The sampled data is converted based on the preset 3D software, and the surface fitting interpolation calculation is performed to obtain the surface fitting interpolation coefficient;

[0038] The surface fitting interpolation coefficients are downloaded based on the preset 3D software, and solidified to obtain the fitting interpolation data.

[0039] In this solution, the interpolation of the galvanometer trajectory planning data specifically includes:

[0040] Generate the control signal of XY axis of the galvanometer based on FPGA program to scan the XY axis motor plane;

[0041] Acquire Z-axis height data based on preset 3D software, and generate Z-axis control signals based on the FPGA program;

[0042] The Z-axis motor movement direction data is sampled based on the Z-axis control signal to obtain the sampled data.

[0043] In this solution, the method also includes establishing a communication connection with a host computer to achieve information interaction with a preset 3D software, wherein the preset 3D software includes a 3D assistant.

[0044] In this solution, the acquisition of two data paths to perform position calculation to obtain the target data of the 3D galvanometer specifically includes:

[0045] Obtain the drawn 2D marking pattern based on 2D marking software;

[0046] Obtaining target values ​​of two data paths based on the 2D marking pattern transformation, wherein the target values ​​include DAC values, and the two data paths correspond to XY axes;

[0047] The target value is intercepted based on a preset protocol, and the Z-axis position data is calculated based on the intercepted XY-axis position data, wherein the preset protocol includes an XY2-100 protocol;

[0048] The target data is obtained based on the XY axis position data and the Z axis position data, and the target data is three-way XY2-100 protocol data.

[0049] In this solution, the three-axis control signal for motor movement is generated based on the target data, and the 3D galvanometer is marked based on the three-axis control signal, which specifically includes:

[0050] Based on the target data and the surface fitting interpolation coefficient, a preset conversion formula is used to perform coordinate transformation, wherein the conversion formula is as follows: , For conversion relationship;

[0051] Generate XYZ axis control signals using the FPGA program after conversion based on the conversion formula;

[0052] A three-axis control signal for the motor movement is generated based on the XYZ axis control signal, thereby generating a three-axis control signal for the motor movement based on the three-axis control signal.

[0053] The third aspect of the present invention provides a computer-readable storage medium, which includes a 3D galvanometer plane processing control method program for a machine. When the 3D galvanometer plane processing control method program is executed by a processor, the steps of a 3D galvanometer plane processing control method as described in any one of the above items are implemented.

[0054] The present invention discloses a 3D galvanometer plane processing control method, system and readable storage medium, which can quickly realize the dynamic adjustment of the welding focus height of the 3D galvanometer, improve the focusing efficiency and realize high-precision displacement welding. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A schematic diagram showing the steps of a 3D galvanometer plane processing control method of the present invention is shown;

[0056] Figure 2 A schematic flow chart of a 3D galvanometer plane processing control method of the present invention is shown;

[0057] Figure 3 A control flow chart of a 3D galvanometer plane processing control method of the present invention is shown;

[0058] Figure 4 A block diagram of a 3D galvanometer plane processing control system of the present invention is shown. DETAILED DESCRIPTION

[0059] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0060] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.

[0061] Figure 1 A flow chart of a 3D galvanometer plane processing control method of the present application is shown.

[0062] like Figure 1 As shown, the present application discloses a 3D galvanometer plane processing control method, comprising the following steps:

[0063] S102, after the 3D galvanometer is powered on, switching to an automatic mode to read fitting interpolation data, wherein the fitting interpolation data specifically includes a surface fitting interpolation coefficient;

[0064] S104, when reading the fitting interpolation data, loading the surface fitting interpolation data to identify adjustment data of three coordinate axes;

[0065] S106, acquiring two data paths to perform position calculation to obtain target data of the 3D galvanometer, wherein the target data corresponds to position adjustment data of the Z axis along the XY axis;

[0066] S108, generating a three-axis control signal for motor movement based on the target data, and marking the 3D galvanometer based on the three-axis control signal.

[0067] It should be noted that in this embodiment, when controlling the 3D galvanometer plane processing, it is necessary to switch to the automatic mode after the 3D galvanometer is powered on to read the fitting interpolation data, wherein the fitting interpolation data specifically includes the surface fitting interpolation coefficients, wherein the difference data is obtained by the peripheral 3D software, such as Figure 2 As shown, it is a schematic diagram of the process of 3D galvanometer plane processing control of the present application, wherein the peripheral 3D software corresponds to the Zhibo 3D marking assistant software, so that when reading the fitting interpolation data, the surface fitting interpolation data can be loaded to identify the adjustment data of the three axes of the coordinates.

[0068] Further, the two data are obtained to calculate the position to obtain the target data of the 3D galvanometer, and the target data corresponds to the position adjustment data of the Z axis along the XY axis, wherein, as Figure 2 As shown, two XY2-100 signals are obtained based on the 2D laser marking control card, and signal generation is performed based on FPGA software and ARM software, that is, three-axis control signals for motor movement are generated based on the target data, which correspond to control signals of motor x, motor y and motor z, so that the 3D galvanometer is marked based on the three-axis control signals, wherein the readable storage medium proposed in the present application includes the Zhibo core control board of FPGA software and ARM software.

[0069] According to an embodiment of the present invention, the method further includes obtaining the fitting interpolation data, specifically including:

[0070] Obtain the drawn sampling grid based on the preset 3D software, and perform pattern scanning processing to obtain the galvanometer trajectory planning data;

[0071] Interpolate the galvanometer trajectory planning data, including scanning the XY axis motor plane and sampling the Z axis motor motion direction;

[0072] The sampled data is converted based on the preset 3D software, and the surface fitting interpolation calculation is performed to obtain the surface fitting interpolation coefficient;

[0073] The surface fitting interpolation coefficients are downloaded based on the preset 3D software, and solidified to obtain the fitting interpolation data.

[0074] It should be noted that, in this embodiment, Figure 3As shown, it is displayed as a control flow diagram, wherein, to obtain the fitting interpolation data, it is necessary to first obtain the drawn sampling grid based on the preset 3D software, and perform pattern scanning processing to obtain the galvanometer trajectory planning data. Correspondingly, the 3D software is Zhibo 3D marking assistant software, and then the galvanometer trajectory planning data is interpolated, including scanning the XY axis motor plane and sampling the Z axis motor movement direction. Specifically, the ARM software generates an XY axis control signal to scan the XY motor plane of the 3D galvanometer, and the 3D assistant software obtains the Z axis height, transmits data via the ARM software, and uses the FPGA software to generate a Z axis control signal to control the Z axis motor movement direction.

[0075] Furthermore, the sampling data is converted based on the preset 3D software, and surface fitting interpolation calculation is performed to obtain surface fitting interpolation coefficients. Specifically, the sampling data corresponds to sampling data of the movement direction of the Z-axis motor. The sampling data is converted based on the 3D assistant software, and surface fitting interpolation calculation is performed to obtain surface fitting interpolation coefficients. Finally, the surface fitting interpolation coefficients are downloaded based on the preset 3D software, and solidified to obtain the fitting interpolation data.

[0076] According to an embodiment of the present invention, interpolating the galvanometer trajectory planning data specifically includes:

[0077] Generate the control signal of XY axis of the galvanometer based on FPGA program to scan the XY axis motor plane;

[0078] Acquire Z-axis height data based on preset 3D software, and generate Z-axis control signals based on the FPGA program;

[0079] The Z-axis motor movement direction data is sampled based on the Z-axis control signal to obtain the sampled data.

[0080] It should be noted that the above embodiment describes that the readable storage medium proposed in this application includes the Zhibo core control board of FPGA software and ARM software, and in this embodiment, Figure 3 As shown, when the galvanometer trajectory planning data is interpolated, the FPGA program, the ARM program and the 3D software are specifically used, wherein, specifically, the control signal of the galvanometer XY axis is generated based on the FPGA program to scan the XY axis motor plane; and the Z axis height data is obtained based on the preset 3D software, the Z axis height data is transmitted using the ARM software, and the Z axis control signal is generated based on the FPGA program, and finally the Z axis motor movement direction data is sampled based on the Z axis control signal, thereby obtaining the sampled data.

[0081] According to an embodiment of the present invention, the method further includes establishing a communication connection with a host computer to implement information interaction with a preset 3D software, wherein the preset 3D software includes a 3D assistant.

[0082] It should be noted that, in this embodiment, Figure 2 as well as Figure 3 As shown, in actual application, this application needs to utilize the peripheral 3D assistant software, specifically the Zhibo 3D marking assistant software. For this, it is necessary to first establish a communication connection with the host computer so that information interaction with the preset 3D software can be realized.

[0083] According to an embodiment of the present invention, acquiring two paths of data to perform position calculation to obtain target data of the 3D galvanometer specifically includes:

[0084] Obtain the drawn 2D marking pattern based on 2D marking software;

[0085] Obtaining target values ​​of two data paths based on the 2D marking pattern transformation, wherein the target values ​​include DAC values, and the two data paths correspond to XY axes;

[0086] The target value is intercepted based on a preset protocol, and the Z-axis position data is calculated based on the intercepted XY-axis position data, wherein the preset protocol includes an XY2-100 protocol;

[0087] The target data is obtained based on the XY axis position data and the Z axis position data, and the target data is three-way XY2-100 protocol data.

[0088] It should be noted that, in this embodiment, there is also 2D marking software in the upper computer that establishes the communication connection. Therefore, the drawn 2D marking pattern can be obtained based on the 2D marking software, and the target value of the two data channels can be obtained based on the 2D marking pattern transformation, wherein the target value includes the DAC value, and the two data channels correspond to the XY axes, so that the target value is intercepted based on the preset protocol, and the Z-axis position data is calculated and generated based on the intercepted XY-axis position data, and the preset protocol includes the XY2-100 protocol. Accordingly, the obtained Z-axis position data is the Z-axis position data of the two XY2-100 signals adjusted with the XY axis, so that the target data is obtained based on the XY-axis position data and the Z-axis position data, and the target data is three-channel XY2-100 protocol data.

[0089] According to an embodiment of the present invention, generating a three-axis control signal for motor movement based on the target data, and marking the 3D galvanometer based on the three-axis control signal specifically includes:

[0090] Based on the target data and the surface fitting interpolation coefficient, a preset conversion formula is used to perform coordinate transformation, wherein the conversion formula is as follows: , For conversion relationship;

[0091] Generate XYZ axis control signals using the FPGA program after conversion based on the conversion formula;

[0092] A three-axis control signal for the motor movement is generated based on the XYZ axis control signal, thereby generating a three-axis control signal for the motor movement based on the three-axis control signal.

[0093] It should be noted that, in this embodiment, Figure 3 As shown, after the target value (DAC value) is intercepted, the coordinate conversion needs to be performed using a conversion formula to generate an XYZ-axis control signal using the FPGA program, and finally a three-axis control signal for motor movement is generated based on the XYZ-axis control signal, corresponding to the control signal of motor x, motor y and motor z, and finally a three-axis control signal for motor movement is generated based on the three-axis control signal.

[0094] Figure 4 A block diagram of a 3D galvanometer plane processing control system of the present invention is shown.

[0095] like Figure 4 As shown, the present invention discloses a 3D galvanometer plane processing control system, including a memory and a processor, wherein the memory includes a 3D galvanometer plane processing control method program, and when the 3D galvanometer plane processing control method program is executed by the processor, the following steps are implemented:

[0096] After the 3D galvanometer is powered on, the automatic mode is switched to read the fitting interpolation data, wherein the fitting interpolation data specifically includes the surface fitting interpolation coefficient;

[0097] When reading the fitting interpolation data, the surface fitting interpolation data is loaded to identify the adjustment data of the three axes of the coordinates;

[0098] Obtain two channels of data to perform position calculation to obtain target data of the 3D galvanometer, wherein the target data corresponds to position adjustment data of the Z axis along the XY axis;

[0099] A three-axis control signal for motor movement is generated based on the target data, and a 3D galvanometer is marked based on the three-axis control signal.

[0100] It should be noted that in this embodiment, when controlling the 3D galvanometer plane processing, it is necessary to switch to the automatic mode after the 3D galvanometer is powered on to read the fitting interpolation data, wherein the fitting interpolation data specifically includes the surface fitting interpolation coefficients, wherein the difference data is obtained by the peripheral 3D software, such as Figure 2 As shown, it is a schematic diagram of the process of 3D galvanometer plane processing control of the present application, wherein the peripheral 3D software corresponds to the Zhibo 3D marking assistant software, so that when reading the fitting interpolation data, the surface fitting interpolation data can be loaded to identify the adjustment data of the three axes of the coordinates.

[0101] Further, the two data are obtained to calculate the position to obtain the target data of the 3D galvanometer, and the target data corresponds to the position adjustment data of the Z axis along the XY axis, wherein, as Figure 2 As shown, two XY2-100 signals are obtained based on the 2D laser marking control card, and signal generation is performed based on FPGA software and ARM software, that is, three-axis control signals for motor movement are generated based on the target data, which correspond to control signals of motor x, motor y and motor z, so that the 3D galvanometer is marked based on the three-axis control signals, wherein the readable storage medium proposed in the present application includes the Zhibo core control board of FPGA software and ARM software.

[0102] According to an embodiment of the present invention, the method further includes obtaining the fitting interpolation data, specifically including:

[0103] Obtain the drawn sampling grid based on the preset 3D software, and perform pattern scanning processing to obtain the galvanometer trajectory planning data;

[0104] Interpolate the galvanometer trajectory planning data, including scanning the XY axis motor plane and sampling the Z axis motor motion direction;

[0105] The sampled data is converted based on the preset 3D software, and the surface fitting interpolation calculation is performed to obtain the surface fitting interpolation coefficient;

[0106] The surface fitting interpolation coefficients are downloaded based on the preset 3D software, and solidified to obtain the fitting interpolation data.

[0107] It should be noted that, in this embodiment, Figure 3 As shown, it is displayed as a control flow diagram, wherein, to obtain the fitting interpolation data, it is necessary to first obtain the drawn sampling grid based on the preset 3D software, and perform pattern scanning processing to obtain the galvanometer trajectory planning data. Correspondingly, the 3D software is Zhibo 3D marking assistant software, and then the galvanometer trajectory planning data is interpolated, including scanning the XY axis motor plane and sampling the Z axis motor movement direction. Specifically, the ARM software generates an XY axis control signal to scan the XY motor plane of the 3D galvanometer, and the 3D assistant software obtains the Z axis height, transmits data via the ARM software, and uses the FPGA software to generate a Z axis control signal to control the Z axis motor movement direction.

[0108] Furthermore, the sampling data is converted based on the preset 3D software, and surface fitting interpolation calculation is performed to obtain surface fitting interpolation coefficients. Specifically, the sampling data corresponds to sampling data of the movement direction of the Z-axis motor. The sampling data is converted based on the 3D assistant software, and surface fitting interpolation calculation is performed to obtain surface fitting interpolation coefficients. Finally, the surface fitting interpolation coefficients are downloaded based on the preset 3D software, and solidified to obtain the fitting interpolation data.

[0109] According to an embodiment of the present invention, interpolating the galvanometer trajectory planning data specifically includes:

[0110] Generate the control signal of XY axis of the galvanometer based on FPGA program to scan the XY axis motor plane;

[0111] Acquire Z-axis height data based on preset 3D software, and generate Z-axis control signals based on the FPGA program;

[0112] The Z-axis motor movement direction data is sampled based on the Z-axis control signal to obtain the sampled data.

[0113] It should be noted that the above embodiment describes that the readable storage medium proposed in this application includes the Zhibo core control board of FPGA software and ARM software, and in this embodiment, Figure 3 As shown, when the galvanometer trajectory planning data is interpolated, the FPGA program, the ARM program and the 3D software are specifically used, wherein, specifically, the control signal of the galvanometer XY axis is generated based on the FPGA program to scan the XY axis motor plane; and the Z axis height data is obtained based on the preset 3D software, the Z axis height data is transmitted using the ARM software, and the Z axis control signal is generated based on the FPGA program, and finally the Z axis motor movement direction data is sampled based on the Z axis control signal, thereby obtaining the sampled data.

[0114] According to an embodiment of the present invention, the method further includes establishing a communication connection with a host computer to implement information interaction with a preset 3D software, wherein the preset 3D software includes a 3D assistant.

[0115] It should be noted that, in this embodiment, Figure 2 as well as Figure 3 As shown, in actual application, this application needs to utilize the peripheral 3D assistant software, specifically the Zhibo 3D marking assistant software. For this, it is necessary to first establish a communication connection with the host computer so that information interaction with the preset 3D software can be realized.

[0116] According to an embodiment of the present invention, acquiring two paths of data to perform position calculation to obtain target data of the 3D galvanometer specifically includes:

[0117] Obtain the drawn 2D marking pattern based on 2D marking software;

[0118] Obtaining target values ​​of two data paths based on the 2D marking pattern transformation, wherein the target values ​​include DAC values, and the two data paths correspond to XY axes;

[0119] The target value is intercepted based on a preset protocol, and the Z-axis position data is calculated based on the intercepted XY-axis position data, wherein the preset protocol includes an XY2-100 protocol;

[0120] The target data is obtained based on the XY axis position data and the Z axis position data, and the target data is three-way XY2-100 protocol data.

[0121] It should be noted that, in this embodiment, there is also 2D marking software in the upper computer that establishes the communication connection. Therefore, the drawn 2D marking pattern can be obtained based on the 2D marking software, and the target value of the two data channels can be obtained based on the 2D marking pattern transformation, wherein the target value includes the DAC value, and the two data channels correspond to the XY axes, so that the target value is intercepted based on the preset protocol, and the Z-axis position data is calculated and generated based on the intercepted XY-axis position data, and the preset protocol includes the XY2-100 protocol. Accordingly, the obtained Z-axis position data is the Z-axis position data of the two XY2-100 signals adjusted with the XY axis, so that the target data is obtained based on the XY-axis position data and the Z-axis position data, and the target data is three-channel XY2-100 protocol data.

[0122] According to an embodiment of the present invention, generating a three-axis control signal for motor movement based on the target data, and marking the 3D galvanometer based on the three-axis control signal specifically includes:

[0123] Based on the target data and the surface fitting interpolation coefficient, a preset conversion formula is used to perform coordinate transformation, wherein the conversion formula is as follows: , For conversion relationship;

[0124] Generate XYZ axis control signals using the FPGA program after conversion based on the conversion formula;

[0125] A three-axis control signal for the motor movement is generated based on the XYZ axis control signal, thereby generating a three-axis control signal for the motor movement based on the three-axis control signal.

[0126] It should be noted that, in this embodiment, Figure 3As shown, after the target value (DAC value) is intercepted, the coordinate conversion needs to be performed using a conversion formula to generate an XYZ-axis control signal using the FPGA program, and finally a three-axis control signal for motor movement is generated based on the XYZ-axis control signal, corresponding to the control signal of motor x, motor y and motor z, and finally a three-axis control signal for motor movement is generated based on the three-axis control signal.

[0127] The third aspect of the present invention provides a computer-readable storage medium, which includes a 3D galvanometer plane processing control method program. When the 3D galvanometer plane processing control method program is executed by a processor, the steps of a 3D galvanometer plane processing control method as described in any one of the above items are implemented.

[0128] The present invention discloses a 3D galvanometer plane processing control method, system and readable storage medium, which can quickly realize the dynamic adjustment of the welding focus height of the 3D galvanometer, improve the focusing efficiency and realize high-precision displacement welding.

[0129] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0130] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0131] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0132] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0133] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

Claims

1. A 3D galvanometer plane processing control method, characterized in that: The following steps are involved: After the 3D galvanometer is powered on, the automatic mode is switched to read the fitting interpolation data, wherein the fitting interpolation data specifically includes the surface fitting interpolation coefficients, and the fitting interpolation data is obtained, specifically including: obtaining the drawn sampling grid based on the preset 3D software, and performing pattern scanning processing to obtain the galvanometer trajectory planning data; interpolating the galvanometer trajectory planning data, including scanning the XY axis motor plane and sampling the Z axis motor movement direction; converting the sampling data based on the preset 3D software, and performing surface fitting interpolation calculation to obtain the surface fitting interpolation coefficients; downloading the surface fitting interpolation coefficients based on the preset 3D software, and solidifying them to obtain the surface fitting interpolation data; When reading the fitting interpolation data, the surface fitting interpolation data is loaded to identify the adjustment data of the three axes of the coordinates; Obtain two channels of data to perform position calculation to obtain target data of the 3D galvanometer, wherein the target data corresponds to position adjustment data of the Z axis along the XY axis; A three-axis control signal for motor movement is generated based on the target data, and a 3D galvanometer is marked based on the three-axis control signal.

2. A 3D galvanometer plane processing control method according to claim 1, characterized in that: The interpolation of the galvanometer trajectory planning data specifically includes: Generate the control signal of the XY axis of the galvanometer based on the FPGA program to scan the XY axis motor plane; Acquire Z-axis height data based on preset 3D software, and generate Z-axis control signals based on the FPGA program; The Z-axis motor movement direction data is sampled based on the Z-axis control signal to obtain the sampled data.

3. A 3D galvanometer plane processing control method according to claim 2, characterized in that: The method also includes establishing a communication connection with a host computer to achieve information interaction with preset 3D software, wherein the preset 3D software includes a 3D assistant.

4. A 3D galvanometer plane processing control method according to claim 3, characterized in that: The step of obtaining two data paths to calculate the position and obtain the target data of the 3D galvanometer specifically includes: Obtain the drawn 2D marking pattern based on 2D marking software; Obtaining target values ​​of two data paths based on the 2D marking pattern transformation, wherein the target values ​​include DAC values, and the two data paths correspond to XY axes; The target value is intercepted based on a preset protocol, and the Z-axis position data is calculated based on the intercepted XY-axis position data, wherein the preset protocol includes an XY2-100 protocol; The target data is obtained based on the XY axis position data and the Z axis position data, and the target data is three-way XY2-100 protocol data.

5. A 3D galvanometer plane processing control method according to claim 4, characterized in that: The generating of a three-axis control signal for motor movement based on the target data, and marking the 3D galvanometer based on the three-axis control signal specifically includes: Based on the target data and the surface fitting interpolation coefficient, a preset conversion formula is used to perform coordinate transformation, wherein the conversion formula is as follows: , For conversion relationship; Generate XYZ axis control signals using the FPGA program after conversion based on the conversion formula; A three-axis control signal for motor movement is generated based on the XYZ axis control signal, so that the 3D galvanometer is marked based on the three-axis control signal.

6. A 3D galvanometer plane processing control system, characterized in that: The invention comprises a memory and a processor, wherein the memory comprises a 3D galvanometer plane processing control method program, and the 3D galvanometer plane processing control method program is executed by the processor to implement the following steps: After the 3D galvanometer is powered on, the automatic mode is switched to read the fitting interpolation data, wherein the fitting interpolation data specifically includes the surface fitting interpolation coefficient; When reading the fitting interpolation data, the surface fitting interpolation data is loaded to identify the adjustment data of the three axes of the coordinates; Obtain two channels of data to perform position calculation to obtain target data of the 3D galvanometer, wherein the target data corresponds to position adjustment data of the Z axis along the XY axis; A three-axis control signal for motor movement is generated based on the target data, and a 3D galvanometer is marked based on the three-axis control signal.

7. A 3D galvanometer plane processing control system according to claim 6, characterized in that: Interpolate the galvanometer trajectory planning data, including: Generate the control signal of the XY axis of the galvanometer based on the FPGA program to scan the XY axis motor plane; Acquire Z-axis height data based on preset 3D software, and generate Z-axis control signals based on the FPGA program; The Z-axis motor movement direction data is sampled based on the Z-axis control signal to obtain sampled data.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a 3D galvanometer plane processing control method program. When the 3D galvanometer plane processing control method program is executed by a processor, the steps of a 3D galvanometer plane processing control method as described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Mould cavity curved surface texture etching method and device

    CN102423831A