Method for realizing machining alignment, numerical control machine, system and readable storage medium

By determining the starting auxiliary point and drawing the mapping point in the CNC machine, and using the light source to display synchronously, the problem of processing alignment accuracy caused by the lack of a camera is solved, convenient and accurate processing alignment is achieved, and the processing effect is improved.

CN117784712BActive Publication Date: 2024-10-18SHENZHEN MAKER WORKS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311362024.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-19
Publication Date
2024-10-18
Estimated Expiration
2043-10-19

AI Technical Summary

Technical Problem

In CNC machines, in the absence of cameras, it is difficult for users to achieve accurate processing alignment, which affects the processing effect.

Method used

By determining the position of the starting auxiliary point of the processing pattern and drawing the mapping point on the canvas, according to the relative positional relationship between the mapping point and the processing pattern, the actual position of the processing pattern is indicated, and the spot formed by the light source emitting a beam is used for synchronous display , so that the user can adjust the placement of the processing pattern.

Benefits of technology

It achieves convenient and accurate processing alignment on CNC machines not equipped with cameras, improving the processing effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117784712B_ABST
    Figure CN117784712B_ABST
Patent Text Reader

Abstract

The present application provides a method for realizing machining alignment, a numerical control machine, a system and a readable storage medium, the method comprising: determining the starting auxiliary point position of the machining pattern, drawing mapping points on a canvas according to the starting auxiliary point position, obtaining the distribution of the mapping points on the canvas, the mapping points are used to place the machining pattern, and indicating the actual position of the machining pattern according to the relative position relationship between the mapping points and the machining pattern. Through the method provided by the present application, the numerical control machine can realize convenient and accurate machining alignment of the machining pattern.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of laser processing, and in particular to a method for realizing processing alignment, a numerically controlled machine, a system and a readable storage medium. Background Art

[0002] At present, when using CNC machines to process objects, in order to ensure the processing effect, the camera is used to take a photo of the object to determine the relative position relationship between the object and the CNC machine platform, and then determine the area on the canvas corresponding to the current area of ​​the object to be processed, so as to place the processing pattern and complete the processing alignment of the processing pattern. For CNC machines that are not equipped with cameras, users can only make a rough judgment on the processing area based on their operating experience, and it is difficult to complete the precise alignment of the processing pattern, which in turn affects the processing effect of the object.

[0003] Therefore, how to achieve processing alignment conveniently and accurately is a dilemma that needs to be solved urgently. Summary of the invention

[0004] The purpose of this application is to solve the technical problem of how to achieve machining alignment conveniently and accurately.

[0005] According to one aspect of an embodiment of the present application, the present application provides a method for realizing machining alignment, the method comprising:

[0006] Determine the starting auxiliary point position of the processing pattern;

[0007] Drawing mapping points on the canvas according to the position of the starting auxiliary point to obtain the distribution of the mapping points on the canvas, wherein the distribution of the mapping points on the canvas is used to indicate the placement of the processing pattern;

[0008] According to the relative position relationship between the mapping point and the processing pattern, the actual position of the processing pattern is indicated.

[0009] According to one aspect of an embodiment of the present application, determining the position of the starting auxiliary point of the processing pattern includes:

[0010] Extracting the moving distance of the light source to obtain the position information of the light source;

[0011] The position of the starting auxiliary point is obtained according to the light source position information.

[0012] According to one aspect of an embodiment of the present application, obtaining the position of the starting auxiliary point according to the light source position information includes:

[0013] According to the light source position information, synchronously displaying the position where the light spot is mapped to the canvas;

[0014] In response to the target instruction, the starting auxiliary point position is determined.

[0015] According to one aspect of an embodiment of the present application, the mapping point includes a secondary mapping point, and after drawing the mapping point on the canvas according to the position of the starting auxiliary point to obtain the distribution of the mapping point on the canvas, the method further includes:

[0016] Driving the light source to irradiate to any point other than the starting auxiliary point, wherein the any point other than the starting auxiliary point is a secondary auxiliary point;

[0017] The mapping point synchronously displayed on the canvas with the secondary auxiliary point is drawn, the mapping point corresponding to the secondary auxiliary point is the secondary mapping point, and the mapping point is used to obtain a canvas with more than two mapping points distributed thereon.

[0018] According to one aspect of an embodiment of the present application, the mapping point corresponding to the starting auxiliary point is the starting mapping point, and the mapping point includes the starting mapping point. After drawing the mapping point synchronously displayed on the canvas by the secondary auxiliary point, the method further includes:

[0019] Taking the initial mapping point as a starting point, a mapping line segment is drawn in the direction of any of the secondary mapping points, and the mapping line segment formed by the mapping points distributed on the canvas is used to indicate the placement of the processing pattern.

[0020] According to one aspect of an embodiment of the present application, after drawing a mapping line segment from the initial mapping point to any of the secondary mapping points, the method further includes:

[0021] Draw a rectangle with the mapped line segment as a diagonal line;

[0022] In response to the user's manipulation action, the processing pattern is placed in the rectangle.

[0023] According to one aspect of an embodiment of the present application, after drawing the mapping point of the secondary auxiliary point synchronously displayed on the canvas, the method further includes:

[0024] Two or more of the mapping points are connected to form a mapping line segment formed by connecting the mapping points as a graphic component to form a mapping graphic. The mapping graphic formed by the mapping points distributed on the canvas is used to place the processing pattern.

[0025] According to one aspect of an embodiment of the present application, after drawing mapping points on the canvas according to the position of the starting auxiliary point and obtaining the distribution of the mapping points on the canvas, the method further includes:

[0026] Counting the number of the mapping points;

[0027] When the number of the mapping points exceeds a preset number threshold, the mapping points that are in the previous order are deleted according to the formation time of the mapping points.

[0028] According to one aspect of an embodiment of the present application, indicating the actual position of the processing pattern according to the relative position relationship between the mapping point and the processing pattern includes:

[0029] Acquire coordinate information of a containing frame corresponding to the processing pattern;

[0030] According to the coordinate information of the containing frame, a light spot formed by a light beam emitted by a light source traverses each side of the containing frame to indicate the actual position of the processing pattern.

[0031] According to one aspect of an embodiment of the present application, indicating the actual position of the processing pattern according to the relative position relationship between the mapping point and the processing pattern includes:

[0032] Obtaining coordinate information of a center point of a containing frame corresponding to the processing pattern;

[0033] According to the coordinate information of the center point of the containing frame, a light spot formed by a light beam emitted by a light source indicates the center point of the containing frame, and the center point of the containing frame is used to indicate the actual position of the processing pattern.

[0034] According to one aspect of an embodiment of the present application, the present application provides a computer numerical control machine, the computer numerical control machine comprising:

[0035] Light emitting components;

[0036] a communication component, the communication component being used to receive a signal corresponding to the actual position obtained by any of the above methods; and

[0037] A controller is used to control the light emitting component to emit light to indicate the realized position based on a signal corresponding to the realized position.

