Automatic processing method of CNC machine tools

By automatically establishing and saving the machining coordinate system in the CNC machine tool system, the problem of low machining safety in the existing technology is solved, and higher machining safety and efficiency are achieved.

CN115582732BActive Publication Date: 2025-03-04GOERTEK INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211417087.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-11
Publication Date
2025-03-04
Estimated Expiration
2042-11-11

AI Technical Summary

Technical Problem

In the prior art, the machine tool processing safety is low, resulting in problems such as breaking the knife, knocking machine, and probe being hit by the workpiece to be processed.

Method used

In the CNC machine system, set the reference points of the workpiece to be processed based on the preset machine tool coordinate system, clamp the workpiece, establish the workpiece coordinate system, and run the preset processing coordinate system to automatically save the processing coordinate system to achieve automatic processing.

Benefits of technology

It improves the safety of machine tool processing and reduces the probability of problems such as knife cutting, collision machine, and probe being broken by workpiece to be processed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115582732B_ABST
    Figure CN115582732B_ABST
Patent Text Reader

Abstract

The present application discloses an automatic processing method for a numerically controlled machine tool, which belongs to the field of machine tool processing. The present application requires an operator to set a reference point of a workpiece to be processed on the surface of a magnetic table based on a preset machine tool coordinate system in a numerically controlled machine tool system; then, based on the reference point, clamp the workpiece to be processed on the surface of the magnetic table to obtain a workpiece coordinate system of the workpiece to be processed; then, based on the workpiece coordinate system, run a preset processing coordinate system establishment program to obtain a processing coordinate system of the workpiece to be processed, and automatically save the processing coordinate system to the numerically controlled machine tool system; the operator only needs to run the preset workpiece processing program, and the numerically controlled machine tool system will automatically process the workpiece to be processed based on the processing coordinate system, thereby completing the automatic processing of the workpiece, reducing the probability of problems such as tool jamming, machine collision, and probe being broken by the workpiece to be processed, and improving the safety of machine tool processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of machine tool processing, and in particular to an automatic processing method for a CNC machine tool. Background Art

[0002] At present, before the machine tool starts processing, the processing coordinate system of the workpiece to be processed in the preset machine tool coordinate system requires the operator to manually rotate the spindle, use the dial indicator probe to mark the workpiece to be processed, and then establish the processing coordinate system through calculation. However, when manually implementing the above steps, it is impossible to determine whether errors occur, and the obtained processing coordinate system is not accurate. When the machine tool processes the workpiece based on the processing coordinate system established in this way, it may cause problems such as tool jamming, machine collision, and the probe being broken by the workpiece to be processed, reducing the safety of machine tool processing.

[0003] Therefore, there is a problem of low safety in machine tool processing in the prior art. Summary of the invention

[0004] The main purpose of the present application is to provide an automatic processing method for CNC machine tools, aiming to solve the technical problem of low safety of machine tool processing in the prior art.

[0005] To achieve the above object, the present application provides a CNC machine tool automatic processing method, comprising the following steps:

[0006] In the CNC machine tool system, based on the preset machine tool coordinate system, a reference point of the workpiece to be processed is set on the surface of the magnetic table;

[0007] Based on the reference point, clamp the workpiece to be processed on the surface of the magnetic table to obtain a workpiece coordinate system of the workpiece to be processed;

[0008] Based on the workpiece coordinate system, a preset machining coordinate system establishment program is run to obtain the machining coordinate system of the workpiece to be machined, and the machining coordinate system is automatically saved to the CNC machine tool system;

[0009] A preset workpiece processing program is run, and the CNC machine tool system processes the workpiece to be processed based on the processing coordinate system.

[0010] Optionally, the step of running a preset machining coordinate system establishment program based on the workpiece coordinate system to obtain the machining coordinate system of the workpiece to be machined includes:

[0011] Based on the workpiece coordinate system, selecting a target acquisition point in a preset machining coordinate system establishment program;

[0012] By running the machining coordinate system establishment program, the control probe is used to mark the workpiece to be machined based on the target acquisition point, the actual coordinates of the target acquisition point in the preset machine tool coordinate system are obtained, and the machining coordinate system of the workpiece to be machined is obtained based on the actual coordinates.

