Workpiece positioning method, workpiece processing method and device

By generating and executing workpiece positioning programs, using virtual data and detection points to measure the target position of the workpiece relative to the fixture, the problem of human operation errors during workpiece positioning is solved, and positioning accuracy and efficiency are improved.

CN115533565BActive Publication Date: 2024-12-20深圳模德宝科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211127928.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-16
Publication Date
2024-12-20
Estimated Expiration
2042-09-16

AI Technical Summary

Technical Problem

There are human operation errors in the positioning process of existing workpieces, resulting in reduced positioning accuracy and low efficiency, making it difficult to achieve automated processing.

Method used

By obtaining the theoretical position data and detection point data of the virtual workpiece relative to the virtual fixture, a workpiece positioning program is generated, and a machine tool executes the program to measure the target position data of the workpiece relative to the fixture, reducing human operations and improving positioning accuracy.

Benefits of technology

It improves the accuracy and efficiency of workpiece positioning, reduces manual operation, realizes more accurate workpiece and fixture position measurement, and improves processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115533565B_ABST
    Figure CN115533565B_ABST
Patent Text Reader

Abstract

The present application is applicable to the field of automated processing, and provides a workpiece positioning method, a workpiece processing method and a device, wherein the workpiece positioning method comprises: obtaining theoretical position data of a virtual workpiece relative to a virtual fixture, and obtaining detection point data; wherein the detection point data is used to determine the detection points created on the surface of the virtual workpiece; displaying a workpiece clamping diagram containing a virtual workpiece, a virtual fixture and theoretical position data; obtaining a program template file of a machine tool, and generating a workpiece positioning program according to the program template file and the detection point data; wherein the workpiece and the fixture installed according to the workpiece clamping diagram are placed together on the machine tool; and the machine tool is driven according to the workpiece positioning program to measure the target position data of the workpiece relative to the fixture. The above method can reduce human operations during workpiece positioning, improve the clamping efficiency of the workpiece, and improve the accuracy of workpiece position measurement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of automated processing, and in particular, relates to a workpiece positioning method, a workpiece processing method and a device. Background Art

[0002] In order to realize automated processing of workpieces, such as CNC milling, electric spark discharge or wire cutting, it is necessary to install the workpiece on the fixture and level it in advance, and manually measure the position of the workpiece relative to the fixture.

[0003] Specifically, the operator needs to first install the workpiece on the fixture, then place the fixture and the workpiece together on an off-machine pre-adjustment table (with horizontal adjustment function), level the workpiece and lock the workpiece. After that, place the locked fixture and workpiece on the machine tool, manually input the written workpiece positioning program into the machine tool, and then operate the machine tool to execute the program to measure the relative position between the workpiece and the fixture.

[0004] In the process of positioning the workpiece in the above-mentioned method, many operations need to be performed manually, which is prone to operational errors, thereby resulting in reduced positioning accuracy and low positioning efficiency. Summary of the invention

[0005] The embodiments of the present application provide a workpiece positioning method, a workpiece processing method and a device, which can solve the above-mentioned problems.

[0006] In a first aspect, an embodiment of the present application provides a workpiece positioning method, comprising: obtaining theoretical position data of a virtual workpiece relative to a virtual fixture, and obtaining detection point data; wherein the detection point data is used to determine the detection points created on the surface of the virtual workpiece; displaying a workpiece clamping diagram containing a virtual workpiece, a virtual fixture and theoretical position data; obtaining a program template file of a machine tool, and generating a workpiece positioning program according to the program template file and the detection point data; wherein the workpiece and the fixture installed according to the workpiece clamping diagram are placed together on the machine tool; and the machine tool is driven according to the workpiece positioning program to measure the target position data of the workpiece relative to the fixture.

[0007] Furthermore, after displaying the workpiece clamping diagram including the virtual workpiece, the virtual fixture and the theoretical position data, the steps are included: obtaining the actual position data of the workpiece relative to the fixture; if the error between the actual position data and the theoretical position data exceeds a preset allowable range, modifying the theoretical position data with the actual position data.

[0008] Further, obtaining the detection point data includes: obtaining a reference positioning method; wherein the reference positioning method includes a reference for positioning the Z distance, a reference for positioning the X distance, a reference for positioning the Y distance, and a parallelism reference; according to the reference positioning method, detection points for constructing planes, straight lines, and circles are created on the surface of the virtual workpiece to obtain detection point data.