[0038] According to one aspect of an embodiment of the present application, the present application provides a computing system, the computing system comprising at least one computer numerical control machine and at least one processor;

[0039] The processor is used to execute the steps of any of the above methods;

[0040] The computer numerical control machine transmits electromagnetic energy to a processing object disposed inside the computer numerical control machine based on the realized position of the processing pattern.

[0041] According to one aspect of an embodiment of the present application, the present application provides a computer-readable storage medium having computer-readable instructions stored thereon. When the computer-readable instructions are executed by a processor of a computer, the computer executes any of the above methods.

[0042] In an embodiment of the present application, before the CNC machine processes the processing object, the starting auxiliary point position of the processing pattern is first determined, and then mapping points are drawn on the canvas according to the starting auxiliary point position to obtain the distribution of the mapping points on the canvas. The mapping points are used to place the processing pattern, and finally, the actual position of the processing pattern is indicated according to the relative position relationship between the mapping points and the processing pattern. The drawing of the mapping points enables the user to know the area on the canvas corresponding to the area to be processed of the processing object. When placing the processing pattern, the user adjusts the processing pattern to make the processing pattern adapt to the area on the canvas corresponding to the area to be processed of the processing object, which helps to achieve accurate alignment of the processing pattern before the CNC machine processes the processing object, thereby improving the processing effect. For laser CNC machines that are not equipped with cameras, the method proposed in this application can also be used to achieve convenient and accurate processing alignment of the processing pattern.

[0043] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0044] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The above and other objects, features and advantages of the present application will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings.

[0046] Figure 1 A system architecture diagram applied according to an embodiment of the present application is shown.

[0047] Figure 2 A flow chart of a method for implementing machining alignment according to an embodiment of the present application is shown.

[0048] Figure 3 A flow chart for determining the position of a starting auxiliary point of a processing pattern according to an embodiment of the present application is shown.

[0049] Figure 4 A flow chart of obtaining the position of a starting auxiliary point according to light source position information according to an embodiment of the present application is shown.

[0050] Figure 5 A flowchart of drawing secondary auxiliary points after drawing mapping points on a canvas according to the position of a starting auxiliary point and obtaining the distribution of the mapping points on the canvas is shown according to an embodiment of the present application.

[0051] Figure 6 A flow chart is shown for placing a processing pattern after drawing a mapping line segment in the direction of any secondary mapping point with the initial mapping point as the starting point according to an embodiment of the present application.

[0052] Figure 7 A schematic diagram of drawing a rectangle based on a mapping line segment according to an embodiment of the present application is shown.

[0053] Figure 8 A schematic diagram of placing a processing pattern in a rectangle according to an embodiment of the present application is shown.

[0054] Fig. 9 A schematic diagram of drawing a mapping graphic according to an embodiment of the present application is shown.

[0055] Fig.10 A flowchart is shown of drawing mapping points on a canvas according to the position of a starting auxiliary point and cleaning up the mapping points after obtaining the distribution of the mapping points on the canvas according to an embodiment of the present application.

[0056] Fig.11 A flow chart is shown for indicating the actual position of a processing pattern according to the relative position relationship between a mapping point and the processing pattern according to an embodiment of the present application.

[0057] Fig.12 A flow chart is shown for indicating the actual position of a processing pattern according to the relative position relationship between a mapping point and the processing pattern according to an embodiment of the present application.

[0058] Fig.13 A hardware schematic diagram of a numerical control machine according to an embodiment of the present application is shown.

[0059] Fig.14 A hardware structure diagram of a method for implementing machining alignment according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0060] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these example embodiments are provided so that the description of the present application will be more comprehensive and complete and the concepts of the example embodiments will be fully conveyed to those skilled in the art. The accompanying drawings are only schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0061] In addition, the described features, structures or characteristics may be combined in one or more example embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the example embodiments of the present application. However, those skilled in the art will appreciate that the technical solution of the present application may be practiced while omitting one or more of the specific details, or other methods, components, steps, etc. may be adopted. In other cases, known structures, methods, implementations or operations are not shown or described in detail to avoid obscuring the present application and making the various aspects of the present application obscure.

[0062] Some of the blocks shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0063] See also Figure 1 , Figure 1 It is a system architecture used in the embodiment of the present application. The system architecture may include: at least one CNC machine 11 for processing the processing object, and a terminal device 12 that provides visualization operation and canvas for the CNC machine 11, so as to implement the processing alignment method of the present application. Among them, the CNC machine 11 locates the auxiliary point through the light spot emitted by itself, and obtains the position of the starting auxiliary point.

[0064] See also Figure 2 , Figure 2 A flowchart of a method for implementing machining alignment according to an embodiment of the present application is shown. The present application embodiment provides a method for implementing machining alignment, including:

[0065] Step S210, determining the starting auxiliary point position of the processing pattern;

[0066] Step S220, mapping points are drawn on the canvas according to the position of the starting auxiliary point to obtain the distribution of the mapping points on the canvas, wherein the distribution of the mapping points on the canvas is used to indicate the placement of the processing pattern;

[0067] Step S230 , indicating the actual position of the processing pattern according to the relative position relationship between the mapping point and the processing pattern.

[0068] The above three steps are described in detail below.

[0069] In the embodiment of the present application, the user can know the area on the canvas corresponding to the area to be processed of the processing object. When placing the processing pattern, the user adjusts the processing pattern to make it fit the area on the canvas corresponding to the area to be processed of the processing object, which helps to achieve accurate alignment of the processing pattern before the CNC machine processes the processing object, thereby improving the processing effect. For laser CNC machines that are not equipped with cameras, the method proposed in the present application can also achieve convenient and accurate processing alignment of the processing pattern.

[0070] In step S210, the CNC machine determines the position of the starting auxiliary point of the processing pattern according to the hardware device configured by itself, such as determining the position of the starting auxiliary point of the processing pattern by a light spot formed by the emission of a light source.

[0071] Specifically, it should be noted that the position of the starting auxiliary point can be obtained by continuously obtaining the position of the light spot in the present application. Therefore, the CNC machine used to implement the processing alignment deploys at least one light source, and the light spot formed by the light beam emitted by the light source can be used for the processing alignment implemented in the present application. In addition, the light source can also be used to implement the processing. Based on this, the light source used to emit the light spot in the present application includes a laser emitting light source (processing light source) and / or a visible light emitting light source (alignment light source).

[0072] The light spot may include a processing light spot formed by a light beam emitted by a processing light source and / or an alignment light spot formed by a light beam emitted by an alignment light source, etc., which are not limited here. It should be clarified that when the processing light source is performing processing alignment through the processing light spot, the processing light source emits weak light to form a light spot. Weak light refers to the light beam emitted by the processing light source within a set power range. Because the processing alignment of the processing image is for the processing light source to use the processing light spot to process the processing object, in order to facilitate the processing of the CNC machine, the position of both the processing light spot and the alignment light spot is formed based on the coordinate system where the processing light source is located, and the coordinates of the processing light source are also the light source coordinate system.