[0013] Optionally, the target collection points include at least three collection points on the upper surface of the workpiece to be processed, at least two collection points on one edge of the workpiece to be processed, and at least one collection point on each of the other edges.

[0014] Optionally, the step of obtaining the actual coordinates of the target acquisition point in the preset machine tool coordinate system, and obtaining the machining coordinate system of the workpiece to be machined based on the actual coordinates includes:

[0015] Obtaining vertical coordinates of at least three acquisition points of the upper surface in the preset machine tool coordinate system, and determining whether the workpiece to be processed is in a horizontal state based on the vertical coordinates;

[0016] If it is in a horizontal state, the processing coordinate system of the workpiece to be processed is obtained based on the horizontal and vertical coordinates of at least two acquisition points on one of the edges and the horizontal and vertical coordinates of at least one acquisition point on each of the other edges.

[0017] Optionally, the step of obtaining the machining coordinate system of the workpiece to be machined based on the horizontal and vertical coordinates of at least two acquisition points on one of the edges and the horizontal and vertical coordinates of at least one acquisition point on each of the other edges comprises:

[0018] Based on the horizontal and vertical coordinates of at least two acquisition points on one of the edges, determining whether the workpiece to be processed is tilted relative to the machine tool coordinate system on a horizontal plane;

[0019] If there is no tilt, the processing coordinate system of the workpiece to be processed is obtained based on the horizontal and vertical coordinates of at least one acquisition point on each of the other edges.

[0020] Optionally, after the step of determining whether the workpiece to be processed is tilted on a horizontal plane based on the horizontal and vertical coordinates of at least two acquisition points on one of the edges, the method further comprises:

[0021] If it is tilted, then the inclination of the workpiece to be processed relative to the reference axis of the machine tool coordinate system is calculated;

[0022] Based on the inclination, the workpiece coordinate system is rotated to obtain a rotated workpiece coordinate system;

[0023] Based on the rotated workpiece coordinate system, a machining coordinate system of the workpiece to be machined is obtained.

[0024] Optionally, the step of obtaining a machining coordinate system of the workpiece to be machined based on the rotated workpiece coordinate system comprises:

[0025] The machining coordinate system of the workpiece to be machined is obtained based on the reference axis of the rotated workpiece coordinate system and the actual origin calculated based on the horizontal and vertical coordinates of at least one acquisition point on each of the other edges.

[0026] Optionally, after the step of determining whether the workpiece to be processed is in a horizontal state based on the longitudinal coordinate, the method further comprises:

[0027] If it is in a non-horizontal state, return to the step of clamping the workpiece to be processed on the surface of the magnetic table based on the reference point.

[0028] Optionally, the step of clamping the workpiece to be processed on the surface of the magnetic table based on the reference point includes:

[0029] Based on the reference point, a positioning fixture is clamped on the surface of the magnetic table;

[0030] Based on the position of the positioning fixture, the workpiece to be processed is clamped on the surface of the magnetic table.

[0031] Optionally, after the step of clamping the workpiece to be processed on the surface of the magnetic table based on the position of the positioning fixture, the method further includes:

[0032] A stopper is clamped on the edge of the workpiece to be processed that is not surrounded by the positioning fixture to fix the position of the workpiece to be processed.

[0033] The present application proposes an automatic processing method for CNC machine tools. Compared with the prior art in which the machine tool is based on a processing coordinate system obtained manually, when processing the workpiece to be processed, it may cause problems such as tool jamming, machine collision, and probe being broken by the workpiece to be processed, thereby reducing the safety of machine tool processing. The present application requires an operator to set a reference point of the workpiece to be processed on the surface of the magnetic table based on a preset machine coordinate system in the CNC machine tool system; then, based on the reference point, clamp the workpiece to be processed on the surface of the magnetic table to obtain the workpiece coordinate system of the workpiece to be processed; then, based on the workpiece coordinate system, run a preset machining coordinate system establishment program to obtain the machining coordinate system of the workpiece to be processed, and automatically save the machining coordinate system to the CNC machine tool system; there is no need for an operator to manually rotate the spindle throughout the process, and the workpiece to be processed is marked with dots by a dial indicator probe, and then the machining coordinate system is established through calculation to obtain an accurate machining coordinate system. The operator only needs to run the preset workpiece machining program, and the CNC machine tool system will automatically process the workpiece to be processed based on the machining coordinate system, thereby completing the automatic machining of the workpiece, reducing the probability of problems such as tool jamming, machine collision, and probe being broken by the workpiece to be processed, thereby improving the safety of machine tool machining. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0035] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0036] Figure 1 This is a schematic diagram of the process of the first embodiment of the automatic machining method for CNC machine tools of the present application;

