CN115194555A - Method for carving along with randomly placed workpiece directions - Google Patents

Method for carving along with randomly placed workpiece directions Download PDF

Info

Publication number
CN115194555A
CN115194555A CN202210840894.XA CN202210840894A CN115194555A CN 115194555 A CN115194555 A CN 115194555A CN 202210840894 A CN202210840894 A CN 202210840894A CN 115194555 A CN115194555 A CN 115194555A
Authority
CN
China
Prior art keywords
workpiece
coordinate system
axis
real
processing data
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
CN202210840894.XA
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.)
Chengdu Xinglin Cnc Technology Co ltd
Original Assignee
Chengdu Xinglin Cnc 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 Chengdu Xinglin Cnc Technology Co ltd filed Critical Chengdu Xinglin Cnc Technology Co ltd
Priority to CN202210840894.XA priority Critical patent/CN115194555A/en
Publication of CN115194555A publication Critical patent/CN115194555A/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
    • B23Q15/00Automatic control or regulation of feed movement, cutting velocity or position of tool or work
    • B23Q15/007Automatic control or regulation of feed movement, cutting velocity or position of tool or work while the tool acts upon the workpiece
    • B23Q15/14Control or regulation of the orientation of the tool with respect to the work

Abstract

The invention belongs to the technical field of machining processes, and relates to a method for carving along with any position of a placed workpiece, which comprises the following steps: determining a real-time coordinate system of the workpiece according to the position of the workpiece; determining an inclination angle between a real-time coordinate system and a preset coordinate system of the workpiece; mapping the processing data to a real-time coordinate system of the workpiece in a one-to-one correspondence manner to form new processing data; regenerating the original processing technology file based on the preset coordinate system by using the new processing data to obtain a new processing technology file; and engraving the workpiece by using the new machining process file. The invention can finish the processing of workpieces placed at any angle, does not require the workpieces to be placed correctly for the engraving processing of various heavy workpieces, reduces the workload of moving heavy objects back and forth, saves the time for adjusting the workpieces, reduces the workload of workers, improves the working efficiency, reduces the production cost and the safety risk, has strong practicability, and is worthy of popularization.

Description

