Workbench motion control method and device, electronic equipment and medium
Through ultra-high-precision interferometer measurement and two-dimensional compensation technology, the problem of precise control of workbench movement is solved, the workpiece processing position is accurately reached, and the processing accuracy is improved.
Patent Information
- Application Number
- CN202310326101.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-09-24
AI Technical Summary
Existing technology is difficult to achieve precise control of the movement of the workbench, especially the accuracy on the two-dimensional plane is poor, resulting in inaccurate workpiece processing.
Using ultra-high-precision interferometer measurement data, the moving coordinate system of the two axes is converted into a world coordinate system, and the two-dimensional compensation data is calculated and imported into the motion controller for two-dimensional compensation to achieve precise control of the table movement. .
It improves the accuracy of workbench movement, avoids errors caused by CCD cameras and two-dimensional lattice carriers, enhances the optimization effect of motion controller parameters, and achieves accurate arrival of the workpiece processing position.
Smart Images

Figure CN118689166A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a workbench motion control method, device, electronic equipment and medium. Background Art
[0002] The workpiece to be processed can be placed on the workbench. When the workbench moves, the position of the workpiece can change accordingly. In order to achieve accurate processing of the workpiece, it is necessary to accurately control the movement of the workbench. Summary of the invention
[0003] The embodiments of the present application provide a workbench motion control method, device, electronic device and medium, which can achieve precise control of the workbench motion.
[0004] In a first aspect, an embodiment of the present application provides a method for controlling the motion of a worktable, comprising: using a first interferometer to obtain the moving distance of the X-axis and the error of the X-axis corresponding to the moving coordinate system, the moving distance of the Y-axis and the error of the Y-axis corresponding to the moving coordinate system when the worktable moves, to obtain first data, and using a second interferometer to obtain the perpendicularity error between the X-axis and the Y-axis when the worktable moves, to obtain second data, wherein the coordinate axes of the world coordinate system include the X-axis and the Y-axis, and the worktable is used to carry a workpiece to be processed; obtaining first compensation data according to the first data, the second data and a first parameter of a motion controller, the first compensation data including compensation data corresponding to the X-axis and compensation data corresponding to the Y-axis; updating the internal compensation data in the motion controller to the first compensation data, the motion controller being used to control the motion of the worktable according to the internal compensation data; after updating the internal compensation data in the motion controller to the first compensation data, using the motion controller to control the worktable to move to a specified workpiece processing position.
[0005] Optionally, after updating the internal compensation data in the motion controller to the first compensation data, the method further includes: using the motion controller to control the movement of the worktable according to the internal compensation data and the first position, and obtaining the second position after the movement of the worktable; when the deviation between the first position and the second position meets the preset deviation condition, executing the step of using the motion controller to control the worktable to move to a specified workpiece processing position.
[0006] Optionally, the method also includes: when the deviation between the first position and the second position does not meet the deviation condition, according to the deviation between the first position and the second position, optimizing the parameters of the motion controller from the first parameter to the second parameter; using the first interferometer to obtain the moving distance of the X-axis and the error of the moving coordinate system corresponding to the X-axis, the moving distance of the Y-axis and the error of the moving coordinate system corresponding to the Y-axis when the worktable moves, to obtain third data, and using the second interferometer to obtain the verticality error between the X-axis and the Y-axis when the worktable moves, to obtain fourth data; according to the third data, the fourth data and the second parameter, obtaining second compensation data, the second compensation data including compensation data corresponding to the X-axis and compensation data corresponding to the Y-axis; updating the internal compensation data in the motion controller from the first compensation data to the second compensation data; using the motion controller to control the movement of the worktable according to the internal compensation data and the third position, and obtaining the fourth position after the worktable moves; when the deviation between the third position and the fourth position meets the deviation condition, executing the step of using the motion controller to control the worktable to move to the specified workpiece processing position.
[0007] Optionally, the method also includes: when the deviation between the first position and the second position meets a preset deviation condition, using the first interferometer to obtain the moving distance of the X-axis and the error of the moving coordinate system corresponding to the X-axis, the moving distance of the Y-axis and the error of the moving coordinate system corresponding to the Y-axis when the worktable moves, to obtain fifth data; and using the second interferometer to obtain the verticality error between the X-axis and the Y-axis when the worktable moves, to obtain sixth data; obtaining a first coordinate position of the target point based on an image obtained by photographing the target point on the surface of the workpiece to be processed; obtaining a second coordinate position of the target point based on the fifth data, the sixth data and the first coordinate position; and controlling the workpiece processing component to move to a position for processing the workpiece to be processed based on the second coordinate position.
[0008] Optionally, controlling the workpiece processing component to move to a position for processing the workpiece to be processed based on the second coordinate position includes: obtaining target compensation data based on a rotation angle error in the z-axis direction of the moving coordinate system corresponding to the X-axis and a rotation angle error in the z-axis direction of the moving coordinate system corresponding to the Y-axis in the fifth data, and based on the sixth data; and controlling the workpiece processing component to move to a position for processing the workpiece to be processed based on the target compensation data and the second coordinate position.
[0009] Optionally, obtaining the second coordinate position of the target according to the fifth data, the sixth data and the first coordinate position includes: obtaining target compensation data according to a rotation angle error in the z-axis direction of the moving coordinate system corresponding to the X-axis in the fifth data, a rotation angle error in the z-axis direction of the moving coordinate system corresponding to the Y-axis, and the sixth data; obtaining a horizontal coordinate compensation value according to the target compensation data and the moving distance of the X-axis in the fifth data, and obtaining a vertical coordinate compensation value according to the target compensation data and the moving distance of the Y-axis in the fifth data; obtaining a horizontal coordinate value of the second coordinate position according to the horizontal coordinate compensation value and the horizontal coordinate value of the first coordinate position, and obtaining a vertical coordinate value of the second coordinate position according to the vertical coordinate compensation value and the vertical coordinate value of the first coordinate position.
[0010] Optionally, the first data involves multiple movements of the workbench, so that the first data exists in the form of a matrix; the second data involves multiple movements of the workbench, so that the second data exists in the form of a matrix.
[0011] In a second aspect, an embodiment of the present application provides a worktable motion control device, comprising: a first acquisition module, used to use a first interferometer to acquire the movement distance of the X-axis and the error of the X-axis corresponding to the moving coordinate system, the movement distance of the Y-axis and the error of the Y-axis corresponding to the moving coordinate system when the worktable moves, to obtain first data, and use a second interferometer to acquire the verticality error between the X-axis and the Y-axis when the worktable moves, to obtain second data, wherein the coordinate axes of the world coordinate system include the X-axis and the Y-axis, and the worktable is used to carry a workpiece to be processed; a second acquisition module, used to obtain first compensation data according to the first data, the second data and a first parameter of the motion controller, the first compensation data including compensation data corresponding to the X-axis and compensation data corresponding to the Y-axis; a processing module, used to update the internal compensation data in the motion controller to the first compensation data, the motion controller being used to control the movement of the worktable according to the internal compensation data; a control module, used to use the motion controller to control the worktable to move to a specified workpiece processing position after updating the internal compensation data in the motion controller to the first compensation data.
[0012] In a third aspect, an embodiment of the present application provides an electronic chip, comprising: a processor, which is used to execute computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the electronic chip is triggered to execute any method as in the first aspect.
[0013] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory for storing computer program instructions, a processor for executing the computer program instructions, and a communication device, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute a method as described in any one of the first aspects.
[0014] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes any method in the first aspect.
[0015] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is run on a computer, the computer executes any method in the first aspect.
[0016] In an embodiment of the present application, an ultra-high precision interferometer is used to accurately measure data. Based on the measurement data of the interferometer, the moving coordinate systems of the two axes are converted into the world coordinate system, and the errors of the two axes are also converted during the conversion process to obtain two-dimensional compensation data. The two-dimensional compensation data is imported into the motion controller to perform two-dimensional compensation on the movement of the workbench, thereby achieving precise control of the movement of the workbench. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A schematic flow chart of a workbench motion control method provided in one embodiment of the present application;
[0019] Figure 2 A schematic diagram of a control system provided by one embodiment of the present application;
[0020] Figure 3 A block diagram of a workbench motion control device provided in one embodiment of the present application;
[0021] Figure 4 A schematic diagram of the structure of a computer device provided for one embodiment of the present application. DETAILED DESCRIPTION
[0022] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0023] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0024] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0025] It should be understood that the term "at least one" used in this article refers to one or more, and "plurality" refers to two or more. The term "and / or" used in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. Among them, A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, wherein a, b, c can be single or multiple.
[0026] It should be understood that, although the terms first, second, etc. may be used to describe the set thresholds in the embodiments of the present application, these set thresholds should not be limited to these terms. These terms are only used to distinguish the set thresholds from each other. For example, without departing from the scope of the embodiments of the present application, the first set threshold may also be referred to as the second set threshold, and similarly, the second set threshold may also be referred to as the first set threshold.
[0027] The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.
[0028] The workpiece to be processed can be placed on the workbench. When the workbench moves, the position of the workpiece can change accordingly. In order to achieve accurate processing of the workpiece, it is necessary to accurately control the movement of the workbench.
[0029] In one embodiment, the workpiece to be processed may be a PCB (Printed Circuit Board).
[0030] In a feasible implementation method (denoted as method 1), the movement of the workbench can be compensated in one dimension.
[0031] Based on the realization of one-dimensional compensation, the accuracy of a single axis after compensation by interferometer measurement can meet the requirements, but the accuracy on the two-dimensional plane is poor. This is because the realization of one-dimensional compensation is internal compensation in the moving coordinate system, which does not involve the conversion with the world coordinate system.
[0032] In another feasible implementation method (denoted as method 2), a two-dimensional dot matrix can be used for two-dimensional compensation.
[0033] For example, the intersections of the horizontal and vertical lines on a two-dimensional dot matrix carrier (such as a glass ruler) can form a two-dimensional dot matrix, and a CCD (charge coupled device) camera can be used to photograph the two-dimensional dot matrix. Based on the captured image of the two-dimensional dot matrix and the theoretical position data of the two-dimensional dot matrix, the dot matrix error of the two-dimensional dot matrix can be calculated, and then the parameters of the motion controller used to control the motion of the workbench can be optimized based on the calculated dot matrix error and the actual dot matrix error of the two-dimensional dot matrix.
[0034] However, when using a two-dimensional dot matrix for two-dimensional compensation, it involves the measurement of the CCD camera and the two-dimensional dot matrix carrier, and the error magnitude of the two-dimensional dot matrix remains fixed but different, for example, all are millimeter-level errors. The existence of these factors makes method 2 have a poor effect on the parameter optimization of the motion controller, and the control accuracy of the worktable motion is low.
[0035] like Figure 1 As shown, an embodiment of the present application provides a workbench motion control method, which may include the following steps 101 to 104. In one embodiment, Figure 1 The execution subject of the illustrated embodiment may be a control device / module.
[0036] Step 101, using a first interferometer to obtain the moving distance of the X-axis and the error of the moving coordinate system corresponding to the X-axis, the moving distance of the Y-axis and the error of the moving coordinate system corresponding to the Y-axis when the worktable moves, to obtain first data, and using a second interferometer to obtain the verticality error between the X-axis and the Y-axis when the worktable moves, to obtain second data, wherein the coordinate axes of the world coordinate system include the X-axis and the Y-axis, and the worktable is used to carry the workpiece to be processed.
[0037] In a feasible implementation, the control module can trigger the first interferometer and the second interferometer to work, and obtain measurement data of the first interferometer and the second interferometer.
[0038] In one embodiment, the first interferometer may be a laser interferometer for measuring the moving distance of two axes and the corresponding moving coordinate system error, such as an XM60 laser interferometer. The XM60 laser interferometer is a laser measurement system that can simultaneously measure the errors of six degrees of freedom (i.e., six errors) along the linear axis with only one setting.
[0039] In a feasible implementation, a first interferometer (such as an XM60 laser interferometer) may be used to first measure the six X-axis errors corresponding to the X-axis, and then the first interferometer may be used to measure the six Y-axis errors corresponding to the Y-axis.
[0040] In another feasible implementation, a first interferometer (such as an XM60 laser interferometer) may be used to first measure the six Y-axis errors corresponding to the Y-axis, and then the first interferometer may be used to measure the six X-axis errors corresponding to the X-axis.
[0041] Preferably, the moving coordinate system may include three axes: x, y, and z.
[0042] In one embodiment of the present application, taking the X-axis as an example, the error of the X-axis corresponding to the moving coordinate system may include at least one of the errors in the x-axis, y-axis, and z-axis directions corresponding to the moving coordinate system.
[0043] In one embodiment of the present application, taking the x-axis direction as an example, the error in the x-axis direction of the corresponding moving coordinate system may include at least one of a displacement error and a rotation angle error in the x-axis direction of the corresponding moving coordinate system.
[0044] In one embodiment of the present application, the error of the moving coordinate system corresponding to the X-axis includes: at least one of: a displacement error of the X-axis corresponding to the moving coordinate system in the x-axis direction (for example, denoted as dx(X)), a displacement error of the X-axis corresponding to the moving coordinate system in the y-axis direction (for example, denoted as dy(X)), a displacement error of the X-axis corresponding to the moving coordinate system in the z-axis direction (for example, denoted as dz(X)), a rotation angle error of the X-axis corresponding to the moving coordinate system in the x-axis direction (for example, denoted as rx(X)), a rotation angle error of the X-axis corresponding to the moving coordinate system in the y-axis direction (for example, denoted as ry(X)), and a rotation angle error of the X-axis corresponding to the moving coordinate system in the z-axis direction (for example, denoted as rz(X)).
[0045] In one embodiment of the present application, the error of the moving coordinate system corresponding to the Y-axis includes: at least one of: a displacement error of the Y-axis corresponding to the moving coordinate system in the x-axis direction (for example, denoted as dx(Y)), a displacement error of the Y-axis corresponding to the moving coordinate system in the y-axis direction (for example, denoted as dy(Y)), a displacement error of the Y-axis corresponding to the moving coordinate system in the z-axis direction (for example, denoted as dz(Y)), a rotation angle error of the Y-axis corresponding to the moving coordinate system in the x-axis direction (for example, denoted as rx(Y)), a rotation angle error of the Y-axis corresponding to the moving coordinate system in the y-axis direction (for example, denoted as ry(Y)), and a rotation angle error of the Y-axis corresponding to the moving coordinate system in the z-axis direction (for example, denoted as rz(Y)).
[0046] In a feasible implementation, taking the X-axis as an example, the displacement error may be the difference between the moving distance of the X-axis measured by the interferometer (for example, denoted as mX) and the theoretical moving distance of the X-axis.
[0047] In a feasible implementation, taking the X-axis as an example, the rotation angle error may be the difference between the rotation angle of the X-axis relative to the x-axis direction measured by the interferometer and the theoretical rotation angle of the X-axis relative to the x-axis direction.
[0048] In one embodiment of the present application, the first data measured by using the first interferometer may involve multiple movements of the workbench, so that the first data exists in the form of a matrix.
[0049] In one feasible implementation, taking the movement of the workbench along the X-axis direction as an example, each time the workbench moves, the corresponding X-axis movement distance can be measured (to obtain mX), and a corresponding set of X-axis corresponding moving coordinate system errors can be measured (for example, dx(X), dy(X), dz(X), rx(X), ry(X), rz(X)).
[0050] When the workbench moves multiple times, the corresponding moving distances of multiple X-axes can be measured, and the corresponding errors of multiple groups of X-axis corresponding moving coordinate systems can be measured. Multiple values can form a matrix, so that the error matrix of the X-axis [dx(X)], [dy(X)], [dz(X)], [rx(X)], [ry(X)], [rz(X)] can be measured, and the movement matrix of the X-axis [mX] can be measured. In one embodiment, these matrices can be 1×xi matrices.
[0051] Similarly, the error matrix [dx(Y)], [dy(Y)], [dz(Y)], [rx(Y)], [ry(Y)], [rz(Y)] of the Y axis can be measured, and the movement matrix [mY] of the Y axis can be measured. In one embodiment, these matrices can be yj×1 matrices.
[0052] A total of twelve errors of the X and Y axes can be obtained by using a six-dimensional interferometer. The twelve errors can then be converted according to the X\Y coordinate values to calculate the X and Y compensation data. The calculated X and Y compensation data can be imported into the motion controller for two-dimensional compensation to support the motion controller's accurate control of the workbench operation.
[0053] In one embodiment, the second interferometer may be a laser interferometer for measuring the perpendicularity errors of two axes of the world coordinate system, for example, an XL80 laser interferometer.
[0054] In a feasible implementation, the verticality error can be the difference between the verticality of the two axes measured by the interferometer and the theoretical verticality of the two axes. Preferably, the verticality error can reflect the rotation error of the moving coordinate system.
[0055] In one embodiment of the present application, the second data measured by using the second interferometer may involve multiple movements of the workbench, so that the second data exists in the form of a matrix.
[0056] In a feasible implementation, each time the workbench moves (which may involve both the movement of the X-axis and the movement of the Y-axis), a corresponding verticality error (for example, denoted as Sxy) can be measured. When the workbench moves multiple times, multiple corresponding verticality errors can be measured. Multiple verticality errors can form a verticality error matrix [Sxy]. In one embodiment, the verticality error matrix [Sxy] can be a yj×xi matrix.
[0057] In one embodiment, when both the first data and the second data exist in the form of matrices, the matrix of the first data corresponds to the matrix of the second data, which can be specifically reflected in that the X-axis movement amount of the workbench involved in the second data during multiple movements is consistent with the X-axis movement amount of the workbench involved in the first data during multiple movements, and the Y-axis movement amount of the workbench involved in the second data during multiple movements is consistent with the Y-axis movement amount of the workbench involved in the first data during multiple movements.
[0058] In a feasible implementation, the number of rows of [Sxy] can be yj, corresponding to the yj movement amounts of the Y axis, and the number of rows of matrices [dx(Y)], [dy(Y)], [dz(Y)], [rx(Y)], [ry(Y)], [rz(Y)], and [mY] is also yj, corresponding to the same yj movement amounts. The number of columns of [Sxy] can be xi, corresponding to the xi movement amounts of the X axis, and the number of columns of matrices [dx(X)], [dy(X)], [dz(X)], [rx(X)], [ry(X)], [rz(X)], and [mX] is also xi, corresponding to the same xi movement amounts.
[0059] Based on the correspondence between the matrix of the first data and the matrix of the second data, the compensation data corresponding to the X-axis and the Y-axis can be calculated according to the first data and the second data.
[0060] Step 102: Obtain first compensation data according to the first data, the second data and a first parameter of the motion controller, wherein the first compensation data includes compensation data corresponding to the X-axis and compensation data corresponding to the Y-axis.
[0061] In one embodiment of the present application, the first parameter of the motion controller may be the current gain contribution of the motion controller. According to the current gain contribution of the motion controller, the compensation data for motion compensation is calculated. The gain performance is accurately adjusted according to the gain contribution, and the compensation algorithm has high accuracy and good compensation effect.
[0062] In one embodiment, the first data includes the above-mentioned X-axis movement matrix [mX], X-axis error matrix [dx(X)], [dy(X)], [dz(X)], [rx(X)], [ry(X)], [rz(X)], Y-axis movement matrix [mY], Y-axis error matrix [dx(Y)], [dy(Y)], [dz(Y)], [rx(Y)], [ry(Y)], [rz(Y)].
[0063] In one embodiment, the second data may include the above-mentioned verticality error matrix [Sxy].
[0064] In one embodiment of the present application, the compensation data corresponding to the X-axis (or X-direction compensation data) can be calculated by the following formula:
[0065] [Dx]=-1*([dx(X)]+[dx(Y)]+Gry*[dz(X)]*([ry(Y)]+[ry(X)])-Grz1*[mY]*([rz(X)]+[rz(Y)]+[S xy])-Grz2*[mX]*[rz(Y)]*[Sxy]-Grz3*[dy(X)]*([rz(Y)]+[Sxy])-Grz4*[dx(X)]*[rz(Y)]*[Sxy])
[0066] Among them, [Dx] is the compensation data corresponding to the X-axis, and Gry, Grx, Grz1~Grz8 are all parameters of the motion controller (specifically, the gain contribution of the motion controller).
[0067] The calculated [Dx] can be a yj×xi matrix, and the compensation data [Dx] corresponding to the X-axis can also be called the X-direction compensation matrix.
[0068] In one embodiment of the present application, the compensation data corresponding to the Y-axis (or Y-direction compensation data) can be calculated by the following formula:
[0069] [Dy]=-1*([dy(X)]+[dy(Y)]-Grx*[dz(X)]*([rx(Y)]+[rx(X)])+Grz5*[mX]*([rz(X)]+[rz(Y)]+[S xy])+Grz6*[mX]*[rz(Y)]*[Sxy]+Grz7*[dx(X)]*([rz(Y)]+[Sxy])-Grz8*[dy(X)]*[rz(Y)]*[Sxy])
[0070] Among them, [Dy] is the compensation data corresponding to the Y axis, and Gry, Grx, Grz1~Grz8 are all parameters of the motion controller (specifically, the gain contribution of the motion controller).
[0071] The calculated [Dy] can be a yj×xi matrix, so the compensation data [Dy] corresponding to the Y axis can also be called the Y-direction compensation matrix.
[0072] The first compensation data can be calculated according to the calculation formula of [Dx] and [Dy] above. Since the compensation is performed through a homogeneous error transformation matrix, the compensation effect is good.
[0073] In one embodiment, [dx(X)] is a matrix with one row and n columns, and the values of each column are A1B1, A1B2, A1B3...A1Bn, and [dx(Y)] is a matrix with n rows and one column, and the values of each row are C1D1, C2D1, C3D1...CnD1.
[0074] Taking matrix addition as an example, in a feasible implementation method, the matrix obtained by [dx(X)]+[dx(Y)] can be an n-row and n-column matrix, and the value of the 1st row and 1st column in the n-row and n-column matrix can be E1F1, E1F1=A1B1+C1D1, the value of the i-th row and j-th column in the n-row and n-column matrix can be EiFj, EiFj=A1Bj+CiD1, and the value of the n-th row and n-th column in the n-row and n-column matrix can be EnFn, EnFn=A1Bn+CnD1.
[0075] In another feasible implementation, the matrix obtained by [dx(X)]+[dx(Y)] can be an n-row and n-column matrix, where [dx(X)]+[dx(Y)]=the filled matrix of [dx(X)]+the filled matrix of [dx(Y)].
[0076] Among them, the filled matrix of [dx(X)] is a matrix of n rows and n columns. The values in the same column but different rows in the matrix are equal and are all equal to the value of the column in [dx(X)]. Taking the j-th column as an example, the values in the j-th column of the matrix are A1Bj, A2Bj, A3Bj...AnBj, and A1Bj=A2Bj=A3Bj=AnBj.
[0077] Among them, the filled matrix of [dx(Y)] is a matrix of n rows and n columns. The values in the same row and different rows in the matrix are equal and equal to the value of the row in [dx(Y)]. Taking the i-th row as an example, the values in the i-th row of the matrix are CiD1, CiD2, CiD3...CiDn, and CiD1=CiD2=CiD3=CiDn.
[0078] Step 103: Update the internal compensation data in the motion controller to first compensation data, and the motion controller is used to control the movement of the workbench according to the internal compensation data.
[0079] The internal compensation data is the internal compensation data in the motion controller. In one embodiment, after the internal compensation data in the motion controller is updated to the first compensation data, and the compensation data of the motion controller is not updated again subsequently, the internal compensation data is the first compensation data, and the motion controller controls the movement of the workbench according to the first compensation data.
[0080] In one embodiment, the internal compensation data in the motion controller can be empty (i.e., no compensation is performed). By updating the existing compensation data to first compensation data (such as the above-mentioned [Dx], [Dy]), the motion controller performs compensation according to the first compensation data to control the movement of the workbench.
[0081] The first compensation data involves compensation data in the X and Y directions respectively, and thus two-dimensional compensation of the workbench movement can be realized. In addition, the first compensation data is calculated based on the measurement data of the interferometer, and the measurement data of the interferometer may include the movement error and rotation angle error of the X and Y axes corresponding to the moving coordinate axes x, y, and z directions, so the compensation data obtained based on this is more accurate, which is conducive to realizing precise control of the operation of the workbench.
[0082] Step 104 , after the internal compensation data in the motion controller is updated to the first compensation data, the motion controller is used to control the worktable to move to a designated workpiece processing position.
[0083] In a feasible implementation, the control module can trigger the motion controller to operate so as to control the movement of the workbench.
[0084] In a feasible implementation, after the first compensation data is imported into the motion controller, the motion controller can control the worktable to move to a specified position accordingly, and the workpiece processing component can process the workpiece at this position to achieve precise processing of the workpiece.
[0085] It is feasible that the above steps 101 to 103 may be performed regularly or periodically as needed, or before each workpiece processing task.
[0086] Figure 1 The illustrated embodiment can have at least the following beneficial effects:
[0087] 1) Two-dimensional compensation can be achieved
[0088] A total of twelve errors of the X and Y axes can be obtained by using a six-dimensional interferometer. The twelve errors can be converted according to the X\Y coordinate values to calculate the X and Y compensation data. The calculated X and Y compensation data can be imported into the motion controller for two-dimensional compensation to support the motion controller's accurate control of the workbench operation.
[0089] 2) High compensation accuracy
[0090] An ultra-high precision interferometer is used to accurately measure data, and the data acquisition accuracy is high. The compensation data obtained based on this is accurate, which makes the compensation accuracy of the workbench motion control high.
[0091] The measurement data of the interferometer may include the movement error and rotation angle error of the X, Y axes corresponding to the moving coordinate axes x, y, and z. The compensation data obtained based on this is more accurate, which is conducive to the precise control of the workbench operation.
[0092] The compensation data can be calculated according to the gain contribution of the motion controller. By accurately adjusting the gain performance according to the gain contribution, the compensation algorithm has high accuracy and good compensation effect.
[0093] 3) Adjustable measurement distance
[0094] An ultra-high precision interferometer is used to obtain error data, and the error acquisition interval can be adjusted according to actual conditions.
[0095] visible, Figure 1 The illustrated embodiment uses an ultra-high precision interferometer to accurately measure data. Based on the measurement data of the interferometer, the moving coordinate systems of the two axes are converted into the world coordinate system, and the errors of the two axes are also converted during the conversion process to obtain two-dimensional compensation data. The two-dimensional compensation data is then imported into the motion controller to perform two-dimensional compensation on the movement of the worktable. In this way, precise control of the movement of the worktable can be achieved.
[0096] Compared with the one-dimensional compensation described in the above method 1, Figure 1 The illustrated embodiment can better and precisely control the movement of the workbench through two-dimensional compensation.
[0097] Compared with the two-dimensional compensation using a two-dimensional dot matrix as described in the above method 2, Figure 1 The embodiment shown may not involve the measurement of a CCD camera, thereby avoiding the introduction of errors caused by the CCD camera, and may not involve a carrier of a two-dimensional dot matrix, thereby avoiding the introduction of errors of the two-dimensional dot matrix carrier, and the error magnitude of the two-dimensional dot matrix remains fixed. In addition, Figure 1 The embodiment shown uses an interferometer to measure data, and the data acquisition accuracy is high. Figure 1 In the embodiment shown, the movement amount on the two axes can be adjusted so that the error magnitude of the movement amount can be changed as needed (the error magnitude can be made lower than the error magnitude of the two-dimensional dot matrix), thereby better optimizing the parameters of the motion controller and facilitating the precise control of the workbench movement.
[0098] based on Figure 1 In the implementation of the illustrated embodiment, in order to ensure the motion control effect of the workbench, the motion control result of the motion controller on the workbench can also be verified.
[0099] In one embodiment of the present application, after the internal compensation data in the motion controller is updated to the first compensation data, the workbench motion control method may further include: using the motion controller to control the movement of the workbench according to the internal compensation data and the first position, and obtaining the second position after the movement of the workbench; when the deviation between the first position and the second position meets the preset deviation condition, executing step 104.
[0100] Feasibly, the first position can be used as the theoretical motion position, and the second position can be used as the actual motion position. Based on the deviation between the theoretical motion position and the actual motion position (for example, the distance between the two positions), the accuracy of the workbench motion control can be reflected.
[0101] In one embodiment, a distance threshold can be set as needed. If the distance between the first position and the second position is less than the distance threshold, it can be considered that the deviation condition is met. At this time, it can be considered that the motion control accuracy of the motion controller for the workbench meets expectations, and precise control of the workbench movement can be achieved, then step 104 can be executed.
[0102] In one embodiment, a two-dimensional grating can be used to measure the position of the workbench after movement. A high-precision two-dimensional grating is used to verify the two-dimensional accuracy, and the verification accuracy is high.
[0103] In one embodiment, if the deviation condition is not met, step 104 may not be performed temporarily.
[0104] On the basis of using ultra-high precision interferometer to obtain error data, high-precision two-dimensional grating is further used to verify the two-dimensional precision compensation effect, which can further ensure the precise control of the worktable movement.
[0105] based on Figure 1 The implementation of the illustrated embodiment, in order to ensure the workbench motion control effect, also combines the motion control results of the workbench to perform closed-loop optimization on the parameters of the motion controller, which can further improve the precise control of the workbench motion.
[0106] In one embodiment of the present application, the workbench motion control method also includes: when the deviation between the first position and the second position does not meet the deviation condition, optimizing the parameters of the motion controller from the first parameter to the second parameter according to the deviation between the first position and the second position; using the first interferometer to obtain the movement distance of the X-axis and the error of the moving coordinate system corresponding to the X-axis, the movement distance of the Y-axis and the error of the moving coordinate system corresponding to the Y-axis when the workbench moves, to obtain third data, and using the second interferometer to obtain the verticality error between the X-axis and the Y-axis when the workbench moves, to obtain fourth data; according to the third data, the fourth data and the second parameter, obtaining second compensation data, the second compensation data including compensation data corresponding to the X-axis and compensation data corresponding to the Y-axis; updating the internal compensation data in the motion controller from the first compensation data to the second compensation data; using the motion controller to control the movement of the workbench according to the internal compensation data and the third position, and obtaining the fourth position after the workbench moves; when the deviation between the third position and the fourth position meets the deviation condition, executing step 104.
[0107] If the deviation condition is not met, the parameters of the motion controller (such as gain contribution) can be optimized according to the deviation, and new compensation data (i.e. the second compensation data, the corresponding implementation principle is the same as the above steps 101-102) can be calculated accordingly, and then the verification is performed again until the verification is passed. For example, the gain contribution of the X\Y axis due to the angle change can be modified through the two-dimensional grating verification feedback.
[0108] In one embodiment, the deviation between the first position and the second position may be the distance between the first position and the second position, and the gain contribution of the motion controller may be optimized according to the difference between the distance and a preset distance threshold.
[0109] In step 103, the two-dimensional compensation data (i.e., the first compensation data) obtained according to the interferometer measurement data is imported into the motion controller, and the motion controller controls the precise movement of the workbench based on the first compensation data. When the motion controller controls the movement of the workbench based on the first compensation data, the third data and the fourth data are obtained, and new compensation data (i.e., the second compensation data) is calculated based on the third data, the fourth data, and the optimized parameters. The motion compensation effect of the second compensation data is usually better than that of the first compensation data. After that, the second compensation data is imported into the motion controller, and the motion controller controls the more precise movement of the workbench based on the second compensation data.
[0110] After the second compensation data is imported into the motion controller, the two-dimensional precision compensation effect of the second compensation data can be verified again. If the verification is passed, step 104 can be executed. Otherwise, step 104 can be temporarily skipped and the parameters of the motion controller can be optimized again. This cycle can be repeated for multiple optimizations until the verification is passed.
[0111] The optimization cycle method based on closed-loop feedback can ensure that when verification passes, the latest optimized parameters are usually better than the previously optimized parameters, and the latest calculated two-dimensional compensation data are usually better than the previously calculated two-dimensional compensation data. Based on the latest optimized parameters and the latest calculated two-dimensional compensation data, precise control of the workbench movement can be achieved.
[0112] It is feasible. On the one hand, an ultra-high-precision interferometer can be used to obtain error data. On the other hand, a high-precision two-dimensional grating can be used to verify the two-dimensional accuracy compensation effect, and a closed-loop feedback method can be used to adjust the contribution of each gain, so that the two-dimensional error compensation data can be finely adjusted. Closed-loop control of compensation through two measurement methods can ensure precise control of the worktable movement.
[0113] On the basis of accurately controlling the movement of the workbench, in order to achieve precise processing of the workpiece, the control module can also accurately control the movement of the workpiece processing components (such as the laser cutter head used to process the workpiece).
[0114] In one embodiment of the present application, the worktable motion control method may further include: when the deviation between the first position and the second position meets the preset deviation condition, using the first interferometer to obtain the moving distance of the X-axis and the error of the moving coordinate system corresponding to the X-axis, the moving distance of the Y-axis and the error of the moving coordinate system corresponding to the Y-axis when the worktable moves, to obtain fifth data; and using the second interferometer to obtain the verticality error between the X-axis and the Y-axis when the worktable moves, to obtain sixth data; obtaining a first coordinate position of the target point based on an image obtained by photographing the target point on the surface of the workpiece to be processed; obtaining a second coordinate position of the target point based on the fifth data, the sixth data and the first coordinate position; and controlling the workpiece processing component to move to a position for processing the workpiece to be processed based on the second coordinate position.
[0115] If the two-dimensional precision compensation effect of the first compensation data is verified, the parameters of the motion controller can be optimized, that is, the first parameters are available. Since the first data and the second data are obtained before the first compensation data is imported into the motion controller, after the verification, the control module can trigger the interferometer to work again to obtain new measurement data (that is, the fifth data and the sixth data). The new measurement data is obtained when the motion controller controls the movement of the workbench based on the verified first compensation data, so it can be more accurate than the first data and the second data. In this way, compared with restoring the real coordinates of the target point based on the first data and the second data, the restoration effect when restoring the real coordinates of the target point based on the new measurement data is better, which is more conducive to the precise operation control of the workpiece processing parts.
[0116] In one embodiment, the implementation method of controlling the movement of the workpiece processing component may include a graphic mapping step and a graphic data sending galvanometer step. In the graphic mapping step, a graphic mapping may be performed based on the second coordinate position (i.e., the restored real coordinates of the target point) and the graphic (such as a pre-given computer graphic), such as by projecting the computer graphic onto the actual graphic, and the mapped graphic data may be obtained. In the graphic data sending galvanometer step, the graphic data after the graphic mapping may be sent to the galvanometer, and the galvanometer may involve two motors, which rotate to drive the reflector to deflect the light beam to the corresponding position, so that the workpiece processing component (such as a laser cutter head) has a corresponding movement.
[0117] In one embodiment, a CCD camera can be used to photograph the workpiece to be processed, and the coordinate position of the target point can be obtained based on the photographed image. The fifth data and the sixth data can be used to restore and correct the coordinate position of the target point measured by the CCD camera to restore the real coordinates of the target point.
[0118] In one feasible implementation, there may be three target points (target points A to C) on the workpiece surface, and the first coordinate position obtained may include the coordinate position A (xa, ya) of target point A, the coordinate position B (xb, yb) of target point B, and the coordinate position C (xc, yc) of target point C.
[0119] In one embodiment of the present application, the step of obtaining the second coordinate position of the target point according to the fifth data, the sixth data and the first coordinate position may include: obtaining target compensation data according to the rotation angle error of the z-axis direction of the moving coordinate system corresponding to the X-axis in the fifth data, the rotation angle error of the z-axis direction of the moving coordinate system corresponding to the Y-axis, and the sixth data; obtaining a horizontal coordinate compensation value according to the target compensation data and the moving distance of the X-axis in the fifth data, and obtaining a vertical coordinate compensation value according to the target compensation data and the moving distance of the Y-axis in the fifth data; obtaining the horizontal coordinate value of the second coordinate position according to the horizontal coordinate compensation value and the horizontal coordinate value of the first coordinate position, and obtaining the vertical coordinate value of the second coordinate position according to the vertical coordinate compensation value and the vertical coordinate value of the first coordinate position.
[0120] In one embodiment, the target compensation data may be calculated by the following formula:
[0121] [Wrz]=[rz(X)]+[rz(Y)]+[Sxy]
[0122] Among them, [Wrz] is the target compensation data, and [Wrz] is the yj×xi matrix.
[0123] In one embodiment, the horizontal axis compensation value may be the product of the target compensation data and the moving distance of the X axis in the fifth data, such as [Wrz]*[mX].
[0124] In one embodiment, the vertical coordinate compensation value may be the product of the target compensation data and the moving distance of the Y axis in the fifth data, such as [Wrz]*[mY].
[0125] In one embodiment, the horizontal coordinate value of the second coordinate position may be the sum of the horizontal coordinate value of the first coordinate position and the horizontal coordinate compensation value.
[0126] In one embodiment, the ordinate value of the second coordinate position may be a difference obtained by subtracting the ordinate compensation value from the ordinate value of the first coordinate position.
[0127] In one embodiment, when the first coordinate position includes the coordinate position A(xa, ya) of target A, the coordinate position B(xb, yb) of target B, and the coordinate position C(xc, yc) of target C, the second coordinate position includes the restored coordinate position A'(xa+[mY]*[Wrz], ya-[mX]*[Wrz]) of target A, the restored coordinate position B'(xb+[mY]*[Wrz], yb-[mX]*[Wrz]) of target B, and the restored coordinate position C' of target C.
[0128] (xc+[mY]*[Wrz],yc-[mX]*[Wrz]).
[0129] In one embodiment of the present application, the step of controlling the workpiece processing component to move to a position for processing the workpiece to be processed according to the second coordinate position may include: obtaining target compensation data (such as the above-mentioned [Wrz]) according to the rotation angle error in the z-axis direction of the moving coordinate system corresponding to the X-axis in the fifth data, the rotation angle error in the z-axis direction of the moving coordinate system corresponding to the Y-axis in the sixth data, and controlling the workpiece processing component to move to a position for processing the workpiece to be processed according to the target compensation data and the second coordinate position.
[0130] In a feasible implementation method, the target compensation data, the second coordinate position and the graphic input can be put into the graphic mapping step, and the graphic mapping can be performed based on the rotation compensation data and the restored real coordinates of the target point. Then, the graphic data after the graphic mapping can be sent to the galvanometer to realize the motion control of the workpiece processing parts.
[0131] Since a general workbench has no rotating axis, the rotation error around the Z-axis caused by the workbench movement cannot be compensated by the workbench. Therefore, it is necessary to cooperate with expansion and contraction. By inputting the rotation compensation data into the graphic mapping step and cooperating with the galvanometer to compensate the compensation data in the form of graphics into the galvanometer, the accuracy of the whole machine can be improved.
[0132] In one embodiment of the present application, third compensation data can be obtained according to the fifth data, the sixth data and the first parameter, and the third compensation data is imported into the motion controller before executing step 104. Compared with the first compensation data, the motion controller can more accurately control the movement of the workbench based on the third compensation data.
[0133] Please refer to Figure 2 , Figure 2 A control system is shown, which may include a first interferometer 201, a second interferometer 202, a compensation data acquisition module 203, a motion controller 204, a two-dimensional grating 205, a target coordinate acquisition module 206, a target coordinate restoration module 207, a control module 208, and a workpiece processing component 209.
[0134] The first interferometer 201 can be used to measure a total of twelve errors in the X and Y axes (six errors in a single axis).
[0135] The second interferometer 202 may be used to measure the verticality errors of the X and Y axes.
[0136] The compensation data acquisition module 203 can be used to calculate the X and Y compensation data according to the measurement results of the first interferometer 201 and the second interferometer 202 and the current gain contribution of the motion controller 204 , and import the X and Y compensation data into the motion controller 204 .
[0137] The motion controller 204 can be used to control the motion of the workbench according to the latest imported X and Y compensation data.
[0138] The two-dimensional grating 205 can be used to measure and verify the motion compensation effect. The compensation data acquisition module 203 also optimizes the gain contribution of the motion controller 204 according to the measurement verification result of the two-dimensional grating 205, and calculates new X and Y compensation data based on the optimized gain contribution, and repeats this cycle until the measurement verification result of the two-dimensional grating 205 meets the requirements.
[0139] The target point coordinate acquisition module 206 may be used to acquire the coordinate position of the target point on the surface of the workpiece.
[0140] The target coordinate restoration module 207 can be used to restore the real coordinates of the target according to the actually acquired coordinate position of the target and the measurement result of the second interferometer 202 .
[0141] The control module 208 may be used to control the movement of the workpiece processing component 209 according to the restored real coordinates of the target point.
[0142] The workpiece processing component 209 can be used to process a workpiece.
[0143] Figure 2The control system shown can have the beneficial effects of convenient operation, accurate control, high control precision, adjustable interval, closed-loop control, etc.
[0144] like Figure 3 As shown, an embodiment of the present application provides a worktable motion control device 30, including: a first acquisition module 301, used to use a first interferometer to obtain the movement distance of the X-axis and the error of the X-axis corresponding to the moving coordinate system, the movement distance of the Y-axis and the error of the Y-axis corresponding to the moving coordinate system when the worktable moves, to obtain first data, and use a second interferometer to obtain the verticality error between the X-axis and the Y-axis when the worktable moves, to obtain second data, wherein the coordinate axes of the world coordinate system include the X-axis and the Y-axis, and the worktable is used to carry the workpiece to be processed; a second acquisition module 302, used to obtain first compensation data according to the first data, the second data and the first parameter of the motion controller, the first compensation data including compensation data corresponding to the X-axis and compensation data corresponding to the Y-axis; a processing module 303, used to update the internal compensation data in the motion controller to the first compensation data, and the motion controller is used to control the movement of the worktable according to the internal compensation data; a control module 304, used to use the motion controller to control the worktable to move to a specified workpiece processing position after updating the internal compensation data in the motion controller to the first compensation data.
[0145] An embodiment of the present application provides an electronic chip, including: a processor, which is used to execute computer program instructions stored in a memory, wherein when the computer program instructions are executed by the processor, the electronic chip is triggered to execute the method described in any embodiment of the present application.
[0146] An embodiment of the present application provides an electronic device, which includes a memory for storing computer program instructions, a processor for executing the computer program instructions, and a communication device, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method described in any embodiment of the present application.
[0147] An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method described in any embodiment of the present application.
[0148] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program runs on a computer, the computer executes the method described in any embodiment of the present application.
[0149] Figure 4 A schematic diagram of a computer device provided in one embodiment of the present application. Figure 4As shown, the computer device 20 of this embodiment includes: a processor 21 and a memory 22, the memory 22 is used to store a computer program 23 that can be run on the processor 21, and the computer program 23 is executed by the processor 21 to implement the steps in the method embodiment of the present application. To avoid repetition, they are not described one by one here. Alternatively, when the computer program 23 is executed by the processor 21, the functions of each model / unit in the device embodiment of the present application are implemented. To avoid repetition, they are not described one by one here.
[0150] The computer device 20 includes but is not limited to a processor 21 and a memory 22. Those skilled in the art will appreciate that Figure 4 It is only an example of the computer device 20 and does not constitute a limitation of the computer device 20. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, etc.
[0151] The processor 21 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may be any conventional processor, etc.
[0152] The memory 22 may be an internal storage unit of the computer device 20, such as a hard disk or memory of the computer device 20. The memory 22 may also be an external storage device of the computer device 20, such as a plug-in hard disk, a Smart Media (SM) card, a Secure Digital (SD) card, a Flash Card, etc. equipped on the computer device 20. Further, the memory 22 may also include both an internal storage unit of the computer device 20 and an external storage device. The memory 22 is used to store the computer program 23 and other programs and data required by the computer device. The memory 22 may also be used to temporarily store data that has been output or is to be output.
[0153] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, 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. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0154] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, 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 solution of this embodiment.
[0155] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0156] The integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (Processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.
[0157] In the embodiments of the present application, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, method, commodity or device including the element.
[0158] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0159] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0160] Those skilled in the art will appreciate that the various units and algorithm steps described in the embodiments of the present application can be implemented by a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0161] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0162] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A workbench motion control method, It is characterized in that include: Using a first interferometer, obtaining a moving distance of the X-axis and an error of a moving coordinate system corresponding to the X-axis, and a moving distance of the Y-axis and an error of a moving coordinate system corresponding to the Y-axis when the worktable moves, to obtain first data; and using a second interferometer, obtaining a perpendicularity error between the X-axis and the Y-axis when the worktable moves, to obtain second data, wherein the coordinate axes of the world coordinate system include the X-axis and the Y-axis, and the worktable is used to carry a workpiece to be processed; Obtaining first compensation data according to the first data, the second data and a first parameter of the motion controller, wherein the first compensation data includes compensation data corresponding to the X-axis and compensation data corresponding to the Y-axis; Updating the internal compensation data in the motion controller to the first compensation data, the motion controller being used to control the motion of the workbench according to the internal compensation data; After the internal compensation data in the motion controller is updated to the first compensation data, the motion controller is used to control the worktable to move to a specified workpiece processing position.
2. The method according to claim 1, It is characterized in that After updating the internal compensation data in the motion controller to the first compensation data, the method further includes: Using the motion controller to control the motion of the workbench according to the internal compensation data and the first position, and obtaining a second position of the workbench after the motion; In the case where the deviation between the first position and the second position meets a preset deviation condition, the step of using the motion controller to control the worktable to move to a specified workpiece processing position is performed.
3. The method according to claim 2, It is characterized in that The method further comprises: When the deviation between the first position and the second position does not meet the deviation condition, optimizing the parameters of the motion controller from the first parameters to second parameters according to the deviation between the first position and the second position; Using the first interferometer, obtaining the moving distance of the X-axis and the error of the moving coordinate system corresponding to the X-axis, the moving distance of the Y-axis and the error of the moving coordinate system corresponding to the Y-axis when the worktable moves, to obtain third data; and using the second interferometer, obtaining the perpendicularity error between the X-axis and the Y-axis when the worktable moves, to obtain fourth data; Obtaining second compensation data according to the third data, the fourth data and the second parameter, wherein the second compensation data includes compensation data corresponding to the X-axis and compensation data corresponding to the Y-axis; updating internal compensation data in the motion controller from the first compensation data to the second compensation data; Using the motion controller to control the motion of the workbench according to the internal compensation data and the third position, and obtaining a fourth position after the motion of the workbench; In the case where the deviation between the third position and the fourth position meets the deviation condition, the step of using the motion controller to control the worktable to move to a specified workpiece processing position is performed.
4. The method according to claim 2, It is characterized in that The method further comprises: When the deviation between the first position and the second position meets the preset deviation condition, the first interferometer is used to obtain the moving distance of the X-axis and the error of the moving coordinate system corresponding to the X-axis, the moving distance of the Y-axis and the error of the moving coordinate system corresponding to the Y-axis when the worktable moves, to obtain fifth data; and the second interferometer is used to obtain the verticality error between the X-axis and the Y-axis when the worktable moves, to obtain sixth data; Obtaining a first coordinate position of the target point according to an image obtained by photographing the target point on the surface of the workpiece to be processed; Obtaining a second coordinate position of the target point according to the fifth data, the sixth data and the first coordinate position; According to the second coordinate position, the workpiece processing component is controlled to move to a position for processing the workpiece to be processed.
5. The method according to claim 4, It is characterized in that The step of controlling the workpiece processing component to move to a position for processing the workpiece to be processed according to the second coordinate position includes: Obtain target compensation data according to the rotation angle error of the X-axis corresponding to the z-axis direction of the moving coordinate system, the rotation angle error of the Y-axis corresponding to the z-axis direction of the moving coordinate system in the fifth data, and the sixth data; According to the target compensation data and the second coordinate position, the workpiece processing component is controlled to move to a position for processing the workpiece to be processed.
6. The method according to claim 4 or 5, It is characterized in that The step of obtaining the second coordinate position of the target point according to the fifth data, the sixth data and the first coordinate position comprises: Obtain target compensation data according to the rotation angle error of the X-axis corresponding to the z-axis direction of the moving coordinate system, the rotation angle error of the Y-axis corresponding to the z-axis direction of the moving coordinate system in the fifth data, and the sixth data; Obtaining a horizontal axis compensation value according to the target compensation data and the moving distance of the X axis in the fifth data, and obtaining a vertical axis compensation value according to the target compensation data and the moving distance of the Y axis in the fifth data; The abscissa value of the second coordinate position is obtained according to the abscissa compensation value and the abscissa value of the first coordinate position, and the ordinate value of the second coordinate position is obtained according to the ordinate compensation value and the ordinate value of the first coordinate position.
7. The method according to claim 1, It is characterized in that The first data relates to multiple movements of the workbench, so that the first data exists in the form of a matrix; The second data is related to multiple movements of the workbench, so that the second data exists in the form of a matrix.
8. A workbench motion control device, It is characterized in that include: A first acquisition module is used to use a first interferometer to acquire a moving distance of the X-axis and an error of a moving coordinate system corresponding to the X-axis, a moving distance of the Y-axis and an error of a moving coordinate system corresponding to the Y-axis when the worktable moves, to obtain first data, and to use a second interferometer to acquire a verticality error between the X-axis and the Y-axis when the worktable moves, to obtain second data, wherein the coordinate axes of the world coordinate system include the X-axis and the Y-axis, and the worktable is used to carry a workpiece to be processed; A second acquisition module, configured to obtain first compensation data according to the first data, the second data and a first parameter of the motion controller, wherein the first compensation data includes compensation data corresponding to the X-axis and compensation data corresponding to the Y-axis; A processing module, used for updating the internal compensation data in the motion controller to the first compensation data, the motion controller being used for controlling the motion of the workbench according to the internal compensation data; A control module is used to control the workbench to move to a specified workpiece processing position using the motion controller after the internal compensation data in the motion controller is updated to the first compensation data.
9. An electronic device, It is characterized in that The electronic device comprises a memory for storing computer program instructions, a processor for executing the computer program instructions, and a communication device, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to execute the method as described in any one of claims 1-7.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, which, when executed on a computer, enables the computer to execute the method according to any one of claims 1 to 7.