[0037] Figure 2 This is a logical architecture diagram of the first embodiment of the automatic machining method for CNC machine tools of the present application;

[0038] Figure 3 This is a schematic diagram of a second embodiment of the automatic machining method for a CNC machine tool of the present application;

[0039] Figure 4 This is a schematic diagram of a second embodiment of the automatic machining method for CNC machine tools of the present application.

[0040] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0041] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0042] The present application embodiment provides a method for automatic machining of a CNC machine tool, referring to Figure 1 and Figure 2 , Figure 1 This is a flow chart of the first embodiment of the automatic machining method for CNC machine tools of the present application. Figure 2 This is a logical architecture diagram of the first embodiment of the automatic machining method for CNC machine tools of the present application.

[0043] In this embodiment, the automatic processing method of the CNC machine tool includes:

[0044] Step S10: in the CNC machine tool system, based on a preset machine tool coordinate system, setting a reference point of the workpiece to be processed on the surface of the magnetic table;

[0045] As an example, a CNC machine tool is an automated machine tool equipped with a program control system (CNC machine tool system).

[0046] As an example, a CNC machine tool system has a preset machine tool coordinate system used to determine the position of a workpiece. The preset machine tool coordinate system is an inherent coordinate system of the machine tool and has a fixed coordinate origin.

[0047] As an example, a CNC machine tool is provided with a magnetic table that can carry a workpiece to be processed.

[0048] As an example, before processing, the workpiece to be processed needs to be clamped to the surface of the magnetic table.

[0049] As an example, before clamping the workpiece to be processed onto the surface of the magnetic table, it is necessary to determine the clamping position of the workpiece to be processed.

[0050] As an example, the upper left corner of the workpiece to be processed can be used as the clamping point, or the upper right corner of the workpiece to be processed can be used as the clamping point, etc., without specific limitation.

[0051] As an example, the reference point is at any position on the surface of the magnetic table.

[0052] As an example, an operator sets a reference point of the workpiece to be processed on the surface of the magnetic table based on a preset machine tool coordinate system in a CNC machine tool system, thereby determining the clamping position of the workpiece to be processed in the machine tool.

[0053] As an example, setting the reference point of the workpiece to be processed on the surface of the magnetic table may be by inputting a coordinate point in the CNC machine tool system, or by modifying an automatically set reference point, etc., without specific limitation.

[0054] Step S20, based on the reference point, clamping the workpiece to be processed on the surface of the magnetic table to obtain a workpiece coordinate system of the workpiece to be processed;

[0055] As an example, based on the reference point, the workpiece to be processed is clamped on the surface of the magnetic table, and the clamping point of the workpiece to be processed can be coincident with the reference point to obtain the coordinates of the theoretical origin of the workpiece to be processed in the preset machine tool coordinate system.

[0056] Reference Figure 4 The step of clamping the workpiece to be processed on the surface of the magnetic table based on the reference point includes:

[0057] Reference Figure 4 In step a), based on the reference point, a positioning fixture is clamped on the surface of the magnetic table, that is, the positioning point of the inner edge of the positioning fixture is made to coincide with the reference point, so as to fix the position of the positioning fixture on the surface of the magnetic table.

[0058] Reference Figure 4 In step b), based on the position of the positioning fixture, the workpiece to be processed is clamped on the surface of the magnetic table, that is, the positioning point of the positioning fixture is coincident with the clamping point of the workpiece to be processed, and the positioning edge of the positioning fixture is closely attached to the edge of the workpiece to be processed, so as to obtain the coordinates of the theoretical origin of the workpiece to be processed in the preset machine tool coordinate system, and the workpiece coordinate system based on the theoretical origin.

