CN116500972A - Numerical control machining simulation method and medium based on projection - Google Patents
Numerical control machining simulation method and medium based on projection Download PDFInfo
- Publication number
- CN116500972A CN116500972A CN202310500049.2A CN202310500049A CN116500972A CN 116500972 A CN116500972 A CN 116500972A CN 202310500049 A CN202310500049 A CN 202310500049A CN 116500972 A CN116500972 A CN 116500972A
- Authority
- CN
- China
- Prior art keywords
- machining
- numerical control
- view
- characteristic information
- projection
- 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
Links
- 238000003754 machining Methods 0.000 title claims abstract description 93
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000004088 simulation Methods 0.000 title claims abstract description 40
- 238000003801 milling Methods 0.000 claims description 18
- 230000007704 transition Effects 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/18—Numerical 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/406—Numerical 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 monitoring or safety
- G05B19/4069—Simulating machining process on screen
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/32—Operator till task planning
- G05B2219/32342—Real time simulation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
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 discloses a numerical control machining simulation method and medium based on projection, wherein the method comprises the following steps: importing a three-dimensional model of a workpiece to be processed; obtaining a projection view of the three-dimensional model, the projection view including a front view, a rear view, a left view, a right view, a top view, and a bottom view; acquiring surface machining characteristic information and depth section machining characteristic information of a workpiece to be machined based on a projection view; determining a region to be processed according to the surface processing characteristic information and the depth section processing characteristic information; generating a cutter contact track according to the depth section processing characteristic information and the region to be processed; and generating a numerical control machining track based on the tool contact track, and performing simulation. According to the method, the region to be processed is determined based on the projection six views of the three-dimensional model, the processing track of the cutter is generated, and the processing region with higher precision can be obtained; and the processing track is directly generated from the three-dimensional model, so that the three-dimensional part is not required to be converted into a two-dimensional drawing and then the track processing design is carried out, and the processing efficiency of the workpiece is greatly improved.
Description
Technical Field
The invention belongs to the technical field of numerical control machining, and particularly relates to a projection-based numerical control machining simulation method and medium.
Background
The traditional numerical control track generation is mainly realized by manually analyzing a two-dimensional part engineering drawing or a three-dimensional part model, and the processing track and the G code are designed according to the part engineering drawing or the three-dimensional model.
The patent processing track generating method and the corresponding device (application number is CN 201711382957.7) apply the projection technology to the projection of a cutter to the surface of a workpiece, discretize the surface of the workpiece to be processed into a triangular plate model according to a three-dimensional model of the workpiece to be processed, convert a curved surface into a polyhedral discrete plane, determine a projection point with the minimum projection distance of the cutter as a cutter contact point corresponding to a driving point, determine the projection point and the projection distance of the cutter by calculating the distance from the cutter contact point to the workpiece, and generate the processing track of the surface of the workpiece to be processed. Although the surface of the workpiece to be processed is discretized into a triangular piece model, the discretization results in an error between the distance of the triangular piece model to the tool and the distance of the workpiece to the tool in practice being unavoidable.
Disclosure of Invention
In order to overcome the technical defects, the invention provides a numerical control machining simulation method based on projection, so as to obtain a machining area with higher precision.
In order to solve the problems, the invention discloses the following technical scheme:
a numerical control machining simulation method based on projection comprises the following steps:
importing a three-dimensional model of a workpiece to be processed;
obtaining a projection view of the three-dimensional model, the projection view including a front view, a rear view, a left view, a right view, a top view, and a bottom view;
acquiring surface machining characteristic information and depth section machining characteristic information of a workpiece to be machined based on a projection view;
determining a region to be processed according to the surface processing characteristic information and the depth section processing characteristic information;
generating a cutter contact track according to the depth section processing characteristic information and the region to be processed;
and generating a numerical control machining track based on the tool contact track, and performing simulation.
Further, the surfacing signature information comprises surfacing ring information and the deep cross-sectional machining signature information comprises cross-sectional ring information.
Further, the step of acquiring surface processing characteristic information and depth section processing characteristic information of the workpiece to be processed based on the projection view comprises the following steps:
extracting surface ring information on the projection view based on the projection view;
based on the projection view, the depth on the view is set, and cross-section ring information is extracted.
Further, the step of acquiring surface processing characteristic information and depth section processing characteristic information of the workpiece to be processed based on the projection view further comprises the steps of:
and setting the milling depth of the milling machine according to the machining precision.
Further, the step of determining the region to be machined according to the surface machining feature information and the depth section machining feature information includes the steps of:
determining a machining mode according to the surface machining characteristic information and the depth section machining characteristic information, wherein the machining mode comprises an inner contour machining mode and an outer contour machining mode;
for the outer contour machining mode, defining an area outside the outer contour as an area to be machined;
for the inner contour machining mode, dividing a cavity area and a non-cavity area, wherein the cavity area comprises a boundary contour and an island contour;
the area of the girth between the boundary contour and the island contour is defined as the area to be processed.
Further, the step of generating a tool contact track according to the depth section processing characteristic information and the region to be processed comprises the following steps:
acquiring a two-dimensional contour according to the section ring information and the area to be processed;
inserting a transition arc;
the two-dimensional contours are equidistant.
Further, the step of acquiring the two-dimensional contour includes the steps of:
the section ring information is arranged according to the sequence of head-to-tail connection to form a segmented directional curve;
judging whether the front section and the rear section of the directional curve are continuous or not;
if continuous, the continuous directional curve is a two-dimensional profile.
Further, the step of inserting a transition arc comprises the steps of:
judging whether two adjacent straight lines and/or circular arcs in the two-dimensional profile are tangent;
if the two arc-shaped curves are not tangential, a transition arc is inserted at the intersection point.
Further, the step of generating a numerical control machining track based on the tool contact track, and after simulation, further comprises the following steps:
calculating numerical control processing time according to the numerical control processing track;
and calculating the processing cost of the workpiece to be processed according to the numerical control processing time and the processing cost of the milling machine.
Compared with the prior art, the invention has the following beneficial effects:
the invention discloses a numerical control machining simulation method based on projection, which is used for determining a region to be machined based on a projection view of a three-dimensional model, generating a cutter machining track and obtaining a machining region with higher precision; and the processing track is directly generated from the three-dimensional model, so that the three-dimensional part is not required to be converted into a two-dimensional drawing and then the track processing design is carried out, and the processing efficiency of the workpiece is greatly improved.
The invention also discloses a medium which is a computer readable storage medium and is stored with a computer program, and the computer program realizes the numerical control machining simulation method when being executed.
Drawings
The invention is described in further detail below with reference to the attached drawing figures, wherein:
FIG. 1 is a flow chart of a numerical control machining simulation method described in example 1;
FIG. 2 is a schematic view of the outer contour machining mode of the numerical control machining simulation method described in embodiment 1;
FIG. 3 is a schematic view of an inner contour machining mode of the numerical control machining simulation method described in example 1;
FIG. 4 is a schematic view of a three-dimensional model of a workpiece to be processed in the implementation of the numerical control processing simulation method described in example 1;
FIG. 5 is a top view of the surface ring information during the implementation of the numerical control machining simulation method described in example 1;
FIG. 6 is a graph showing the cross-sectional ring information of a 20mm cross-section in the front direction of the rear view in the implementation of the numerical control machining simulation method described in example 1;
FIG. 7 is a schematic diagram of a milling simulation process in the implementation of the numerical control simulation method described in example 1;
FIG. 8 is a schematic diagram of a milling simulation workpiece during the implementation of the numerical control machining simulation method described in example 1;
marking: 1. an outer contour; 2. boundary contours in the inner contours; 3. tool path.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
Example 1
As shown in fig. 1, the embodiment discloses a numerical control machining simulation method based on projection, which includes the following steps:
s1, importing a three-dimensional model of a workpiece to be processed, wherein the format type of the three-dimensional model comprises, but is not limited to STEP and IGES.
S2, obtaining a projection view of the three-dimensional model, wherein the projection view comprises a front view, a rear view, a left view, a right view, a top view and a bottom view.
S3, acquiring surface machining characteristic information and depth section machining characteristic information of the workpiece to be machined based on the projection view, wherein the surface machining characteristic information comprises surface ring information, and the depth section machining characteristic information comprises section ring information.
Specifically, step S3 includes the following steps:
performing line de-duplication on the projection view, and extracting surface ring information on the projection view, wherein the surface ring information comprises trapezoids, rectangles, circular arcs, elliptical arcs and the like.
According to the machining precision, setting milling depth of each step of the milling machine, wherein the milling depth is the depth of the extracted section, performing line de-duplication on the projection view of the section, and extracting the section ring information of the section of the depth.
And S4, determining a region to be processed according to the surface processing characteristic information and the depth section processing characteristic information.
Specifically, step S4 includes the following steps:
based on the surface finish feature information and the depth section finish feature information, an inner profile finish mode and an outer profile finish mode are determined, as shown in fig. 2 and 3.
For the outer contour machining mode, an area outside the outer contour is defined as an area to be machined.
For the inner contour machining mode, a cavity area and a non-cavity area are divided, wherein the cavity area comprises a boundary contour and an island contour.
The area enclosed between the boundary contour and the island contour is defined as the area to be processed.
If the island outline does not exist in the cavity area, the boundary outline is defined as an area to be processed.
S5, generating a cutter contact track according to the depth section processing characteristic information and the region to be processed.
Specifically, step S5 includes the following steps:
s501, acquiring a two-dimensional profile according to the cross-section ring information and the area to be processed:
the section ring information is arranged in a head-to-tail sequence to form a segmented directional curve.
Judging whether the front section and the rear section of the directional curve are continuous or not: and judging whether the terminal of the front directional curve is the same as the starting point of the rear directional curve.
If continuous, the continuous directional curve is a two-dimensional contour; if discontinuous, the curve needs to be modified again.
In the above embodiment, the directional curves arranged in the required order are stored in the track linked list.
In the above embodiment, the two-dimensional profile is added with the feed line and the withdrawal line to prevent the occurrence of over-cutting, collision, flash, and the like during the machining process.
S502, inserting a transition arc:
judging whether two adjacent straight lines and/or circular arcs in the two-dimensional profile are tangent; if the curves are not tangent, a transition arc is inserted at the intersection point, and the discontinuous curves are connected.
S503, equidistant is carried out on the two-dimensional contour.
The equidistant two-dimensional contour is the machining range of the cutter contact point. The processed two-dimensional contour is the combination of straight lines and circular arc sections which are connected end to end, and the intersection points of two adjacent line sections are tangent, so that the equal distance of the contour is equal to the equal distance of the straight lines and the circular arcs. The equidistant curve segment combination is also a two-dimensional contour which is connected in pairs and tangent, and the number of the curve segments is the same as that before equidistant.
In the above embodiment, the method further includes the following steps:
a machining path of the tool is selected.
When the workpiece needs to be rough machined, a line cutting method is adopted. The line cutting method includes unidirectional cutting and reciprocating cutting.
When the workpiece needs to be finished, a ring cutting method is adopted.
And S6, generating a numerical control machining track based on the tool contact track, and performing milling simulation.
In the above embodiment, the method further includes the following steps:
and calculating the numerical control processing time required by the numerical control processing track according to the numerical control processing track.
And calculating the processing cost of the workpiece to be processed according to the numerical control processing time and the average processing cost per minute of the milling machine.
The following description is made in connection with the specific implementation procedure:
a three-dimensional model of the workpiece to be processed is imported, as in fig. 4, and a projected six-view of the three-dimensional model is obtained. Line deduplication is performed on the top view to obtain surface ring information, which includes straight lines, circular arcs, rectangles and trapezoids, as shown in fig. 5. Setting milling depth of each step of the milling machine according to the machining precision, wherein the milling depth is also the depth of an extracted section, and performing line de-duplication on a rear view of the section to obtain section ring information of the depth interface; obtaining cross-section ring information taking each 0.1mm as milling depth in the forward direction of the rear view, and displaying the cross-section ring information of a cross section with the depth of 20mm, as shown in fig. 6, wherein the cross-section ring information comprises straight lines and trapezoids; and determining to adopt an inner contour machining mode according to the surface machining characteristic information and the depth section machining characteristic information, defining an area enclosed between the boundary contour and the island contour as an area to be machined, generating a cutter contact track according to the depth section machining characteristic information and the area to be machined, generating a numerical control machining track based on the cutter contact track, and carrying out milling simulation (a simulation machining process is shown in fig. 7) by combining a line cutting method and a ring cutting method to obtain a simulation workpiece, wherein the simulation workpiece is shown in fig. 8.
According to the method, the to-be-machined area is determined based on the projection view of the three-dimensional model, and the machining track of the cutter is generated, so that the machining area with higher precision can be obtained; and the processing track is directly generated from the three-dimensional model, so that the three-dimensional part is not required to be converted into a two-dimensional drawing and then the track processing design is carried out, and the processing efficiency of the workpiece is greatly improved.
Example 2
The present embodiment discloses a medium, which is a computer-readable storage medium, on which a computer program is stored, the computer program implementing the numerical control machining simulation method described in embodiment 1 when executed.
The present invention is not limited to the preferred embodiments, and any modifications, equivalent variations and modifications made to the above embodiments according to the technical principles of the present invention are within the scope of the technical proposal of the present invention.
Claims (10)
1. The numerical control machining simulation method based on projection is characterized by comprising the following steps of:
importing a three-dimensional model of a workpiece to be processed;
obtaining a projection view of the three-dimensional model, the projection view including a front view, a rear view, a left view, a right view, a top view, and a bottom view;
acquiring surface machining characteristic information and depth section machining characteristic information of a workpiece to be machined based on a projection view;
determining a region to be processed according to the surface processing characteristic information and the depth section processing characteristic information;
generating a cutter contact track according to the depth section processing characteristic information and the region to be processed;
and generating a numerical control machining track based on the tool contact track, and performing simulation.
2. The numerical control machining simulation method according to claim 1, wherein the surface machining feature information includes surface ring information, and the depth section machining feature information includes section ring information.
3. The numerical control machining simulation method according to claim 2, wherein the step of acquiring surface machining feature information and depth section machining feature information of the workpiece to be machined based on the projection view includes the steps of:
extracting surface ring information on the projection view based on the projection view;
based on the projection view, the depth on the view is set, and cross-section ring information is extracted.
4. The numerical control machining simulation method according to claim 3, wherein the step of acquiring surface machining characteristic information and depth section machining characteristic information of the workpiece to be machined based on the projection view, further comprises the step of:
and setting the milling depth of the milling machine according to the machining precision.
5. The numerical control machining simulation method according to claim 1, wherein the step of determining the area to be machined based on the surface machining feature information and the depth section machining feature information includes the steps of:
determining a machining mode according to the surface machining characteristic information and the depth section machining characteristic information, wherein the machining mode comprises an inner contour machining mode and an outer contour machining mode;
for the outer contour machining mode, defining an area outside the outer contour as an area to be machined;
for the inner contour machining mode, dividing a cavity area and a non-cavity area, wherein the cavity area comprises a boundary contour and an island contour;
the area of the girth between the boundary contour and the island contour is defined as the area to be processed.
6. A numerical control machining simulation method according to claim 3, wherein the step of generating a tool contact locus based on the depth section machining characteristic information and the region to be machined comprises the steps of:
acquiring a two-dimensional contour according to the section ring information and the area to be processed;
inserting a transition arc;
the two-dimensional contours are equidistant.
7. The numerical control machining simulation method according to claim 6, wherein the step of acquiring the two-dimensional profile includes the steps of:
the section ring information is arranged according to the sequence of head-to-tail connection to form a segmented directional curve;
judging whether the front section and the rear section of the directional curve are continuous or not;
if continuous, the continuous directional curve is a two-dimensional profile.
8. The numerical control machining simulation method according to claim 6, wherein the step of inserting the transition arc includes the steps of:
judging whether two adjacent straight lines and/or circular arcs in the two-dimensional profile are tangent;
if the two arc-shaped curves are not tangential, a transition arc is inserted at the intersection point.
9. The numerical control machining simulation method according to claim 1, wherein the step of generating a numerical control machining trajectory based on the tool contact trajectory, after simulation, further comprises the steps of:
calculating numerical control processing time according to the numerical control processing track;
and calculating the processing cost of the workpiece to be processed according to the numerical control processing time and the processing cost of the milling machine.
10. A medium, characterized in that it is a computer-readable storage medium, on which a computer program is stored, which computer program, when executed, implements the numerical control machining simulation method according to any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310500049.2A CN116500972A (en) | 2023-05-05 | 2023-05-05 | Numerical control machining simulation method and medium based on projection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310500049.2A CN116500972A (en) | 2023-05-05 | 2023-05-05 | Numerical control machining simulation method and medium based on projection |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116500972A true CN116500972A (en) | 2023-07-28 |
Family
ID=87324532
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310500049.2A Pending CN116500972A (en) | 2023-05-05 | 2023-05-05 | Numerical control machining simulation method and medium based on projection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116500972A (en) |
-
2023
- 2023-05-05 CN CN202310500049.2A patent/CN116500972A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2014045383A1 (en) | Machining-step determining method and machining-step design device | |
CN102629289A (en) | Automatic generation method of plunge milling toolpath for corner features | |
CN104090528A (en) | Method suitable for cycloid high-speed milling machining path | |
CN112286142A (en) | Mold entity machining station batch selection machining system and method based on programming software platform | |
CN102411334B (en) | Plunge milling cutter path optimization method | |
CN112975165B (en) | Groove cutting method, device, robot and readable storage medium | |
CN116500972A (en) | Numerical control machining simulation method and medium based on projection | |
CN111037753B (en) | Milling method for rough machining of special-shaped contour free-form surface by using circular saw | |
CN111063020B (en) | Workpiece three-dimensional contour machining method based on PowerMill software | |
CN108229046B (en) | Three-dimensional modeling method for machined surface in machining end face turning process | |
CN101587348A (en) | Method for processing spiral line interpolation of three-dimensional cutting edge contour | |
CN109116804B (en) | Cavity side wall equal-residual-height plunge milling cutter path planning method based on lateral step optimization | |
CN112327754A (en) | One-key intelligent NC (numerical control) programming method for automobile mold based on experience knowledge | |
CN115587441B (en) | Planning method and system for composite manufacturing process of runner structure increase and decrease materials | |
CN113199220B (en) | Mold core machining method | |
EP4141728A1 (en) | Curve fitting method, apparatus and device based on a drawing tool | |
JPH11134014A (en) | Nc data preparing device for cutting section left from cutting | |
US20220168833A1 (en) | Processing Method for Electrical Discharge Machine | |
CN114083033B (en) | Blade tenon rounding method | |
CN106815394A (en) | The automatic process scribble method of feature in a kind of model based on operation | |
Choy et al. | Enhanced strategy for milling corners | |
CN109270890B (en) | Workpiece turning method and turning control system | |
CN115213467A (en) | Cutting residue compensation method for machine tool cutting | |
CN118180991A (en) | Tool recycling management method and management system | |
CN117812825A (en) | Circuit board processing method and 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 |