[0009] Furthermore, a program template file of a machine tool is obtained, and a workpiece positioning program is generated according to the program template file and the detection point data, including the steps of: obtaining a program template file of a machine tool, wherein the program template file includes at least a plane template file, a straight line template file and a circular template file; writing the detection point data for constructing a plane, the detection point data for constructing a straight line and the detection point data for constructing a circle into the plane template file, the straight line template file and the circular template file respectively, to obtain the workpiece positioning program.

[0010] Furthermore, the machine tool is driven to measure the target position data of the workpiece relative to the fixture according to the workpiece positioning program, including: storing the workpiece positioning program in the machine tool; calling the interface protocol of the machine tool, sending a program execution instruction to the machine tool, so that the machine tool responds to the program execution instruction and executes the stored workpiece positioning program.

[0011] Furthermore, after driving the machine tool to measure the target position data of the workpiece relative to the fixture according to the workpiece positioning program, it also includes: receiving the target position data of the workpiece relative to the fixture; responding to the position data display instruction, loading the position data display page, and presenting the target position data of the workpiece relative to the fixture in the position data display page.

[0012] In a second aspect, an embodiment of the present application provides a workpiece processing method, comprising: obtaining target position data of the workpiece relative to the fixture according to the workpiece positioning method of the first aspect; obtaining processing control data of the workpiece according to the target position data of the workpiece relative to the fixture; and controlling a machine tool to process the workpiece according to the processing control data.

[0013] In a third aspect, an embodiment of the present application provides a workpiece positioning device, comprising:

[0014] An acquisition unit, used to acquire theoretical position data of the virtual workpiece relative to the virtual fixture, and to acquire detection point data; wherein the detection point data is used to determine the detection points created on the surface of the virtual workpiece;

[0015] A display unit, used for displaying a workpiece clamping diagram including a virtual workpiece, a virtual fixture and theoretical position data;

[0016] A generating unit is used to obtain a program template file of a machine tool, and generate a workpiece positioning program according to the program template file and the detection point data; wherein the workpiece and the fixture installed according to the workpiece clamping diagram are placed together on the machine tool;

[0017] The positioning unit is used to drive the machine tool to measure the target position data of the workpiece relative to the fixture according to the workpiece positioning program.

[0018] Further, the workpiece positioning device further comprises: an actual position acquisition unit, for acquiring actual position data of the workpiece relative to the fixture;

[0019] The error confirmation unit is used to modify the theoretical position data with the actual position data if the error between the actual position data and the theoretical position data exceeds a preset allowable range.

[0020] Furthermore, the acquisition unit is specifically used to: acquire a reference positioning method; wherein the reference positioning method includes a reference for positioning the Z distance, a reference for positioning the X distance, a reference for positioning the Y distance, and a parallelism reference; according to the reference positioning method, detection points for constructing planes, straight lines, and circles are created on the surface of the virtual workpiece to obtain detection point data.

[0021] Furthermore, the generating unit is specifically used to: obtain a program template file of a machine tool: wherein the program template file includes at least a plane template file, a straight line template file and a circular template file; write the detection point data for constructing a plane, the detection point data for constructing a straight line and the detection point data for constructing a circle into the plane template file, the straight line template file and the circular template file respectively to obtain a workpiece positioning program.

[0022] Furthermore, the positioning unit is specifically used to: store the workpiece positioning program in the machine tool; call the interface protocol of the machine tool, send a program execution instruction to the machine tool, so that the machine tool responds to the program execution instruction and executes the stored workpiece positioning program.

[0023] Furthermore, the workpiece positioning device also includes: a receiving unit for receiving the target position data of the workpiece relative to the fixture; a position display unit for responding to the position data display instruction, loading the position data display page, and presenting the target position data of the workpiece relative to the fixture in the position data display page.

[0024] In a fourth aspect, an embodiment of the present application provides a workpiece processing device, comprising:

[0025] A first acquisition unit, used to acquire target position data of the workpiece relative to the fixture according to the workpiece positioning method of the second aspect;

[0026] A second acquisition unit, used to acquire processing control data of the workpiece according to target position data of the workpiece relative to the fixture;

[0027] The processing control unit is used to control the machine tool to process the workpiece according to the processing control data.

[0028] In a fifth aspect, an embodiment of the present application provides a workpiece positioning device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of the first aspect described above when executing the computer program.

[0029] In a sixth aspect, an embodiment of the present application provides a workpiece processing device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of the second aspect described above when executing the computer program.