[0059] As an example, the workpiece coordinate system is the relative position of the workpiece to be processed in the preset machine tool coordinate system. Since the above steps are all completed by the operator, the clamping accuracy of the workpiece to be processed cannot be guaranteed. Therefore, the relative position is also the theoretical position. That is to say, after the workpiece to be processed is clamped, it cannot be processed immediately, but should be further adjusted to obtain the processing coordinate system. Therefore, the workpiece coordinate system is the theoretical coordinate system.

[0060] As an example, the theoretical origin of the workpiece coordinate system is the reference point, the theoretical horizontal and vertical axes of the workpiece coordinate system are the two positioning edges of the positioning fixture, and the vertical axis of the workpiece coordinate system is the coordinate axis perpendicular to the plane of the magnetic table and coincident with the reference point.

[0061] As an example, after the step of clamping the workpiece to be processed on the surface of the magnetic table based on the position of the positioning fixture, the method further includes:

[0062] Reference Figure 4 In step c), a stopper is clamped on an edge of the workpiece to be processed that is not surrounded by the positioning fixture to fix the position of the workpiece to be processed.

[0063] As an example, in order to prevent the workpiece to be processed from sliding due to vibration during processing or due to the shape of the workpiece to be processed, a stop block is clamped on the edge of the workpiece to be processed that is not surrounded by the positioning fixture to fix the position of the workpiece to be processed.

[0064] Step S30: Based on the workpiece coordinate system, a preset machining coordinate system establishment program is run to obtain a machining coordinate system of the workpiece to be machined, and the machining coordinate system is automatically saved to the CNC machine tool system;

[0065] As an example, the machining coordinate system is the coordinate system used during programming, also known as the programming coordinate system. This coordinate system is set manually, and the machining coordinate system is the actual coordinate system that needs to be used when machining the workpiece to be machined. Before running the preset workpiece machining program in the CNC machine tool system to automatically process the workpiece to be machined, it is necessary to establish a machining coordinate system by running the preset machining coordinate system establishment program.

[0066] As an example, different machine tool CNC systems have different procedures for establishing machining coordinate systems.

[0067] As an example, the machining coordinate system is a coordinate system used for re-establishing machining of the workpiece to be machined in a preset machine tool coordinate system based on the workpiece coordinate system of the workpiece to be machined.

[0068] As an example, the preset machining coordinate system establishment program may be installed inside a CNC machine tool and may be independent of the CNC machine tool, without any specific limitation.

[0069] As an example, based on the workpiece coordinate system, a preset machining coordinate system establishment program is run, that is, the preset machining coordinate system establishment program is adjusted based on the workpiece coordinate system of the workpiece to be processed to obtain the machining coordinate system of the workpiece to be processed.

[0070] As an example, the preset machining coordinate system establishment program will automatically save the machining coordinate system to the CNC machine tool system.

[0071] As an example, the preset machining coordinate system establishment program can adjust the workpiece coordinate system of the workpiece to be processed by prompting the operator to adjust the workpiece to be processed, or by further adjusting the obtained machining coordinate system, etc., without specific limitation.

[0072] Step S40, running a preset workpiece processing program, the CNC machine tool system processes the workpiece to be processed based on the processing coordinate system.

[0073] As an example, an operator runs a preset workpiece processing program, and the CNC machine tool system processes the workpiece to be processed based on the processing coordinate system, thereby completing automatic processing of the workpiece to be processed.

[0074] As an example, before this, the preset machining coordinate system establishment program will automatically save the machining coordinate system to the CNC machine tool system. This can avoid the situation where the machining coordinate system is manually established and then forgotten to be saved. If it is forgotten to be saved, after the operator runs the preset workpiece processing program, the CNC machine tool system will use the machining coordinate system of the last processed workpiece for processing when processing the workpiece to be processed based on the machining coordinate system, which will cause problems such as tool jamming, machine collision or workpiece damage due to different models or installation positions.

