CN114770219A - Method, device, equipment, storage medium and program product for automatically aligning workpiece - Google Patents

Method, device, equipment, storage medium and program product for automatically aligning workpiece Download PDF

Info

Publication number
CN114770219A
CN114770219A CN202210701984.0A CN202210701984A CN114770219A CN 114770219 A CN114770219 A CN 114770219A CN 202210701984 A CN202210701984 A CN 202210701984A CN 114770219 A CN114770219 A CN 114770219A
Authority
CN
China
Prior art keywords
workpiece
coordinate system
machined
determining
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.)
Granted
Application number
CN202210701984.0A
Other languages
Chinese (zh)
Other versions
CN114770219B (en
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.)
Goertek Inc
Original Assignee
Goertek Inc
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 Goertek Inc filed Critical Goertek Inc
Priority to CN202210701984.0A priority Critical patent/CN114770219B/en
Publication of CN114770219A publication Critical patent/CN114770219A/en
Application granted granted Critical
Publication of CN114770219B publication Critical patent/CN114770219B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • B23Q15/00Automatic control or regulation of feed movement, cutting velocity or position of tool or work
    • B23Q15/20Automatic control or regulation of feed movement, cutting velocity or position of tool or work before or after the tool acts upon the workpiece
    • B23Q15/22Control or regulation of position of tool or workpiece
    • B23Q15/26Control or regulation of position of tool or workpiece of angular position
    • 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/22Arrangements for observing, indicating or measuring on machine tools for indicating or measuring existing or desired position of tool or work

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Automatic Control Of Machine Tools (AREA)
  • Numerical Control (AREA)

Abstract

The invention discloses a method, a device, equipment, a storage medium and a program product for automatically aligning a workpiece, and belongs to the technical field of numerical control machining. The method comprises the following steps: determining the actual coordinates of the target acquisition points after dotting in a preset machine tool coordinate system based on the current workpiece coordinate system of the workpiece to be processed; determining an actual origin of the workpiece to be machined based on the actual coordinates, and determining the inclination of the workpiece to be machined in the preset machine tool coordinate system; and rotating the workpiece to be machined by the inclination degree around the actual original point of the workpiece to be machined so as to realize automatic alignment of the workpiece to be machined. This application can improve machine tool machining work piece alignment efficiency.

Description