[0073] The color of the light spot is not limited here, and can be any color, such as white, yellow, green, red, etc.

[0074] Further explained, in the CNC machine, the light source is arranged on the laser head. The laser head of the CNC machine can be used for processing alignment, and laser processing based on this. The laser head is distributed with a laser emitting light source, or a combination of a laser emitting light source and an infrared emitting light source.

[0075] It should be understood that in one embodiment of the present application, the light source may be a laser emitting light source used to implement laser processing, which forms a light spot by emitting a light beam, and is used to mark the irradiation position of the light beam. The light source may also be another light source configured separately, which is specifically used to emit a light beam to form a light spot during processing alignment.

[0076] When the laser head is only provided with a laser emitting light source, processing alignment and laser processing are performed through the laser emitting light source; when the laser head is provided with a combination of a laser emitting light source and an infrared emitting light source, processing alignment can be performed through the laser emitting light source or the infrared emitting light source, and laser processing can be performed through the laser emitting light source.

[0077] In the process of machining alignment of CNC machines, the light source is first driven to emit a light beam so that the light beam is irradiated on the processing object or the plane of the CNC machine used to carry the processing object to form a light spot. The light spot is used to indicate the position irradiated by the current light source. The light source and the light spot have a known relative position relationship. In other words, the position of the light spot in the light source coordinate system can be obtained based on the light source position information and the relative position relationship between the light source and the light spot.

[0078] It should be made clear that for the positioning of the auxiliary points used for processing alignment, the light source can be driven to move so that the light source emits a light beam to illuminate the starting auxiliary point, forming a light spot at the starting auxiliary point, and then the position of the starting auxiliary point is obtained according to the position of the light spot. The auxiliary point refers to a point selected on the processing object or on the plane where the processing object is located. The auxiliary point can be the starting point for processing the processing object or any other point. Before the processing is performed, the auxiliary point provides a reference for the placement of the processing pattern on the processing object. The auxiliary points include the starting auxiliary point, so the starting auxiliary point is only a reference point for placing the processing image, which is used to indicate the location where the processing pattern is placed. It should be made clear that the auxiliary point can refer to a point on the processing object or any point selected on the plane where the processing object is located, and is not limited to the area where the processing pattern is placed.

[0079] It is further clarified that the term "laser emitting light source" as used herein includes any electromagnetic radiation or focused or coherent energy source that uses photons to modify a substrate or cause some change or alteration in the material struck by the photons. The laser emitting light source (whether a cutting tool or a diagnostic tool) can emit any desired wavelength, and laser emission includes, for example, microwaves, lasers, infrared lasers, visible light lasers, UV lasers, X-ray lasers, X-ray lasers, etc.

[0080] In another embodiment of the present application, for the movement of the light source, the light source can be controlled to move to a specified position according to a target instruction so that the light spot is located at the starting auxiliary point, or it can be moved under the drag of the user, which is not limited here. Among them, the target instruction is generated by an operation action initiated by the user on the control panel of the CNC machine or the upper computer composed of the terminal device.

[0081] In another embodiment of the present application, as the CNC machine drives the light source, the light spot moves synchronously until the light spot moves to the starting auxiliary point and stops moving. At this time, the position of the light spot is the starting auxiliary point position, that is, the starting auxiliary point position is obtained according to the position of the light spot.

[0082] See also Figure 3 , Figure 3 A flowchart of determining the position of the starting auxiliary point of a processing pattern according to an embodiment of the present application is shown. The present application embodiment provides a step S210 of determining the position of the starting auxiliary point of the processing pattern, including:

[0083] Step S211, extracting the moving distance of the light source to obtain the light source position information;

[0084] Step S212, obtaining the position of the starting auxiliary point according to the light source position information.

[0085] The above two steps are described in detail below.

[0086] In step S211, the light source is driven to locate the starting auxiliary point, that is, the light spot moves toward the starting auxiliary point. While the light source is driven to move, the moving distance of the light source on each axis of the light source coordinate system is calculated according to the moving distance of the light source, thereby obtaining the light source position information. The origin of the light source coordinate system can be set by the user or by the default origin, which is not limited here. This helps to ensure the accuracy of the starting auxiliary point position.

[0087] It should be noted that when the light source moves at different speeds, the moving distance of the light source will be extracted at different frequencies. For example, when the light source speed is 0.01m / s, the moving distance of the light source is extracted every 2s, and when the light source moves at a speed of 1m / s, the moving distance of the light source is extracted every 0.5s.

[0088] It should also be noted that the frequency setting for extracting the moving distance of the light source can also be set as a universal extraction frequency. For example, no matter how fast the light source moves or whether it moves, the moving distance of the light source is extracted every 1 second.

[0089] That is to say, the extraction of the moving distance of the light source not only occurs when the light source is moving, but also occurs when the light source stops moving. That is, in the execution of step S211, the moving distance of the light source is extracted at fixed intervals to obtain the current light source position information. This is to prevent external factors from causing the light source to move, but its moving distance is not recorded, thereby causing the actual moving distance of the light source to be inconsistent with the moving distance of the light source corresponding to the light source position information.

[0090] Exemplarily, when the moving speed of the light source is 0 m / s, the moving distance of the light source is still acquired every 1 second to calculate the current light source position information.

[0091] In another embodiment of the present application, in order to optimize the situation where the current light source position information is unclear or not accurate enough, and the accurate light source position information cannot be obtained according to the moving distance of the light source, it is necessary to first return the light source to its original position so that the light source position information becomes accurate again, thereby ensuring the accuracy of the subsequently acquired light source position information.

[0092] To return the light source to its original position means to move the light source to the origin. Specifically, the light source can be moved to its original position according to the target instruction, and moved to the origin of the light source coordinate system. In addition, the user can also manually control the light source and drag the light source to return it to the origin of the light source coordinate system.

[0093] It is further clarified that in another embodiment of the present application, when the current position information of the light source is determined to be accurate position information, it is not necessary to home the light source. The calculation of the light source position information is based on the movement distance of the light source relative to the light source coordinate system. As long as there are no external factors that make the movement of the light source not recorded, there is no need to home. Therefore, the light source does not need to be homed before every movement.

[0094] In this embodiment, the following device can be used to complete the movement and reset of the light source.

[0095] The numerical control machine includes a track device, a frame on which the track device is slidably mounted, and a light source slidably mounted on the track device;

[0096] The frame and the track device are both adapted to assemble a homing sensor at the origin position of the light source coordinate system, the track device is adapted to assemble a homing sensor on the frame and is provided with a sensing component, and the bottom of the light source is adapted to assemble a homing sensor on the track device and is provided with a sensing component.

[0097] The motion mechanism of the light source moves along the track device until the homing sensor installed on the track device close to the origin end senses the sensing element adapted to the bottom of the light source, so that the homing sensor senses the movement and homing of the light source, completing the movement and homing of the light source on the track device.