[0075] The present application requires an operator to set a reference point of the workpiece to be processed on the surface of the magnetic table based on a preset machine coordinate system in the CNC machine tool system; then, based on the reference point, clamp the workpiece to be processed on the surface of the magnetic table to obtain the workpiece coordinate system of the workpiece to be processed; then, based on the workpiece coordinate system, run a preset machining coordinate system establishment program to obtain the machining coordinate system of the workpiece to be processed, and automatically save the machining coordinate system to the CNC machine tool system; there is no need for an operator to manually rotate the spindle throughout the process, and the workpiece to be processed is marked with dots by a dial indicator probe, and then the machining coordinate system is established through calculation to obtain an accurate machining coordinate system. The operator only needs to run the preset workpiece machining program, and the CNC machine tool system will automatically process the workpiece to be processed based on the machining coordinate system, thereby completing the automatic machining of the workpiece, reducing the probability of problems such as tool jamming, machine collision, and probe being broken by the workpiece to be processed, thereby improving the safety of machine tool machining.

[0076] The embodiment of the present application further provides a second embodiment based on the first embodiment of the automatic machining method for a CNC machine tool.

[0077] In this embodiment, the step of running a preset machining coordinate system establishment program based on the workpiece coordinate system to obtain the machining coordinate system of the workpiece to be machined includes:

[0078] Step A1: Based on the workpiece coordinate system, select a target acquisition point in a preset machining coordinate system establishment program;

[0079] As an example, the target acquisition point is a acquisition point on the workpiece to be processed that is set in the processing coordinate system establishment program and needs to be marked. The target acquisition point can be set manually or automatically generated based on different workpieces.

[0080] As an example, the theoretical coordinates of the target acquisition point are determined based on the workpiece coordinate system of the workpiece to be processed.

[0081] In this embodiment, the target collection points include at least three collection points on the upper surface of the workpiece to be processed, at least two collection points on one edge of the workpiece to be processed, and at least one collection point on each of the other edges.

[0082] Specifically, refer to Figure 3 The at least three collection points on the upper surface of the workpiece to be processed may be point 1, point 2, and point 3 respectively.

[0083] Specifically, refer to Figure 3 The at least two acquisition points on one edge of the workpiece to be processed may be point 4 and point 5 respectively.

[0084] Specifically, refer to Figure 3 , at least one collection point on each other edge of the workpiece to be processed can be point 6, point 7, and point 8 respectively.

[0085] Step A2: By running the machining coordinate system establishment program, the probe is controlled to mark the workpiece to be machined based on the target acquisition point, the actual coordinates of the target acquisition point in the preset machine tool coordinate system are obtained, and the machining coordinate system of the workpiece to be machined is obtained based on the actual coordinates.

[0086] As an example, an operator runs the machining coordinate system establishment program, and the machining coordinate system establishment program controls the probe of the CNC machine tool to mark the workpiece to be processed based on the target acquisition point, so as to obtain the actual coordinates of the target acquisition point in the preset machine tool coordinate system.

[0087] As an example, the order of the dotting may be to first dot at least three acquisition points on the upper surface of the workpiece to be processed in order or randomly. Then dot at least two acquisition points on one edge of the workpiece to be processed in order or randomly. Finally, dot at least one acquisition point on each of the other edges of the workpiece to be processed in order or randomly.

[0088] As an example, the order of marking can also be to mark all the above target collection points in order or randomly, without specific limitation.

[0089] As an example, if the shape of the workpiece to be processed is not a standard rectangle, but Figure 4 For the irregular-shaped workpiece to be processed as shown, the dots can be marked according to the outer contour of the largest rectangle of the irregular-shaped workpiece to be processed.

[0090] As an example, the machining coordinate system establishing program calculates the machining coordinate system of the workpiece to be machined based on the actual coordinates obtained by dot marking.

[0091] As an example, when manually shaking the probe to perform dotting, the direction may be reversed, causing the probe to be broken by the workpiece to be processed. This embodiment performs dotting in the above manner, which can improve processing efficiency.

[0092] In this embodiment, the step of obtaining the actual coordinates of the target acquisition point in the preset machine tool coordinate system, and obtaining the machining coordinate system of the workpiece to be machined based on the actual coordinates includes:

[0093] Step B1: obtaining vertical coordinates of at least three acquisition points of the upper surface in the preset machine tool coordinate system, and determining whether the workpiece to be processed is in a horizontal state based on the vertical coordinates;