[0030] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method of the first aspect described above is implemented.

[0031] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method of the second aspect described above is implemented.

[0032] In the embodiment of the present application, on the one hand, the device obtains theoretical position data of the virtual workpiece relative to the virtual fixture, and obtains detection point data; wherein the detection point data is used to determine the detection points created on the surface of the virtual workpiece; displays the workpiece clamping diagram containing the virtual workpiece, the virtual fixture and the theoretical position data; obtains the program template file of the machine tool, and generates a workpiece positioning program according to the program template file and the detection point data; wherein the workpiece and the fixture installed according to the workpiece clamping diagram are placed together on the machine tool; according to the workpiece positioning program, the machine tool is driven to measure the target position data of the workpiece relative to the fixture. The above method can reduce human operation in the workpiece positioning process, improve the clamping efficiency of the workpiece, and improve the accuracy of the workpiece position measurement.

[0033] On the other hand, the device obtains the target position data of the workpiece relative to the fixture according to the above workpiece positioning method; obtains the processing control data of the workpiece according to the target position data of the workpiece relative to the fixture; and controls the machine tool to process the workpiece according to the processing control data. The above method can accurately obtain the relative position between the workpiece and the fixture, so that the machine tool can be more accurately controlled to process the workpiece, thereby improving the processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0035] Figure 1 is a schematic flow chart of a workpiece positioning method provided in the first embodiment of the present application;

[0036] Figure 2A schematic diagram showing a virtual workpiece and a virtual fixture provided in an embodiment of the present application;

[0037] Figure 3 A schematic diagram showing theoretical position data provided in an embodiment of the present application;

[0038] Figure 4 is a schematic flow chart of S101 in a workpiece positioning method provided in the first embodiment of the present application;

[0039] Figure 5 is another schematic flow chart of a workpiece positioning method provided in the first embodiment of the present application;

[0040] Figure 6 is another schematic flow chart of a workpiece positioning method provided in the first embodiment of the present application;

[0041] Figure 7 is a schematic flow chart of a workpiece processing method provided in the second embodiment of the present application;

[0042] Figure 8 is a schematic diagram of a workpiece positioning device provided in a third embodiment of the present application;

[0043] Fig. 9 is a schematic diagram of a workpiece processing device provided in a fourth embodiment of the present application;

[0044] Fig.10 is a schematic diagram of a workpiece positioning device provided in a fifth embodiment of the present application;

[0045] Fig.11 It is a schematic diagram of a workpiece processing device provided in the sixth embodiment of the present application. DETAILED DESCRIPTION

[0046] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0047] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0048] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0049] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0050] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0051] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0052] See also Figure 1 , Figure 1 1 is a schematic flow chart of a workpiece positioning method provided in the first embodiment of the present application. In this embodiment, the execution subject of a workpiece positioning method is a device with a workpiece positioning function, such as a server, a PC, etc. Figure 1 The workpiece positioning method shown may include:

[0053] S101: Acquire theoretical position data of a virtual workpiece relative to a virtual fixture, and acquire detection point data; wherein the detection point data is used to determine detection points created on the surface of the virtual workpiece.

[0054] A virtual artifact refers to a 3D modeled artifact stored in a 3D model document.

[0055] A virtual fixture refers to a 3D modeled fixture stored in a 3D model document.

[0056] In an optional implementation, the 3D model file may be opened by corresponding software, and then the theoretical position data of the virtual workpiece relative to the virtual fixture may be measured using tools in the software.

[0057] The theoretical position data of the virtual workpiece relative to the virtual fixture includes a theoretical position value from a reference surface of the virtual workpiece to a center of the virtual fixture.

[0058] See also Figure 2 and Figure 3 , Figure 2 is a display schematic diagram of a virtual workpiece and a virtual fixture provided in an embodiment of the present application, Figure 3 It is a schematic diagram showing the display of theoretical position data provided in an embodiment of the present application.

[0059] Depend on Figure 2 It can be seen that four virtual workpieces 22 are displayed on the virtual fixture 21 , and the reference surfaces of the four virtual workpieces 22 are 221 , 222 , 223 and 224 , respectively.

[0060] Depend on Figure 3 It can be seen that the theoretical position data includes the distance between the center of the reference surface of each virtual workpiece and the center of the fixture, which may include the X distance from the virtual workpiece to the virtual fixture, the Y distance from the virtual workpiece to the virtual fixture, and the Z distance from the virtual workpiece to the virtual fixture. Figure 3 The numerical values ​​are only examples and are not limiting.