[0098] The track device is driven to initiate the movement of the light source head and the track device on the frame until the homing sensor installed at the origin position on the frame senses the sensing part adapted to the track device, so that the homing sensor senses that the track device carrying the light source has completed the movement and homing, that is, the homing movement of the light source is completed.

[0099] It should be understood that when the sensing element senses the homing sensor, the internal signal of the homing sensor will change. Therefore, by monitoring the change of the internal signal of the homing sensor, it can be determined whether the sensing element senses the homing sensor.

[0100] It should be noted that the above-mentioned homing sensor can be a photoelectric sensor, a contact sensor, or other sensors that can achieve the above-mentioned purpose.

[0101] In step S212, when the light spot coincides with the starting auxiliary point as the light source moves, the position of the light spot is obtained according to the light source position information. Since the light spot coincides with the starting auxiliary point, the position of the light spot is also the position of the starting auxiliary point.

[0102] In this embodiment, the present application locates the light source by acquiring the moving distance of the light source, obtains the light source position information, and then obtains the starting auxiliary point position with the light source position information. It does not rely on expensive positioning hardware and cameras, saving the material cost of the CNC machine. In addition, the method provided in this embodiment is simple to calculate. It only needs to acquire the moving distance of the light source to obtain the light source position information, saving the computing resources in the CNC machine.

[0103] See also Figure 4 , Figure 4 The flowchart of obtaining the position of the starting auxiliary point according to the light source position information according to one embodiment of the present application is shown. The embodiment of the present application provides the steps of obtaining the position of the starting auxiliary point according to the light source position information, including:

[0104] Step S301, synchronously displaying the position where the light spot is mapped to the canvas according to the light source position information;

[0105] Step S302, in response to the target instruction, determining the position of the starting auxiliary point.

[0106] The above two steps are described in detail below.

[0107] In step S301, in order to make the user operation more convenient and more intuitive, the light spot is synchronously displayed on the canvas. Specifically, the position of the light spot is obtained according to the light source position information obtained each time, and then the point where the light spot is mapped on the canvas is synchronously displayed on the canvas according to the mapping relationship between the light source coordinate system and the canvas coordinate system. The coordinate system where the canvas is located is called the canvas coordinate system.

[0108] As the light source moves, the light source position information is acquired at a high frequency, and then the light spot location is obtained at a high frequency, and synchronized to the canvas for display, so that the dynamic movement of the light spot can be seen on the canvas. In this way, users can see the real-time changes in the location of the mapping point on the canvas.

[0109] It should be made clear that the canvas is a visual interface on or connected to a CNC machine, which is used to map and display the processing area of ​​the CNC machine, place processing patterns, and assist the CNC machine in processing. In order to enable the operations performed on the canvas to be completed by the CNC machine in the real world, the size of the canvas is not larger than the movable area of ​​the laser head and / or other light sources. In other words, as long as the operations are performed on the canvas, such as processing alignment and placing processing patterns for engraving, they can all be completed by the CNC machine and will not exceed the movable area of ​​the laser head and / or other light sources, making them impossible to process.

[0110] In step S302, the CNC machine responds to the user's operation and generates a target instruction. According to the target instruction, the position information of the light source at a certain moment or when it moves to a certain position is obtained as the starting auxiliary point position. The target instruction can be an instruction triggered in response to the user's operation, or an instruction set in the CNC machine or the host computer and triggered according to conditions, which is not limited here.

[0111] In another embodiment of the present application, in order to allow the user to have different operating experiences, when the light source stops moving, it is determined whether to obtain the position information of the current light spot position according to the target instruction. If there is a target instruction to obtain the current light spot position, the position information of the light spot position is obtained, otherwise it is not executed. The target instruction is generated by the operation action initiated by the user on the control panel of the CNC machine or the host computer composed of the terminal device.

[0112] In another embodiment of the present application, the present application can also obtain the light source position information by triggering the instruction to obtain the light source position information when the light source stops moving. When the light source stops moving, the positioning of the starting auxiliary point is completed. At this time, the light source position information when the light source stops moving is obtained according to the corresponding moving distance when the light source stops moving, which is the position of the light spot when it reaches the starting auxiliary point; and then the position of the light spot is obtained according to the relative position relationship between the light source and the light spot, which is the position of the starting auxiliary point.

[0113] In another embodiment of the present application, the user initiates an instruction through the host computer software or directly controls the CNC machine to obtain the light source position information. For example, the user controls the state of the CNC machine button (such as pressing or releasing) to trigger the instruction to obtain the light source position information.

[0114] In the embodiment of the present application, the position information of the light spot is acquired in real time and displayed synchronously on the canvas, so that the user operation is more convenient and more intuitive.

[0115] In step S220, based on the acquired position of the starting auxiliary point, the position of the starting auxiliary point is converted between coordinate systems to obtain a point corresponding to the starting auxiliary point in the canvas coordinate system, and the point is displayed on the canvas to obtain a mapping point of the starting auxiliary point.

[0116] Mapping points are used to provide references for placing processing patterns on the canvas. The processing pattern placed is the pattern that the user wants to process on the processing object. When there are multiple mapping points, that is, the distribution of mapping points on the canvas, the relative position relationship between the mapping points and the processing pattern can provide more references for the placement of the processing pattern on the canvas.

[0117] According to the mapping relationship between the light source coordinate system and the canvas coordinate system, the relative position relationship between the processing pattern and the mapping point in the canvas coordinate system will be synchronized to the light source coordinate system. In other words, in the real world, the relative position relationship between the processed pattern and the auxiliary point on the processing object is the same as the relative position relationship between the processing pattern and the mapping point.

[0118] It should be clarified that the “placement” mentioned above includes but is not limited to changing the position of the processing pattern, rotating, flipping, scaling, adjusting the side length ratio, and other plane pattern editing operations.

[0119] The point displayed on the canvas is drawn, that is, the point is marked on the canvas so that the point is displayed on the canvas. In other words, the movement or existence of the light spot will not affect the display of the mapping point on the canvas, and finally the mapping points distributed on the canvas are obtained.

[0120] In summary, on the canvas, the corresponding mapping points are drawn according to the starting auxiliary point, and as the light spot continues to move and the light spot position is acquired, the mapping points corresponding to the secondary auxiliary points and even the mapping graphics will be drawn on the canvas based on the mapping points corresponding to the starting auxiliary point, thereby obtaining at least one mapping point. The mapping graphics are composed of lines between mapping points, which are generated to better describe the relative position relationship between mapping points and to provide a more intuitive reference when placing processing patterns.

[0121] It should be clear that before performing this step, a mapping relationship between the light source coordinate system and the canvas coordinate system is established, so that the corresponding position (coordinates) of any point in one coordinate system can be obtained based on the mapping relationship between the two coordinate systems and the position (coordinates) of the point in the other coordinate system. For example, the coordinates of a point in the canvas coordinate system can be obtained based on the position of the point in the light source coordinate system. The coordinate system where the canvas is located is the canvas coordinate system.