[0094] As an example, due to the roughness and unevenness of the magnetic table surface, or the uncleanness of the bottom surface of the workpiece, the workpiece to be processed may not be in the same horizontal plane. It is necessary to determine whether the workpiece to be processed is in a non-horizontal state through at least three collection points on the upper surface of the workpiece to be processed.

[0095] As an example, the machining coordinate system establishment program is based on the vertical coordinates of the actual coordinates of at least three sampling points on the upper surface obtained by dot marking. If the vertical coordinates of the actual coordinates of point 1, point 2, and point 3 are different, it is determined that the workpiece to be processed is in a non-horizontal state.

[0096] As an example, when manually establishing a coordinate system, if an error occurs, it will lead to problems such as tool jamming, machine collision, and workpiece damage during the processing; this embodiment can reduce the probability of occurrence of such errors and improve processing efficiency through the above method.

[0097] In this embodiment, after the step of determining whether the workpiece to be processed is in a horizontal state based on the longitudinal coordinate, the method further includes:

[0098] Step C1: If it is in a non-horizontal state, return to the above step of clamping the workpiece to be processed on the surface of the magnetic table based on the reference point.

[0099] As an example, if it is determined that the workpiece to be processed is in a non-horizontal state, it is necessary to prompt the operator to check the magnetic table or the workpiece to be processed and re-clamp the workpiece to be processed.

[0100] Step B2: If it is in a horizontal state, a processing coordinate system of the workpiece to be processed is obtained based on the horizontal and vertical coordinates of at least two acquisition points on one of the edges and the horizontal and vertical coordinates of at least one acquisition point on each of the other edges.

[0101] As an example, if it is in a horizontal state, it is determined that the vertical coordinate axis of the processing coordinate system of the workpiece to be processed is established.

[0102] As an example, when the vertical coordinate axis is established, the horizontal and vertical coordinate axes and the actual origin of the processing coordinate system are established based on the horizontal and vertical coordinates of at least two acquisition points on one of the edges and the horizontal and vertical coordinates of at least one acquisition point on each of the other edges, and finally the processing coordinate system of the workpiece to be processed is obtained.

[0103] In this embodiment, the step of obtaining the machining coordinate system of the workpiece to be machined based on the horizontal and vertical coordinates of at least two acquisition points on one of the edges and the horizontal and vertical coordinates of at least one acquisition point on each of the other edges includes:

[0104] Step D1: determining whether the workpiece to be processed is tilted relative to the machine tool coordinate system on a horizontal plane based on the horizontal and vertical coordinates of at least two acquisition points on one of the edges;

[0105] As an example, under the premise that the workpiece to be processed is in a horizontal state, based on the horizontal and vertical coordinates of at least two acquisition points on one of the edges, it is determined whether the workpiece to be processed is tilted relative to the machine tool coordinate system on the horizontal plane.

[0106] As an example, one of the edges of the workpiece to be processed may be as follows Figure 4 One of the upper and lower sides of the maximum outer contour of the mold shown can also be as follows Figure 4 One of the left and right sides of the maximum outer contour of the mold shown.

[0107] As an example, determining whether the workpiece to be processed is tilted on the horizontal plane relative to the machine tool coordinate system may be by determining whether the workpiece to be processed is tilted on the horizontal plane relative to the horizontal axis of the machine tool coordinate system, or may be by determining whether the workpiece to be processed is tilted on the horizontal plane relative to the vertical axis of the machine tool coordinate system.

[0108] As an example, the difference between the longitudinal coordinates of point 4 and point 5 can be calculated to determine whether the workpiece to be processed is tilted relative to the machine tool coordinate system on the horizontal plane. If the difference is greater than a preset threshold, it is determined that the workpiece to be processed is tilted relative to the machine tool coordinate system on the horizontal plane.

[0109] As an example, the preset difference threshold may be an absolute value of 0.01 mm, etc., which is not specifically limited.

[0110] In this embodiment, after the step of determining whether the workpiece to be processed is tilted on a horizontal plane based on the horizontal and vertical coordinates of at least two acquisition points on one of the edges, the method further includes:

[0111] Step E1: If tilted, calculate the inclination of the workpiece to be processed relative to the reference axis of the machine tool coordinate system;

[0112] As an example, if it is determined that the workpiece to be processed is inclined relative to the machine tool coordinate system on the horizontal plane, the angle formed by the straight line passing through at least two acquisition points on one of the edges and the reference axis of the machine tool coordinate system is used as the inclination of the workpiece to be processed relative to the reference axis of the machine tool coordinate system.

[0113] Step E2: rotating the workpiece coordinate system based on the inclination to obtain a rotated workpiece coordinate system;

[0114] As an example, based on the inclination, the workpiece coordinate system is rotated by the inclination in a direction opposite to the reference axis to obtain a rotated workpiece coordinate system.

[0115] As an example, compared with adjusting the position of the workpiece to be processed based on the inclination, adjusting the workpiece coordinate system based on the inclination can reduce the operator's operating procedures. If the position of the workpiece to be processed is adjusted, it may cause the previously adjusted parameters such as the height to produce errors again, thereby reducing processing efficiency.

[0116] Step E3: Based on the rotated workpiece coordinate system, a processing coordinate system of the workpiece to be processed is obtained.

[0117] As an example, based on the rotated workpiece coordinate system, a machining coordinate system of the workpiece to be machined is obtained.

[0118] In this embodiment, the step of obtaining the machining coordinate system of the workpiece to be machined based on the rotated workpiece coordinate system includes:

[0119] Step F1: Obtaining a machining coordinate system of the workpiece to be machined based on the reference axis of the rotated workpiece coordinate system and the actual origin calculated based on the horizontal and vertical coordinates of at least one acquisition point on each of the other edges.

[0120] As an example, based on the rotated workpiece coordinate system, the actual horizontal and vertical coordinate axes of the processing coordinate system of the workpiece to be processed can be obtained, and based on the actual horizontal and vertical coordinate axes, the actual vertical coordinate axis determined above, and the actual origin obtained based on the horizontal and vertical coordinates of at least one acquisition point on each of the other edges, the processing coordinate system of the workpiece to be processed is obtained.

[0121] Step D2: If there is no tilt, a processing coordinate system of the workpiece to be processed is obtained based on the horizontal and vertical coordinates of at least one acquisition point on each of the other edges.

[0122] As an example, if the difference is less than a preset threshold, it is determined that the workpiece to be processed is not tilted relative to the machine tool coordinate system on the horizontal plane; if the workpiece coordinate system is rotated based on the inclination to obtain a rotated workpiece coordinate system, it is determined that the workpiece to be processed is not tilted relative to the machine tool coordinate system on the horizontal plane.

[0123] As an example, under the premise that the workpiece to be processed is not tilted, the processing coordinate system of the workpiece to be processed is obtained based on the horizontal and vertical coordinates of at least one acquisition point on each of the other edges.

[0124] As an example, under the premise that the workpiece to be processed is not tilted, the processing coordinate system of the workpiece to be processed is obtained based on the horizontal and vertical coordinates of points 4, 5 and 7 on the edge of the workpiece to be processed, and the distance from point 7 to the straight line where points 4 and 5 are located is calculated. The horizontal and vertical coordinates of point 7 are respectively subtracted by half of the distance to obtain the actual vertical coordinate of the actual origin.

[0125] As an example, under the premise that the workpiece to be processed is not tilted, the average value of the horizontal coordinates of point 6 and point 8 on the edge of the workpiece to be processed is used as the actual horizontal coordinate of the actual origin.

[0126] As an example, through the above method, the machining coordinate system establishment program can establish the machining coordinate system of the workpiece to be processed based on the actual origin, actual horizontal and vertical coordinate axes, and actual vertical coordinate axis of the workpiece to be processed.

[0127] As an example, compared with manually establishing a coordinate system, there is a situation where coordinates are missed or returned incorrectly, resulting in problems such as tool jamming and machine collision. This embodiment establishes a coordinate system in the above manner, which can reduce the probability of this problem and improve processing efficiency.

