Contour error compensation method, device and computer readable storage medium
By real-time identification and adjustment of the interpolation coordinates of the laser cutting machine, and using encoder and height sensor information to compensate for the inclination and deformation of the plate, the contour error problem of the three-axis plane cutting machine during cutting is solved, and the cutting quality and efficiency are improved.
Patent Information
- Application Number
- CN202111546118.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-16
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2041-12-16
AI Technical Summary
When cutting metal sheets, the existing three-axis plane laser cutting machines have different sizes and roundness due to the lack of horizontal sheets or local undulations caused by blowing, resulting in contour errors in the size and roundness of the cutting and design patterns. It is difficult for traditional methods to effectively compensate for local deformation. and tilt condition.
By receiving plate processing instructions, obtaining the working cycle, real-time acquisition of the board position, identifying the tilt of the board, and adjusting the interpolation coordinates for compensation, using encoder and height sensor information to identify the actual height and offset of the board, and automatically adjusting the cutting track to reduce contour error.
It effectively improves the contour error compensation effect during laser cutting, improves product cutting quality, reduces the additional operation of users to measure compensation parameters, and can compensate for local area in real time.
Smart Images

Figure CN114326587B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of laser cutting, and in particular to a contour error compensation method, device and computer-readable storage medium. Background Art
[0002] Laser metal cutting uses a high-power laser beam to irradiate the surface of a metal sheet to melt the metal material to achieve the purpose of cutting. The existing three-axis plane cutting machine has three directions of perpendicular movement, XY horizontal plane movement, and Z vertical movement. The XY axis is directly controlled by the controller to give a given position, and the Z axis will adjust the height according to the height sensor.
[0003] However, when laser cutting metal sheets, due to the unevenness of the sheet or the undulating shape of the sheet due to the air pressure, the final cutting pattern will differ from the originally designed pattern in terms of size, roundness and geometry, which will cause contour errors.
[0004] In traditional three-axis plane cutting, since the trajectory planning is carried out on the rectangular coordinate system, if the metal plate to be cut is tilted, the cut shape will have a trajectory error with the original shape. Some methods compensate by setting a fixed tilt angle by the user, but the tilt angle needs to be measured in practice. The method of setting a fixed tilt angle cannot compensate for local deformation or deformation during blowing, resulting in unsatisfactory final compensation effect. Summary of the invention
[0005] The main purpose of the present invention is to provide a contour error compensation method, device and computer-readable storage medium, aiming to solve the technical problem of how to effectively improve the contour error compensation effect in the laser cutting process and thereby improve the product cutting quality.
[0006] To achieve the above object, the present invention provides a contour error compensation method, which comprises the following steps:
[0007] receiving a plate processing instruction, and obtaining a working cycle according to the plate processing instruction;
[0008] Acquire the current board surface position in each working cycle, and identify the board surface inclination according to the current board surface position;
[0009] When the board surface tilt condition is a board surface tilt, the preset interpolation coordinates are adjusted to compensated interpolation coordinates;
[0010] The preset driver is controlled to complete the cutting action of the current working cycle according to the compensation interpolation coordinates, and enter the next working cycle until the plate processing instruction is completed.
[0011] Optionally, the step of obtaining the current board position includes:
[0012] The position feedback information of the preset encoder and the preset height sensor is obtained, and the current board position is identified according to the position feedback information.
[0013] Optionally, the step of identifying the inclination of the board surface according to the board surface position includes:
[0014] Taking the current board position as the Z-axis mechanical position, obtaining the X-axis mechanical position and the Y-axis mechanical position in the preset encoder;
[0015] Storing the X-axis mechanical position, the Y-axis mechanical position and the Z-axis mechanical position in a preset queue;
[0016] When the amount of accumulated data in the preset queue is greater than a preset value, it is determined whether the accumulated data meets a first preset condition, and the inclination of the board surface is identified based on the determination result, wherein the first preset condition is that a plurality of continuous historical data in the preset queue constitute a spatial point.
[0017] Optionally, the step of identifying the inclination of the board surface according to the judgment result includes:
[0018] If the judgment result is that the accumulated data does not meet the first preset condition, then the board surface tilt condition is determined to be a board surface tilt;
[0019] The step of adjusting the preset interpolation coordinates to the compensated interpolation coordinates includes:
[0020] It is determined whether the accumulated data meets a second preset condition, wherein the second preset condition is that a plurality of continuous historical data in the preset queue form a straight line.
[0021] Optionally, the step of determining whether the accumulated data meets a second preset condition includes:
[0022] If the accumulated data meets the second preset condition, a position conversion relationship is obtained according to the accumulated data and a preset projection relationship algorithm.
[0023] Optionally, after the step of determining whether the accumulated data meets the second preset condition, the step further includes:
[0024] If the accumulated data does not meet the second preset condition, a position conversion relationship is obtained according to the accumulated data and a preset plane fitting algorithm.
[0025] Optionally, the step of adjusting the preset interpolation coordinates to compensated interpolation coordinates includes:
[0026] The preset interpolation coordinates are adjusted to compensated interpolation coordinates according to the position conversion relationship.
[0027] Optionally, the step of identifying the inclination of the board surface according to the judgment result further includes:
[0028] If the judgment result is that the accumulated data meets the first preset condition, it is determined that the board surface inclination condition is that the board surface is not inclined;
[0029] After the step of determining that the board surface tilt condition is that the board surface is not tilted, the following steps are included:
[0030] The preset driver is controlled to complete the cutting action of the current working cycle according to the preset interpolation coordinates, and enter the next working cycle until the plate processing instruction is completed.
[0031] In addition, to achieve the above-mentioned purpose, the present invention also provides a contour error compensation device, which includes: a memory, a processor, and a contour error compensation program stored in the memory and executable on the processor, and the contour error compensation program implements the steps of the contour error compensation method described above when executed by the processor.
[0032] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a contour error compensation program is stored, and when the contour error compensation program is executed by a processor, the steps of the contour error compensation method described above are implemented.
[0033] The present invention proposes a contour error compensation method, device and computer-readable storage medium. In the contour error compensation method, by receiving a plate processing instruction, a working cycle is obtained according to the plate processing instruction; the current plate surface position is obtained in each working cycle, and the plate surface inclination is identified according to the current plate surface position; when the plate surface inclination is plate surface inclination, the preset interpolation coordinates are adjusted to the compensation interpolation coordinates; the preset driver is controlled to complete the cutting action of the current working cycle according to the compensation interpolation coordinates, and enter the next working cycle until the plate processing instruction is completed. The present invention further identifies the plate offset by using encoder and height sensor information to identify the actual height of the plate in each cycle; through compensation means, the actual plate cutting figure finally obtained is closer to the theoretical trajectory; through the automatic identification method, it helps users save the extra operation of measuring compensation parameters; at the same time, through online real-time identification, the inclination of the local area can be compensated, which effectively improves the contour error compensation effect in the laser cutting process, thereby improving the product cutting quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention;
[0035] Figure 2 It is a schematic diagram of the flow chart of the first embodiment of the contour error compensation method of the present invention;
[0036] Figure 3 A detailed flow chart of a step in the first embodiment of the contour error compensation method of the present invention;
[0037] Figure 4 A schematic diagram of tilt plate compensation in an application scenario of the contour error compensation method of the present invention.
[0038] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0039] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0040] The main solution of the embodiment of the present invention is: a contour error compensation method, the contour error compensation method comprising the following steps:
[0041] receiving a plate processing instruction, and obtaining a working cycle according to the plate processing instruction;
[0042] Acquire the current board surface position in each working cycle, and identify the board surface inclination according to the current board surface position;
[0043] When the board surface tilt condition is a board surface tilt, the preset interpolation coordinates are adjusted to compensated interpolation coordinates;
[0044] The preset driver is controlled to complete the cutting action of the current working cycle according to the compensation interpolation coordinates, and enter the next working cycle until the plate processing instruction is completed.
[0045] In traditional three-axis plane cutting, since the trajectory planning is carried out on the rectangular coordinate system, if the metal plate to be cut is tilted, the cut shape will have a trajectory error with the original shape. Some methods compensate by setting a fixed tilt angle by the user, but the tilt angle needs to be measured in practice. The method of setting a fixed tilt angle cannot compensate for local deformation or deformation during blowing, resulting in unsatisfactory final compensation effect.
[0046] The present invention provides a contour error compensation method, which uses encoder and height sensor information to identify the actual height of the plate in each cycle, thereby further identifying the plate offset; through compensation means, the actual plate cutting pattern finally obtained is closer to the theoretical trajectory; through the automatic identification method, the user saves the extra operation of measuring the compensation parameters; at the same time, through online real-time identification, the inclination of the local area can be compensated, which effectively improves the contour error compensation effect in the laser cutting process, thereby improving the product cutting quality.
[0047] like Figure 1 As shown, Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention.
[0048] The terminal in the embodiment of the present invention may be an industrial computer, or a portable terminal device such as a tablet computer or a portable computer.
[0049] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0050] Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like. Among them, sensors include light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display screen according to the brightness of the ambient light, and the proximity sensor may turn off the display screen and / or backlight when the mobile terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; of course, the mobile terminal may also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which will not be repeated here.
[0051] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0052] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a contour error compensation program.
[0053] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the contour error compensation program stored in the memory 1005 and perform the following operations:
[0054] receiving a plate processing instruction, and obtaining a working cycle according to the plate processing instruction;
[0055] Acquire the current board surface position in each working cycle, and identify the board surface inclination according to the current board surface position;
[0056] When the board surface tilt condition is a board surface tilt, the preset interpolation coordinates are adjusted to compensated interpolation coordinates;
[0057] The preset driver is controlled to complete the cutting action of the current working cycle according to the compensation interpolation coordinates, and enter the next working cycle until the plate processing instruction is completed.
[0058] Further, the processor 1001 may call the contour error compensation program stored in the memory 1005, and further perform the following operations:
[0059] The step of obtaining the current board position includes:
[0060] The position feedback information of the preset encoder and the preset height sensor is obtained, and the current board position is identified according to the position feedback information.
[0061] Further, the processor 1001 may call the contour error compensation program stored in the memory 1005, and further perform the following operations:
[0062] The step of identifying the inclination of the board surface according to the board surface position comprises:
[0063] Taking the current board position as the Z-axis mechanical position, obtaining the X-axis mechanical position and the Y-axis mechanical position in the preset encoder;
[0064] Storing the X-axis mechanical position, the Y-axis mechanical position and the Z-axis mechanical position in a preset queue;
[0065] When the amount of accumulated data in the preset queue is greater than a preset value, it is determined whether the accumulated data meets a first preset condition, and the board surface tilt is identified according to the determination result.
[0066] Further, the processor 1001 may call the contour error compensation program stored in the memory 1005, and further perform the following operations:
[0067] The step of identifying the inclination of the board surface according to the judgment result comprises:
[0068] If the judgment result is that the accumulated data does not meet the first preset condition, then the board surface tilt condition is determined to be a board surface tilt;
[0069] The step of adjusting the preset interpolation coordinates to the compensated interpolation coordinates includes:
[0070] It is determined whether the accumulated data meets a second preset condition.
[0071] Further, the processor 1001 may call the contour error compensation program stored in the memory 1005, and further perform the following operations:
[0072] If the accumulated data meets the second preset condition, a position conversion relationship is obtained according to the accumulated data and a preset projection relationship algorithm.
[0073] Further, the processor 1001 may call the contour error compensation program stored in the memory 1005, and further perform the following operations:
[0074] If the accumulated data does not meet the second preset condition, a position conversion relationship is obtained according to the accumulated data and a preset plane fitting algorithm.
[0075] Further, the processor 1001 may call the contour error compensation program stored in the memory 1005, and further perform the following operations:
[0076] The step of adjusting the preset interpolation coordinates to compensated interpolation coordinates comprises:
[0077] The preset interpolation coordinates are adjusted to compensated interpolation coordinates according to the position conversion relationship.
[0078] Further, the processor 1001 may call the contour error compensation program stored in the memory 1005, and further perform the following operations:
[0079] The step of identifying the inclination of the board surface according to the judgment result also includes:
[0080] If the judgment result is that the accumulated data meets the first preset condition, it is determined that the board surface inclination condition is that the board surface is not inclined;
[0081] After the step of determining that the board surface tilt condition is that the board surface is not tilted, the following steps are included:
[0082] The preset driver is controlled to complete the cutting action of the current working cycle according to the preset interpolation coordinates, and enter the next working cycle until the plate processing instruction is completed.
[0083] Reference Figure 2 A first embodiment of the present invention provides a contour error compensation method, the contour error compensation method comprising:
[0084] Step S10, receiving a plate processing instruction, and obtaining a working cycle according to the plate processing instruction;
[0085] In this embodiment, the executing entity is the industrial computer of the laser cutting machine tool station. When the production line is operating normally, if a plate is added to the laser cutting machine tool station, it is deemed to have received a plate processing instruction. According to the plate processing instruction, the preset contour error compensation software in the industrial computer is called, and the preset planning trajectory is obtained through the preset contour error compensation software. An interpolation coordinate point in the preset planning trajectory is regarded as a working cycle. The default duration of a working cycle is 1 millisecond, which can be adjusted according to user needs.
[0086] Step S20, obtaining the current board surface position in each working cycle, and identifying the board surface inclination according to the current board surface position;
[0087] Reference Figure 3 , step S20 comprises:
[0088] Step S21, obtaining position feedback information of a preset encoder and a preset height sensor, and identifying the current board position according to the position feedback information;
[0089] Step S22, taking the current board position as the Z-axis mechanical position, and acquiring the X-axis mechanical position and the Y-axis mechanical position in the preset encoder;
[0090] Step S23, storing the X-axis mechanical position, the Y-axis mechanical position and the Z-axis mechanical position in a preset queue;
[0091] Step S24, when the amount of accumulated data in the preset queue is greater than a preset value, determine whether the accumulated data meets the first preset condition, and identify the inclination of the board surface according to the judgment result, wherein the first preset condition is: multiple continuous historical data in the preset queue constitute a spatial point.
[0092] It should be noted that the preset encoder is an encoder used to obtain the three-axis mechanical position of the laser cutting machine station, the preset height sensor is a height adjuster used to obtain the height position of the plate at the laser cutting machine station, the position feedback information includes the height position of the height adjuster and the encoder feedback position, the current board position is the actual position of the plate in the area below the current cutting head, the preset queue is a FIFO queue (First Input First Output abbreviation, a first-in-first-out queue, which is a traditional sequential execution method. The first instruction to enter is completed and retired first, and then the second instruction is executed), the preset value is represented by N, and N can be set according to user needs, for example, N is set to a positive integer value such as 5, 8 or 10.
[0093] In this embodiment, taking a single working cycle as an example, Figure 4 To explain, Figure 4 : is a schematic diagram of the tilted plate compensation for the application scenario of the first embodiment of the present invention, wherein X and Y represent the XY axis of the machine tool, plane D1 is the plane of movement of the XY axis of the machine tool, N1 is the plane normal vector of D1, C1 is the original interpolation trajectory on D1, D2 is the plate to be cut, N2 is the plane normal vector of D2, C2 is the actual cutting trajectory on the tilted plate, and C3 is the actual planned trajectory on the plane of D1.
[0094] After the processing operation begins, Figure 4The original interpolation trajectory C1 shown in the figure plans the contour position, and at the same time obtains the height position of the height adjuster and the encoder feedback position of the current cycle to identify the actual machine tool position of the plate in the area below the current cutting head. The position identification here only requires simple addition and subtraction operations, which will not be described in detail here; then the X and Y axis mechanical positions directly obtained from the encoder and the identified Z axis plate surface position are stored in the FIFO queue; if the number of stored queues exceeds the externally set N data, the inclination of the plate surface is identified based on the accumulated data in the FIFO queue, otherwise it is considered that the amount of data is insufficient to identify the inclination of the plate surface, and the original interpolation trajectory C1 is not compensated.
[0095] The step of identifying the board surface tilt according to the judgment result in step S24 includes:
[0096] If the judgment result is that the accumulated data meets the first preset condition, the plate surface inclination is determined to be not inclined, and the preset driver is controlled to complete the cutting action of the current working cycle according to the preset interpolation coordinates, and enter the next working cycle until the plate processing instruction is completed;
[0097] If the judgment result is that the accumulated data does not meet the first preset condition, the board surface tilt condition is determined to be board surface tilt, and step S30 is executed.
[0098] It should be noted that the step of judging whether the accumulated data meets the first preset condition is: judging whether the N continuous historical data in the FIFO constitute a spatial point. Specifically, if the number of stored queues exceeds the N data set externally, the coordinate point distance between each other is calculated by the three-axis coordinates of the N continuous data. When this distance is less than or equal to the preset point distance threshold, it is considered that they constitute a spatial point, indicating that the plate position represented by these N continuous historical data is deemed to be a situation that does not require compensation. Conversely, when the distance between the N continuous data is greater than the preset point distance threshold, the plate surface inclination is determined to be a plate surface inclination, and the subsequent steps are determined by executing step S30.
[0099] Step S30, when the board surface inclination condition is board surface inclination, adjusting the preset interpolation coordinates to compensated interpolation coordinates;
[0100] In this embodiment, the step of adjusting the preset interpolation coordinates to the compensated interpolation coordinates in step S30 includes:
[0101] Determining whether the accumulated data meets a second preset condition, wherein the second preset condition is: a plurality of continuous historical data in the preset queue form a straight line;
[0102] If the accumulated data meets the second preset condition, a position conversion relationship is obtained according to the accumulated data and a preset projection relationship algorithm;
[0103] If the accumulated data does not meet the second preset condition, a position conversion relationship is obtained according to the accumulated data and a preset plane fitting algorithm.
[0104] It should be noted that when it is determined that the tilt of the board needs to be compensated, it is also divided into the two different situations mentioned above; the step of judging whether the accumulated data meets the second preset condition is: judging whether the N continuous historical data in the FIFO form a straight line, and the position transformation relationship is reflected as the rotation matrix A.
[0105] Specifically, the calculation method is to calculate the unit direction vector through the three-axis coordinates of N continuous data. If the inner product of the vectors in adjacent directions is near the threshold of 1 or -1, it is considered that they form a straight line. According to the calculated spatial direction of the straight line, the rotation matrix A of C1 and C3 is obtained according to the straight line projection relationship (that is, the position transformation relationship is obtained according to the accumulated data and the preset projection relationship algorithm). The specific operation is as follows:
[0106] The unit direction of the straight line is known to be d, and the unit normal vector of the D1 plane is the z-axis D z , we can get the outer product of the unit normal vector of the XY plane to the straight line direction as Dz×d. Then the inner product of the unit normal vector of the XY plane and the straight line direction gives their included angle αcos(Dz,d). At this time, the projection of the straight line direction to the plane can be an axis-angle system: the axis is Dz×d, and the angle is Then the axis-angle system can be converted into a rotation matrix.
[0107] If the N continuous historical data in FIFO cannot form a straight line, then the D2 plane is identified by optimizing the fitting according to the N continuous historical data in FIFO by taking the shortest distance from the historical point to the plane as the goal, and then the D2 plane normal vector N2 is calculated. Then, according to the D1 plane normal vector N1 (Z-axis direction), the rotation matrix A of C1 and C3 can be calculated.
[0108] The process of optimizing the fitting to identify the D2 plane is as follows:
[0109] Assume that the historical point is listed as Where n = N, N-1, ..., 1;
[0110] The equation of plane D2 can be assumed to be α0x+α1y+α2z+α3=0;
[0111] P n The square of the distance to the plane D2 is
[0112] The goal is to find α0, α1, α2, α3 such that It is easy to find α0, α1, α2, and α3 by using the optimization method to solve this problem.
[0113] Determination of the rotation matrix A: From the above steps, we can get that the outer product of the two normal vectors is N2×N1, and their angle is αcos(N1,N2). The axis-angle system from plane C2 to C1 is: the axis is N2×N1, and the angle is αcos(N1,N2). The axis-angle system can be converted into a rotation matrix.
[0114] Based on the above step of deriving the position conversion relationship, the step of adjusting the preset interpolation coordinates to the compensated interpolation coordinates in step S30 includes:
[0115] The preset interpolation coordinates are adjusted to compensated interpolation coordinates according to the position conversion relationship.
[0116] According to the rotation matrix A of C1 and C3 obtained in the above steps, the interpolation XY position to be compensated in the current cycle is planned, and the compensated interpolation coordinate is P2=A*P1, where P1 is the theoretical interpolation coordinate (ie, the preset interpolation coordinate).
[0117] Step S40, controlling the preset driver to complete the cutting action of the current working cycle according to the compensation interpolation coordinates, and enter the next working cycle until the plate processing instruction is completed.
[0118] It can be understood that the above steps are only steps that need to be performed in a single cycle, that is, only the compensation judgment of one interpolation coordinate point is completed, and multiple cycles of cutting actions are required to complete the processing instruction.
[0119] When all the work cycles in the above sheet metal processing instructions have been traversed once, it is considered that a complete sheet metal processing operation process has been completed. Figure 4 As shown, plane D1 is the plane of motion of the XY axis of the machine tool. The given original interpolation trajectory C1 is on the plane D1. C1 is an assumed trajectory graph. If the plane normal vector N2 of the plate D2 to be cut points to the same direction as the plane normal vector N1 of D1, then walking along the C1 trajectory can ensure that the C2 trajectory is consistent with C1 when the cutting of D2 is completed; however Figure 4 The situation is obviously not what we expected. Figure 4 In the figure, the plate D2 to be cut is obviously an inclined plate. If it still moves along the C1 track on the D1 plane, the contour of the actual cutting track C2 will obviously change compared with C1. In order to make the actual cutting track C2 consistent with C1, the system identifies the plate surface tilt and compensates based on the Z-axis height feedback and Z-axis encoder position, so that the actual planned track on the D1 plane is C3. After the XY movement C3, the tilt effect finally makes C2 consistent with C1.
[0120] A contour error compensation method is provided in the present embodiment. When a plate processing instruction is received, a working cycle is obtained according to the plate processing instruction; the current plate surface position is obtained in each working cycle, and the plate surface inclination is identified according to the current plate surface position; when the plate surface inclination is plate surface inclination, the preset interpolation coordinates are adjusted to the compensation interpolation coordinates; the preset driver is controlled to complete the cutting action of the current working cycle according to the compensation interpolation coordinates, and enter the next working cycle until the plate processing instruction is completed.
[0121] This embodiment uses the encoder and height sensor information to identify the actual height of the plate in each cycle, thereby further identifying the plate offset; through compensation means, the actual plate cutting pattern finally obtained is closer to the theoretical trajectory; through the automatic identification method, it helps users save the extra operation of measuring compensation parameters; at the same time, through online real-time identification, it can compensate for the inclination of the local area, effectively improving the contour error compensation effect in the laser cutting process, thereby improving the product cutting quality.
[0122] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a contour error compensation program is stored. When the contour error compensation program is executed by a processor, the following operations are implemented:
[0123] receiving a plate processing instruction, and obtaining a working cycle according to the plate processing instruction;
[0124] Acquire the current board surface position in each working cycle, and identify the board surface inclination according to the current board surface position;
[0125] When the board surface tilt condition is a board surface tilt, the preset interpolation coordinates are adjusted to compensated interpolation coordinates;
[0126] The preset driver is controlled to complete the cutting action of the current working cycle according to the compensation interpolation coordinates, and enter the next working cycle until the plate processing instruction is completed.
[0127] Furthermore, when the contour error compensation program is executed by the processor, the following operations are also implemented:
[0128] The step of obtaining the current board position includes:
[0129] The position feedback information of the preset encoder and the preset height sensor is obtained, and the current board position is identified according to the position feedback information.
[0130] Furthermore, when the contour error compensation program is executed by the processor, the following operations are also implemented:
[0131] The step of identifying the inclination of the board surface according to the board surface position comprises:
[0132] Taking the current board position as the Z-axis mechanical position, obtaining the X-axis mechanical position and the Y-axis mechanical position in the preset encoder;
[0133] Storing the X-axis mechanical position, the Y-axis mechanical position and the Z-axis mechanical position in a preset queue;
[0134] When the amount of accumulated data in the preset queue is greater than a preset value, it is determined whether the accumulated data meets a first preset condition, and the board surface tilt is identified according to the determination result.
[0135] Furthermore, when the contour error compensation program is executed by the processor, the following operations are also implemented:
[0136] The step of identifying the inclination of the board surface according to the judgment result comprises:
[0137] If the judgment result is that the accumulated data does not meet the first preset condition, then the board surface tilt condition is determined to be a board surface tilt;
[0138] The step of adjusting the preset interpolation coordinates to the compensated interpolation coordinates includes:
[0139] It is determined whether the accumulated data meets a second preset condition.
[0140] Furthermore, when the contour error compensation program is executed by the processor, the following operations are also implemented:
[0141] If the accumulated data meets the second preset condition, a position conversion relationship is obtained according to the accumulated data and a preset projection relationship algorithm.
[0142] Furthermore, when the contour error compensation program is executed by the processor, the following operations are also implemented:
[0143] If the accumulated data does not meet the second preset condition, a position conversion relationship is obtained according to the accumulated data and a preset plane fitting algorithm.
[0144] Furthermore, when the contour error compensation program is executed by the processor, the following operations are also implemented:
[0145] The step of adjusting the preset interpolation coordinates to compensated interpolation coordinates comprises:
[0146] The preset interpolation coordinates are adjusted to compensated interpolation coordinates according to the position conversion relationship.
[0147] Furthermore, when the contour error compensation program is executed by the processor, the following operations are also implemented:
[0148] The step of identifying the inclination of the board surface according to the judgment result also includes:
[0149] If the judgment result is that the accumulated data meets the first preset condition, it is determined that the board surface inclination condition is that the board surface is not inclined;
[0150] After the step of determining that the board surface tilt condition is that the board surface is not tilted, the following steps are included:
[0151] The preset driver is controlled to complete the cutting action of the current working cycle according to the preset interpolation coordinates, and enter the next working cycle until the plate processing instruction is completed.
[0152] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0153] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0154] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0155] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A contour error compensation method, It is characterized in that The contour error compensation method comprises the following steps: receiving a plate processing instruction, and obtaining a working cycle according to the plate processing instruction; In each working cycle, the current board position is obtained, the current board position is used as the Z-axis mechanical position, and the X-axis mechanical position and the Y-axis mechanical position in the preset encoder are obtained; Storing the X-axis mechanical position, the Y-axis mechanical position and the Z-axis mechanical position in a preset queue; When the number of accumulated data in the preset queue is greater than a preset value, it is determined whether the accumulated data meets a first preset condition, and the board surface tilt is identified according to the determination result, wherein the first preset condition is that a plurality of continuous historical data in the preset queue form a spatial point; When the board surface tilt condition is a board surface tilt, the preset interpolation coordinates are adjusted to compensated interpolation coordinates; The preset driver is controlled to complete the cutting action of the current working cycle according to the compensation interpolation coordinates, and enter the next working cycle until the plate processing instruction is completed.
2. The contour error compensation method according to claim 1, It is characterized in that The step of obtaining the current board position includes: The position feedback information of the preset encoder and the preset height sensor is obtained, and the current board position is identified according to the position feedback information.
3. The contour error compensation method according to claim 1, It is characterized in that The step of identifying the inclination of the board surface according to the judgment result comprises: If the judgment result is that the accumulated data does not meet the first preset condition, then the board surface tilt condition is determined to be a board surface tilt; The step of adjusting the preset interpolation coordinates to the compensated interpolation coordinates includes: It is determined whether the accumulated data meets a second preset condition, wherein the second preset condition is that a plurality of continuous historical data in the preset queue form a straight line.
4. The contour error compensation method according to claim 3, It is characterized in that The step of determining whether the accumulated data meets the second preset condition comprises: If the accumulated data meets the second preset condition, a position conversion relationship is obtained according to the accumulated data and a preset projection relationship algorithm.
5. The contour error compensation method according to claim 3, It is characterized in that After the step of determining whether the accumulated data meets the second preset condition, the following step is further included: If the accumulated data does not meet the second preset condition, a position conversion relationship is obtained according to the accumulated data and a preset plane fitting algorithm.
6. The contour error compensation method according to claim 4 or 5, It is characterized in that The step of adjusting the preset interpolation coordinates to compensated interpolation coordinates comprises: The preset interpolation coordinates are adjusted to compensated interpolation coordinates according to the position conversion relationship.
7. The contour error compensation method according to claim 1, It is characterized in that The step of identifying the inclination of the board surface according to the judgment result also includes: If the judgment result is that the accumulated data meets the first preset condition, it is determined that the board surface inclination condition is that the board surface is not inclined; After the step of determining that the board surface tilt condition is that the board surface is not tilted, the following steps are included: The preset driver is controlled to complete the cutting action of the current working cycle according to the preset interpolation coordinates, and enter the next working cycle until the plate processing instruction is completed.
8. A contour error compensation device, It is characterized in that The contour error compensation device includes: a memory, a processor, and a contour error compensation program stored in the memory and executable on the processor. When the contour error compensation program is executed by the processor, the steps of the contour error compensation method according to any one of claims 1 to 7 are implemented.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a contour error compensation program, and when the contour error compensation program is executed by a processor, the steps of the contour error compensation method according to any one of claims 1 to 7 are implemented.