[0122] See also Figure 5 , Figure 5The flowchart of drawing secondary auxiliary points after drawing mapping points on the canvas according to the position of the starting auxiliary point and obtaining the distribution of the mapping points on the canvas according to one embodiment of the present application is shown. The embodiment of the present application provides the steps of drawing mapping points on the canvas according to the position of the starting auxiliary point and obtaining the distribution of the mapping points on the canvas and then drawing secondary auxiliary points, including:

[0123] Step S401, driving the light source to irradiate to any point other than the starting auxiliary point, and any point other than the starting auxiliary point is a secondary auxiliary point;

[0124] Step S402, drawing the mapping points of the secondary auxiliary points synchronously displayed on the canvas, the mapping points corresponding to the secondary auxiliary points are the secondary mapping points, and the mapping points are used to obtain a canvas with more than two mapping points distributed.

[0125] The above two steps are described in detail below.

[0126] When the user believes that the processing alignment can be completed directly according to the starting mapping point, the user can choose to place the processing pattern with the starting mapping point as a reference, thereby completing the processing alignment.

[0127] For example, when placing a circular pattern with a diameter of 2 cm, you only need to select a point on the processing object as the center of the pattern to be processed, and set the point as the starting auxiliary point. In this way, you only need to place the processing pattern with a diameter of 2 cm on the canvas with the first mapping point as the center of the circle, and the processing alignment of the processing pattern is completed.

[0128] It should be clear that although only one mapping point, the starting mapping point, is drawn on the canvas to provide a reference for machining alignment, the light spot can be moved to the position of the next auxiliary point. At this time, the mark displayed by the light spot on the canvas can provide a further reference for the placement of the machining pattern without having to draw mapping points again.

[0129] Of course, in addition to this, in order to complete the processing alignment more accurately, the user can also choose to move the light spot to the secondary auxiliary point position in sequence after drawing the starting mapping point, and then draw the secondary mapping points mapped by the secondary auxiliary point on the canvas in sequence according to the synchronous display of the light spot on the canvas. In sequence, they are used as references for processing alignment. The auxiliary points include the starting auxiliary point and the secondary auxiliary point. Any auxiliary point other than the starting auxiliary point is a secondary auxiliary point. The mapping points distributed on the canvas include the mapping point corresponding to the starting auxiliary point and the secondary mapping point corresponding to the secondary auxiliary point.

[0130] In step S401, the light source is driven to move, so that the light spot moves synchronously until the light spot moves to the position of the next auxiliary point. The light source position information is obtained at this time, and then the position of the light spot, that is, the auxiliary point position, is obtained according to the relative position relationship between the light source and the light spot.

[0131] In step S402, after the light spot is moved to the position of the secondary auxiliary point in step S401, the synchronous display of the light spot on the canvas is the synchronous display of the secondary auxiliary point on the canvas, and the point is drawn to obtain the secondary mapping point mapped by the secondary auxiliary point on the canvas.

[0132] It should be noted that, according to the needs of processing alignment, steps S401 and S402 may be repeated multiple times to draw multiple secondary mapping points.

[0133] In the embodiment of the present application, multiple mapping points are drawn to provide more references for the placement of the processing pattern on the canvas, so that the CNC machine can be more accurate in processing alignment.

[0134] In one embodiment of the present application, a mapping line segment is drawn with the initial mapping point as the starting point and any secondary mapping point as the end point. The mapping line segment is displayed on the canvas. The mapping line segment can be extended to form various graphics according to processing needs to provide a reference for the user when the user places the processing pattern. Exemplarily, a rectangle can be generated with the mapping line segment as one side of the rectangle to provide a reference for the placement of the processing pattern. Various graphics can also be derived with the mapping line segment as a triangle, a pentagon, and one side of a user-defined graphic, or as a diagonal, a midline, or an axis of symmetry to provide a reference for placing the processing pattern.

[0135] In the embodiment of the present application, a reference for placing a processing pattern is provided by drawing a mapping line segment based on the mapping point, thereby enriching the way of providing a reference for placing a processing pattern and providing the user with more choices.

[0136] For example, see Figure 6 , Figure 6 The flowchart of placing a processing pattern after drawing a mapping line segment in the direction of any secondary mapping point with the starting mapping point as the starting point according to an embodiment of the present application is shown. The steps of the flowchart of placing a processing pattern after drawing a mapping line segment in the direction of any secondary mapping point with the starting mapping point as the starting point are provided in the embodiment of the present application, including:

[0137] Step S501, drawing a rectangle with the mapped line segment as the diagonal line;

[0138] Step S502, responding to the user's manipulation action, placing the processing pattern in the rectangle.

[0139] The above two steps are described in detail below.

[0140] In step S501 , a rectangle is generated on the canvas with the mapping line segment as a diagonal line, and the rectangle indicates a placement area of ​​the processing pattern on the canvas.

[0141] In step S502, the CNC machine responds to the user's manipulation action and places the processing pattern in the rectangle. To meet the processing needs, the processing pattern can be modified by translation, rotation, mirroring, cropping, etc.

[0142] See also Figure 7 and Figure 8 , Figure 7 A schematic diagram of drawing a rectangle based on a mapping line segment according to an embodiment of the present application is shown. As shown in the figure, a rectangle is drawn using the mapping line segment as a diagonal line to provide a reference for placing a processing pattern. Figure 8 A schematic diagram of placing a processing pattern in a rectangle according to an embodiment of the present application is shown. As shown in the figure, the processing pattern is placed in the formed rectangle.

[0143] In the embodiment of the present application, a rectangle is drawn according to the mapped line segment as a reference for placing the processing pattern. On the one hand, drawing a rectangle by diagonal lines is relatively simple and easy to understand, making it easier for users to get started and have a better experience. On the other hand, drawing a rectangle by mapping the line segment to frame the area where the processing pattern can be placed can provide a more specific reference for placing the processing pattern.

[0144] In another embodiment of the present application, according to the processing requirements, two or more mapping points can be directly connected to form a mapping graphic with mapping line segments connecting the mapping points as graphic components to provide a reference for the placement of the processing pattern.

[0145] It should be clear that the mapping figure can be a closed figure formed by connecting mapping points, or an open figure such as a broken line segment formed by connecting two or more mapping points. It can be adapted to processing patterns of various shapes. In one embodiment of the present application, a mapping line segment connecting two mapping points can also be used as a mapping figure to provide a reference for placing a processing pattern.

[0146] It should also be noted that after connecting the mapping points on the canvas, there is no limit on the number of mapping figures obtained, which can be one or any other number. It should be further clarified that it is not necessary to connect all the mapping points on the canvas, that is, mapping figures and unconnected mapping points can exist on the canvas at the same time.

[0147] In another embodiment of the present application, the mapping graph may also be obtained without being based on the connection between the mapping points. Exemplarily, the CNC machine draws the mapping graph based on the target instruction with a mapping point as the starting point, so that the canvas records the moving trajectory of the light spot and draws it on the canvas until the light spot stops moving, that is, the moving trajectory of the light spot displayed on the canvas forms the mapping graph, and the target instruction is generated by the operation action initiated by the user on the control panel of the CNC machine or the host computer constituted by the terminal device.