[0128] In this embodiment, the application runs a preset processing coordinate system establishment program to mark the workpiece to be processed, measure the flatness, determine whether it is tilted, and establish a processing coordinate system. This eliminates the need for employees to perform tedious operations, reduces work intensity, reduces possible errors in manual operations, adds a workpiece flatness measurement function, and solves the problem of secondary flatness confirmation.

[0129] 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.

[0130] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0131] 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 application 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, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0132] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A CNC machine tool automatic processing method, characterized in that: The automatic processing method of the numerical control machine tool comprises the following steps: In the CNC machine tool system, based on the preset machine tool coordinate system, a reference point of the workpiece to be processed is set on the surface of the magnetic table; Based on the reference point, clamp the workpiece to be processed on the surface of the magnetic table to obtain a workpiece coordinate system of the workpiece to be processed; Based on the workpiece coordinate system, target acquisition points are selected in a preset machining coordinate system establishment program, wherein the target acquisition points include at least three acquisition points on the upper surface of the workpiece to be processed, at least two acquisition points on one edge of the workpiece to be processed, and at least one acquisition point on each of the other edges. When the shape of the workpiece to be processed is not a rectangle, the edge of the workpiece to be processed is the outer contour of the largest rectangle of the workpiece to be processed; By running the machining coordinate system establishment program, the probe is controlled to mark the workpiece to be machined based on the target acquisition points, the vertical coordinates of at least three acquisition points on the upper surface in the preset machine tool coordinate system are obtained, and based on the vertical coordinates, it is determined whether the workpiece to be machined is in a horizontal state; If it is in a horizontal state, determining whether the workpiece to be processed is tilted relative to the machine tool coordinate system on a horizontal plane based on the horizontal and vertical coordinates of at least two acquisition points on one of the edges; if it is not tilted, obtaining a processing coordinate system of the workpiece to be processed based on the horizontal and vertical coordinates of at least one acquisition point on each of the other edges, and automatically saving the processing coordinate system to the CNC machine tool system; A preset workpiece processing program is run, and the CNC machine tool system processes the workpiece to be processed based on the processing coordinate system.

2. The automatic machining method for a CNC machine tool according to claim 1, characterized in that: After the step of determining whether the workpiece to be processed is tilted on a horizontal plane based on the horizontal and vertical coordinates of at least two acquisition points on one of the edges, the method further includes: If it is tilted, then the inclination of the workpiece to be processed relative to the reference axis of the machine tool coordinate system is calculated; Based on the inclination, the workpiece coordinate system is rotated to obtain a rotated workpiece coordinate system; Based on the rotated workpiece coordinate system, a machining coordinate system of the workpiece to be machined is obtained.

3. The automatic machining method for a CNC machine tool according to claim 2, characterized in that: The step of obtaining a machining coordinate system of the workpiece to be machined based on the rotated workpiece coordinate system comprises: The machining coordinate system of the workpiece to be machined is obtained based on the reference axis of the rotated workpiece coordinate system and the actual origin calculated based on the horizontal and vertical coordinates of at least one acquisition point on each of the other edges.

4. The automatic machining method for a CNC machine tool according to claim 1, characterized in that: After the step of determining whether the workpiece to be processed is in a horizontal state based on the longitudinal coordinate, the method further includes: If it is in a non-horizontal state, return to the step of clamping the workpiece to be processed on the surface of the magnetic table based on the reference point.

5. The automatic processing method for CNC machine tools according to claim 1, characterized in that: The step of clamping the workpiece to be processed on the surface of the magnetic table based on the reference point includes: Based on the reference point, a positioning fixture is clamped on the surface of the magnetic table; Based on the position of the positioning fixture, the workpiece to be processed is clamped on the surface of the magnetic table.

6. The automatic machining method for a CNC machine tool according to claim 5, characterized in that: After the step of clamping the workpiece to be processed on the surface of the magnetic table based on the position of the positioning fixture, the method further includes: A stopper is clamped on the edge of the workpiece to be processed that is not surrounded by the positioning fixture to fix the position of the workpiece to be processed.

Citation Information

Patent Citations

  • Workpiece coordinate system establishment method and device, equipment and storage medium

    CN115079637A

  • Probe measuring locating method of super large over weight type workpiece machine processing

    CN1475328A