CN115533565A - Workpiece positioning method, workpiece machining method and device - Google Patents

Workpiece positioning method, workpiece machining method and device Download PDF

Info

Publication number
CN115533565A
CN115533565A CN202211127928.7A CN202211127928A CN115533565A CN 115533565 A CN115533565 A CN 115533565A CN 202211127928 A CN202211127928 A CN 202211127928A CN 115533565 A CN115533565 A CN 115533565A
Authority
CN
China
Prior art keywords
workpiece
position data
positioning
program
machine tool
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211127928.7A
Other languages
Chinese (zh)
Inventor
成亚飞
宋育程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Moldbao Technology Co ltd
Original Assignee
Shenzhen Moldbao Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Moldbao Technology Co ltd filed Critical Shenzhen Moldbao Technology Co ltd
Priority to CN202211127928.7A priority Critical patent/CN115533565A/en
Publication of CN115533565A publication Critical patent/CN115533565A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
    • B23Q3/00Devices holding, supporting, or positioning work or tools, of a kind normally removable from the machine
    • B23Q3/02Devices holding, supporting, or positioning work or tools, of a kind normally removable from the machine for mounting on a work-table, tool-slide, or analogous part
    • B23Q3/06Work-clamping means
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B23MACHINE TOOLS; METAL-WORKING NOT OTHERWISE PROVIDED FOR
    • B23QDETAILS, COMPONENTS, OR ACCESSORIES FOR MACHINE TOOLS, e.g. ARRANGEMENTS FOR COPYING OR CONTROLLING; MACHINE TOOLS IN GENERAL CHARACTERISED BY THE CONSTRUCTION OF PARTICULAR DETAILS OR COMPONENTS; COMBINATIONS OR ASSOCIATIONS OF METAL-WORKING MACHINES, NOT DIRECTED TO A PARTICULAR RESULT
    • B23Q17/00Arrangements for observing, indicating or measuring on machine tools
    • B23Q17/002Arrangements for observing, indicating or measuring on machine tools for indicating or measuring the holding action of work or tool holders
    • B23Q17/003Arrangements for observing, indicating or measuring on machine tools for indicating or measuring the holding action of work or tool holders by measuring a position

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Numerical Control (AREA)

Abstract

The application is applicable to the field of automatic processing and provides a workpiece positioning method, a workpiece processing method and a workpiece processing device, wherein the workpiece positioning method comprises the following steps: acquiring theoretical position data of the virtual workpiece relative to the virtual fixture, and acquiring detection point data; wherein the probe point data is used to determine a probe point created on the surface of the virtual workpiece; displaying a workpiece clamping diagram comprising a virtual workpiece, a virtual clamp and theoretical position data; acquiring a program template file of the machine tool, and generating a workpiece positioning program according to the program template file and the detection point data; wherein, the workpiece and the clamp which are arranged according to the workpiece clamping drawing are placed on the machine tool together; and driving the machine tool to measure target position data of the workpiece relative to the clamp according to the workpiece positioning program. The method can reduce manual operation in the workpiece positioning process, improve the workpiece clamping efficiency and improve the workpiece position measurement accuracy.

Description