[0148] In addition, it should be supplemented that the mapping graphics can also be drawn in the following manner. Exemplarily, when the CNC machine starts drawing the mapping graphics according to the target instruction, it enters the state of automatically drawing the mapping graphics. For the mapping points drawn subsequently, lines are directly used to automatically connect until the state of automatically drawing the mapping graphics is exited, or the number of connections between the mapping points is limited so that the CNC machine automatically exits the state of automatically drawing the mapping graphics. If the number of connections between the mapping points is set to 2, the next three mapping points drawn are connected by lines in turn to obtain the mapping graphics. The mapping points drawn thereafter will no longer be automatically connected by lines. Unless the CNC machine enters the state of automatically drawing the mapping graphics again.

[0149] See also Fig. 9 , Fig. 9 FIG. 1 shows a schematic diagram of drawing a mapping graph according to an embodiment of the present application. Fig. 9 As shown, the mapping line segments formed by connecting the mapping points are used as graphic components to form a mapping graphic, and the processing pattern is placed with reference to the mapping graphic.

[0150] In the embodiment of the present application, the mapping graphics are drawn through the above embodiment, which makes it convenient for users to customize the shape of the mapping graphics and can adapt to processing patterns of different shapes without having to adjust them by hand and eye, thereby increasing the efficiency and effect of CNC machine processing alignment.

[0151] See also Fig.10 , Fig.10 The present invention provides a flowchart of drawing mapping points on a canvas according to the position of a starting auxiliary point, obtaining the distribution of the mapping points on the canvas, and then cleaning up the mapping points according to an embodiment of the present invention. The embodiment of the present invention provides a step of drawing mapping points on a canvas according to the position of a starting auxiliary point, obtaining the distribution of the mapping points on the canvas, and then cleaning up the mapping points, including:

[0152] Step S601, counting the number of mapping points;

[0153] Step S602: when the number of mapping points exceeds a preset number threshold, the mapping points that are earlier in time sequence are deleted according to the formation time of the mapping points.

[0154] The above two steps are described in detail below.

[0155] In order to prevent excessive mapping points and mapping graphics from affecting user operations, the mapping points and / or mapping graphics need to be deleted.

[0156] In step S601, the mapping points are first counted to obtain the number of mapping points, where the mapping points include independent mapping points without line connections and mapping points connected by lines. Lines include straight lines and curves, and can be lines of any characteristics, such as wavy lines and broken lines, which are not limited here one by one.

[0157] In one embodiment of the present application, the mapping points and mapping graphics without line connections can be combined and counted separately. When drawing mapping points and mapping graphics, the CNC machine records the drawing time and number of mapping points and mapping graphics without line connections, and marks the mapping points that have been connected by lines as non-mapping points, and counts several non-mapping points connected by lines as a whole.

[0158] In step S602, if the number of mapping points exceeds a preset number threshold, the mapping point with the earliest creation time is deleted until the number of mapping points is less than or equal to the number threshold.

[0159] In one embodiment of the present application, a threshold quantity is preset for the mapping graphics. If the number of mapping graphics exceeds the threshold quantity, the previously established mapping graphics are deleted according to the establishment time of the mapping graphics until the mapping graphics do not exceed the threshold quantity. It can be understood that the preset threshold quantity can be set comprehensively according to factors such as the size of the processing format, the number of processing patterns, the material of the processing object, user settings, etc., and is not limited here. For example, when the processing format is large, the preset threshold quantity is large; when the number of processing patterns is large, the preset threshold quantity is large; when the material of the processing object is hard, the preset threshold quantity is large, and so on. The preset threshold quantity can be 3, 6, 10, 15, 18, 21, etc., and is not limited here.

[0160] In another embodiment of the present application, a quantity threshold is set for the total number of mapping points and mapping graphics that are not connected by lines. If the number of mapping points and mapping graphics exceeds the quantity threshold, the mapping graphics or mapping points with the earliest establishment time will be deleted until the total number of mapping points and mapping graphics does not exceed the quantity threshold.

[0161] In addition, according to the user's selection, the mapping points and / or mapping graphics on the canvas are selected and deleted by the numerical control machine.

[0162] It should be clear that in another embodiment of the present application, the deletion of mapping points and mapping graphics is not based on step S210, step S220, and step S230, and the mapping points and mapping graphics displayed on the canvas can be drawn in any other way. When counting the number of mapping points and mapping graphics, statistics are made based on the records of mapping points and mapping graphics drawn on the canvas, and then automatic and manual deletion is performed based on the number limit of mapping points and mapping graphics.

[0163] In the embodiment of the present application, by deleting the mapping points and mapping graphics, a better user experience is provided, and the storage space of the numerical control machine is released, thereby preventing the user from being affected in operation due to too many mapping points and mapping graphics.

[0164] In step S230, in order to allow the user to intuitively observe which area of ​​the processing object the processing pattern will be processed to, the host computer indicates the actual position of the processing pattern by controlling the hardware device configured by the CNC machine itself. The actual position is used to indicate the position on the processing object where the processing pattern is executed.

[0165] Specifically, based on the relative position relationship between the mapping point and the processing pattern in the canvas coordinate system, and the mapping relationship between the canvas coordinate system and the light source coordinate system, the position information of the processing pattern in the light source coordinate system is obtained, that is, if the processing pattern is processed on the processing object, its position is also called the concrete position of the processing pattern. Finally, the area is indicated by the CNC machine.

[0166] It should be clarified that the actual position of the processing pattern indicated by the CNC machine can be the presentation of the processing pattern itself, such as the presentation of the outer frame of the processing pattern. It can also be the presentation of the area where the processing pattern is located, such as the presentation of a containing frame surrounding the processing pattern, where the surrounding frame and the outer frame of the image do not overlap. Alternatively, it can be the presentation of the center point of the processing pattern, including but not limited to the presentation of the processing pattern, or the presentation of part of the processing pattern.

[0167] See also Fig.11 , Fig.11 A flowchart of indicating the actual position of a processing pattern according to the relative position relationship between a mapping point and the processing pattern according to an embodiment of the present application is shown. The embodiment of the present application provides a step S230 of indicating the actual position of a processing pattern according to the relative position relationship between a mapping point and the processing pattern, including:

[0168] S231a, obtaining coordinate information of a containing frame corresponding to the processing pattern;

[0169] S232a, according to the coordinate information of the containing frame, a light spot formed by a light beam emitted by a light source traverses all sides of the containing frame to indicate the actual position of the processed pattern.

[0170] The above two steps are described in detail below.