[0061] The detection point data is used to determine the detection points created on the surface of the virtual workpiece. Specifically, the detection point data can be obtained in the following ways:

[0062] See also Figure 4 , Figure 4 is a schematic flow chart of S101 in a workpiece positioning method provided in the first embodiment of the present application, where S101 includes:

[0063] S1011: Obtaining a reference positioning method; wherein the reference positioning method includes a reference for positioning a Z distance, a reference for positioning an X distance, a reference for positioning a Y distance, and a parallelism reference.

[0064] The device obtains the reference positioning method, which can also be understood as the detection trajectory of the probe.

[0065] The reference positioning methods include the reference for positioning the Z distance, the reference for positioning the X distance, the reference for positioning the Y distance and the parallelism reference.

[0066] (1) Positioning Z distance reference: construct a plane from three or four points, and this plane serves as the Z reference and flatness reference.

[0067] (2) The X distance positioning reference is the midline of two straight lines parallel to the X axis of the coordinate system as the X reference; or a straight line parallel to the X axis of the coordinate system as the X reference; or the center of a cylinder (hole) as the X reference;

[0068] (3) The datum for positioning the Y distance: the midline of two straight lines parallel to the Y axis of the coordinate system is used as the Y datum; or a straight line parallel to the Y axis of the coordinate system is used as the Y datum; or the center of a cylinder (hole) is used as the Y datum;

[0069] (4) Parallelism datum: Use the straight line of the X datum or Y datum as the parallelism datum.

[0070] S1012: According to the reference positioning method, detection points for constructing planes, straight lines and circles are created on the surface of the virtual workpiece to obtain detection point data.

[0071] The data of each probe point includes at least: (1) the X, Y, and Z coordinate values ​​of the probe point relative to the zero point of the coordinate system; (2) the vector direction of the probe point on the surface, which can be represented by I, J, and K. The data of each probe point can also include: (3) the name and angle of the probe needle used for the probe point; (4) the approach and retraction distances used for the probe point; and (5) the upper and lower tolerances used for the probe point.

[0072] For example: The data of a certain detection point is X=47.793, Y=7.793, Z=-7.000, I=0.000, J=-0.000, K=1.000, probe name=P10E12BY40, angle=T1A0B0, approach=0.500, backoff=0.500, upper tolerance=0.002, lower tolerance=0.002.

[0073] S102: Displaying a workpiece clamping diagram including a virtual workpiece, a virtual fixture, and theoretical position data.

[0074] The device displays a workpiece clamping diagram including a virtual workpiece, a virtual fixture, and theoretical position data, and the workpiece clamping diagram is used to instruct an operator to mount the workpiece on the fixture.

[0075] Specifically, the device can display the workpiece clamping diagram including the virtual workpiece, the virtual fixture and the theoretical position data in response to the workpiece clamping diagram display instruction. The workpiece clamping diagram display instruction can be triggered by the device when the operator queries the workpiece clamping diagram.

[0076] In an optional implementation, in order to make the installation error within a reasonable range, please refer to Figure 5 , Figure 5 is another schematic flow chart of a workpiece positioning method provided in the first embodiment of the present application, and after S102, includes:

[0077] S105: Acquire the actual position data of the workpiece relative to the fixture.

[0078] S106: If the error between the actual position data and the theoretical position data exceeds a preset allowable range, the theoretical position data is modified using the actual position data.

[0079] Measure the actual position data of the workpiece relative to the fixture, input the actual position data of the workpiece relative to the fixture into the device, and the device compares the actual position data with the theoretical position data. If the error between the actual position data and the theoretical position data exceeds the preset allowable range, the actual position data is used to modify the theoretical position data.

[0080] Specifically, when the error between the actual position data and the theoretical position data exceeds the preset allowable range, the current theoretical position data is modified to the actual position data. This is because the theoretical position data is only a reference data and is used to guide the operator in installation. Certain errors may occur during actual installation. Therefore, it is necessary to control the error within the allowable error range. The theoretical position data is modified here because the fixture has locked and leveled the workpiece. Modifying the theoretical position data can improve positioning efficiency.

[0081] S103: Obtain a program template file of the machine tool, and generate a workpiece positioning program according to the program template file and the detection point data; wherein the workpiece and the fixture installed according to the workpiece clamping diagram are placed together on the machine tool.

