CN112506135A - Method capable of quickly defining workpiece coordinates of randomly placed workpiece - Google Patents

Method capable of quickly defining workpiece coordinates of randomly placed workpiece Download PDF

Info

Publication number
CN112506135A
CN112506135A CN202011318214.5A CN202011318214A CN112506135A CN 112506135 A CN112506135 A CN 112506135A CN 202011318214 A CN202011318214 A CN 202011318214A CN 112506135 A CN112506135 A CN 112506135A
Authority
CN
China
Prior art keywords
workpiece
coordinates
reference hole
controller
origin
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
CN202011318214.5A
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.)
Wele Mechatronic Suzhou Co ltd
Original Assignee
Wele Mechatronic Suzhou 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 Wele Mechatronic Suzhou Co ltd filed Critical Wele Mechatronic Suzhou Co ltd
Priority to CN202011318214.5A priority Critical patent/CN112506135A/en
Publication of CN112506135A publication Critical patent/CN112506135A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • G05B19/408Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form characterised by data handling or data format, e.g. reading, buffering or conversion of data
    • G05B19/4086Coordinate conversions; Other special calculations
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/35Nc in input of data, input till input file format
    • G05B2219/35356Data handling

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Manufacturing & Machinery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Numerical Control (AREA)

Abstract

The invention relates to a method for quickly defining the coordinates of a workpiece on which the workpiece is placed, which comprises the following steps: step 1: setting a coordinate system of the workpiece, measuring position coordinates of any 3 points through a 3D measuring table, and calculating coordinate positions (x1, y1) of the reference hole 1, 2 coordinates (x2, y2) of the reference hole and 3 coordinates (x3, y3) of the reference hole in a mode of centering a circle center through the 3 points; step 2: calculating the inclination angle theta and the slope k of the workpiece, and step 3: calculating the origin position (x0, y0) of the inclined workpiece, and 4: placing the origin position (x0, y0) into the controller; and 5: setting an origin position (Z0) of a self-tool cutter as a Z coordinate to enter a controller; step 6: the processing is instructed by the controller. The invention can quickly find the original point of the workpiece and the inclination angle of the workpiece relative to the machine tool, thereby realizing the purpose of direct processing and effectively improving the working efficiency.

Description