Workpiece positioning method, workpiece machining method and device
Technical Field
The application belongs to the field of automatic machining, and particularly relates to a workpiece positioning method, a workpiece machining method and a workpiece machining device.
Background
In order to achieve automated processing of workpieces, for example: numerical control milling, electric spark discharging or slow wire walking and the like, a workpiece needs to be installed on a clamp in advance and leveled, and the position of the workpiece relative to the clamp is measured manually.
Specifically, an operator needs to mount a workpiece on a fixture, place the fixture and the workpiece on an external preset table (with a horizontal adjustment function), level the workpiece and lock the workpiece, then place the locked fixture and the workpiece on a machine tool, manually input a programmed 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.
In the process of positioning the workpiece in the mode, many operations need to be carried out manually, operation errors are easy to generate, positioning accuracy is reduced, and positioning efficiency is low.
Disclosure of Invention
The embodiment of the application provides a workpiece positioning method, a workpiece machining method and a workpiece machining device, which can solve the problems.
In a first aspect, an embodiment of the present application provides a workpiece positioning method, including: acquiring theoretical position data of the virtual workpiece relative to the virtual clamp, and acquiring detection point data; wherein the probe point data is used to determine probe points created on the surface of the virtual workpiece; displaying a workpiece clamping diagram comprising a virtual workpiece, a virtual clamp and theoretical position data; acquiring a program template file of the machine tool, and generating a workpiece positioning program according to the program template file and detection point data; wherein, the workpiece and the clamp which are arranged according to the workpiece clamping drawing are placed on the machine tool together; and driving the machine tool to measure target position data of the workpiece relative to the clamp according to the workpiece positioning program.
Further, after displaying a workpiece clamping map containing the virtual workpiece, the virtual clamp and theoretical position data, the method comprises the following steps: acquiring actual position data of the workpiece relative to the clamp; and if the error between the actual position data and the theoretical position data exceeds a preset allowable range, modifying the theoretical position data by using the actual position data.
Further, acquiring the probe point data comprises: acquiring a reference positioning mode; the datum positioning mode comprises a datum for positioning a Z distance, a datum for positioning an X distance, a datum for positioning a Y distance and a parallelism datum; and according to the reference positioning mode, creating detection points for constructing planes, straight lines and circles on the surface of the virtual workpiece to obtain detection point data.
Further, acquiring a program template file of the machine tool, and generating a workpiece positioning program according to the program template file and the detection point data, wherein the method comprises the following steps: acquiring a 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; and respectively writing the detection point data for constructing the plane, the detection point data for constructing the straight line and the detection point data for constructing the circle into a plane template file, a straight line template file and a circle template file to obtain a workpiece positioning program.
Further, driving the machine tool to measure target position data of the workpiece relative to the jig according to the workpiece positioning program includes: storing the workpiece positioning program into the machine tool; and calling an interface protocol of the machine tool, sending a program execution command to the machine tool, and enabling the machine tool to respond to the program execution command and execute the stored workpiece positioning program.
Further, after driving the machine tool to measure target position data of the workpiece relative to the fixture according to the workpiece positioning program, the method further comprises the following steps: receiving target position data of the workpiece relative to the fixture; in response to the position data display instruction, the position data display page is loaded and target position data of the workpiece relative to the jig is presented in the position data display page.
In a second aspect, an embodiment of the present application provides a workpiece processing method, including: acquiring target position data of a workpiece relative to a jig according to the workpiece positioning method of the first aspect; acquiring processing control data of the workpiece according to target position data of the workpiece relative to the clamp; and controlling the machine tool to machine the workpiece according to the machining control data.
In a third aspect, an embodiment of the present application provides a workpiece positioning apparatus, including:
the acquisition unit is used for acquiring theoretical position data of the virtual workpiece relative to the virtual clamp and acquiring detection point data; wherein the probe point data is used to determine a probe point created on the surface of the virtual workpiece;
the display unit is used for displaying a workpiece clamping diagram containing a virtual workpiece, a virtual clamp and theoretical position data;
the generating unit is used for acquiring a program template file of the machine tool and generating a workpiece positioning program according to the program template file and the detection point data; wherein, the workpiece and the clamp which are arranged according to the workpiece clamping drawing are placed on the machine tool together;
and the positioning unit is used for driving the machine tool to measure target position data of the workpiece relative to the clamp according to the workpiece positioning program.
Further, the workpiece positioning apparatus further includes: an actual position acquisition unit for acquiring actual position data of the workpiece relative to the jig;
and the error confirmation unit is used for modifying the theoretical position data by using the actual position data if the error between the actual position data and the theoretical position data exceeds a preset allowable range.
Further, the obtaining unit is specifically configured to: acquiring a reference positioning mode; the datum positioning mode comprises a datum for positioning a Z distance, a datum for positioning an X distance, a datum for positioning a Y distance and a parallelism datum; and according to the reference positioning mode, creating detection points for constructing planes, straight lines and circles on the surface of the virtual workpiece to obtain detection point data.
Further, the generating unit is specifically configured to: acquiring a 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; and respectively writing the detection point data for constructing the plane, the detection point data for constructing the straight line and the detection point data for constructing the circle into a plane template file, a straight line template file and a circle template file to obtain a workpiece positioning program.
Further, the positioning unit is specifically configured to: storing a workpiece positioning program into the machine tool; and calling an interface protocol of the machine tool, sending a program execution command to the machine tool, and enabling the machine tool to respond to the program execution command and execute the stored workpiece positioning program.
Further, the workpiece positioning apparatus further includes: a receiving unit for receiving target position data of the workpiece relative to the jig; and a position display unit for loading the position data display page in response to the position data display instruction and presenting the target position data of the workpiece relative to the jig in the position data display page.
In a fourth aspect, an embodiment of the present application provides a workpiece processing apparatus, including:
a first acquisition unit for acquiring target position data of the workpiece with respect to the jig according to the workpiece positioning method of the second aspect;
a second acquisition unit for acquiring processing control data of the workpiece based on target position data of the workpiece relative to the jig;
and the machining control unit is used for controlling the machine tool to machine the workpiece according to the machining control data.
In a fifth aspect, embodiments of the present application provide a workpiece positioning apparatus comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method according to the first aspect when executing the computer program.
In a sixth aspect, embodiments of the present application provide a workpiece processing apparatus, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to the second aspect when executing the computer program.
In a seventh aspect, this application provides a computer-readable storage medium, where a computer program is stored, and when executed by a processor, the computer program implements the method according to the first aspect.
In an eighth aspect, embodiments of the present application provide a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the method according to the second aspect.
In the embodiment of the application, on one hand, the equipment acquires theoretical position data of a virtual workpiece relative to a virtual clamp and acquires detection point data; wherein the probe point data is used to determine probe points created on the surface of the virtual workpiece; displaying a workpiece clamping diagram comprising a virtual workpiece, a virtual clamp and theoretical position data; acquiring a program template file of the machine tool, and generating a workpiece positioning program according to the program template file and detection point data; wherein, the workpiece and the clamp which are arranged according to the workpiece clamping drawing are placed on the machine tool together; and driving the machine tool to measure target position data of the workpiece relative to the clamp according to the workpiece positioning program. The method can reduce manual operation in the workpiece positioning process, improve the workpiece clamping efficiency and improve the accuracy of workpiece position measurement.
On the other hand, the equipment acquires target position data of the workpiece relative to the clamp according to the workpiece positioning method; acquiring processing control data of the workpiece according to target position data of the workpiece relative to the clamp; and controlling the machine tool to machine the workpiece according to the machining control data. The method can accurately acquire the relative position between the workpiece and the clamp, so that the machine tool can be more accurately regulated and controlled to machine the workpiece, and the machining efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic flow chart diagram of a workpiece positioning method according to a first embodiment of the present application;
FIG. 2 is a schematic illustration of a display of a virtual workpiece and a virtual fixture provided by an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating theoretical position data provided by an embodiment of the present application;
fig. 4 is a schematic flowchart of S101 in a workpiece positioning method according to a first embodiment of the present application;
FIG. 5 is another schematic flow chart diagram of a workpiece positioning method according to the first embodiment of the present application;
FIG. 6 is a further schematic flow chart diagram of a method of positioning a workpiece according to the first embodiment of the present application;
FIG. 7 is a schematic flow chart diagram of a method of processing a workpiece according to a second embodiment of the present application;
FIG. 8 is a schematic view of a workpiece positioning device provided in a third embodiment of the present application;
fig. 9 is a schematic view of a workpiece processing apparatus according to a fourth embodiment of the present application;
FIG. 10 is a schematic view of a workpiece positioning apparatus provided in a fifth embodiment of the present application;
fig. 11 is a schematic view of a workpiece processing apparatus according to a sixth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing a relative importance or importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Referring to fig. 1, fig. 1 is a schematic flowchart of a workpiece positioning method according to a first embodiment of the present application. The main execution body of the workpiece positioning method in this embodiment is a device having a workpiece positioning function, for example, a server, a PC, or the like. The workpiece positioning method as shown in fig. 1 may include:
s101: acquiring theoretical position data of the virtual workpiece relative to the virtual clamp, and acquiring detection point data; wherein the probe point data is used to determine probe points created on the surface of the virtual workpiece.
Virtual artifacts refer to 3D modeled artifacts stored in a 3D model document.
A virtual fixture refers to a 3D modeled fixture stored in a 3D model document.
In an alternative embodiment, the 3D model file may be opened by corresponding software, and theoretical position data of the virtual workpiece with respect to the virtual fixture may be measured using a tool in the software.
The theoretical position data of the virtual workpiece relative to the virtual fixture includes a theoretical position value of a reference plane of the virtual workpiece to a center of the virtual fixture.
Referring to fig. 2 and fig. 3, fig. 2 is a schematic display diagram of a virtual workpiece and a virtual fixture provided in an embodiment of the present application, and fig. 3 is a schematic display diagram of theoretical position data provided in an embodiment of the present application.
As can be seen from fig. 2, the virtual jig 21 displays 4 virtual workpieces 22, and the reference surfaces of the 4 virtual workpieces 22 are 221, 222, 223, and 224, respectively.
As can be seen from fig. 3, the theoretical position data includes the distance of the center of the datum plane of each virtual workpiece with respect to the center of the fixture, and may include the X distance of the virtual workpiece to the virtual fixture, the Y distance of the virtual workpiece to the virtual fixture, and the Z distance of the virtual workpiece to the virtual fixture. The numerical values in fig. 3 are merely examples and have no limiting effect.
The probe point data are used to determine probe points created on the surface of the virtual workpiece, and in particular the probe point data may be acquired by:
referring to fig. 4, fig. 4 is a schematic flowchart of S101 in a workpiece positioning method according to a first embodiment of the present application, where S101 includes:
s1011: acquiring a reference positioning mode; the datum positioning mode comprises a datum for positioning a Z distance, a datum for positioning an X distance, a datum for positioning a Y distance and a parallelism datum.
The reference positioning mode obtained by the equipment can also be understood as the detection track of the probe of the measuring needle.
The reference positioning mode comprises 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.
(1) Reference for positioning Z distance: a plane is constructed from three or four points, which serves as a Z reference and a flatness reference.
(2) Positioning the reference of the X distance, and taking the central line 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 is used as an X reference; or the center of a cylinder (hole) is used as the X reference;
(3) Positioning the Y distance as reference: taking a central line of two straight lines parallel to the Y axis of the coordinate system as a Y reference; or a straight line parallel to the Y axis of the coordinate system is used as a Y reference; or the center of a cylinder (hole) is used as a Y reference;
(4) The parallelism standard is as follows: and taking a straight line of the X reference or the Y reference as a parallelism reference.
S1012: and according to the reference positioning mode, creating detection points for constructing planes, straight lines and circles on the surface of the virtual workpiece to obtain detection point data.
Wherein the data of each detection point at least comprises: (1) X, Y and Z coordinate values of the detection point relative to a zero point of a coordinate system; (2) The vector direction of the probe point on the surface can be represented by I, J and K. The data for each probe point may further include: (3) the name and angle of the measuring probe used by the detection point; (4) approaching and retreating distance for detecting point; and (5) the upper and lower tolerance used by the detection point.
For example: the data for a probe point is X =47.793,y =7.793,z = -7.000,i =0.000,j = -0.000,k = -1.000, stylus name = P10E12BY40, angle = T1A0B0, approach =0.500, backoff =0.500, upper tolerance =0.002, lower tolerance =0.002.
S102: a workpiece clamping map comprising a virtual workpiece, a virtual fixture, and theoretical position data is displayed.
The apparatus displays a workpiece clamping map containing a virtual workpiece, a virtual fixture, and theoretical position data, the workpiece clamping map being used to instruct an operator to mount the workpiece on the fixture.
Specifically, the device may further display a workpiece clamping map including the virtual workpiece, the virtual jig, and the theoretical position data, in response to a workpiece clamping map display instruction. The workpiece clamping diagram display instruction can be sent by the trigger device when an operator inquires the workpiece clamping diagram.
In an alternative embodiment, in order to make the installation error within a reasonable range, please refer to fig. 5, fig. 5 is another schematic flowchart of a workpiece positioning method provided in the first embodiment of the present application, and after S102, the method includes:
s105: actual position data of the workpiece relative to the fixture is acquired.
S106: and if the error between the actual position data and the theoretical position data exceeds a preset allowable range, modifying the theoretical position data by using the actual position data.
Measuring actual position data of the workpiece relative to the clamp, inputting the actual position data of the workpiece relative to the clamp into equipment, comparing the actual position data with theoretical position data by the equipment, and modifying the theoretical position data by using the actual position data if the error between the actual position data and the theoretical position data exceeds a preset allowable range.
Specifically, when the error between the actual position data and the theoretical position data exceeds a preset allowable range, the current theoretical position data is modified into the actual position data, because the theoretical position data is only one reference data and is used for guiding an operator to install, and a certain error may be generated during actual installation, therefore, the error needs to be controlled within the allowable error range, and here, the theoretical position data is modified because the clamp locks and levels the workpiece, and the theoretical position data can be modified to improve the positioning efficiency.
S103: acquiring a program template file of the machine tool, and generating a workpiece positioning program according to the program template file and detection point data; wherein, the workpiece and the clamp which are arranged according to the workpiece clamping drawing are placed on the machine tool together.
The program template file refers to a basic program file of the machine tool, and such file can be recognized by the machine tool controller.
In an alternative embodiment, the program template files include at least a flat template file, a straight template file, and a circular template file.
The equipment acquires a program template file of the machine tool, and generates a workpiece positioning program according to the program template file and the detection point data.
Specifically, the device writes the detection point data for constructing the plane, the detection point data for constructing the straight line, and the detection point data for constructing the circle into a plane template file, a straight line template file, and a circle template file, respectively, to obtain a workpiece positioning program.
In addition to writing the probe data into the program template file, it is understood that statements directing the operation of the machine tool are added to the program template file to ensure that the machine tool can operate the generated workpiece positioning program.
S104: and driving the machine tool to measure target position data of the workpiece relative to the clamp according to the workpiece positioning program.
The device drives the machine tool to measure target position data of the workpiece relative to the clamp according to the workpiece positioning program, namely the device controls the machine tool to execute the workpiece positioning program, so that the target position data of the workpiece relative to the clamp is measured.
In an alternative embodiment, the apparatus stores a workpiece positioning program in the machine tool, invokes an interface protocol of the machine tool, sends program execution instructions to the machine tool, and causes the machine tool to execute the stored workpiece positioning program in response to the program execution instructions.
For example, for 4 workpieces, the target position data includes:
workpiece 1: x =57.506, y =38.325, z =57.135, angle =1.105, flatness =0.003;
workpiece 2: x =54.506, y = -32.105, z = -57.132, angle = -0.105, flatness =0.003;
workpiece 3: x = -62.116, y =42.305, z =57.131, angle = -2.003, flatness =0.004;
workpiece 4: x = -63.437, y = -32.752, z = -57.135, angle =0.605, flatness =0.001.
In an alternative embodiment, please refer to fig. 6, fig. 6 is a schematic flowchart of a workpiece positioning method according to a first embodiment of the present application, the method further includes:
s107: target position data of the workpiece relative to the fixture is received.
S108: in response to the position data display instruction, the position data display page is loaded and target position data of the workpiece relative to the jig is presented in the position data display page.
The device receives target position data of the workpiece relative to the fixture, the operator inquires the position data, the trigger device generates a position data display instruction, the device responds to the position data display instruction, loads a position data display page and presents the target position data of the workpiece relative to the fixture in the position data display page, and therefore the operator can intuitively and conveniently know the target position data of the workpiece relative to the fixture.
In the embodiment, the equipment acquires theoretical position data of a virtual workpiece relative to a virtual clamp and acquires detection point data; wherein the probe point data is used to determine a probe point created on the surface of the virtual workpiece; displaying a workpiece clamping diagram comprising a virtual workpiece, a virtual clamp and theoretical position data; acquiring a program template file of the machine tool, and generating a workpiece positioning program according to the program template file and the detection point data; wherein, the workpiece and the clamp which are arranged according to the workpiece clamping drawing are placed on the machine tool together; and driving the machine tool to measure target position data of the workpiece relative to the clamp according to the workpiece positioning program. The method can reduce manual operation in the workpiece positioning process, improve the workpiece clamping efficiency and improve the workpiece position measurement accuracy.
It should be understood that the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation on the implementation process of this embodiment.
Referring to fig. 7, fig. 7 is a schematic flow chart of a workpiece processing method according to a second embodiment of the present application. An execution subject of the workpiece processing method in the present embodiment is an apparatus having a workpiece processing function, for example, a server, a PC, or the like. The workpiece processing method as shown in fig. 7 may include:
s201: target position data of the workpiece with respect to the jig is acquired according to the workpiece positioning method in the first embodiment.
The apparatus acquires target position data of the workpiece with respect to the jig according to the workpiece positioning method in the first embodiment, and the specific procedure can be referred to the description in the first embodiment.
S202: and acquiring processing control data of the workpiece according to the target position data of the workpiece relative to the clamp.
The apparatus acquires machining control data of the workpiece based on target position data of the workpiece relative to the jig.
The machining control data includes at least a zero point position of the workpiece on the machine tool, a rotation angle of the workpiece with respect to the machine tool, and the like.
S203: and controlling the machine tool to machine the workpiece according to the machining control data.
The equipment sends the machining control data to the machine tool, and the machine tool is controlled to machine the workpiece.
In the embodiment, the equipment acquires target position data of the workpiece relative to the clamp according to the workpiece positioning method; acquiring processing control data of the workpiece according to target position data of the workpiece relative to the clamp; and controlling the machine tool to machine the workpiece according to the machining control data. The method can accurately acquire the relative position between the workpiece and the clamp, so that the machine tool can be more accurately regulated and controlled to machine the workpiece, and the machining efficiency is improved.
It should be understood that the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation on the implementation process of this embodiment.
Referring to fig. 8, fig. 8 is a schematic view of a workpiece positioning device according to a third embodiment of the present application. The units are included for performing the steps in the corresponding embodiment of fig. 1. Please refer to fig. 1 for the related description of the corresponding embodiment. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 8, the workpiece positioning device 8 includes:
an obtaining unit 81, configured to obtain theoretical position data of the virtual workpiece relative to the virtual fixture, and obtain detection point data; wherein the probe point data is used to determine probe points created on the surface of the virtual workpiece;
a display unit 82 for displaying a workpiece clamping map containing a virtual workpiece, a virtual clamp, and theoretical position data;
a generating unit 83 configured to acquire a program template file of the machine tool, and generate a workpiece positioning program based on the program template file and the detection point data; wherein, the workpiece and the clamp which are arranged according to the workpiece clamping drawing are placed on the machine tool together;
and a positioning unit 84 for driving the machine tool to measure target position data of the workpiece relative to the jig according to the workpiece positioning program.
Further, the workpiece positioning device 8 further includes:
an actual position acquisition unit for acquiring actual position data of the workpiece relative to the jig;
and the error confirmation unit is used for modifying the theoretical position data by using the actual position data if the error between the actual position data and the theoretical position data exceeds a preset allowable range.
Further, the obtaining unit 81 is specifically configured to: acquiring a reference positioning mode; the datum positioning mode comprises a datum for positioning a Z distance, a datum for positioning an X distance, a datum for positioning a Y distance and a parallelism datum; and according to the reference positioning mode, creating detection points for constructing planes, straight lines and circles on the surface of the virtual workpiece to obtain detection point data.
Further, the generating unit 83 is specifically configured to: acquiring a 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; and respectively writing the detection point data for constructing the plane, the detection point data for constructing the straight line and the detection point data for constructing the circle into a plane template file, a straight line template file and a circle template file to obtain a workpiece positioning program.
Further, the positioning unit 84 is specifically configured to: storing the workpiece positioning program into the machine tool; and calling an interface protocol of the machine tool, sending a program execution command to the machine tool, and enabling the machine tool to respond to the program execution command and execute the stored workpiece positioning program.
Further, the workpiece positioning device 8 further includes: a receiving unit for receiving target position data of the workpiece relative to the jig; and a position display unit for loading the position data display page in response to the position data display instruction and presenting the target position data of the workpiece relative to the jig in the position data display page.
Referring to fig. 9, fig. 9 is a schematic view of a workpiece processing apparatus according to a fourth embodiment of the present application. The units are included for performing the steps in the corresponding embodiment of fig. 7. Refer specifically to the description associated with the embodiment illustrated in fig. 7. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 9, the workpiece processing apparatus 9 includes:
a first acquisition unit 91 for acquiring target position data of the workpiece with respect to the jig according to the workpiece positioning method of the second aspect;
a second acquisition unit 92 for acquiring processing control data of the workpiece based on target position data of the workpiece with respect to the jig;
and a machining control unit 93 for controlling the machine tool to machine the workpiece based on the machining control data.
Referring to fig. 10, fig. 10 is a schematic view of a workpiece positioning apparatus according to a fifth embodiment of the present application. As shown in fig. 10, the workpiece positioning apparatus 10 of this embodiment includes: a processor 100, a memory 101 and a computer program 102, such as a workpiece positioning program, stored in said memory 101 and executable on said processor 100. The processor 100, when executing the computer program 102, implements the steps of the various embodiments of the workpiece positioning method described above, such as the steps 101 to 104 shown in fig. 1. Alternatively, the processor 100, when executing the computer program 102, implements the functions of the modules/units in the device embodiments, such as the functions of the units 81 to 84 shown in fig. 8.
Illustratively, the computer program 102 may be partitioned into one or more modules/units that are stored in the memory 101 and executed by the processor 100 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions that describe the execution of the computer program 102 in the workpiece positioning apparatus 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 each unit specifically functions as follows:
the acquisition unit is used for acquiring theoretical position data of the virtual workpiece relative to the virtual clamp and acquiring detection point data; wherein the probe point data is used to determine probe points created on the surface of the virtual workpiece;
the display unit is used for displaying a workpiece clamping diagram containing a virtual workpiece, a virtual clamp and theoretical position data;
the generating unit is used for acquiring a program template file of the machine tool and generating a workpiece positioning program according to the program template file and the detection point data; wherein, the workpiece and the clamp which are arranged according to the workpiece clamping drawing are placed on the machine tool together;
and the positioning unit is used for driving the machine tool to measure target position data of the workpiece relative to the clamp according to the workpiece positioning program.
The workpiece positioning apparatus may include, but is not limited to, a processor 100, a memory 101. Those skilled in the art will appreciate that fig. 10 is merely an example of the workpiece positioning apparatus 10 and is not intended to be limiting of the workpiece positioning apparatus 10 and may include more or fewer components than those shown, or some components may be combined, or different components, for example, the workpiece positioning apparatus may also include input output devices, network access devices, buses, and the like.
The Processor 100 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 101 may be an internal storage unit of the workpiece positioning apparatus 10, such as a hard disk or a memory of the workpiece positioning apparatus 10. The memory 101 may also be an external storage device of the workpiece positioning apparatus 10, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the workpiece positioning apparatus 10. Further, the workpiece positioning apparatus 10 may also include both an internal storage unit and an external storage device of the workpiece positioning apparatus 10. The memory 101 is used for storing the computer program and other programs and data required by the workpiece positioning apparatus. The memory 101 may also be used to temporarily store data that has been output or is to be output.
Referring to fig. 11, fig. 11 is a schematic view of a workpiece processing apparatus according to a sixth embodiment of the present application. As shown in fig. 11, the workpiece processing apparatus 11 of this embodiment includes: a processor 110, a memory 111, and a computer program 112, such as a workpiece processing program, stored in the memory 111 and executable on the processor 110. The processor 110, when executing the computer program 112, implements the steps in the various workpiece processing method embodiments described above, such as steps 201-203 shown in fig. 7. Alternatively, the processor 110, when executing the computer program 112, implements the functions of each module/unit in each device embodiment described above, for example, the functions of the units 91 to 93 shown in fig. 9.
Illustratively, the computer program 112 may be partitioned into one or more modules/units, which are stored in the memory 111 and executed by the processor 110 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 112 in the workpiece processing apparatus 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 each unit functions as follows:
a first acquisition unit for acquiring target position data of the workpiece with respect to the jig according to the workpiece positioning method of the second aspect;
a second acquisition unit for acquiring processing control data of the workpiece based on target position data of the workpiece relative to the jig;
and the machining control unit is used for controlling the machine tool to machine the workpiece according to the machining control data.
The workpiece processing device may include, but is not limited to, a processor 110, a memory 111. Those skilled in the art will appreciate that fig. 11 is merely an example of a workpiece processing apparatus 11 and does not constitute a limitation of the workpiece processing apparatus 11 and may include more or fewer components than shown, or some components in combination, or different components, e.g., the workpiece processing apparatus may also include input output devices, network access devices, buses, etc.
The Processor 110 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 111 may be an internal storage unit of the workpiece processing apparatus 11, such as a hard disk or a memory of the workpiece processing apparatus 11. The memory 111 may also be an external storage device of the workpiece processing apparatus 11, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the workpiece processing apparatus 11. Further, the workpiece processing apparatus 11 may also include both an internal storage unit and an external storage apparatus of the workpiece processing apparatus 11. The memory 111 is used to store the computer program and other programs and data required by the workpiece processing apparatus. The memory 111 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, for the information interaction, execution process, and other contents between the above devices/units, the specific functions and technical effects thereof based on the same concept as those of the method embodiment of the present application can be specifically referred to the method embodiment portion, and are not described herein again.
An embodiment of the present application further provides a network device, where the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above may be implemented by instructing relevant hardware by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the embodiments of the methods described above may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal device, recording medium, computer Memory, read-Only Memory (ROM), random Access Memory (RAM), electrical carrier wave signals, telecommunication signals, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method of positioning a workpiece, comprising:
acquiring theoretical position data of the virtual workpiece relative to the virtual fixture, and acquiring detection point data; wherein the probe point data is used to determine probe points created on the surface of the virtual workpiece;
displaying a workpiece clamping diagram comprising the virtual workpiece, the virtual clamp and the theoretical position data;
acquiring a program template file of the machine tool, and generating a workpiece positioning program according to the program template file and the detection point data; wherein, the workpiece and the clamp which are installed according to the workpiece clamping drawing are placed on the machine tool together;
and driving the machine tool to measure target position data of the workpiece relative to the clamp according to the workpiece positioning program.
2. The method of claim 1, wherein after displaying a workpiece clamping map containing said virtual workpiece, said virtual fixture, and said theoretical position data, comprising the steps of:
acquiring actual position data of the workpiece relative to the clamp;
and if the error between the actual position data and the theoretical position data exceeds a preset allowable range, modifying the theoretical position data by using the actual position data.
3. The method of claim 1 or 2, wherein said acquiring probe data comprises:
acquiring a reference positioning mode; the datum positioning mode comprises a datum for positioning a Z distance, a datum for positioning an X distance, a datum for positioning a Y distance and a parallelism datum;
and according to the reference positioning mode, creating detection points for constructing a plane, a straight line and a circle on the surface of the virtual workpiece to obtain the detection point data.
4. The workpiece positioning method according to claim 3, wherein said acquiring a program template file of the machine tool, and generating the workpiece positioning program based on the program template file and the probe point data, comprises the steps of:
acquiring a 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;
and respectively 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 circle template file to obtain the workpiece positioning program.
5. The workpiece positioning method according to claim 1 or 2, wherein the driving the machine tool to measure target position data of the workpiece with respect to the jig according to the workpiece positioning program includes:
storing the workpiece positioning program into the machine tool;
calling an interface protocol of the machine tool, sending a program execution instruction to the machine tool, and enabling the machine tool to respond to the program execution instruction and execute the stored workpiece positioning program.
6. The workpiece positioning method according to claim 1 or 2, wherein after driving the machine tool to measure target position data of the workpiece with respect to the jig according to the workpiece positioning program, further comprising:
receiving target position data of the workpiece relative to the fixture;
in response to a position data display instruction, a position data display page is loaded and target position data of the workpiece relative to the jig is presented in the position data display page.
7. A method of processing a workpiece, comprising:
acquiring target position data of the workpiece relative to the jig according to the workpiece positioning method of any one of claims 1 to 6;
acquiring processing control data of the workpiece according to the target position data of the workpiece relative to the clamp;
and controlling the machine tool to machine the workpiece according to the machining control data.
8. A workpiece positioning device, comprising:
the acquisition unit is used for acquiring theoretical position data of the virtual workpiece relative to the virtual clamp and acquiring detection point data; wherein the probe point data is used to determine probe points created on the surface of the virtual workpiece;
the display unit is used for displaying a workpiece clamping diagram containing the virtual workpiece, the virtual clamp and the theoretical position data;
the generating unit is used for acquiring a program template file of the machine tool and generating a workpiece positioning program according to the program template file and the detection point data; wherein, the workpiece and the clamp which are installed according to the workpiece clamping drawing are placed on the machine tool together;
and the positioning unit is used for driving the machine tool to measure target position data of the workpiece relative to the clamp according to the workpiece positioning program.
9. A workpiece processing apparatus, comprising:
a first acquisition unit for acquiring target position data of the workpiece with respect to the jig according to the workpiece positioning method of any one of claims 1 to 6;
a second acquisition unit configured to acquire machining control data of the workpiece based on target position data of the workpiece with respect to the jig;
and the machining control unit is used for controlling the machine tool to machine the workpiece according to the machining control data.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6, or 7.
CN202211127928.7A 2022-09-16 2022-09-16 Workpiece positioning method, workpiece machining method and device Pending CN115533565A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211127928.7A CN115533565A (en) 2022-09-16 2022-09-16 Workpiece positioning method, workpiece machining method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211127928.7A CN115533565A (en) 2022-09-16 2022-09-16 Workpiece positioning method, workpiece machining method and device