[0171] In step S231a, the containing frame corresponding to the processed pattern is determined according to the size of the processed pattern. The containing frame of the processed pattern may refer to a graphic that frames the processed pattern. The shape of the containing frame includes but is not limited to a rectangle, a triangle, and a polygon. The containing frame includes but is not limited to the minimum containing pattern of the processed pattern. It should be clear that in an embodiment of the present application, the coordinate information of the containing frame may be the coordinate information of the containing frame in the light source coordinate system, or the coordinate system information of the containing frame in the canvas coordinate system.

[0172] In step S232a, when the user directly obtains the coordinate information of the containing frame in the light source coordinate system, the light source is driven to move according to the coordinate information of the containing frame in the light source coordinate system, so that the light spot formed by the light beam emitted by the light source traverses all sides of the containing frame to indicate the position where the processing pattern is executed on the processing object, that is, the actual position.

[0173] In another embodiment of the present application, when the coordinate information of the containing frame in the canvas coordinate system is obtained, and when the containing frame is rectangular and just fits the processing pattern. For the containing frame in the canvas coordinate system, there are x-axis and y-axis. For a processing pattern, its maximum span on the x-axis and its maximum span on the y-axis are the length and width of the containing frame of the processing pattern. If the coordinate information of each point is represented by (x, y) in the canvas coordinates, the two points of the processing pattern farthest apart on the x-axis are (a, b) and (m, n), respectively, then the maximum span of the processing pattern on the x-axis is │am│ (absolute value). The two points of the processing pattern farthest apart on the y-axis are (k, j) and (p, q), respectively, then the maximum span of the processing pattern on the y-axis is │jq│ (absolute value). │am│ and │jq│ are the length and width of the containing frame of the processing pattern.

[0174] Because the containing frame must pass through the four points (a, b), (m, n), (k, j) and (p, q), it is easy to obtain the coordinate information of the containing frame on the canvas. For example, when the number axis x and the number axis y are perpendicular to each other, according to the principles of mathematical geometry, the four vertices of the containing frame can be obtained as (a, j), (m, j), (a, q), (m, q), and then the coordinate information of the containing frame in the canvas coordinate system can be obtained.

[0175] According to the mapping relationship between the light source coordinate system and the canvas coordinate system, as well as the coordinate information of the containing frame in the canvas coordinate system, the coordinate information of the containing frame in the light source coordinate system is obtained, and then the light source is driven to move according to the coordinate information of the containing frame in the light source coordinate system, so that the light spot formed by the light beam emitted by the light source traverses all sides of the containing frame to indicate which area on the processing object the processing pattern will be processed to, that is, the actual position.

[0176] Exemplarily, the four vertices of the containing frame are point H, point I, point Z, and point V. The light source is driven to move so that the light spot moves circularly in the order of point H → point I → point Z → point V → point H. By moving in a straight line between two points, the processing alignment is completed.

[0177] In an embodiment of the present application, by displaying a containing frame of the processing pattern on the processing object or the plane where the processing object is located, the user can know where the processing pattern will be processed. If he is not satisfied, he can make adjustments. In this way, the error rate of processing and positioning of the processing pattern is reduced.

[0178] See also Fig.12 , Fig.12 A flowchart of indicating the actual position of a processing pattern according to the relative position relationship between a mapping point and the processing pattern according to an embodiment of the present application is shown. The embodiment of the present application provides a step S230 of indicating the actual position of a processing pattern according to the relative position relationship between a mapping point and the processing pattern, including:

[0179] S231b, obtaining coordinate information of the center point of the containing frame corresponding to the processing pattern;

[0180] S232b, according to the coordinate information of the center point of the containing frame, a light spot formed by a light beam emitted by a light source indicates the center point of the containing frame, and the center point of the containing frame is used to indicate the actual position of the processed pattern.

[0181] The above two steps are described in detail below.

[0182] In step S231b, the containing frame corresponding to the processed pattern is determined according to the size of the processed pattern, and the coordinate information of the center point of the containing frame is obtained. In one embodiment of the present application, the coordinate information of the center point of the containing frame can be the coordinate information of the center point of the containing frame in the light source coordinate system, or it can be the coordinate system information of the center point of the containing frame in the canvas coordinate system. Exemplarily, when the containing frame is a rectangle, the intersection of the diagonals of the containing frame is taken as the center point, and the coordinate information of the center of the containing frame in the canvas coordinate system is obtained.

[0183] In step S232b, when the user directly obtains the coordinate information of the center point of the containing frame in the light source coordinate system, the light source is driven to move according to the coordinate information of the center point of the containing frame in the light source coordinate system, so that the light spot formed by the light beam emitted by the light source moves to the center point of the containing frame in the light source coordinate system, so as to indicate the area on the processing object where the processing pattern will be processed, that is, the actual position.

[0184] In another embodiment of the present application, when the coordinate information of the center point of the containing frame in the canvas coordinate system is obtained in step S231b, it is necessary to obtain the coordinate information of the center of the containing frame in the light source coordinate system based on the mapping relationship between the light source coordinate system and the canvas coordinate system, and then drive the light source to make the light spot formed by the light beam emitted by the light source move according to the coordinate information of the center of the containing frame in the light source coordinate system, so that the position of the light spot is the same as the coordinate information of the center of the containing frame, that is, reaches the position of the center of the containing frame in the light source coordinate system, so as to indicate which area on the processing object the processing pattern will be processed to, that is, the actual position.

[0185] In an embodiment of the present application, by displaying the center point of the containing frame corresponding to the processing pattern on the processing object or the plane where the processing object is located, the user can know the position where the processing pattern will be processed. If dissatisfied, adjustments can be made, thereby reducing the error rate of processing alignment of the processing pattern.

[0186] See also Fig.13 , Fig.13 FIG. 1 shows a hardware schematic diagram of a numerical control machine according to an embodiment of the present application. In one embodiment, as shown in FIG. Fig.13 As shown, the numerical control machine 100 includes a housing, a movable light source 50 , and a laser tube 30 . The housing includes an upper shell 90 and a bottom shell 70 .

[0187] In one embodiment, the light spot can be generated by the light source 50. In another embodiment, the light spot can be generated by other components such as the laser tube 30 of the carbon dioxide laser tube, and enter the light beam emitting device through the reflector 10, and finally emit after passing through the light source 50 to process the workpiece. The light source can emit laser, but it can not only emit laser.

[0188] In one embodiment, a reflector 10 is disposed between the light source 50 and the laser tube 30 . The light beam generated by the laser tube 30 is reflected by the reflector 10 to the light source 50 , and then emitted after being reflected, focused, etc. to process the workpiece.

[0189] In one embodiment, the housing of the laser numerical control machine 100, i.e. Fig.13 The upper shell 90 and the bottom shell 70 shown together enclose an internal space that can accommodate the workpiece, and the upper shell 90 and the bottom shell 70 can be detachably connected or fixedly connected, or the upper shell 90 and the bottom shell 70 are an integrally formed structure. In one embodiment, the upper shell 90 is also provided with a rotatable cover plate, and the operator can open or close the cover plate to open the internal space to put in or take out the workpiece.

[0190] The blocking and / or filtering effects of the upper shell 90 and the bottom shell 70 can prevent the laser emitted by the light source 50 from spilling over during operation and causing personal injury to the operator.