[0082] Program template files refer to the basic program files of machine tools, which can be recognized by the machine tool controller.

[0083] In an optional implementation, the program template file includes at least a plane template file, a straight line template file, and a circular template file.

[0084] The device obtains the program template file of the machine tool, and generates a workpiece positioning program according to the program template file and the detection point data.

[0085] Specifically, the device writes the detection point data for constructing a plane, the detection point data for constructing a straight line, and the detection point data for constructing a circle into a plane template file, a straight line template file, and a circle template file, respectively, to obtain a workpiece positioning program.

[0086] In addition to writing the detection point data into the program template file, it is understandable that statements for guiding the operation of the machine tool need to be added to the program template file to ensure that the machine tool can run the generated workpiece positioning program.

[0087] S104: driving the machine tool to measure target position data of the workpiece relative to the fixture according to the workpiece positioning program.

[0088] The device drives the machine tool to measure the target position data of the workpiece relative to the fixture according to the workpiece positioning program. That is, the device controls the machine tool to execute the workpiece positioning program, thereby measuring the target position data of the workpiece relative to the fixture.

[0089] In an optional embodiment, the device stores the workpiece positioning program in the machine tool, calls the interface protocol of the machine tool, sends a program execution instruction to the machine tool, and causes the machine tool to respond to the program execution instruction and execute the stored workpiece positioning program.

[0090] For example, for 4 workpieces, the target position data includes:

[0091] Workpiece 1: X=57.506, Y=38.325, Z=57.135, angle=1.105, flatness=0.003;

[0092] Workpiece 2: X=54.506, Y=-32.105, Z=57.132, angle=-0.105, flatness=0.003;

[0093] Workpiece 3: X = -62.116, Y = 42.305, Z = 57.131, angle = -2.003, flatness = 0.004;

[0094] Workpiece 4: X=-63.437, Y=-32.752, Z=57.135, angle=0.605, flatness=0.001.

[0095] In an alternative embodiment, see Figure 6 , Figure 6 is another schematic flow chart of a workpiece positioning method provided in the first embodiment of the present application, the method further comprising:

[0096] S107: Receive target position data of the workpiece relative to the fixture.

[0097] S108: In response to the position data display instruction, a position data display page is loaded, and the target position data of the workpiece relative to the fixture is presented in the position data display page.

[0098] The device receives the target position data of the workpiece relative to the fixture, the operator queries the position data, triggers the device to generate a position data display instruction, the device responds to the position data display instruction, loads the position data display page, and presents the target position data of the workpiece relative to the fixture on the position data display page, so that the operator can intuitively and conveniently understand the target position data of the workpiece relative to the fixture.

[0099] In this embodiment, the device obtains theoretical position data of the virtual workpiece relative to the virtual fixture, and obtains detection point data; wherein the detection point data is used to determine the detection points created on the surface of the virtual workpiece; displays a workpiece clamping diagram containing the virtual workpiece, the virtual fixture and the theoretical position data; obtains the program template file of the machine tool, and generates a workpiece positioning program according to the program template file and the detection point data; wherein the workpiece and the fixture installed according to the workpiece clamping diagram are placed together on the machine tool; and the machine tool is driven according to the workpiece positioning program to measure the target position data of the workpiece relative to the fixture. The above method can reduce human operations in the workpiece positioning process, improve the clamping efficiency of the workpiece, and improve the accuracy of the workpiece position measurement.

[0100] It should be understood that the order of execution of the steps in this embodiment does not imply a sequence of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of this embodiment.

[0101] See also Figure 7 , Figure 7 : is a schematic flow chart of a workpiece processing method provided in the second embodiment of the present application. In this embodiment, the execution subject of a workpiece processing method is a device with a workpiece processing function, such as a server, a PC, etc. Figure 7 The workpiece processing methods shown may include:

[0102] S201: Acquire target position data of the workpiece relative to the fixture according to the workpiece positioning method in the first embodiment.

[0103] The device obtains the target position data of the workpiece relative to the fixture according to the workpiece positioning method in the first embodiment. The specific process can refer to the description in the first embodiment.

[0104] S202: Acquire processing control data of the workpiece according to the target position data of the workpiece relative to the fixture.

[0105] The device obtains the processing control data of the workpiece according to the target position data of the workpiece relative to the fixture.

[0106] The processing control data at least includes the zero point position of the workpiece on the machine tool and the rotation angle of the workpiece relative to the machine tool.

[0107] S203: Control the machine tool to process the workpiece according to the processing control data.

[0108] The equipment sends the processing control data to the machine tool to control the machine tool to process the workpiece.

[0109] In this embodiment, the device obtains the target position data of the workpiece relative to the fixture according to the workpiece positioning method; obtains the processing control data of the workpiece according to the target position data of the workpiece relative to the fixture; and controls the machine tool to process the workpiece according to the processing control data. The above method can accurately obtain the relative position between the workpiece and the fixture, so that the machine tool can be more accurately controlled to process the workpiece, thereby improving the processing efficiency.

[0110] It should be understood that the order of execution of the steps in this embodiment does not imply a sequence of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of this embodiment.

[0111] See also Figure 8 , Figure 8 Schematic diagram of a workpiece positioning device provided in the third embodiment of the present application. The units included are used to perform Figure 1 For details, please refer to the steps in the corresponding embodiment. Figure 1 For the convenience of explanation, only the parts related to this embodiment are shown. Figure 8 , the workpiece positioning device 8 comprises:

[0112] An acquisition unit 81 is used to acquire theoretical position data of the virtual workpiece relative to the virtual fixture, and acquire detection point data; wherein the detection point data is used to determine the detection points created on the surface of the virtual workpiece;

[0113] A display unit 82, for displaying a workpiece clamping diagram including a virtual workpiece, a virtual fixture and theoretical position data;

[0114] The generating unit 83 is used to obtain a program template file of the machine tool, and generate a workpiece positioning program according to the program template file and the detection point data; wherein the workpiece and the fixture installed according to the workpiece clamping diagram are placed together on the machine tool;

[0115] The positioning unit 84 is used to drive the machine tool to measure the target position data of the workpiece relative to the fixture according to the workpiece positioning program.

[0116] Furthermore, the workpiece positioning device 8 also includes:

[0117] An actual position acquisition unit, used to acquire actual position data of the workpiece relative to the fixture;

[0118] The error confirmation unit is used to modify the theoretical position data with the actual position data if the error between the actual position data and the theoretical position data exceeds a preset allowable range.

[0119] Furthermore, the acquisition unit 81 is specifically used to: acquire a reference positioning method; wherein the reference positioning method includes a reference for positioning the Z distance, a reference for positioning the X distance, a reference for positioning the Y distance, and a parallelism reference; according to the reference positioning method, create detection points on the surface of the virtual workpiece for constructing planes, straight lines, and circles to obtain detection point data.

[0120] Furthermore, the generating unit 83 is specifically used to: obtain a program template file of a machine tool: wherein the program template file includes at least a plane template file, a straight line template file and a circular template file; write the detection point data for constructing a plane, the detection point data for constructing a straight line and the detection point data for constructing a circle into the plane template file, the straight line template file and the circular template file respectively to obtain a workpiece positioning program.

[0121] Furthermore, the positioning unit 84 is specifically used to: store the workpiece positioning program in the machine tool; call the interface protocol of the machine tool, send a program execution instruction to the machine tool, and make the machine tool respond to the program execution instruction and execute the stored workpiece positioning program.

[0122] Furthermore, the workpiece positioning device 8 also includes: a receiving unit for receiving the target position data of the workpiece relative to the fixture; a position display unit for responding to the position data display instruction, loading the position data display page, and presenting the target position data of the workpiece relative to the fixture in the position data display page.

[0123] See also Fig. 9 , Fig. 9 Schematic diagram of a workpiece processing device provided in the fourth embodiment of the present application. The units included are used to perform Figure 7 For details, please refer to the steps in the corresponding embodiment. Figure 7 For the convenience of explanation, only the parts related to this embodiment are shown. Fig. 9 , the workpiece processing device 9 comprises:

[0124] A first acquisition unit 91, used to acquire target position data of the workpiece relative to the fixture according to the workpiece positioning method of the second aspect;

[0125] A second acquisition unit 92, used to acquire processing control data of the workpiece according to target position data of the workpiece relative to the fixture;

[0126] The processing control unit 93 is used to control the machine tool to process the workpiece according to the processing control data.