Method, apparatus, device, storage medium and program product for automatically aligning workpieces
Technical Field
The invention relates to the technical field of numerical control machining, in particular to a method, a device, equipment, a storage medium and a program product for automatically aligning a workpiece.
Background
Generally, before a workpiece to be machined by a machine tool is machined, the workpiece to be machined by the machine tool needs to have a relatively correct position with respect to a table of the machine tool, that is, the workpiece to be machined by the machine tool needs to be aligned.
The traditional alignment method is that an operator manually rotates a main shaft to enable a measuring head of a dial indicator to touch the edge of a part, and a hand wheel of a machine tool is operated to continuously finely adjust the position of a rotary table of the machine tool to enable a pressure value of the dial indicator to be changed within preset precision. The efficiency of this alignment method depends on the skill level of the operator.
Therefore, the prior art has the problem that the alignment efficiency of the machine tool processing workpiece is low.
Disclosure of Invention
The application mainly aims to provide a method, a device, equipment and a storage medium for automatically aligning a workpiece, and aims to solve the technical problem of low efficiency of alignment of a workpiece machined by a machine tool.
In order to achieve the above object, the present application provides an automatic workpiece aligning method, which includes the steps of:
determining the actual coordinates of the clicked target acquisition point in a preset machine tool coordinate system based on the current workpiece coordinate system of the workpiece to be machined;
determining an actual origin of the workpiece to be machined based on the actual coordinates, and determining the inclination of the workpiece to be machined in the preset machine tool coordinate system;
and rotating the workpiece to be machined around the actual origin point by the inclination to realize automatic alignment of the workpiece to be machined.
In a possible embodiment of the present application, the step of determining the actual coordinates of the dotted target collection point in the preset machine tool coordinate system based on the current workpiece coordinate system of the workpiece to be processed, applied to a box-type workpiece, includes:
selecting a target acquisition point on the edge of a workpiece to be processed based on a current workpiece coordinate system of the workpiece to be processed;
and dotting the target acquisition points, and determining the actual coordinates of the dotted target acquisition points in a preset machine tool coordinate system.
In a possible embodiment of the present application, the step of selecting a target capture point on an edge of a workpiece to be processed based on a current workpiece coordinate system of the workpiece to be processed includes:
selecting at least one group of corresponding points on a first opposite edge of the workpiece to be processed, and selecting at least two groups of corresponding points on a second opposite edge of the workpiece to be processed, wherein the corresponding points are two points of which the straight line is parallel to a coordinate axis in a preset machine tool coordinate system;
and taking at least three groups of corresponding points obtained by selection as target acquisition points.
In a possible embodiment of the present application, the step of determining an actual origin of the workpiece to be machined based on the actual coordinates includes:
calculating the actual abscissa value of the target acquisition point on the first relative edge to obtain a first average value;
calculating the actual longitudinal coordinate value of the target acquisition point on the second opposite edge to obtain a second average value;
and determining the coordinate position of which the abscissa is the first average value and the ordinate is the second average value as the actual origin of the workpiece to be processed.
In a possible embodiment of the present application, the step of determining the inclination of the workpiece to be machined in the preset machine coordinate system comprises:
determining the midpoint of each group of corresponding points selected on the second opposite edge;
determining an included angle formed by a straight line where each midpoint is located and a coordinate axis of the preset machine tool coordinate system;
and determining the degree of the included angle as the inclination of the workpiece to be processed in the preset machine tool coordinate system.
In a possible embodiment of the present application, after the step of rotating the workpiece to be machined by the inclination around its actual origin, the method further comprises:
and if the inclination of the rotated workpiece to be machined in the preset machine tool coordinate system is greater than a preset inclination threshold value, returning to the step of determining the actual coordinates of the dotted target acquisition point in the preset machine tool coordinate system based on the current workpiece coordinate system of the workpiece to be machined.
The application also provides a work piece automatic alignment device, the device includes:
the first determination module is used for determining the actual coordinates of the target acquisition points after dotting in a preset machine tool coordinate system based on the current workpiece coordinate system of the workpiece to be processed;
the second determination module is used for determining an actual origin of the workpiece to be machined based on the actual coordinates and determining the inclination of the workpiece to be machined in the preset machine tool coordinate system;
and the rotating module is used for rotating the workpiece to be machined around the actual origin point by the inclination to realize automatic alignment of the workpiece to be machined.
The application also provides an automatic alignment equipment of work piece, equipment includes: a memory, a processor and an automatic workpiece aligning program stored on the memory and executable on the processor, the automatic workpiece aligning program being configured to implement the steps of the automatic workpiece aligning method according to any one of the preceding claims.
The present application further provides a storage medium having a workpiece automatic alignment program stored thereon, wherein the workpiece automatic alignment program, when executed by a processor, implements the steps of the workpiece automatic alignment method as described in any one of the above.
The present application also provides a program product being a computer program product comprising a computer program which, when being executed by a processor, carries out the steps of the method for automatic alignment of workpieces according to any one of the preceding claims.
Compared with the prior art that an operator needs to manually align a workpiece to be machined, the method, the device, the equipment, the storage medium and the program product determine the actual coordinates of a target acquisition point after dotting in a preset machine tool coordinate system based on the current workpiece coordinate system of the workpiece to be machined; determining an actual origin of the workpiece to be machined based on the actual coordinates, and determining the inclination of the workpiece to be machined in the preset machine tool coordinate system; and rotating the workpiece to be machined by the inclination degree around the actual original point of the workpiece to be machined so as to realize automatic alignment of the workpiece to be machined. The actual coordinates of the target acquisition point after dotting in a preset machine tool coordinate system are determined; the method comprises the steps of determining the inclination of the workpiece to be machined relative to the transverse axis of a preset machine tool coordinate system, and rotating the workpiece to be machined around the actual origin of the workpiece to be machined to the inclination, so that automatic alignment can be realized.
Drawings
FIG. 1 is a schematic flow chart illustrating a first embodiment of an automatic workpiece alignment method according to the present application;
FIG. 2 is a schematic diagram of a position of a workpiece to be processed in a coordinate system according to a first embodiment of the present application;
FIG. 3 is a schematic structural diagram of an automatic workpiece alignment apparatus in a hardware operating environment according to an embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
An embodiment of the present application provides an automatic workpiece alignment method, and referring to fig. 1, fig. 1 is a schematic flow diagram of a first embodiment of the automatic workpiece alignment method according to the present application.
In this embodiment, the method for automatically aligning a workpiece includes:
step S10: determining the actual coordinates of the target acquisition points after dotting in a preset machine tool coordinate system based on the current workpiece coordinate system of the workpiece to be processed;
step S20: determining an actual origin of the workpiece to be machined based on the actual coordinates, and determining the inclination of the workpiece to be machined in the preset machine tool coordinate system;
step S30: and rotating the workpiece to be machined around the actual origin point by the inclination to realize automatic alignment of the workpiece to be machined.
The present embodiment is intended to: the alignment efficiency of the machine tool for processing the workpiece is improved.
In this embodiment, the automatic workpiece aligning method can be applied to an automatic workpiece aligning system subordinate to an automatic workpiece aligning apparatus.
As an example, the automatic workpiece alignment device may be installed inside the machine tool and independent from the machine tool, and is not limited in particular.
As an example, the automatic workpiece alignment system may transmit the generated dotting program, the automatic workpiece alignment program, and other programs to the machine tool, and store the programs in the machine tool.
As an example, the machine tool has a machine coordinate system for determining the position of the workpiece, the machine coordinate system is a coordinate system inherent to the machine tool, a fixed origin of coordinates is provided, and the coordinate system with the O point as the origin as shown in fig. 2 is the preset machine coordinate system.
In this embodiment, the specific steps are as follows:
step S10: determining the actual coordinates of the clicked target acquisition point in a preset machine tool coordinate system based on the current workpiece coordinate system of the workpiece to be machined;
in this embodiment, the operator conveys the workpiece to be machined to the machine tool and aligns the workpiece to be machined, and at this time, since the operator cannot determine with the naked eye whether the workpiece to be machined is accurately placed at the correct position, the workpiece to be machined is simply placed at the approximately correct position. At this time, the machine tool needs to determine the position of the workpiece to be processed in a preset machine tool coordinate system, that is, determine a current workpiece coordinate system of the workpiece to be processed, where the step of determining the current workpiece coordinate system is: the operator moves the machine spindle to a workpiece center position, which is visually determined by the operator.
As an example, referring to fig. 2, the current workpiece coordinate system of the workpiece to be machined is a coordinate system with O' as an origin.
In this embodiment, the automatic workpiece alignment method is applied to a box-type workpiece, the machine tool can determine the position of the edge of the workpiece to be machined in the current workpiece coordinate system based on the size of the workpiece to be machined and the current workpiece coordinate system thereof, that is, the machine tool can directly use the coordinates of any point on the edge of the workpiece to be machined, and the machine tool obtains the actual coordinates of the target acquisition point after the point is hit in the preset machine tool coordinate system based on the size of the workpiece to be machined and the current workpiece coordinate system thereof.
As an example, the workpiece machined by the machine tool may be a workpiece such as a box, a housing, a disk, and a shaft, and is not limited in particular.
For convenience of description, the following is a specific example of a box-like workpiece.
In this embodiment, the method for automatically aligning a workpiece is applied to a box-like workpiece, and the step of determining an actual coordinate of a target acquisition point after dotting in a preset machine tool coordinate system based on a current workpiece coordinate system of the workpiece to be processed includes:
step A1: selecting a target acquisition point on the edge of a workpiece to be processed based on a current workpiece coordinate system of the workpiece to be processed;
step A2: and dotting the target acquisition points, and determining the actual coordinates of the dotted target acquisition points in a preset machine tool coordinate system.
In this embodiment, the automatic workpiece alignment method is applied to a box-type workpiece, and a target acquisition point is selected on an edge of the workpiece to be processed based on a current workpiece coordinate system of the workpiece to be processed.
As an example, referring to fig. 2, the target collection points may be a point a, a point B, a point C, a point D, a point E, and a point F, and other points that may determine actual coordinates of the workpiece to be processed, which is not limited in detail.
As an example, the dotting program is written based on a preset dotting method.
In this embodiment, a workpiece automatic alignment program is obtained by writing based on a workpiece automatic alignment method, and after a workpiece to be processed is conveyed to a machine tool, a dotting device can be called to perform dotting on a target acquisition point of the workpiece to be processed according to the dotting program, so as to obtain an actual coordinate of the target acquisition point in the preset machine tool coordinate system.
As an example, the preset dotting method may perform dotting according to the shortest route and perform dotting according to a route of the relative positions of the acquisition points in the same group, which is not limited specifically.
As an example, referring to fig. 2, the dotting process of the dotting device is as follows: lifting a measuring head of the dotting equipment along the + Z-axis direction of a preset machine tool coordinate system, moving the measuring head to one side of first opposite edges of a workpiece to be processed, downwards touching the edge of the workpiece to be processed along the-Z-axis direction, and dotting a point A to obtain the actual coordinate of the point A in the preset machine tool coordinate system; after the coordinates of the point A are collected, the point A is continuously lifted along the + Z axis direction, the measuring head horizontally moves along the + X axis direction after being lifted, at the moment, the measuring head cannot have any offset in the X axis direction until the measuring head moves to the other side of the first opposite edge of the workpiece to be processed, the edge of the workpiece to be processed is touched downwards along the-Z axis direction, the point F is clicked, the actual coordinates of the point A in the preset machine tool coordinate system are obtained, namely, a group of corresponding points are obtained: point a and point F.
As an example, after the point F is clicked, the measuring head is lifted up along the + Z axis direction, moves to one of the second opposite edges of the workpiece to be machined, touches the edge of the workpiece to be machined downwards along the-Z axis direction, and clicks the point D to obtain the actual coordinate of the point D in the preset machine coordinate system; after the coordinates of the point D are collected, the point D is continuously lifted along the + Z axis direction, the measuring head is lifted and then vertically moves along the-Y axis direction, at the moment, the measuring head cannot have any deviation in the Y axis direction until the measuring head moves to the other side of the second opposite edge of the workpiece to be processed, the edge of the workpiece to be processed is touched downwards along the-Z axis direction, the point E is clicked, the actual coordinates of the point E in the preset machine tool coordinate system are obtained, namely, a group of corresponding points are obtained: points D and E.
As an example, after the point E is clicked, the measuring head is lifted along the + Z axis direction, and moves to one of the second opposite edges of the workpiece to be machined, and touches the edge of the workpiece to be machined downwards along the-Z axis direction, and the point B is clicked, so as to obtain the actual coordinate of the point B in the preset machine tool coordinate system; after the coordinates of the point B are collected, the point B is continuously lifted along the direction of the + Z axis, the measuring head vertically moves along the direction of the + Y axis after being lifted, at the moment, the measuring head cannot have any offset in the direction of the Y axis until the measuring head moves to the other side of the second opposite edge of the workpiece to be processed, the edge of the workpiece to be processed is touched downwards along the direction of the-Z axis, the point C is clicked, the actual coordinates of the point C in the preset machine tool coordinate system are obtained, namely, a group of corresponding points are obtained: point B and point C.
As an example, if an error occurs in the dotting process for each group of corresponding dots, the step of dotting the previous dot is returned.
As an example, a distance at which the probe safely touches the workpiece to be processed is set in the dotting procedure.
In this embodiment, the step of selecting a target capture point on an edge of the workpiece to be processed based on the current workpiece coordinate system of the workpiece to be processed includes:
step B1: selecting at least one group of corresponding points on a first opposite edge of the workpiece to be processed, and selecting at least two groups of corresponding points on a second opposite edge of the workpiece to be processed, wherein the corresponding points are two points of which the straight line is parallel to a coordinate axis in a preset machine tool coordinate system;
step B2: and taking at least three groups of corresponding points obtained by selection as target acquisition points.
In this embodiment, based on the size of the workpiece to be machined and the current workpiece coordinate system thereof, at least one set of corresponding points is selected on a first opposite edge of the workpiece to be machined, and at least two sets of corresponding points are selected on a second opposite edge of the workpiece to be machined, where the corresponding points are two points where a straight line is parallel to a coordinate axis in a preset machine tool coordinate system.
As an example, as shown in fig. 2, a set of corresponding points a and F is selected at the relative position of the first opposite edge of the workpiece to be processed; two groups of corresponding points are selected at the relative positions of the second relative edge of the workpiece to be processed, wherein one group is a point B and a point C, the other group is a point D and a point E, the straight lines of the point A and the point F are parallel to the X-axis direction in the preset machine tool coordinate system, the straight lines of the point B and the point C are parallel to the Y-axis direction in the preset machine tool coordinate system, and the straight lines of the point D and the point E are parallel to the Y-axis direction in the preset machine tool coordinate system.
In this embodiment, the three sets of corresponding points are taken as the target acquisition points.
As an example, the more corresponding points in the target acquisition points, the more the alignment accuracy can be improved, depending on the actual situation.
Step S20: determining an actual origin of the workpiece to be machined based on the actual coordinates, and determining the inclination of the workpiece to be machined in the preset machine tool coordinate system;
in this embodiment, based on the coordinates of the target collection point in the current workpiece coordinate system of the workpiece to be machined, the coordinates are automatically uploaded to a dotting program, and the dotting program obtains the coordinate values and obtains an actual origin of the workpiece to be machined and an inclination of the workpiece to be machined with respect to a horizontal axis of the preset machine tool coordinate system through calculation.
In this embodiment, the step of determining the actual origin of the workpiece to be processed based on the actual coordinates includes:
step C1: calculating the actual abscissa value of the target acquisition point on the first relative edge to obtain a first average value;
step C2: calculating the actual longitudinal coordinate value of the target acquisition point on the second relative edge to obtain a second average value;
step C3: and determining that the abscissa is the first average value, and the position of the coordinate with the ordinate being the second average value is the actual origin of the workpiece to be processed.
In this embodiment, the abscissa value of the actual coordinate of the target acquisition point on the first opposite edge is calculated to obtain a first average value, that is, referring to fig. 2, the abscissa values of the point a and the point F are averaged to obtain the first average value.
As an example, a longitudinal coordinate value of the actual coordinate of the target acquisition point on the second opposite edge is calculated to obtain a second average value, that is, the longitudinal coordinate values of the point E, the point D, the point B, and the point C are averaged to obtain the second average value.
As an example, the first average value is an abscissa of an origin of the workpiece to be processed, and the second average value is an ordinate of the origin of the workpiece to be processed, so that the abscissa is the first average value, and a position of the ordinate, which is the ordinate of the second average value, is an actual origin of the workpiece to be processed.
In this embodiment, the step of determining the inclination of the workpiece to be machined in the preset machine coordinate system includes:
step D1: determining the midpoint of each group of corresponding points selected on the second opposite edge;
step D2: determining an included angle formed by a straight line where each midpoint is located and a coordinate axis of the preset machine tool coordinate system;
step D3: and determining the degree of the included angle as the inclination of the workpiece to be processed in the preset machine tool coordinate system.
In this embodiment, based on the target acquisition point, the inclination of the workpiece to be processed in the preset machine coordinate system may be obtained.
As an example, the midpoint of the corresponding points of each group selected on the second opposite edge is determined, that is, referring to fig. 2, the midpoint point H of the point E and the point D is obtained by respectively calculating the average of the horizontal and vertical coordinates of the point E and the point D, and the midpoint point G of the point B and the point C is obtained by respectively calculating the average of the horizontal and vertical coordinates of the point B and the point C.
As an example, an included angle formed by a straight line where the point H and the point G are located and a straight line parallel to a preset machine coordinate system is obtained, and the inclination of the workpiece to be machined relative to the preset machine coordinate system is determined as the degree of the included angle.
As an example, the included angle may be formed by a straight line where the point H and the point G are located and a straight line parallel to a positive direction of a coordinate axis of the preset machine coordinate system, and may be formed by a straight line parallel to a negative direction of the coordinate axis of the preset machine coordinate system, which is not limited in particular.
For convenience of description, the included angle is specifically exemplified by a straight line formed by a straight line where the point H and the point G are located and a straight line parallel to a positive direction of a coordinate axis of a preset machine tool coordinate system.
As an example, the included angle may be formed by a straight line where the straight line of the point H and the point G is parallel to an X axis of the preset machine coordinate system, and may be formed by a straight line parallel to a Y axis of the preset machine coordinate system, which is not limited in particular.
For convenience of description, the present embodiment specifically exemplifies that the included angle is formed by a straight line where the straight line of the point H and the point G is parallel to an X axis of a preset machine coordinate system.
As an example, the point H and the point G are connected and form a right triangle with a straight line parallel to the X axis, and based on the specification of the workpiece to be processed, the coordinate values of the point H and the point G, the degree of the included angle can be calculated to be
Figure 240505DEST_PATH_IMAGE002
Wherein x is the relative length of the right-angle side of the included angle, and y is the length of the adjacent right-angle side of the included angle.
As an example, the calculated degrees of the included angle have a positive or negative value.
As an example, the dotting program automatically uploads the calculated origin of the workpiece to be processed and the inclination of the workpiece to be processed with respect to the preset machine coordinate system to the machine tool.
As an example, the data of the actual origin and inclination of the workpiece to be machined may be displayed by a machine tool display.
Step S30: and rotating the workpiece to be machined by the inclination degree around the actual original point of the workpiece to be machined so as to realize automatic alignment of the workpiece to be machined.
As an example, after receiving the actual origin of the workpiece to be machined and the inclination of the workpiece to be machined from a preset machine coordinate system, the machine tool inputs the actual origin into a custom variable of an automatic workpiece alignment program, the automatic workpiece alignment program issues an alignment instruction, and after the alignment is finished, the automatic workpiece alignment program issues a stop alignment instruction, where the operation of inputting the variable may be, without limitation, automatic machine input, manual operator input, and the like.
In this embodiment, the automatic workpiece alignment device rotates the workpiece to be processed around its actual origin by the inclination based on an alignment instruction sent by an automatic workpiece alignment program, and rotates the workpiece to be processed around its actual origin to the positive direction of the coordinate axis if the inclination obtained based on the above calculation is a positive number, so as to achieve automatic alignment of the workpiece to be processed, that is, move the workpiece to be processed to a preset correct position, and wait for the next operation of the workpiece to be processed by the machine tool.
In the embodiment, the actual coordinates of the doted target acquisition point in the preset machine tool coordinate system are determined; and determining the inclination of the workpiece to be machined relative to the horizontal axis of a preset machine tool coordinate system, and rotating the workpiece to be machined around the actual origin of the workpiece to be machined by the inclination, so that automatic alignment can be realized, and the alignment efficiency of the workpiece machined by the machine tool is improved.
Further, based on the first embodiment of the present application, another embodiment of the present application is provided, in which after the step of rotating the workpiece to be processed by the inclination degree around its actual origin, the method further comprises:
step E1: and if the inclination of the rotated workpiece to be machined in the preset machine tool coordinate system is greater than a preset inclination threshold value, returning to the step of determining the actual coordinates of the dotted target acquisition point in the preset machine tool coordinate system based on the current workpiece coordinate system of the workpiece to be machined.
In this embodiment, after the automatic workpiece alignment program issues the alignment stop instruction, the machine tool needs to determine the alignment accuracy, and if the inclination of the rotated workpiece to be processed in the preset machine tool coordinate system is greater than the preset inclination threshold, the step of returning to the current workpiece coordinate system based on the workpiece to be processed and determining the actual coordinates of the dotted target acquisition point in the preset machine tool coordinate system is performed.
As an example, the machine tool may calculate the inclination between its current position and a preset machine coordinate system based on the above-mentioned point collecting method, and obtain the inclination by other measurement methods, which is not limited in particular.
As an example, the machine tool returns to the step of determining the actual coordinates of the clicked target acquisition point in the preset machine tool coordinate system based on the current workpiece coordinate system of the workpiece to be machined, and the workpiece to be machined is aligned again to achieve more accurate alignment, so that a foundation is laid for subsequent machining.
In the embodiment, the alignment program of the machine tool for the workpiece to be machined improves the alignment efficiency of the workpiece to be machined by the machine tool, but the alignment precision of the workpiece to be machined is required to be judged, and if the precision does not meet the preset condition, the workpiece to be machined is aligned again, so that the workpiece to be machined can find a more accurate position, and a foundation is laid for subsequent machining.
Referring to fig. 3, fig. 3 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present application.
As shown in fig. 3, the automatic workpiece aligning apparatus may include: a processor 1001, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to enable connection communication between the processor 1001 and the memory 1005.
Optionally, the automatic workpiece aligning apparatus may further include a user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, a WiFi module, and the like. The user interface may comprise a Display screen (Display), an input sub-module such as a Keyboard (Keyboard), and the optional user interface may also comprise a standard wired interface, a wireless interface. The network interface may include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Those skilled in the art will appreciate that the configuration of the automatic workpiece alignment apparatus shown in FIG. 3 does not constitute a limitation of the automatic workpiece alignment apparatus and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 3, a memory 1005, which is a storage medium, may include an operating system, a network communication module, and an automatic workpiece alignment program. The operating system is a program that manages and controls the hardware and software resources of the automatic workpiece alignment device, and supports the operation of the automatic workpiece alignment program as well as other software and/or programs. The network communication module is used for communication among the components in the memory 1005 and with other hardware and software in the automatic workpiece alignment system.
In the automatic workpiece aligning apparatus shown in fig. 3, the processor 1001 is configured to execute an automatic workpiece aligning program stored in the memory 1005, and implement the steps of the automatic workpiece aligning method according to any one of the above-described embodiments.
The specific implementation of the automatic workpiece alignment apparatus of the present application is substantially the same as that of each embodiment of the automatic workpiece alignment method, and is not described herein again.
The application still provides a work piece automatic alignment device, the device includes:
the first determining module is used for determining the actual coordinates of the dotted target acquisition point in a preset machine tool coordinate system based on the current workpiece coordinate system of the workpiece to be processed;
the second module is used for determining an actual origin of the workpiece to be machined based on the actual coordinates and determining the inclination of the workpiece to be machined in the preset machine tool coordinate system;
and the rotating module is used for rotating the workpiece to be machined around the actual origin point by the inclination to realize automatic alignment of the workpiece to be machined.
Optionally, in a possible implementation manner of the present application, the first determining module includes:
the first determining unit is used for selecting a target acquisition point on the edge of the workpiece to be processed based on the current workpiece coordinate system of the workpiece to be processed;
and the second determining unit is used for dotting the target acquisition point and determining the actual coordinate of the dotted target acquisition point in a preset machine tool coordinate system.
Optionally, in a possible embodiment of the present application, the first determining unit is configured to: selecting at least one group of corresponding points on a first opposite edge of the workpiece to be processed, and selecting at least two groups of corresponding points on a second opposite edge of the workpiece to be processed, wherein the corresponding points are two points of which the straight line is parallel to a coordinate axis in a preset machine tool coordinate system; and the system is also used for taking the selected at least three groups of corresponding points as target acquisition points.
Optionally, in a possible implementation manner of the present application, the second determining module includes:
the first calculating unit is used for calculating the actual abscissa value of the target acquisition point on the first relative edge to obtain a first average value;
the second calculation unit is used for calculating the actual longitudinal coordinate value of the target acquisition point on the second relative edge to obtain a second average value;
and the third determining unit is used for determining that the coordinate of the abscissa as the first average value and the position of the coordinate of the ordinate as the second average value is the actual origin of the workpiece to be processed.
Optionally, in a possible implementation manner of the present application, the second determining module further includes:
a fourth determining unit, configured to determine a midpoint of the corresponding points of each group selected on the second opposite edge;
the fifth determining unit is used for determining an included angle formed by a straight line where each midpoint is located and a coordinate axis of the preset machine tool coordinate system;
and the sixth determining unit is used for determining the degree of the included angle as the inclination of the workpiece to be processed in the preset machine tool coordinate system.
Optionally, in a possible embodiment of the present application, the rotation module includes:
and the returning unit is used for returning to the current workpiece coordinate system based on the workpiece to be processed and determining the actual coordinates of the dotted target acquisition point in the preset machine tool coordinate system if the inclination of the rotated workpiece to be processed in the preset machine tool coordinate system is greater than a preset inclination threshold value.
The specific implementation of the automatic workpiece alignment in the present application is substantially the same as that of the above embodiments of automatic workpiece alignment, and is not described herein again.
The present application further provides a storage medium having a workpiece automatic alignment program stored thereon, wherein the workpiece automatic alignment program, when executed by a processor, implements the steps of the workpiece automatic alignment method as described in any one of the above.
The specific implementation of the storage medium of the present application is substantially the same as that of the above embodiments for automatically aligning workpieces, and is not described herein again.
The present application also provides a program product being a computer program product comprising a computer program which, when being executed by a processor, carries out the steps of the method for automatic alignment of workpieces according to any one of the preceding claims.
The specific implementation of the program product of the present application is substantially the same as that of the above embodiments for automatically aligning workpieces, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An automatic workpiece alignment method is characterized by comprising the following steps:
determining the actual coordinates of the target acquisition points after dotting in a preset machine tool coordinate system based on the current workpiece coordinate system of the workpiece to be processed;
determining an actual origin of the workpiece to be machined based on the actual coordinates, and determining the inclination of the workpiece to be machined in the preset machine tool coordinate system;
and rotating the workpiece to be machined around the actual origin point by the inclination to realize automatic alignment of the workpiece to be machined.
2. The automatic workpiece alignment method according to claim 1, applied to a box-like workpiece, wherein the step of determining the actual coordinates of the clicked target acquisition point in a preset machine coordinate system based on the current workpiece coordinate system of the workpiece to be processed comprises:
selecting a target acquisition point on the edge of a workpiece to be processed based on a current workpiece coordinate system of the workpiece to be processed;
and dotting the target acquisition point, and determining the actual coordinate of the dotted target acquisition point in a preset machine tool coordinate system.
3. The method of claim 2, wherein the step of selecting a target capture point on the edge of the workpiece to be processed based on the current workpiece coordinate system of the workpiece to be processed comprises:
selecting at least one group of corresponding points on a first opposite edge of the workpiece to be processed, and selecting at least two groups of corresponding points on a second opposite edge of the workpiece to be processed, wherein the corresponding points are two points of which the straight line is parallel to a coordinate axis in a preset machine tool coordinate system;
and taking at least three groups of corresponding points obtained by selection as target acquisition points.
4. The method for automatically aligning a workpiece as set forth in claim 3, wherein the step of determining an actual origin of the workpiece to be machined based on the actual coordinates comprises:
calculating the actual abscissa value of the target acquisition point on the first relative edge to obtain a first average value;
calculating the actual longitudinal coordinate value of the target acquisition point on the second opposite edge to obtain a second average value;
and determining that the abscissa is the first average value, and the position of the coordinate with the ordinate being the second average value is the actual origin of the workpiece to be processed.
5. The automatic workpiece alignment method of claim 3, wherein said step of determining the inclination of said workpiece to be machined in said predetermined machine coordinate system comprises:
determining the midpoint of each group of corresponding points selected on the second opposite edge;
determining an included angle formed by a straight line where each midpoint is located and a coordinate axis of the preset machine tool coordinate system;
and determining the degree of the included angle as the inclination of the workpiece to be processed in the preset machine tool coordinate system.
6. The method for automatically aligning a workpiece as set forth in claim 1, wherein after said step of rotating said workpiece to be machined by said inclination about its actual origin, said method further comprises:
and if the inclination of the rotated workpiece to be processed in the preset machine tool coordinate system is greater than a preset inclination threshold value, returning to the step of determining the actual coordinates of the dotted target acquisition point in the preset machine tool coordinate system based on the current workpiece coordinate system of the workpiece to be processed.
7. An automatic workpiece alignment apparatus, comprising:
the first determination module is used for determining the actual coordinates of the target acquisition points after dotting in a preset machine tool coordinate system based on the current workpiece coordinate system of the workpiece to be processed;
the second determination module is used for determining an actual origin of the workpiece to be machined based on the actual coordinates and determining the inclination of the workpiece to be machined in the preset machine tool coordinate system;
and the alignment module is used for rotating the workpiece to be machined around the actual origin point of the workpiece to be machined by the inclination, so that the workpiece to be machined is automatically aligned.
8. An automatic workpiece aligning apparatus, comprising: memory, a processor and an automatic workpiece aligning program stored on the memory and executable on the processor, the automatic workpiece aligning program being configured to carry out the steps of the automatic workpiece aligning method according to one of claims 1 to 6.
9. A storage medium, characterized in that the storage medium has stored thereon an automatic workpiece aligning program which, when executed by a processor, carries out the steps of the automatic workpiece aligning method according to one of claims 1 to 6.
10. A program product, being a computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, is adapted to carry out the steps of the method for automatic alignment of a workpiece according to any one of claims 1 to 6.
CN202210701984.0A 2022-06-21 2022-06-21 Method, device, equipment, storage medium and program product for automatically aligning workpiece Active CN114770219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210701984.0A CN114770219B (en) 2022-06-21 2022-06-21 Method, device, equipment, storage medium and program product for automatically aligning workpiece

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210701984.0A CN114770219B (en) 2022-06-21 2022-06-21 Method, device, equipment, storage medium and program product for automatically aligning workpiece