Method for carving along with randomly placed workpiece directions
Technical Field
The invention belongs to the technical field of machining processes, and particularly relates to a method for carving along with randomly placed workpiece positions.
Background
In the existing numerical control engraving process, a workpiece needs to be placed on a fixed workbench, and a certain point on the workpiece is set as an origin (starting point) to process the workpiece. Since it is a point, there is no way to determine the orientation of the workpiece, which requires that the workpiece be oriented along the axes of the engraver as shown in fig. 2, the orientation essentially being adjusted so that the axes of the workpiece to be processed and the axes of the engraver coincide, so that the desired result is obtained during the engraving process.
In conventional use, the method for adjusting the placement of the workpiece according to the coordinate axes of the engraving machine shown in fig. 2 includes the following steps:
1. drawing a horizontal line or a vertical line on the workbench by using a cutter as a reference datum, and adjusting the position of the workpiece for multiple times until the workpiece is placed along the line to be correct;
2. walking along the edge of the workpiece by using a cutter or red light to see whether the workpiece is aligned, if not, adjusting the placement of the workpiece, and repeating the steps until the walking route of the machine head is aligned with the edge of the workpiece;
3. fixing a standard guiding rule on the workbench, and moving and adjusting a workpiece to be close to the guiding rule;
4. the workbench is made to be independently rotatable, the workbench is rotated to drive the workpiece to rotate, and the workpiece is aligned by matching with the red light.
According to the habit, the transverse, horizontal and vertical placement is most convenient. The workpiece is easy to put on the upside down for small and light workpieces, and the workpiece is not easy to put on the upside down for large and heavy workpieces. For the heavy workpiece randomly placed as shown in fig. 3, a plurality of people are required to lift and use a pry bar during adjustment, even hoisting equipment is required, so that the operation is time-consuming and labor-consuming, the labor capacity of workers is increased, the safety risk in the moving process is increased, multiple adjustments are required in the process of righting the workpiece, the process is complex, the operation is complicated, and the efficiency is low.
Disclosure of Invention
In view of the above, the present invention provides a method for engraving along with any orientation of a workpiece, so as to solve the above mentioned technical problems.
The technical scheme of the invention is as follows:
a method for carving along with randomly placed workpiece orientations comprises the following steps:
determining a real-time coordinate system of the workpiece according to the position of the workpiece;
determining an inclination angle between a real-time coordinate system and a preset coordinate system of the workpiece;
mapping the processing data to a real-time coordinate system of the workpiece in a one-to-one correspondence manner to form new processing data;
regenerating the original processing technology file based on the preset coordinate system by using the new processing data to obtain a new processing technology file;
and engraving the workpiece by using the new machining process file.
Preferably, determining the real-time coordinate system of the workpiece based on the position of the workpiece comprises the steps of:
determining a zero point of a workpiece coordinate system, the direction of an X axis, the direction of a Y axis and the direction of a Z axis according to actual requirements;
and moving a cutter of the machine tool to the zero point of the workpiece coordinate system, and recording the real-time coordinate zero point in a working coordinate system on the machine tool.
Preferably, the determining the inclination angle between the real-time coordinate system and the preset coordinate system of the workpiece comprises the following steps:
taking one side edge of the workpiece as a reference, wherein the side edge is parallel to an X axis or a Y axis of a real-time coordinate system of the workpiece;
moving the cutter to one end point of the side edge, and recording the current two-dimensional logic position of the cutter as P0 (X0, Y0);
moving the cutter to the other end point of the side edge, and recording the current two-dimensional logic position of the cutter as P1 (X1, Y1);
calculating the inclination angle A of the workpiece by using the formula (1) or the formula (2),
Figure BDA0003750999240000031
Figure BDA0003750999240000032
where a is the tilt angle of the workpiece, Y0 is the Y-axis coordinate of the point P0, X0 is the X-axis coordinate of the point P0, Y1 is the Y-axis coordinate of the point P1, and X1 is the X-axis coordinate of the point P1.
Preferably, the machining data are mapped to the real-time coordinate system of the workpiece in a one-to-one correspondence manner by using the following formula (3),
Figure BDA0003750999240000033
wherein, A is the inclination angle of the workpiece, X is the X-axis coordinate of the processing data before mapping, Y is the Y-axis coordinate of the processing data before mapping, Z is the Z-axis coordinate of the processing data before mapping, X ' is the X-axis coordinate of the new processing data formed after mapping of X, Y ' is the Y-axis coordinate of the new processing data formed after mapping of Y, Z ' is the Z-axis coordinate of the new processing data formed after mapping of Z, dx is the deviation value of the zero point of the workpiece preset coordinate system and the real-time coordinate system on the X axis, dy is the deviation value of the zero point of the workpiece preset coordinate system and the real-time coordinate system on the Y axis, and dz is the deviation value of the zero point of the workpiece preset coordinate system and the real-time coordinate system on the Z axis.
Compared with the prior art, the method for carving along with the randomly placed workpiece orientation provided by the invention has the advantages that the machining path of the machining file is adjusted, so that the machining path is adaptive to the machining workpiece on the premise of not changing the orientation of the workpiece to be machined, the key of the adjustment is that the direction and the position of the workpiece to be machined are measured by a simple method according to the existing conditions, and the machining file is mapped to a new position through rotation and translation according to the measured direction and position.
The invention can complete the processing of workpieces placed at any angle, does not require the workpieces to be placed correctly for the engraving processing of various heavy workpieces, reduces the workload of moving the heavy workpieces back and forth, saves the time for adjusting the workpieces, reduces the workload of workers, improves the working efficiency, reduces the production cost and the safety risk, has strong practicability and is worthy of popularization.
Drawings
In order to more clearly illustrate the embodiments of the present invention and the design thereof, the drawings required for the embodiments will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained by those skilled in the art without inventive effort.
FIG. 1 is a flow chart of a method of the present invention;
FIG. 2 shows the machined workpiece and the machined path coordinate axes in the same direction in the present invention;
FIG. 3 shows the inconsistency between the coordinate axes of the workpiece to be machined and the coordinate axes of the engraving machine in the present invention;
fig. 4 shows a corrected new processing document path according to the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood and capable of being implemented by those skilled in the art, the present invention is described in detail with reference to fig. 1 to 4 and specific embodiments. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
Example 1
A method for carving along with any orientation of a placed workpiece, as shown in fig. 1, comprising the following steps:
determining a real-time coordinate system of the workpiece according to the position of the workpiece;
determining an inclination angle between a real-time coordinate system and a preset coordinate system of the workpiece;
mapping the processing data to a real-time coordinate system of the workpiece in a one-to-one correspondence manner to form new processing data;
regenerating the original processing technology file based on the preset coordinate system by using the new processing data to obtain a new processing technology file;
and engraving the workpiece by using the new machining process file.
Further, determining the real-time coordinate system of the workpiece based on the position of the workpiece comprises the steps of:
determining a zero point of a workpiece coordinate system, the direction of an X axis, the direction of a Y axis and the direction of a Z axis according to actual requirements;
moving the tool of the machine tool to the zero point of the workpiece coordinate system, and recording the real-time coordinate zero point in the working coordinate system on the machine tool.
Further, determining the inclination angle between the real-time coordinate system and the preset coordinate system of the workpiece comprises the following steps:
taking one side edge of the workpiece as a reference, wherein the side edge is parallel to an X axis or a Y axis of a real-time coordinate system of the workpiece;
moving the cutter to one end point of the side edge, and recording the current two-dimensional logic position of the cutter as P0 (X0, Y0);
moving the cutter to the other end point of the side edge, and recording the current two-dimensional logic position of the cutter as P1 (X1, Y1);
calculating the inclination angle A of the workpiece by using the formula (1) or the formula (2),
Figure BDA0003750999240000051
Figure BDA0003750999240000052
where A is the tilt angle of the workpiece, Y0 is the Y-axis coordinate of the point P0, X0 is the X-axis coordinate of the point P0, Y1 is the Y-axis coordinate of the point P1, and X1 is the X-axis coordinate of the point P1.
Furthermore, the processing data are mapped to the real-time coordinate system of the workpiece in a one-to-one correspondence manner by using the following formula (3),
Figure BDA0003750999240000053
wherein, A is the inclination angle of the workpiece, X is the X-axis coordinate of the processing data before mapping, Y is the Y-axis coordinate of the processing data before mapping, Z is the Z-axis coordinate of the processing data before mapping, X ' is the X-axis coordinate of the new processing data formed after mapping of X, Y ' is the Y-axis coordinate of the new processing data formed after mapping of Y, Z ' is the Z-axis coordinate of the new processing data formed after mapping of Z, dx is the deviation value of the zero point of the workpiece preset coordinate system and the real-time coordinate system on the X axis, dy is the deviation value of the zero point of the workpiece preset coordinate system and the real-time coordinate system on the Y axis, and dz is the deviation value of the zero point of the workpiece preset coordinate system and the real-time coordinate system on the Z axis.
The following description is given with reference to specific examples:
as shown in fig. 2 below, in the original processing path, the X-axis direction in the path is generally parallel to the transverse axis direction of the engraver, and the Y-axis direction in the path is generally parallel to the longitudinal axis of the engraver; therefore, when the XYZ coordinate axis direction of the workpiece is consistent with the coordinate axis direction of the engraving machine during normal processing, the engraving can be normally finished; the schematic diagram of the final engraving is shown in fig. 2:
when the coordinate axis of the processed workpiece is inconsistent with the coordinate axis of the engraving machine, the engraving effect is as shown in fig. 3, at the moment, the coordinate of the processing path file and the processed workpiece have an inclination angle, and part of the processing path even exceeds the processed plate; this does not correspond to the effect expected by the customer.
The solution idea is as follows:
the essence of the method is to adjust the processing path of the processing file, so that the processing path is adapted to the processing workpiece on the premise of not changing the orientation of the processing workpiece, and the key of the adjustment is to measure the direction and position of the processing workpiece by a simple method according to the existing conditions, and map the processing file to a new position by rotating and translating according to the measured direction and position.
The invention provides a method for carving along with the position of a randomly placed workpiece, which realizes the shape-following carving of the randomly placed workpiece according to the following steps:
and moving a cutter of the machine tool to the zero point of the coordinate of the workpiece according to the position of the workpiece placed at will, recording the zero point of the real-time coordinate in a working coordinate system on the machine tool, and determining the zero point of the real-time coordinate as the real-time coordinate system of the workpiece.
Moving the tool to a certain point P0 shown in FIG. 4 by taking one side edge of the workpiece as a reference, wherein the point P0 is generally positioned at the lower left corner of the workpiece and is used as a reference point, and recording the current two-dimensional logic position of the tool as P0 (X0, Y0);
and moving the position of the cutter to another position P1, wherein the P1 is generally positioned at the upper left corner or the lower right corner of the workpiece, recording the current two-dimensional logic position of the cutter as P1 (X1, Y1), and calculating the inclination between P0 and P1, namely the inclination angle of the workpiece.
The inclination angle A of the workpiece can be obtained according to the position difference between P0 and P1,
when the vector direction formed by the P0 to the P1 is consistent with the Y-axis direction of the real-time coordinate system of the workpiece, the plate inclination angle A satisfies the following formula:
Figure BDA0003750999240000071
when the vector direction formed by P0 to P1 is consistent with the X-axis direction of the real-time coordinate system of the workpiece, the inclination angle A of the plate satisfies the following formula:
Figure BDA0003750999240000072
where A is the tilt angle of the workpiece, Y0 is the Y-axis coordinate of the point P0, X0 is the X-axis coordinate of the point P0, Y1 is the Y-axis coordinate of the point P1, and X1 is the X-axis coordinate of the point P1.
The processing data are mapped to a real-time coordinate system of the workpiece in a one-to-one correspondence manner by using the following formula (3) to form new processing data,
Figure BDA0003750999240000073
wherein, A is the inclination angle of the workpiece, X is the X-axis coordinate of the processing data before mapping, Y is the Y-axis coordinate of the processing data before mapping, Z is the Z-axis coordinate of the processing data before mapping, X ' is the X-axis coordinate of the new processing data formed after mapping of X, Y ' is the Y-axis coordinate of the new processing data formed after mapping of Y, Z ' is the Z-axis coordinate of the new processing data formed after mapping of Z, dx is the deviation value of the zero point of the workpiece preset coordinate system and the real-time coordinate system on the X axis, dy is the deviation value of the zero point of the workpiece preset coordinate system and the real-time coordinate system on the Y axis, and dz is the deviation value of the zero point of the workpiece preset coordinate system and the real-time coordinate system on the Z axis.
And regenerating the original processing file based on the preset coordinate system according to the calculated new processing data to obtain a new processing file, wherein the original processing file is generally a vector graphic file or a G code file, but is not limited to the vector graphic file or the G code file, and finally, the new processing file is utilized to carve the workpiece.
Compared with the prior art, the method for carving along with the randomly placed workpiece positions provided by the invention has the advantages that the machining path of the machining file is adjusted, so that the machining path is adaptive to the machined workpiece on the premise of not changing the position of the workpiece to be machined, the key of the adjustment is that the direction and the position of the workpiece to be machined are measured by a simple method according to the existing conditions, and the machining file is mapped to a new position through rotation and translation according to the measured direction and position.
The invention can finish the processing of workpieces placed at any angle, does not require the workpieces to be placed correctly for the engraving processing of various heavy workpieces, reduces the workload of moving heavy objects back and forth, saves the time for adjusting the workpieces, reduces the workload of workers, improves the working efficiency, reduces the production cost and the safety risk, has strong practicability, and is worthy of popularization.
The above disclosure is only for the preferred embodiments of the present invention, but the embodiments of the present invention are not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.