[0127] See also Fig.10 , Fig.10 Schematic diagram of a workpiece positioning device provided in the fifth embodiment of the present application. Fig.10As shown, the workpiece positioning device 10 of this embodiment includes: a processor 100, a memory 101, and a computer program 102 stored in the memory 101 and executable on the processor 100, such as a workpiece positioning program. When the processor 100 executes the computer program 102, the steps in the above-mentioned various workpiece positioning method embodiments are implemented, such as Figure 1 Alternatively, when the processor 100 executes the computer program 102, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Figure 8 The functions of the units 81 to 84 are shown.

[0128] Exemplarily, the computer program 102 may be divided into one or more modules / units, which are stored in the memory 101 and executed by the processor 100 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 102 in the workpiece positioning device 10. For example, the computer program 102 may be divided into an acquisition unit, a display unit, a generation unit, and a positioning unit, and the specific functions of each unit are as follows:

[0129] An acquisition unit, used to acquire theoretical position data of the virtual workpiece relative to the virtual fixture, and to acquire detection point data; wherein the detection point data is used to determine the detection points created on the surface of the virtual workpiece;

[0130] A display unit, used for displaying a workpiece clamping diagram including a virtual workpiece, a virtual fixture and theoretical position data;

[0131] A generating unit is used to obtain a program template file of a machine tool, and generate a workpiece positioning program according to the program template file and the detection point data; wherein the workpiece and the fixture installed according to the workpiece clamping diagram are placed together on the machine tool;

[0132] The positioning unit is used to drive the machine tool to measure the target position data of the workpiece relative to the fixture according to the workpiece positioning program.

[0133] The workpiece positioning device may include, but is not limited to, a processor 100 and a memory 101. Those skilled in the art will appreciate that Fig.10 It is only an example of the workpiece positioning device 10 and does not constitute a limitation of the workpiece positioning device 10. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the workpiece positioning device may also include input and output devices, network access devices, buses, etc.

[0134] The processor 100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0135] The memory 101 may be an internal storage unit of the workpiece positioning device 10, such as a hard disk or memory of the workpiece positioning device 10. The memory 101 may also be an external storage device of the workpiece positioning device 10, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the workpiece positioning device 10. Further, the workpiece positioning device 10 may also include both an internal storage unit of the workpiece positioning device 10 and an external storage device. The memory 101 is used to store the computer program and other programs and data required by the workpiece positioning device. The memory 101 may also be used to temporarily store data that has been output or is to be output.

[0136] See also Fig.11 , Fig.11 Schematic diagram of a workpiece processing device provided in the sixth embodiment of the present application. Fig.11 As shown, the workpiece processing device 11 of this embodiment includes: a processor 110, a memory 111, and a computer program 112 stored in the memory 111 and executable on the processor 110, such as a workpiece processing program. When the processor 110 executes the computer program 112, the steps in the above-mentioned various workpiece processing method embodiments are implemented, such as Figure 7 Alternatively, when the processor 110 executes the computer program 112, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Fig. 9 The functions of the units 91 to 93 are shown.

[0137] Exemplarily, the computer program 112 may be divided into one or more modules / units, which are stored in the memory 111 and executed by the processor 110 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 112 in the workpiece processing device 11. For example, the computer program 112 may be divided into a first acquisition unit, a second acquisition unit, and a processing control unit, and the specific functions of each unit are as follows:

[0138] A first acquisition unit, used to acquire target position data of the workpiece relative to the fixture according to the workpiece positioning method of the second aspect;

[0139] A second acquisition unit, used to acquire processing control data of the workpiece according to target position data of the workpiece relative to the fixture;

[0140] The processing control unit is used to control the machine tool to process the workpiece according to the processing control data.

[0141] The workpiece processing device may include, but is not limited to, a processor 110 and a memory 111. Those skilled in the art will appreciate that Fig.11 It is only an example of the workpiece processing device 11 and does not constitute a limitation of the workpiece processing device 11. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the workpiece processing device may also include input and output devices, network access devices, buses, etc.

[0142] The processor 110 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0143] The memory 111 may be an internal storage unit of the workpiece processing device 11, such as a hard disk or memory of the workpiece processing device 11. The memory 111 may also be an external storage device of the workpiece processing device 11, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the workpiece processing device 11. Furthermore, the workpiece processing device 11 may also include both an internal storage unit and an external storage device of the workpiece processing device 11. The memory 111 is used to store the computer program and other programs and data required by the workpiece processing device. The memory 111 may also be used to temporarily store data that has been output or is to be output.

[0144] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0145] An embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.

[0146] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0147] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0148] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0149] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0150] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

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