Method capable of quickly defining workpiece coordinates of randomly placed workpiece
Technical Field
The invention belongs to the field of large-scale die machining, and particularly relates to a method for quickly defining workpiece coordinates of randomly placed workpieces.
Background
The large die (5t-15t) is placed on a machine tool worktable, a workpiece is inclined and not parallel to the X/Y axis of the machine tool in general, and manual beating correction is needed to enable the workpiece to be parallel to the machine tool axis.
The alignment of the workpiece in the large die (5T-15T) so that the reference edge of the workpiece is parallel to the X-axis or Y-axis is very time consuming and labor intensive, and is expected to take 1 hour. The positioning pin calibration also needs a large amount of time to calibrate the size of the positioning pin, the position of the positioning pin is small and not good, an operator needs to waste time and labor to align the positioning pin when hoisting a large-sized workpiece, and only coarse positioning, namely, the positioning precision is not high, and the workpiece cannot be machined without adjustment.
Disclosure of Invention
To solve the above technical problem, an object of the present invention is to provide a method for quickly defining coordinates of an arbitrarily placed workpiece.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for rapidly defining workpiece coordinates of an arbitrarily placed workpiece, comprising the steps of:
step 1: setting a coordinate system of a workpiece, setting the center of a reference hole, measuring the position coordinates of any 3 points on the inner wall of the hole through a 3D measuring table, calculating the coordinate position (x1, y1) of the reference hole 1 in a mode of 3-point circle centering, sequentially measuring the coordinates of three reference holes according to the mode of 3-point circle centering, storing the coordinates of a first reference hole (x1, y1), a second reference hole (x2, y 35 2) and a third reference hole (x3, y3) into a corresponding coordinate system, and storing the coordinates of the first reference hole (x1, y1), the second reference hole (x2, y 35 2) and the third reference hole (x;
step 2: after the reference hole is known in the step 1, the inclination angle theta of the workpiece, the slope k of the line connecting the reference hole 1 and the reference hole 2,
wherein, the formula of the inclination angle theta is as follows:
θ=arctan(y2-y1/x2-x1),
the slope k equation is as follows:
k=(y2-y1/x2-x1);
and step 3: calculating the origin position (x0, y0) of the inclined workpiece,
the formula is as follows:
x0=[k*x1+1/k*x3+y3-y1]/[k+1/k]
y0=k*[x0-x1]+y1;
and 4, step 4: executing a macro program to place the origin position (x0, y0) in the coordinate system of the controller;
and 5: self-aligning a tool, determining the origin of a Z axis, and inputting the origin into the coordinates of a controller;
step 6: and (4) according to the original point coordinates of the workpiece and the inclination angle of the workpiece measured in the steps 1 to 5, realizing coordinate system conversion through a controller instruction during processing, and realizing processing of the inclined workpiece.
Preferably, the system is a machine tool controller.
Preferably, in the method for quickly defining the coordinates of the workpiece on which the workpiece is arbitrarily placed, the macro variable of the system is a variable name in a controller of the machine tool and is a storage address in the controller, and a required value can be input into the variable.
By the scheme, the invention at least has the following advantages:
the invention can quickly find the central position of a workpiece which is randomly placed, does not need an operator to adjust the position of the workpiece, and utilizes the coordinate rotation function to set the program coordinate origin for machining the machine tool to the center of the workpiece and rotate the machining program coordinate to the inclination angle of the machined workpiece relative to the machine tool, thereby realizing the purpose of direct machining and effectively improving the efficiency of machining the workpiece.
The foregoing description is only an overview of the technical solutions of the present invention, and in order to make the technical solutions of the present invention more clearly understood and to implement them in accordance with the contents of the description, the following detailed description is given with reference to the preferred embodiments of the present invention and the accompanying drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
FIG. 1 is a schematic of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention more clearly apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
It will be understood that when an element is referred to as being "secured to" or "disposed on" another element, it can be directly on the other element or be indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or be indirectly connected to the other element.
It will be understood that the terms "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like, as used herein, refer to an orientation or positional relationship indicated in the drawings that is solely for the purpose of facilitating the description and simplifying the description, and do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and is therefore not to be construed as limiting the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
Examples
As shown in fig. 1, a method for quickly defining the coordinates of an arbitrarily placed workpiece includes the following steps:
step 1: setting a coordinate system of a workpiece, setting the center of a reference hole, measuring the position coordinates of any 3 points on the inner wall of the hole through a 3D measuring table, calculating the coordinate position (x1, y1) of the reference hole 1 in a mode of 3-point circle centering, sequentially measuring the coordinates of three reference holes according to the mode of 3-point circle centering, storing the coordinates of a first reference hole (x1, y1), a second reference hole (x2, y 35 2) and a third reference hole (x3, y3) into a corresponding coordinate system, and storing the coordinates of the first reference hole (x1, y1), the second reference hole (x2, y 35 2) and the third reference hole (x;
step 2: after the reference hole is known in the step 1, the inclination angle theta of the workpiece, the slope k of the line connecting the reference hole 1 and the reference hole 2,
wherein, the formula of the inclination angle theta is as follows:
θ=arctan(y2-y1/x2-x1),
the slope k equation is as follows:
k=(y2-y1/x2-x1);
and step 3: calculating the origin position (x0, y0) of the inclined workpiece,
the formula is as follows:
x0=[k*x1+1/k*x3+y3-y1]/[k+1/k]
y0=k*[x0-x1]+y1;
and 4, step 4: placing the origin position (x0, y0) in the coordinate system of the controller;
and 5: self-aligning a tool, determining the origin of a Z axis, and inputting the origin into the coordinates of a controller;
step 6: and (4) according to the original point coordinates of the workpiece and the inclination angle of the workpiece measured in the steps 1 to 5, realizing coordinate system conversion through a controller instruction during processing, and realizing processing of the inclined workpiece.
The system in the invention is a machine tool controller.
The macro variable of the system is a variable name in the machine tool controller, is a storage address in the controller, and can input a required value into the variable.
In the above step 3, the origin position (x0, y0) of the tilted workpiece is calculated,
the formula is as follows:
x0=[k*x1+1/k*x3+y3-y1]/[k+1/k]
y0=k*[x0-x1]+y1;
the macro program is written as follows:
O8888
#1=#5241(G55X)
#2=#5242(G55Y)
#3=#5261(G56X)
#4=#5262(G56Y)
#5=#5281(G57X)
#6=#5282(G57Y)
M99
the first coordinate (x1, y1) of the reference hole is stored in G55, the second coordinate (x2, y2) of the reference hole is stored in G56, and the third coordinate (x3, y3) of the reference hole is stored in G57 according to the above-mentioned program, so that the operator can write part of the calculation process into the controller through the macro program, and the user only needs to execute M98P8888, and the above-mentioned program is an operation method known to those skilled in the art, which is described herein in detail.
The position of the workpiece on the machine tool, including the processing original point of the workpiece and the inclination angle formed by the reference edge of the workpiece and the machine tool, is calculated through the reference hole position of the large-sized processing workpiece, so that the original point of the processing program can be positioned through the calculated processing original point. Because the machine tool is fixed, the situation that the reference edge of the workpiece is inconsistent with the machine tool can occur when the workpiece is placed, if the workpiece is directly machined, the machined surface of the machined workpiece is inclined relative to the workpiece, the workpiece is scrapped, and the coordinate system of a machining program of the machine tool is inclined by the same angle through a coordinate rotation function at the place to solve the problem that the workpiece is placed and the coordinate system of the machine tool are inconsistent.
The invention provides a calculation mode for calculating the original point and the placing position of a workpiece, and the purpose of processing without correcting a reference can be realized by inputting the calculated value into the corresponding position of a machine tool controller and rotating the coordinate system of a processing program to the coordinate system of the current placing position of the workpiece through the coordinate rotation function of the machine tool.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, it should be noted that, for those skilled in the art, many modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (3)

1. A method for rapidly defining workpiece coordinates of an arbitrarily placed workpiece, comprising the steps of:
step 1: setting a coordinate system of a workpiece, setting the center of a reference hole, measuring the position coordinates of any 3 points on the inner wall of the hole through a 3D measuring table, calculating the coordinate position (x1, y1) of the reference hole 1 in a mode of 3-point circle centering, sequentially measuring the coordinates of three reference holes according to the mode of 3-point circle centering, storing the coordinates of a first reference hole (x1, y1), a second reference hole (x2, y 35 2) and a third reference hole (x3, y3) into a corresponding coordinate system, and storing the coordinates of the first reference hole (x1, y1), the second reference hole (x2, y 35 2) and the third reference hole (x;
step 2: after the reference hole is known in the step 1, the inclination angle theta of the workpiece, the slope k of the line connecting the reference hole 1 and the reference hole 2,
wherein, the formula of the inclination angle theta is as follows:
θ=arctan(y2-y1/x2-x1),
the slope k equation is as follows:
k=(y2-y1/x2-x1);
and step 3: calculating the origin position (x0, y0) of the inclined workpiece,
the formula is as follows:
x0=[k*x1+1/k*x3+y3-y1]/[k+1/k]
y0=k*[x0-x1]+y1;
and 4, step 4: executing the macro program to place the origin position (x0, y0) in the coordinate system of the controller;
and 5: self-aligning a tool, determining the origin of a Z axis, and inputting the origin into the coordinates of a controller;
step 6: and (4) measuring the coordinates of the origin of the workpiece and the inclination angle of the workpiece according to the steps 1 to 5, and realizing coordinate system conversion and inclined workpiece machining through a system instruction during machining.
2. A method for rapidly defining the coordinates of an arbitrarily placed workpiece according to claim 1, characterized in that: the system is a machine tool controller.
3. A method for rapidly defining the coordinates of an arbitrarily placed workpiece according to claim 1, characterized in that: the macro-variable of the system is a variable name in the machine tool controller, and is a storage address in the controller, and the required value can be input into the variable.
CN202011318214.5A 2020-11-23 2020-11-23 Method capable of quickly defining workpiece coordinates of randomly placed workpiece Pending CN112506135A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011318214.5A CN112506135A (en) 2020-11-23 2020-11-23 Method capable of quickly defining workpiece coordinates of randomly placed workpiece

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011318214.5A CN112506135A (en) 2020-11-23 2020-11-23 Method capable of quickly defining workpiece coordinates of randomly placed workpiece

Publications (1)

Publication Number Publication Date
CN112506135A true CN112506135A (en) 2021-03-16

Family

ID=74959107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011318214.5A Pending CN112506135A (en) 2020-11-23 2020-11-23 Method capable of quickly defining workpiece coordinates of randomly placed workpiece

Country Status (1)

Country Link
CN (1) CN112506135A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115194555A (en) * 2022-07-18 2022-10-18 成都星麟数控科技有限公司 Method for carving along with randomly placed workpiece directions

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231066A (en) * 2011-03-01 2011-11-02 上海维宏电子科技有限公司 Method for realizing processed coordinate transition in numerical control system
CN104741935A (en) * 2015-02-06 2015-07-01 安庆中船动力配套有限公司 Universal workpiece coordinate system conversion method for rotating table of numerically-controlled machine tool
CN105598742A (en) * 2016-03-07 2016-05-25 潍柴重机股份有限公司 Method for setting machining original points for workpieces
CN106346315A (en) * 2015-07-14 2017-01-25 发那科株式会社 Machine tool control system capable of obtaining workpiece origin and workpiece origin setting method
CN109884986A (en) * 2019-02-14 2019-06-14 镇江市高等专科学校 A kind of programmed method that numerical control processing macroprogram quickly positions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231066A (en) * 2011-03-01 2011-11-02 上海维宏电子科技有限公司 Method for realizing processed coordinate transition in numerical control system
CN104741935A (en) * 2015-02-06 2015-07-01 安庆中船动力配套有限公司 Universal workpiece coordinate system conversion method for rotating table of numerically-controlled machine tool
CN106346315A (en) * 2015-07-14 2017-01-25 发那科株式会社 Machine tool control system capable of obtaining workpiece origin and workpiece origin setting method
CN105598742A (en) * 2016-03-07 2016-05-25 潍柴重机股份有限公司 Method for setting machining original points for workpieces
CN109884986A (en) * 2019-02-14 2019-06-14 镇江市高等专科学校 A kind of programmed method that numerical control processing macroprogram quickly positions

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115194555A (en) * 2022-07-18 2022-10-18 成都星麟数控科技有限公司 Method for carving along with randomly placed workpiece directions

Similar Documents

Publication Publication Date Title
US20210197396A1 (en) Method for measuring pose of robotic end tool
US8229594B2 (en) Automatic finishing machine and control method thereof
CN108655820A (en) A kind of scaling method of digital control processing basis coordinates system
CN110064804B (en) Machining method of small hole with spatial angle of aviation part
CN112506135A (en) Method capable of quickly defining workpiece coordinates of randomly placed workpiece
JPS6151203A (en) Numerical control system
CN110009685A (en) A kind of laser camera hand and eye calibrating method increasing material applied to electric arc
CN108817571A (en) A kind of intelligent positioning system and its implementation of electric discharge machine
CN106054814A (en) Image grayscale-based computer aided machining method
CN107918354A (en) Presetting cutter method in a kind of numerically-controlled machine tool squareness head machine
JP6480894B2 (en) Wire electric discharge machine and wire electric discharge machining method
CN112276571B (en) Inclined hole machining method
CN108747041A (en) A kind of N Reference Alignment method of dimension laser cutting plate
CN112578730A (en) Method for quickly converting reference coordinates in self-adaptive machining
JP2022030588A (en) Information processing method, information processing system, and program
CN104384360A (en) Machining method by using wedge reference forming any angle with mold base
CN107272595B (en) Low-speed diesel engine base Hough method for processing surface
CN114670192A (en) Calibration method and device for robot workpiece coordinate system, storage medium and terminal
CN112045443A (en) Machining method for eccentric clamping workpiece of four-axis machine tool
CN213858383U (en) Numerical control machining center coordinate system calibration tool
CN104646941A (en) Processing method of cylinder chamber of large turbine
CN113814795B (en) Workpiece processing data measuring, correcting and checking method and system based on dual-channel on-machine measurement
CN116175275B (en) Method, equipment and system for adjusting position degree of part
CN217572010U (en) Sample plate tool and numerical control cutting system for preparing end pressing plate supporting legs
CN103846468A (en) Boring machine three-dimensional hole processing method

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
CB03 Change of inventor or designer information

Inventor after: Wang Zhonglin

Inventor after: Cao Minjian

Inventor before: Wang Zhonglin

Inventor before: Cao Minjian

CB03 Change of inventor or designer information
RJ01 Rejection of invention patent application after publication

Application publication date: 20210316

RJ01 Rejection of invention patent application after publication