[0191] For example, in one embodiment, a track device and a frame can be provided in the internal space, and the light source 50 is installed on the track device, and the track device can be installed on the frame and can move on the frame. The track device can be an X-axis and Y-axis guide rail, and the X-axis and Y-axis guide rail can be a linear guide rail, or a guide rail in which the optical axis and the roller slide together, etc., and it only needs to be able to drive the light source 50 to move on the X-axis and Y-axis for processing. A Z-axis moving track can also be provided in the light source 50 for moving in the Z-axis direction for focusing before and / or during processing.

[0192] The method for realizing the machining alignment according to the embodiment of the present application can be: Fig.14 The following is a reference to the CNC machine. Fig.14 To describe a numerical control machine according to an embodiment of the present application. Fig.14 The CNC machine shown is merely an example and should not bring any limitation to the functions and scope of application of the embodiments of the present application.

[0193] like Fig.14 As shown, the CNC machine may be in the form of a general-purpose computing device. The components of the CNC machine may include, but are not limited to: at least one processing unit 810, at least one storage unit 820, and a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810).

[0194] The storage unit stores program codes, which can be executed by the processing unit 810, so that the processing unit 810 performs the steps according to various exemplary embodiments of the present invention described in the description of the exemplary method described above in this specification. For example, the processing unit 810 can perform the following steps: Figure 2 The steps shown in .

[0195] The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 8201 and / or a cache storage unit 8202 , and may further include a read-only storage unit (ROM) 8203 .

[0196] The storage unit 820 may also include a program / utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0197] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0198] The CNC machine may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the CNC machine, and / or any device that enables the CNC machine to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 850. In addition, the CNC machine may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 860. As shown, the network adapter 860 communicates with other modules of the point cloud camera 12 through a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the CNC machine, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0199] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0200] In an exemplary embodiment of the present application, a computer program medium is further provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer is enabled to execute the method described in the above method embodiment.

[0201] According to one embodiment of the present application, a program product for implementing the method in the above method embodiment is also provided, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited to this. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0202] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0203] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0204] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0205] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0206] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0207] In addition, although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0208] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.

[0209] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the inventions applied for herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that the present application does not apply for. The specification and embodiments are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the appended claims.

Claims

1. A method for realizing machining alignment, It is characterized in that The method comprises: Through the light spot formed by the light source, a starting auxiliary point is selected on the processing object or the plane where the processing object is located, and the position of the starting auxiliary point is determined; Drawing mapping points on the canvas according to the position of the starting auxiliary point to obtain the distribution of the mapping points on the canvas, wherein the distribution of the mapping points on the canvas is used to indicate the placement of the processing pattern; According to the relative position relationship between the mapping point and the processing pattern, the actual position of the processing pattern on the processing object is indicated.

2. The method according to claim 1, It is characterized in that The step of determining the position of the starting auxiliary point comprises: Extracting the moving distance of the light source to obtain the position information of the light source; The position of the starting auxiliary point is obtained according to the light source position information.

3. The method according to claim 2, It is characterized in that The step of obtaining the position of the starting auxiliary point according to the light source position information includes: According to the light source position information, synchronously displaying the position where the light spot is mapped to the canvas; In response to the target instruction, the starting auxiliary point position is determined.

4. The method according to claim 1, It is characterized in that The mapping points include secondary mapping points. After drawing the mapping points on the canvas according to the positions of the starting auxiliary points and obtaining the distribution of the mapping points on the canvas, the method further includes: Driving the light source to irradiate to any point other than the starting auxiliary point, wherein the any point other than the starting auxiliary point is a secondary auxiliary point; The mapping point synchronously displayed on the canvas with the secondary auxiliary point is drawn, the mapping point corresponding to the secondary auxiliary point is the secondary mapping point, and the mapping point is used to obtain a canvas with more than two mapping points distributed thereon.

5. The method according to claim 4, It is characterized in that The mapping point corresponding to the starting auxiliary point is the starting mapping point, and the mapping points include the starting mapping point. After drawing the mapping point synchronously displayed on the canvas with the secondary auxiliary point, the method further includes: Taking the initial mapping point as a starting point, a mapping line segment is drawn in the direction of any of the secondary mapping points, and the mapping line segment formed by the mapping points distributed on the canvas is used to indicate the placement of the processing pattern.

6. The method according to claim 5, It is characterized in that After drawing a mapping line segment from the initial mapping point to any of the secondary mapping points, the method further includes: Draw a rectangle with the mapped line segment as a diagonal line; In response to the user's manipulation action, the processing pattern is placed in the rectangle.

7. The method according to claim 4, It is characterized in that After drawing the mapping points of the secondary auxiliary points synchronously displayed on the canvas, the method further comprises: Two or more of the mapping points are connected to form a mapping line segment formed by connecting the mapping points as a graphic component to form a mapping graphic. The mapping graphic formed by the mapping points distributed on the canvas is used to place the processing pattern.

8. The method according to claim 1, 4 or 5, It is characterized in that After drawing the mapping points on the canvas according to the positions of the starting auxiliary points and obtaining the distribution of the mapping points on the canvas, the method further includes: Counting the number of the mapping points; When the number of the mapping points exceeds a preset number threshold, the mapping points that are in the previous order are deleted according to the formation time of the mapping points.

9. The method according to claim 1, It is characterized in that The indicating the actual position of the processing pattern on the processing object according to the relative position relationship between the mapping point and the processing pattern includes: Acquire coordinate information of a containing frame corresponding to the processing pattern; According to the coordinate information of the containing frame, a light spot formed by a light beam emitted by a light source traverses each side of the containing frame to indicate the actual position of the processing pattern.

10. The method according to claim 1, It is characterized in that The indicating the actual position of the processing pattern on the processing object according to the relative position relationship between the mapping point and the processing pattern includes: Obtaining coordinate information of a center point of a containing frame corresponding to the processing pattern; According to the coordinate information of the center point of the containing frame, a light spot formed by a light beam emitted by a light source indicates the center point of the containing frame, and the center point of the containing frame is used to indicate the actual position of the processing pattern.

11. A computer numerically controlled machine, It is characterized in that The computer numerically controlled machine comprises: Light emitting components; A communication component, the communication component being used to receive a signal corresponding to the actual position obtained by the method according to any one of claims 1-10; and A controller is used to control the light emitting component to emit light to indicate the realized position based on a signal corresponding to the realized position.

12. A computing system, It is characterized in that The computing system includes at least one computer numerically controlled machine and at least one processor; The processor is used to perform the steps of the method according to any one of claims 1 to 10; The computer numerical control machine transmits electromagnetic energy to a processing object disposed inside the computer numerical control machine based on the realized position of the processing pattern.

13. A computer-readable storage medium, It is characterized in that Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Method, machining unit and computer program product for the image-based positioning of workpiece machining processes

    CN106536128A

  • Laser soldering method and apparatus

    US20010054637A1