Publications (2)

Publication Number Publication Date
CN114770219A true CN114770219A (en) 2022-07-22
CN114770219B CN114770219B (en) 2022-09-20

Family

ID=82421007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210701984.0A Active CN114770219B (en) 2022-06-21 2022-06-21 Method, device, equipment, storage medium and program product for automatically aligning workpiece

Country Status (1)

Country Link
CN (1) CN114770219B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115582732A (en) * 2022-11-11 2023-01-10 歌尔股份有限公司 Automatic machining method of numerical control machine tool

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002346885A (en) * 2001-05-28 2002-12-04 Matsushita Electric Works Ltd Positioning method for machining
CN106181583A (en) * 2016-08-02 2016-12-07 南京工业大学 The five unrelated error detection methods in axle gear making machine position based on little cutting output test specimen
CN111581774A (en) * 2020-04-03 2020-08-25 中国航发哈尔滨东安发动机有限公司 Single machine automatic alignment and calculation-free processing method
CN112170992A (en) * 2020-10-12 2021-01-05 合肥福春机械有限公司 Visual positioning method of automatic plate tapping machine based on industrial camera
CN114029786A (en) * 2021-11-17 2022-02-11 成都四威高科技产业园有限公司 Automatic alignment method and system based on built-in measuring head workpiece
CN114102256A (en) * 2021-11-04 2022-03-01 清华大学 Machine tool rotating shaft geometric error identification method and device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002346885A (en) * 2001-05-28 2002-12-04 Matsushita Electric Works Ltd Positioning method for machining
CN106181583A (en) * 2016-08-02 2016-12-07 南京工业大学 The five unrelated error detection methods in axle gear making machine position based on little cutting output test specimen
CN111581774A (en) * 2020-04-03 2020-08-25 中国航发哈尔滨东安发动机有限公司 Single machine automatic alignment and calculation-free processing method
CN112170992A (en) * 2020-10-12 2021-01-05 合肥福春机械有限公司 Visual positioning method of automatic plate tapping machine based on industrial camera
CN114102256A (en) * 2021-11-04 2022-03-01 清华大学 Machine tool rotating shaft geometric error identification method and device and storage medium
CN114029786A (en) * 2021-11-17 2022-02-11 成都四威高科技产业园有限公司 Automatic alignment method and system based on built-in measuring head workpiece

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115582732A (en) * 2022-11-11 2023-01-10 歌尔股份有限公司 Automatic machining method of numerical control machine tool