[0152] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0153] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A workpiece positioning method, characterized in that: include: Acquire theoretical position data of the virtual workpiece relative to the virtual fixture, and acquire detection point data; wherein the detection point data is used to determine the detection points created on the surface of the virtual workpiece; Displaying a workpiece clamping diagram including the virtual workpiece, the virtual fixture and the theoretical position data; Obtain a program template file of a machine tool, and generate a workpiece positioning program according to the program template file and the detection point data; wherein the workpiece and the fixture installed according to the workpiece clamping diagram are placed together on the machine tool; the obtaining of the program template file of the machine tool, and generating the workpiece positioning program according to the program template file and the detection point data, comprises the steps of: obtaining the program template file of the machine tool: wherein the program template file at least comprises a plane template file, a straight line template file and a circular template file; writing the detection point data for constructing a plane, the detection point data for constructing a straight line and the detection point data for constructing a circle into the plane template file, the straight line template file and the circular template file respectively, to obtain the workpiece positioning program; The machine tool is driven according to the workpiece positioning program to measure target position data of the workpiece relative to the fixture.

2. The workpiece positioning method according to claim 1, characterized in that: After displaying the workpiece clamping diagram including the virtual workpiece, the virtual fixture and the theoretical position data, the steps include: Acquiring actual position data of the workpiece relative to the fixture; If the error between the actual position data and the theoretical position data exceeds a preset allowable range, the theoretical position data is modified using the actual position data.

3. The workpiece positioning method according to claim 1 or 2, characterized in that: The acquisition of detection point data comprises: Obtaining a reference positioning method; wherein the reference positioning method includes a reference for positioning a Z distance, a reference for positioning an X distance, a reference for positioning a Y distance, and a parallelism reference; According to the reference positioning method, detection points for constructing a plane, a straight line and a circle are created on the surface of the virtual workpiece to obtain the detection point data.

4. The workpiece positioning method according to claim 1 or 2, characterized in that: The step of driving the machine tool to measure target position data of the workpiece relative to the fixture according to the workpiece positioning program comprises: storing the workpiece positioning program in the machine tool; The interface protocol of the machine tool is called, and a program execution instruction is sent to the machine tool, so that the machine tool responds to the program execution instruction and executes the stored workpiece positioning program.

5. The workpiece positioning method according to claim 1 or 2, characterized in that: After driving the machine tool to measure the target position data of the workpiece relative to the fixture according to the workpiece positioning program, the method further includes: receiving target position data of the workpiece relative to the fixture; In response to the position data display instruction, a position data display page is loaded, and the target position data of the workpiece relative to the fixture is presented in the position data display page.

6. A workpiece processing method, characterized in that: include: Acquiring target position data of the workpiece relative to the fixture according to the workpiece positioning method according to any one of claims 1 to 5; Acquiring machining control data of the workpiece according to target position data of the workpiece relative to the fixture; The machine tool is controlled to process the workpiece according to the processing control data.

7. A workpiece positioning device, characterized in that: include: An acquisition unit, used to acquire theoretical position data of the virtual workpiece relative to the virtual fixture, and to acquire detection point data; wherein the detection point data is used to determine the detection points created on the surface of the virtual workpiece; A display unit, used for displaying a workpiece clamping diagram including the virtual workpiece, the virtual fixture and the theoretical position data; A generating unit is used to obtain a program template file of a machine tool, and generate a workpiece positioning program according to the program template file and the detection point data; wherein the workpiece and the fixture installed according to the workpiece clamping diagram are placed together on the machine tool; the obtaining of the program template file of the machine tool, and generating the workpiece positioning program according to the program template file and the detection point data, comprises the steps of: obtaining the program template file of the machine tool: wherein the program template file at least comprises a plane template file, a straight line template file and a circular template file; writing the detection point data for constructing a plane, the detection point data for constructing a straight line and the detection point data for constructing a circle into the plane template file, the straight line template file and the circular template file respectively, to obtain the workpiece positioning program; A positioning unit is used to drive the machine tool to measure target position data of the workpiece relative to the fixture according to the workpiece positioning program.

8. A workpiece processing device, characterized in that: include: A first acquisition unit, configured to acquire target position data of the workpiece relative to the fixture according to the workpiece positioning method according to any one of claims 1 to 5; A second acquisition unit, configured to acquire processing control data of the workpiece according to target position data of the workpiece relative to the fixture; A processing control unit is used to control the machine tool to process the workpiece according to the processing control data.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 or claim 6 is implemented.