Claims (4)

1. A method for carving along with randomly placed workpiece orientations is characterized by comprising the following steps:
determining a real-time coordinate system of the workpiece according to the position of the workpiece;
determining an inclination angle between a real-time coordinate system and a preset coordinate system of the workpiece;
mapping the processing data to a real-time coordinate system of the workpiece in a one-to-one correspondence manner to form new processing data;
regenerating the original processing technology file based on the preset coordinate system by using the new processing data to obtain a new processing technology file;
and engraving the workpiece by using the new machining process file.
2. The method of claim 1, wherein determining the real-time coordinate system of the workpiece based on the position of the workpiece comprises the steps of:
determining a zero point of a workpiece coordinate system, the direction of an X axis, the direction of a Y axis and the direction of a Z axis according to actual requirements;
moving the tool of the machine tool to the zero point of the workpiece coordinate system, and recording the real-time coordinate zero point in the working coordinate system on the machine tool.
3. The method of claim 1, wherein determining the tilt angle between the real-time coordinate system and the predetermined coordinate system of the workpiece comprises the steps of:
taking one side edge of the workpiece as a reference, wherein the side edge is parallel to an X axis or a Y axis of a real-time coordinate system of the workpiece;
moving the cutter to one endpoint of the side edge, and recording the current two-dimensional logic position of the cutter as P0 (X0, Y0);
moving the cutter to the other end point of the side edge, and recording the current two-dimensional logic position of the cutter as P1 (X1, Y1);
calculating the inclination angle A of the workpiece by using the formula (1) or the formula (2),
Figure FDA0003750999230000021
Figure FDA0003750999230000022
where A is the tilt angle of the workpiece, Y0 is the Y-axis coordinate of the point P0, X0 is the X-axis coordinate of the point P0, Y1 is the Y-axis coordinate of the point P1, and X1 is the X-axis coordinate of the point P1.
4. The method for engraving according to the orientation of the arbitrarily placed workpiece as claimed in claim 1, wherein the machining data is mapped to the real-time coordinate system of the workpiece in a one-to-one correspondence by using the following equation (3),
Figure FDA0003750999230000023
wherein, A is the inclination angle of the workpiece, X is the X-axis coordinate of the processing data before mapping, Y is the Y-axis coordinate of the processing data before mapping, Z is the Z-axis coordinate of the processing data before mapping, X ' is the X-axis coordinate of the new processing data formed after mapping of X, Y ' is the Y-axis coordinate of the new processing data formed after mapping of Y, Z ' is the Z-axis coordinate of the new processing data formed after mapping of Z, dx is the deviation value of the zero point of the workpiece preset coordinate system and the real-time coordinate system on the X axis, dy is the deviation value of the zero point of the workpiece preset coordinate system and the real-time coordinate system on the Y axis, and dz is the deviation value of the zero point of the workpiece preset coordinate system and the real-time coordinate system on the Z axis.
CN202210840894.XA 2022-07-18 2022-07-18 Method for carving along with randomly placed workpiece directions Pending CN115194555A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210840894.XA CN115194555A (en) 2022-07-18 2022-07-18 Method for carving along with randomly placed workpiece directions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210840894.XA CN115194555A (en) 2022-07-18 2022-07-18 Method for carving along with randomly placed workpiece directions

Publications (1)

Publication Number Publication Date
CN115194555A true CN115194555A (en) 2022-10-18

Family

ID=83581204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210840894.XA Pending CN115194555A (en) 2022-07-18 2022-07-18 Method for carving along with randomly placed workpiece directions

Country Status (1)

Country Link
CN (1) CN115194555A (en)

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
CN105302072A (en) * 2015-10-29 2016-02-03 沈阳黎明航空发动机(集团)有限责任公司 Numerical control machine tool processing method capable of eliminating height position difference
CN105373074A (en) * 2015-12-04 2016-03-02 哈尔滨汽轮机厂有限责任公司 Steam turbine blade processing method based on molded line adjustment
CN112506135A (en) * 2020-11-23 2021-03-16 崴立机电(苏州)有限公司 Method capable of quickly defining workpiece coordinates of randomly placed workpiece
CN113792361A (en) * 2021-09-17 2021-12-14 合肥艾克斯特智能科技有限公司 Part marking method and device based on DXF file and storable medium

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
CN105302072A (en) * 2015-10-29 2016-02-03 沈阳黎明航空发动机(集团)有限责任公司 Numerical control machine tool processing method capable of eliminating height position difference
CN105373074A (en) * 2015-12-04 2016-03-02 哈尔滨汽轮机厂有限责任公司 Steam turbine blade processing method based on molded line adjustment
CN112506135A (en) * 2020-11-23 2021-03-16 崴立机电(苏州)有限公司 Method capable of quickly defining workpiece coordinates of randomly placed workpiece
CN113792361A (en) * 2021-09-17 2021-12-14 合肥艾克斯特智能科技有限公司 Part marking method and device based on DXF file and storable medium

Similar Documents

Publication Publication Date Title
CN110434671B (en) Cast member surface machining track calibration method based on characteristic measurement
US4789931A (en) System for automatically generating tool path data for automatic machining center
CN102319921B (en) Hierarchical machining method of tiltable main shaft numerical control milling machine
US5282143A (en) Method and system for machining a sculptured surface
GB1220655A (en) Program controlled apparatus
US7070368B2 (en) Method for setting a machining feed rate and a machine tool using the same
KR102445605B1 (en) Track calculation program, machining equipment, track calculation method, tools and workpieces
Lee Mathematical modelling using different endmills and tool placement problems for 4-and 5-axis NC complex surface machining
JPS6336524B2 (en)
CN102608952A (en) Method of smoothening five-axis-linkage machine tool machining path by using ball-end cutter
CN106054814B (en) Computer aided building method based on image grayscale
CN103926873A (en) Method for eliminating five-axis singular problem in path planning stage
CN110928234A (en) Use method of universal angle milling head
CN107942942B (en) Inclined coordinate system establishing method applied to intersected inclined planes of machine tool equipment
CN115194555A (en) Method for carving along with randomly placed workpiece directions
JP3121878B2 (en) Numerically controlled method for machining workpieces
CN112222497B (en) Method for processing large conical adapter space curved surface on three-axis linkage milling machine
CN102350522B (en) Processing method of numerical control milling machine with tiltable main shaft
CN105759717A (en) Cutter path overcut prevention method used for five-axis numerical control processing
CN102274991A (en) Drilling processing method for numerically-controlled milling machine with tiltable spindle
CN113649668B (en) Workpiece template point cloud generation method and device, computer and storage medium
CN107097106B (en) A kind of ball end mill rake face processing algorithm
CN107861467A (en) The axle dead axle of endless knife four processing cutter spacing determines method, apparatus and electronic equipment
CN107272595A (en) Low-speed diesel engine support Hough method for processing surface
CN107505916B (en) Workpiece bevel edge machining control method for effectively avoiding interference in numerical control machining system

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