Also Published As

Publication number Publication date
CN114770219B (en) 2022-09-20

Similar Documents

Publication Publication Date Title
CN111992911B (en) Visual positioning method based on paraxial visual structure galvanometer jigsaw processing
CN105619411B (en) A kind of six-shaft industrial robot palletizing method
CN110148187B (en) High-precision Hand-Eye calibration method and system for SCARA manipulator Eye-in-Hand
CN114770219B (en) Method, device, equipment, storage medium and program product for automatically aligning workpiece
CN103862326B (en) A kind of dual rotary workbench five-axis machine tool rotary cutter point of a knife control method
CN109358567B (en) Method for compensating and processing cutter path of numerical control machine tool
CN115079637A (en) Method, device and equipment for establishing workpiece coordinate system and storage medium
CN103646377A (en) Coordinate conversion method and device
CN111536876A (en) In-situ measurement method for sealing surface of three-eccentric center butterfly valve
CN112440018A (en) Welding system and welding method
CN111583222A (en) Test point automatic positioning method, copper thickness automatic detection method and system
CN107918354A (en) Presetting cutter method in a kind of numerically-controlled machine tool squareness head machine
CN108332642A (en) A kind of right-angle head accuracy checking method
CN111275662B (en) Workpiece positioning method, device, equipment and storage medium based on two-dimension code
CN115055856B (en) Teaching-free welding method, teaching-free welding device, teaching-free welding equipment and computer-readable storage medium
CN204479021U (en) A kind of calibrating device for robot vision calibration
CN106736241A (en) The method that side positional dissection is patrolled in realization
CN102680012A (en) System and method for automatic output of measuring information
CN113325430B (en) Method, device and equipment for measuring mounting precision of end effector and storage medium
CN114670192A (en) Calibration method and device for robot workpiece coordinate system, storage medium and terminal
CN112598645B (en) Contour detection method, apparatus, device and storage medium
US11077561B2 (en) Method and apparatus for selecting initial point for industrial robot commissioning
CN105759721A (en) Machining method of four-axis numerical control machine tool
CN115139153A (en) Workpiece built-in measuring method, device, equipment and storage medium
CN106847735B (en) A method of being accurately positioned sorting machine table core benchmark

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
GR01 Patent grant
GR01 Patent grant