Publications (1)

Publication Number Publication Date
CN115533565A true CN115533565A (en) 2022-12-30

Family

ID=84726892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211127928.7A Pending CN115533565A (en) 2022-09-16 2022-09-16 Workpiece positioning method, workpiece machining method and device

Country Status (1)

Country Link
CN (1) CN115533565A (en)

Similar Documents

Publication Publication Date Title
CN109807885B (en) Visual calibration method and device for manipulator and intelligent terminal
CN105180855A (en) Method For Generating Information About A Sensor Chain Of A Coordinate Measuring Machine (cmm)
US20080133173A1 (en) Method and system for measuring an image of an object
US20080030498A1 (en) System and method for integrating dispersed point-clouds of multiple scans of an object
CN104990689B (en) Localization method and device in a kind of optic test
CN113219320B (en) BMS circuit board checking method, system, readable storage medium and terminal equipment
CN108247422A (en) A kind of automatic capturing method for axle journal class part in numerical control machine tool
CN112894799A (en) Display device and display program
CN112476395A (en) Industrial robot-oriented three-dimensional vision scribing equipment and method
CN115187672A (en) Geometric error calibration method and device, multi-axis motion system and storage medium
US20070154113A1 (en) System and method for image measuring
CN115533565A (en) Workpiece positioning method, workpiece machining method and device
CN112414340B (en) Three-coordinate measuring method, device and equipment of workpiece and storage medium
CN111275662B (en) Workpiece positioning method, device, equipment and storage medium based on two-dimension code
CN112536643B (en) Machine health monitoring method and device and computer readable storage medium
CN114670192B (en) Calibration method and device for robot workpiece coordinate system, storage medium and terminal
US20070260406A1 (en) Automated location system
CN112247671B (en) Method and device for centering cylinder workpiece
CN112192274B (en) Key blank positioning method and device applied to key processing machine
KR20200129290A (en) Control method and control system for machine tool
CN112762840A (en) Method for measuring contour degree of mortise in three-coordinate mode
CN109108735B (en) Intelligent mutual detection method for milling type numerical control machine tool
CN114593704B (en) Method, device, equipment and medium for measuring curved surface part
CN114001655B (en) Method and device for determining precision of machine equipment
CN115344004B (en) Processing control method, processing control device, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination