CN114265586A - Automatic cutting programming method and device and computer readable storage medium - Google Patents

Automatic cutting programming method and device and computer readable storage medium Download PDF

Info

Publication number
CN114265586A
CN114265586A CN202111514303.1A CN202111514303A CN114265586A CN 114265586 A CN114265586 A CN 114265586A CN 202111514303 A CN202111514303 A CN 202111514303A CN 114265586 A CN114265586 A CN 114265586A
Authority
CN
China
Prior art keywords
cutting
template
creating
process template
workpiece model
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
CN202111514303.1A
Other languages
Chinese (zh)
Other versions
CN114265586B (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.)
Shenzhen Moldbao Technology Co ltd
Original Assignee
Shenzhen Moldbao Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Moldbao Technology Co ltd filed Critical Shenzhen Moldbao Technology Co ltd
Priority to CN202111514303.1A priority Critical patent/CN114265586B/en
Publication of CN114265586A publication Critical patent/CN114265586A/en
Application granted granted Critical
Publication of CN114265586B publication Critical patent/CN114265586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Numerical Control (AREA)

Abstract

The invention provides a cutting automatic programming method, a device and a computer readable storage medium, wherein the cutting automatic programming method comprises the following steps: loading a workpiece model; performing morphological analysis on the workpiece model, matching an analysis result with a knowledge base to obtain a first process template, and identifying a processing area in the analysis result; creating a cutting feature type according to the first process template and the machining area identification result; and creating a processing program according to the first process template and the cutting feature type. By implementing the method, the first process template corresponding to the workpiece model does not need to be manually selected, the cutting parameter setting efficiency and accuracy of the workpiece model are improved, and the parameters can be automatically adjusted; compared with the prior art that after all the processing areas are manually selected, the cutting parameters are set for each processing area one by one to create the processing program, the programming efficiency can be further improved, and meanwhile, automatic programming can be realized.

Description

Automatic cutting programming method and device and computer readable storage medium
Technical Field
The invention relates to the technical field of numerical control programming, in particular to an automatic cutting programming method and device and a computer readable storage medium.
Background
At present, wire cutting and spark cutting programming completely depend on experience of designers, after a wire cutting area or a contour is manually selected, cutting parameters are set and edited one by one to generate a cutting tool path, the whole process is low in efficiency and easy to make mistakes, and the cutting processing quality is also seriously influenced.
Disclosure of Invention
The invention aims to provide a cutting automatic programming method, a device and a computer readable storage medium, aiming at solving the technical problems of low programming efficiency and easy error caused by manual cutting programming in the related technology.
In order to solve the above technical problem, a first aspect of the present invention provides an automatic cutting programming method, including:
loading a workpiece model;
performing morphological analysis on the workpiece model, matching an analysis result with a knowledge base to obtain a first process template, and identifying a processing area in the analysis result; wherein all faces of the workpiece model have a color;
creating a cutting feature type according to the first process template and the machining area identification result;
and creating a processing program according to the first process template and the cutting feature type.
The second aspect of the present invention provides an automatic cutting programming device, comprising:
the loading module is used for loading the workpiece model;
the processing module is used for carrying out morphological analysis on the workpiece model, matching an analysis result with a knowledge base to obtain a first process template, and identifying a processing area in the analysis result;
the first creating module is used for creating a cutting feature type according to the first process template and the machining area identification result;
and the second creating module is used for creating a processing program according to the first process template and the cutting feature type.
A third aspect of the present invention provides an electronic apparatus, comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the cutting auto-programming method as described above.
A fourth aspect of the present invention provides a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the cutting automation programming method as described above.
Compared with the prior art, the automatic cutting programming method, the automatic cutting programming device and the computer readable storage medium have the advantages that: loading a workpiece model in a programming process; performing morphological analysis on the workpiece model, matching an analysis result with a knowledge base to obtain a first process template, and identifying a processing area in the analysis result; creating a cutting feature type according to the first process template and the machining area identification result; and creating a processing program according to the first process template and the cutting feature type. By implementing the method, the first process template corresponding to the workpiece model does not need to be manually selected, the cutting parameter setting efficiency and accuracy of the workpiece model are improved, and the parameters can be automatically adjusted; compared with the prior art that after all the processing areas are manually selected, the cutting parameters are set for each processing area one by one to create the processing program, the programming efficiency can be further improved, and meanwhile, automatic programming can be realized.
Drawings
Fig. 1 is a schematic basic flow chart of an automatic cutting programming method provided in embodiment 1 of the present invention;
FIG. 2 is a schematic flow chart illustrating morphological analysis of a workpiece model according to embodiment 1 of the present invention;
FIG. 3 is a schematic flow chart of a first process template obtained by matching the analysis result with a knowledge base in example 1 of the present invention;
FIG. 4 is a flowchart showing step S12 in example 1 of the present invention;
FIG. 5 is a flowchart showing step S13 in example 1 of the present invention;
fig. 6 is a schematic flow chart of an automatic cutting programming method provided in embodiment 2 of the present invention;
FIG. 7 is a schematic diagram of program modules of an automatic cutting programming device provided in embodiment 3 of the present invention;
FIG. 8 is a schematic color diagram of a workpiece model in example 1 of the present invention;
FIG. 9 is a schematic view of respective processing regions of a workpiece model in example 1 of the present invention;
FIG. 10 is a schematic view showing the measurement of the angle of the outer wall of the processing region with respect to the normal line in example 1 of the present invention;
FIG. 11 is a schematic view of a first template in embodiment 1 of the present invention;
FIG. 12 is a schematic view showing a tool path simulation of a machining region in the workpiece model according to embodiment 1 of the present invention;
FIG. 13 is a schematic view showing the punching of each processing region in the workpiece model in example 1 of the present invention;
fig. 14 is a schematic view of clamping of each machining region in the workpiece model in embodiment 1 of the present invention.
In the drawings, each reference numeral denotes: 70. loading a module; 71. a processing module; 72. a first creation module; 73. a second creation module.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further 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.
Example 1:
in order to solve the technical problems of low programming efficiency and easy error caused by manual cutting programming in the related art, the present embodiment provides an automatic cutting programming method, which is preferably applicable to a wire cutting device, and as shown in fig. 1, is a basic flow diagram of the automatic cutting programming method provided by the present embodiment, where the automatic cutting programming method provided by the present embodiment includes the following steps:
and step S10, loading the workpiece model.
And step S11, performing morphological analysis on the workpiece model, matching the analysis result with a knowledge base to obtain a first process template, and identifying the processing area in the analysis result.
And step S12, creating a cutting feature type according to the first process template and the machining area identification result.
And step S13, creating a machining program according to the first process template and the cutting feature type.
Specifically, the workpiece model may be provided with a plurality of targets to be cut, the targets to be cut may be square holes, circular holes, tapered holes, irregular holes, shapes, and the like, the workpiece model may be a CAD model, and the format of the CAD model may be any one of stp, prt, igs, and x _ t. The knowledge base is provided with a plurality of parameter templates, and related parameters of the cutting workpiece are arranged in each parameter template; because the specific parameters contained in the analysis result have corresponding mapping relations with the templates of the knowledge base, the first process template can be obtained after the analysis result is matched with the knowledge base, namely when different workpiece models are loaded, the first process template corresponding to the workpiece model can be automatically matched, so that the first process template corresponding to the workpiece model does not need to be manually selected, the cutting parameter setting efficiency and accuracy of the workpiece model are improved, and the parameters can be automatically adjusted. Moreover, after the cutting feature types are created, the same cutting parameters can be set according to the number of the processing areas with the same cutting feature types, then the processing program is created, and compared with the prior art that after all the processing areas are manually selected, the processing program is created by setting the cutting parameters for each processing area one by one, the programming efficiency can be further improved, and meanwhile, automatic programming can be realized.
In this embodiment, since the surface of the workpiece model before loading has various conditions, such as a part of the surface of the workpiece model having a color, all the surfaces of the workpiece model having the same color, and all the surfaces of the workpiece model having no color, etc., it is necessary to pre-process the workpiece model when loading, so as to ensure that all the surfaces of the loaded workpiece model have a color, and different surfaces have different colors. The pre-processing process may include: and traversing all the faces on the entity of the workpiece model, carrying out color removing processing on all the faces on the entity, and then carrying out color marking on all the faces on the entity, wherein different faces are marked with different colors.
Fig. 2 is a schematic flow chart illustrating morphological analysis of the workpiece model in step S11, which specifically includes the following steps:
and step S20, traversing all the surfaces on the entity of the workpiece model to obtain the closed surface and the unclosed surface which are arranged on the entity.
And step S21, grouping the sealing surfaces according to the colors of the sealing surfaces.
And step S22, judging whether the different sealing surfaces are adjacent or not, and obtaining a processing area according to the judgment result.
And step S23, determining the cutting type according to the shape of the processing area.
And step S24, judging whether the included angle of the side wall of the processing area relative to the normal line is zero or not, and determining whether the processing area is shaped vertically or not according to the judgment result.
And step S25, determining the upper and lower plane parameters of the processing area according to the thickness of the workpiece model.
And step S26, determining a cutting mode according to the size of the processing area.
Specifically, the colors of all the surfaces of the workpiece model are different; the shape of the processing area comprises square, round, taper hole, special-shaped hole, shape and the like, and the corresponding cutting types comprise square cutting, round cutting, taper hole cutting, special-shaped hole cutting and shape cutting; as shown in fig. 10, fig. 10 is a schematic diagram of an included angle between an outer wall of a processing region and a normal line, in order to measure that the normal line direction is the thickness direction of the workpiece model, the processing region is hollow after cutting is completed, when the included angle between the outer wall of the processing region and the normal line is not equal to zero, the processing region is shaped like a taper hole, a special-shaped hole, a chute and the like, and when the included angle between the outer wall of the processing region and the normal line is equal to zero, the processing region is not shaped like a rectangle or a circle; the cutting mode comprises chipless cutting and chipless cutting, the chipless cutting adopts stub bar-free cutting, the chipless cutting is used for cutting a small-sized processing area, the chipless cutting is used for cutting a large-sized processing area, and the maximum cutting time reduction is facilitated, so that the cutting efficiency is improved.
As shown in fig. 9, fig. 9 is a schematic view of each processing area of a workpiece model, in an embodiment of the present embodiment, all entities of the workpiece model can be obtained by traversing all entity functions, namely, application, document, and solid interfaces, all surface functions, namely, solid body, and solid interfaces on the traversed entities are used to group the surfaces of the entities, and whether adjacent surface functions, namely, solid loop, and adjacenttontsolid interfaces () are adjacent is searched to finally obtain a single complete processing area. The workpiece model is provided with two special-shaped holes, a chute, a taper hole and two cylindrical holes, wherein the two special-shaped holes are respectively a rectangular hole and an upper and lower special-shaped cylindrical hole, and the two cylindrical holes are large and small cylindrical holes. As shown in fig. 8, fig. 8 is a schematic color diagram of each surface of the workpiece model, and for convenience of description and understanding, the inner wall surface of the rectangular hole is set to be green 106, the inner wall surface of the inclined groove is set to be red 147, the inner wall surface of the tapered hole is set to be orange 42, the inner wall surface of the large cylindrical hole is set to be pink 114, the inner wall surface of the small cylindrical hole is set to be purple 152, the inner wall surface of the vertically-deformed cylindrical hole is set to be cyan 59, and the outer shape of the workpiece model is set to be gray. In another embodiment of this embodiment, the inner wall surface of the rectangular hole, the inner wall surface of the inclined groove, the inner wall surface of the tapered hole, the inner wall surface of the large cylindrical hole, the inner wall surface of the small cylindrical hole, the inner wall surface of the vertically irregular cylindrical hole, and the outer shape of the workpiece model may be set to any color according to actual needs; other bores and numbers of bores may be provided.
In this embodiment, when traversing all the solid surfaces of the workpiece model, because the colors of all the solid surfaces are different, a closed surface and an unsealed surface can be obtained, wherein the closed surface is an inner wall surface of a rectangular hole, an inner wall surface of a chute, an inner wall surface of a conical hole, an inner wall surface of a large cylindrical hole, an inner wall surface of a small cylindrical hole and an inner wall surface of a cylindrical hole with a shape shaped up and down, and the unsealed surface is the shape of the workpiece model. Because the colors of all the closed surfaces are different, the closed surfaces can be grouped, and each group of closed surfaces have the same color; in addition, since the main processing objects of the wire-electrode cutting processing are holes and outlines, the processing object surfaces have adjacent characteristics in geometrical attributes. Therefore, the closed surfaces with the common color are classified into one group according to the color of the closed surfaces, the closed surfaces adjacent to the group are searched iteratively until all the closed surfaces are grouped, whether the different closed surfaces are adjacent or not is judged, when the two groups of closed surfaces are adjacent, any one group of closed surfaces in the two groups of closed surfaces is determined to be not a complete processing area, and when one group of closed surfaces is determined to be not adjacent to any other group of closed surfaces, the group of closed surfaces is determined to be a single complete processing area.
Fig. 3 is a schematic flow chart of the step S11 of matching the analysis result with the knowledge base to obtain the first process template, which specifically includes the following steps:
and step S30, when the cutting type is the shape cutting, matching the corresponding convex film cutting template from the knowledge base and configuring the convex film cutting template as a first process template, and when the cutting type is the inner hole cutting, matching the corresponding concave film cutting template from the knowledge base and configuring the concave film cutting template as the first process template.
And step S31, when the processing area is in the upper and lower special shape, matching the corresponding four-axis cutting template from the knowledge base and configuring the cutting template as a first process template, and when the processing area is not in the upper and lower special shape, matching the corresponding two-axis cutting template from the knowledge base and configuring the cutting template as the first process template.
And step S32, when the size of the workpiece model is smaller than a preset threshold value, matching the corresponding chipless machining template from the knowledge base and configuring the corresponding chipless machining template as a first process template, and when the size of the workpiece model is larger than the preset threshold value, matching the corresponding chipless machining template from the knowledge base and configuring the corresponding chipless machining template as the first process template.
As shown in fig. 11, fig. 11 is a schematic view of a first template; specifically, the knowledge base is provided with a plurality of parameter templates, including a convex film cutting template, a concave film cutting template, a four-axis cutting template, a two-axis cutting template, a chipless cutting template, a shape cutting template, and the like, which can be combined, such as the two-axis chipped cutting template, the four-axis chipped cutting template, the two-axis chipped shape template, and the like, and the four-axis chipped shape cutting template, and the like. The cutting template in the knowledge base can be matched with a corresponding cutting template according to the workpiece model, namely, the process parameters can be reserved through the knowledge base and are matched when the cutting template is needed, so that the efficiency of adjusting the cutting parameters is improved; meanwhile, the knowledge base comprises a plurality of cutting templates, and the adjustment of any cutting parameter can be met.
In an embodiment of the present invention, the rectangular hole is an inner hole, and a corresponding female die cutting template is matched from the knowledge base and configured as a first process template; if the rectangular hole is not shaped vertically, matching the corresponding two-axis cutting template from the knowledge base and configuring the two-axis cutting template into a first process template; the sizes (length, width and height) of the rectangular holes are 21.20mm, 12.70mm and 20.20mm, the aperture of the inner hole is 2.5 according to the preset threshold value, namely the size of the rectangular hole is larger than the preset threshold value, and the corresponding chip machining template is matched from the knowledge base and is configured into a first process template; therefore, the first process template matched with the rectangular hole is used for cutting chips on two shafts, similarly, the process template matched with the chute is used for cutting chips on four shafts, and the first process template matched with the appearance is used for cutting chips on two shafts.
As shown in fig. 4, the flowchart of the step S12 includes the following steps:
and step S40, creating a cutting characteristic type according to the number of the processing areas of the two-axis cutting and the number of the processing areas of the four-axis cutting.
And step S41, creating a machining program according to the residual process templates and the cutting feature types in the first process template.
In one embodiment of the present embodiment, the feature parameters are set by creating a technical parameter function, such as application, document, technology utility, creation, and technology (), and specifically, the number of matching two-axis cutting templates and the number of matching four-axis cutting templates, such as rectangular holes, large cylindrical holes, small cylindrical holes, and contour matching two-axis cutting templates, inclined slots, tapered holes, and upper and lower shaped cylindrical holes, are summarized in all processing regions, and the feature is created by creating a feature function, such as application, document, creation, and feature, such as feature, according to the summarized result. Creating a machining program according to the remaining process templates and the cutting feature types in the first process template, specifically, initializing parameters of the first process template by creating a technical parameter function, document, technology utility, creation technology (), and setting basic parameters according to the analysis result of the workpiece model, where the basic parameters are as shown in table 1 below, and table 1 is set for the basic parameters of the machining area.
Table 1:
type (B) Concave die Upper nozzle 22.000000
Policy Counter clockwise Sub-plane 'Q' (thickness) 21.000000
Policy [ CREATING ] AND [ FINE CUTTING ] Program plane 'P' 0.000000
Type of compensation G41\G42 Bottom of workpiece 0.000000
Lower nozzle -1.000000
And then matching a corresponding first process template from the knowledge base, creating operation through a creation thread cutting operation function, application, document, operation, add (), and creating a processing program according to the operation. By creating a cutting feature type, a more optimal cutting path may be obtained, thereby improving the efficiency of cutting the workpiece.
As shown in fig. 5, a schematic flow chart of the step S13 includes the following steps:
and step S50, creating a machining blank according to the workpiece model.
And step S51, performing cutter path simulation on the blank according to the first process template and the cutting feature type.
And step S52, creating a machining program according to the cutter path simulation result.
As shown in fig. 12, fig. 12 is a schematic diagram of tool path simulation of a processing area in a workpiece model, in this embodiment, a processing blank is created according to the processing area on the workpiece model, a first process template matched with each processing area is called, an optimal cutting tool path is generated by combining cutting feature types of the processing area, tool path simulation is performed on the blank, when there is no abnormality in tool path simulation, all program information of the cutting tool path is obtained, batch post-processing is performed, and a processing program is created as follows (NC code):
N1 M74(Clear Process Control Data)
N2 M74 L1 Q1(Declare machining Group&Step)
N3 G00 X-34.1300 Y2.1276 MO6(Very first positioning move)
N4 M7l S5.0000
N5 E1061 D.2100 M17(Machining ON:WIRE_FEED FLUSHING POWER)
N6 G41 G01 X-27.8800 T0
N7 Y9.6276
N8 G03 X-30.8800 Y12.6276 I-3.0000 J0
N9 G0l X-37.3800
N10G03 X-40.3800 Y9.6276 I0 J-3.0000
N11 G01 Y-5.3724
N12 G03 X-37.3800 Y-8.3724 I3.0000 J0
N13 G01 X-30.8800
N14 G03 X-27.8800 Y-5.3724 I0 J3.0000
N15 G01 Y2.1276
N16 G40 X-34.1300
N17 M71 L1(Controlled approach OFF)
(finish cutting Main processing [1])
N18 M74 L1 Q2(Declare machining Group&Step)
N19 E1311 D.1550 M17(Machining ON:WIRE_FEED FLUSHING POWER)
N20 G42 G01 X-27.8800T0
N21 Y-5.3724
N22 G02 X-30.8800 Y-8.3724I-3.0000 J0
N23 G0l X-37.3800
N24 G02 X-40.3800 Y-5.3724 I0 J3.0000
N25 G0l Y9.6276
N26 G02 X-37.3800 Y12.6276 I3.0000 J0
N27 G01 X-30.8800
N28 G02 X-27.8800 Y9.6276 I0 J-3.0000
N29 G01 Y2.1276
N30 G40 X-34.1300。
Preferably, in this embodiment, after the machine platform loads the processing program and debugs the process parameters, the tuning process of the field processing process parameters is recorded, and the extended knowledge base is automatically updated; firstly, a machine platform loads a processing program, then parameters are modified according to actual processing conditions, the optimized parameters are reported, the reported parameters are analyzed, and the model of the machine platform is updated into a first process template according to the type of the machine platform. By recording the field processing technological parameter tuning process and updating the field processing technological parameter tuning process into the knowledge base, the knowledge base can be expanded, the next time the parameters are directly used is facilitated, the parameters do not need to be continuously adjusted, and therefore automatic parameter tuning is achieved.
In one embodiment of this implementation, the machine loader is as follows:
N1 M74(Clear Process Control Data)
N2 N74L1 Q1(Declare machining Group&Step)
N3 G00 X-34.1300 Y2.1276 MW06(Very first positioning move)
N4 M71 5.0000
N5 E1062 D.2500 M17(MachiningON:WIRE_FEED FLUSHING POWER)
N6 G41 G01 X-27.8800 T0
N7 Y9.6276
N8 G03 X-30.8800 Y12.6276 T-3.0000 J0
N9 G01 X-37.3800
N10 G03 X-40.3800 Y9.6276 I0 J-30000
N11 G01 Y-5.3724
N12 G03 X-37.3800 Y-8.3724I3.0000 J0
N13 G01 X-30.8800
N14 G03 X-27.8800 Y-5.3724I0 J3.0000
N15 G01 Y2.1276
N16 G40 X-34.1300
N17 M71 L1(Controlled approach OFF)
the procedure of the parameter reporting process is as follows:
{
“machineType”:”Makino”,
“machine”:”U3”,
“wireDia”:0.25,
“wpMaterial”:”ST”,
“wpHeight”:20,
“params”:{
“rough”:{
“power”:1035,
“offset”:0.193
},
“skim1”:{
“power”:1533,
“offset”:0.138
},
“skim2”:{
“power”:1534,
“offset”:0.128
}
}
}
as shown in fig. 13 and 14, fig. 13 is a schematic view of punching of each machining area in the workpiece model, and fig. 14 is a schematic view of clamping of each machining area in the workpiece model.
Example 2:
because the first process template matched with the processing area is a basic cutting parameter, in order to improve the cutting quality, the cutting parameter of the processing area needs to be further adjusted, such as rough cutting electric quantity and a compensation value; fine modification 1 electric quantity, compensation value, fine modification 2 electric quantity, compensation value and the like.
Fig. 6 is a schematic flow chart of the cutting automatic programming method provided in this embodiment, which specifically includes the following steps:
and step S60, loading the workpiece model.
And step S61, performing morphological analysis on the workpiece model, matching the analysis result with a knowledge base to obtain a first process template, and identifying the processing area in the analysis result.
And step S62, creating a cutting feature type according to the first process template and the machining area identification result.
And step S63, setting a processing environment corresponding to the workpiece model, and matching from the knowledge base according to the processing environment to obtain a second process template.
And step S64, creating a machining program according to the second process template, the first process template and the cutting feature type.
In this embodiment, the machining environment is set to select the machine model and the wire cutting wire of the wire cutting machining, specifically, as shown in table 2, table 2 is the machine model and the wire cutting wire type.
Table 2:
Figure BDA0003401549060000121
and matching corresponding parameter templates in a knowledge base according to the type of the machine, the model of the machine, the cutting wire, the material of the workpiece, the thickness of the model and the fine cutting parameters to obtain a second process template.
In one embodiment, when the Makino machine tool is selected, its specific parameters are as shown. According to the fact that the machine type is Makino, the machine model is U3, U6(V5.), the linear cutting wire is 0.25, the workpiece material is die steel NAK80, the model thickness is 20, the precision is rough cutting and fine cutting 2, the second process template at the moment is a parameter base U3, U6(V5.). mdb, and the adaptive parameters are rough cutting electric quantity and compensation value; finely trimming 1 electric quantity and a compensation value; the electric quantity and the compensation value of the fine trimming 2 are shown in the following table 3, the table 3 is the specific parameters of the rough cutting and the fine cutting 2,
table 3:
electric quantity Compensation Compensation value
Roughing 1061 0.210 0
Jump 1 1311 0.155 1
Jump 2 1312 0.133 2
The specific code is as follows:
0.25 of wireDiameter
"wireMaterial":"BS",
"St", workpiece material
"items":[{
Workpiece thickness of 20%
"finishRa":"5~6",
"cutInfospeed":0.0,
cutData":"1051,0,0.21,1301,14,0.155,1302,17,0.133"
},{
"workpieceThickness":"25",
"finishRa":"5-6"
"cutInfospeed":0.0,
cutData":"1061,0,0.21,1311,0,0.155,1312,16,0.133"
},{
"workpieceThickness":"30",
'finishRa":"5-6",
"cutInfospeed":0.0,
"cutData":"1071,0,0.21,1321,0,0.155,1322,15,0.133"
The final resulting machining program was as follows:
(This program is in METRIC)
(rough cutting main processing)
(Database name:WireDiameter(0.25))
N1 M74(Clear Process Control Data)
N2 M74 L1 Q1(Declare machining Group&Step)
N3 G00 X-34.1300 Y2.1276 M06(Very first positioning move)
N4 M71 S5.0000
N5 E1062 D.2500 M17(Machining ON:WIRE_FEED FLUSHING POWER)
N6 G41 G01 X-27.8800 T0
N7 Y9.6276
N8 G03 X-30.8800 Y12.6276 I-3.0000 J0
N9 G01 X-37.3800
N10 G03 X-40.3800 Y9.6276 I0 J-3.0000
N11 G01 Y-5.3724
N12 G03 X-37.3800 Y-8.3724 I3.0000 J0
N13 G01 X-30.8800
N14 G03 X-27.8800 Y-5.3724 I0 J3.0000
N15 G01 Y2.1276
N16 G40 X-34.1300
N17 M71 L1(Controlled approach OFF)
(finish cutting Main processing [1])
N18 M74 L1 Q2(Declare machining Group&Step)
N19 E1311 D.1550 M17(Machining ON:WIRE_FEED FLUSHING POWER)
N20 G42 G01 X-27.8800 T0
N21 Y-5.3724
N22 G02 X-30.8800 Y-8.3724I-3.0000 J0
N23 G01 X-37.3800
N24 G02 X-40.3800 Y-5.3724 I0 J3.0000
N25 G01 Y9.6276
N26 G02 X-37.3800 Y12.6276 I3.0000 J0
N27 G01 X-30.8800
N28 G02 X-27.8800 Y9.6276 I0 J-3.0000
N29 G01 Y2.1276
N30 G40 X-34.1300
(finish cutting Main processing [2])
N31 M74 L1 Q3(Declare machining Group&Step)
N32 G00 X-34.1300 Y2.1276 M06(Repeat Positioning)
N33 E1312 D.1330 M17(Machining ON:WIRE_FEED FLUSHING POWER)
N34 G41 G01 X-27.8800 T0
N35 Y9.6276
N36 G03 X-30.8800 Y12.6276 I-3.0000 J0
N37 G01 X-37.3800
N38 G03 X-40.3800 Y9.6276 I0 J-3.0000
N39 G01 Y-5.3724
N40 G03 X-37.3800 Y-8.3724 I3.0000 J0
N41 G01 X-30.8800
N42 G03 X-27.8800 Y-5.3724 I0 J3.0000
N43 G01 Y2.1276
N44 G40 X-34.1300
N45 M07(Cut wire)
N46 M29(Drain tank)
N47 M30(End Program)
Example 3:
fig. 7 is a schematic diagram of program modules of the automatic cutting programming device provided in this embodiment, which specifically includes:
and a loading module 70 for loading the workpiece model.
And the processing module 71 is configured to perform morphological analysis on the workpiece model, match the analysis result with the knowledge base to obtain a first process template, and identify a processing region in the analysis result.
A first creation module 72 for creating a cutting feature type based on the first process template and the machining region identification.
A second creation module 73 for creating a machining program based on the first process template and the type of cutting feature.
In this embodiment, the loading module 70 is specifically configured to: and preprocessing the loaded workpiece model to ensure that all the surfaces of the loaded workpiece model have colors and different surfaces have different colors.
The processing module 71 is specifically configured to: traversing all the surfaces on the entity of the workpiece model to obtain a closed surface and an unclosed surface which are arranged on the entity; grouping the closed surfaces according to the colors of the closed surfaces; and judging whether the different sealing surfaces are adjacent or not, and obtaining a processing area according to a judgment result. And is also used for: obtaining a processing area according to the color of each surface of the workpiece model; determining the cutting type according to the shape of the processing area; judging whether an included angle of the side wall of the processing area relative to the normal line is zero or not, and determining whether the processing area is in an upper and lower special shape or not according to a judgment result; determining upper and lower plane parameters of a processing area according to the thickness of the workpiece model; and determining a cutting mode according to the size of the processing area. The colors of all the closed surfaces are different, the closed surfaces can be grouped, and each group of closed surfaces have the same color; in addition, since the main processing objects of the wire-electrode cutting processing are holes and outlines, the processing object surfaces have adjacent characteristics in geometrical attributes. Therefore, the closed surfaces with the common color are classified into one group according to the color of the closed surfaces, the closed surfaces adjacent to the group are searched iteratively until all the closed surfaces are grouped, whether the different closed surfaces are adjacent or not is judged, when the two groups of closed surfaces are adjacent, any one group of closed surfaces in the two groups of closed surfaces is determined to be not a complete processing area, and when one group of closed surfaces is determined to be not adjacent to any other group of closed surfaces, the group of closed surfaces is determined to be a single complete processing area. The shape of the processing area comprises square, round, taper hole, special-shaped hole, shape and the like, and the corresponding cutting types comprise square cutting, round cutting, taper hole cutting, special-shaped hole cutting and shape cutting; the normal direction is the thickness direction of the workpiece model, the processing area is hollow after cutting, when the included angle of the outer wall of the processing area relative to the normal is not equal to zero, the processing area is in upper and lower special shapes, such as a taper hole, a special-shaped hole, a chute and the like, and when the included angle of the outer wall of the processing area relative to the normal is equal to zero, the processing area is not in the upper and lower special shapes, such as a rectangle, a circle and the like; the cutting mode comprises chipless cutting and chipless cutting, the chipless cutting adopts stub bar-free cutting, the chipless cutting is used for cutting a small-sized processing area, the chipless cutting is used for cutting a large-sized processing area, and the maximum cutting time reduction is facilitated, so that the cutting efficiency is improved.
The processing module 71 is further configured to: when the cutting type is outer shape cutting, matching a corresponding convex film cutting template from the knowledge base and configuring the convex film cutting template as a first process template, and when the cutting type is inner hole cutting, matching a corresponding concave film cutting template from the knowledge base and configuring the concave film cutting template as the first process template; when the machining area is vertically special-shaped, matching a corresponding four-axis cutting template from the knowledge base and configuring the cutting template as a first process template, and when the machining area is not vertically special-shaped, matching a corresponding two-axis cutting template from the knowledge base and configuring the cutting template as the first process template; and when the size of the workpiece model is larger than the preset threshold value, matching the corresponding chipless machining template from the knowledge base and configuring the corresponding chipless machining template into a first process template. The knowledge base is provided with a plurality of parameter templates, wherein the parameter templates comprise a convex film cutting template, a concave film cutting template, a four-axis cutting template, a two-axis cutting template, a chipless cutting template, an appearance cutting template and the like, and can be combined, such as the two-axis chipless cutting template, the four-axis chipless cutting template, the two-axis chipless appearance template and the like, the four-axis chipless appearance cutting template and the like.
The first creating module 72 is specifically configured to: establishing a cutting characteristic type according to the number of the processing areas of the two-axis cutting and the number of the processing areas of the four-axis cutting; a corresponding second creation module 83 is used to create a machining program based on the remaining process templates and cutting feature types in the first process template.
The second creating module 73 is specifically configured to: creating a machining blank according to the workpiece model; performing tool path simulation on the blank according to the first process template and the cutting characteristic type; and creating a machining program according to the cutter path simulation result.
Example 4:
the present embodiment provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, at least one step of the method in embodiments 1 to 2 is implemented.
The present embodiments also provide a computer-readable storage medium including volatile or non-volatile, removable or non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, computer program modules or other data. Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other Memory technology, CD-ROM (Compact disk Read-Only Memory), Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.
The computer-readable storage medium in this embodiment may be used to store one or more computer programs, which stored one or more computer programs may be executed by a processor to implement at least one step of the methods in embodiments 1 to 2 described above.
The present embodiment also provides a computer program, which can be distributed on a computer readable medium and executed by a computing device to implement at least one step of the method in embodiment 1 above; and in some cases at least one of the steps shown or described may be performed in an order different than that described in the embodiments above.
The present embodiments also provide a computer program product comprising a computer readable means on which a computer program as shown above is stored. The computer readable means in this embodiment may include a computer readable storage medium as shown above.
It will be apparent to those skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software (which may be implemented in computer program code executable by a computing device), firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. An automatic cutting programming method, comprising:
loading a workpiece model;
performing morphological analysis on the workpiece model, matching an analysis result with a knowledge base to obtain a first process template, and identifying a processing area in the analysis result; wherein all faces of the workpiece model have a color;
creating a cutting feature type according to the first process template and the machining area identification result;
and creating a processing program according to the first process template and the cutting feature type.
2. The method for automated cutting programming according to claim 1, wherein said performing a morphological analysis of said workpiece model comprises:
obtaining a processing area according to the color of each surface of the workpiece model; wherein, the colors of all the surfaces are different;
determining a cutting type according to the shape of the processing area; wherein the cutting types include square, circular, tapered, shaped hole, and profile cutting;
judging whether an included angle of the side wall of the processing area relative to the normal line is zero or not, and determining whether the processing area is vertically irregular or not according to a judgment result; when the included angle is not equal to zero, the processing area is shaped vertically;
determining upper and lower plane parameters of the processing area according to the thickness of the workpiece model;
determining a cutting mode according to the size of the processing area; wherein the cutting mode comprises chipless cutting and chipless cutting.
3. The cutting automatic programming method according to claim 2, wherein the obtaining a processing area according to the color of each face of the workpiece model comprises:
traversing all surfaces on the entity of the workpiece model to obtain a closed surface and an unclosed surface which are arranged on the entity;
grouping the closed surfaces according to the colors of the closed surfaces;
and judging whether the different sealing surfaces are adjacent or not, and obtaining a processing area according to a judgment result.
4. The cutting automatic programming method according to claim 2, wherein the matching of the analysis result with the knowledge base to obtain the first process template comprises:
when the cutting type is outer shape cutting, matching a corresponding convex film cutting template from the knowledge base and configuring the convex film cutting template as a first process template, and when the cutting type is inner hole cutting, matching a corresponding concave film cutting template from the knowledge base and configuring the concave film cutting template as the first process template;
when the machining area is vertically special-shaped, matching a corresponding four-axis cutting template from a knowledge base and configuring the cutting template as a first process template, and when the machining area is not vertically special-shaped, matching a corresponding two-axis cutting template from the knowledge base and configuring the cutting template as the first process template;
and when the size of the workpiece model is larger than the preset threshold value, matching the corresponding chipless machining template from the knowledge base and configuring the corresponding chipless machining template into a first process template.
5. The automatic cutting programming method according to claim 4, wherein the creating of the cutting feature type according to the first process template and the machining region recognition result comprises:
creating a cutting feature type according to the number of the processing areas of the two-axis cutting and the number of the processing areas of the four-axis cutting;
the creating a machining program according to the first process template and the cutting feature type comprises:
and creating a machining program according to the residual process templates in the first process template and the cutting feature types.
6. The cutting automation programming method of claim 1 wherein the creating a machining program from the first process template and the cutting feature type comprises:
creating a machining blank according to the workpiece model;
performing tool path simulation on the blank according to the first process template and the cutting feature type;
and creating a machining program according to the tool path simulation result.
7. The cutting automated programming method of claim 1, further comprising, prior to the step of creating a machining program based on the first process template and the cutting feature type:
setting a processing environment corresponding to the workpiece model, and matching from a knowledge base according to the processing environment to obtain a second process template;
and creating a machining program according to the second process template, the first process template and the cutting feature type.
8. An automatic cutting programming device, comprising:
the loading module is used for loading the workpiece model;
the processing module is used for carrying out morphological analysis on the workpiece model, matching an analysis result with a knowledge base to obtain a first process template, and identifying a processing area in the analysis result;
the first creating module is used for creating a cutting feature type according to the first process template and the machining area identification result;
and the second creating module is used for creating a processing program according to the first process template and the cutting feature type.
9. An electronic device, comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more programs stored in the memory to implement the steps of the cutting auto-programming method of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs which are executable by one or more processors to implement the steps of the cutting automation programming method according to any one of claims 1 to 7.
CN202111514303.1A 2021-12-09 2021-12-09 Automatic programming method and device for cutting and computer readable storage medium Active CN114265586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111514303.1A CN114265586B (en) 2021-12-09 2021-12-09 Automatic programming method and device for cutting and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111514303.1A CN114265586B (en) 2021-12-09 2021-12-09 Automatic programming method and device for cutting and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114265586A true CN114265586A (en) 2022-04-01
CN114265586B CN114265586B (en) 2023-12-05

Family

ID=80827121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111514303.1A Active CN114265586B (en) 2021-12-09 2021-12-09 Automatic programming method and device for cutting and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114265586B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114888382A (en) * 2022-05-11 2022-08-12 上海优集工业软件有限公司 Configuration method and device for linear cutting, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8825452B2 (en) * 2010-03-05 2014-09-02 Omron Corporation Model producing apparatus, model producing method, and computer-readable recording medium in which model producing program is stored
US20160259317A1 (en) * 2015-03-02 2016-09-08 The Boeing Company Associative templates for machining operations and systems and methods including the same
CN106127749A (en) * 2016-06-16 2016-11-16 华南理工大学 The target part recognition methods of view-based access control model attention mechanism
CN108335332A (en) * 2018-01-22 2018-07-27 浙江大学 A kind of axial workpiece central axes measurement method based on binocular vision
CN111198686A (en) * 2019-12-26 2020-05-26 平安国际智慧城市科技股份有限公司 Programming method, device, equipment and computer readable storage medium
CN107220455B (en) * 2017-06-20 2020-06-12 江西洪都商用飞机股份有限公司 Automatic drilling and riveting quick programming method for aircraft wall panel
CN112232399A (en) * 2020-10-10 2021-01-15 南京埃斯顿机器人工程有限公司 Automobile seat defect detection method based on multi-feature fusion machine learning
CN112733245A (en) * 2021-01-21 2021-04-30 珠海市三鑫科技发展有限公司 Numerical control machining method, device, computer equipment and storage medium
CN113538341A (en) * 2021-03-31 2021-10-22 联合汽车电子有限公司 Automatic optical detection auxiliary method, device and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8825452B2 (en) * 2010-03-05 2014-09-02 Omron Corporation Model producing apparatus, model producing method, and computer-readable recording medium in which model producing program is stored
US20160259317A1 (en) * 2015-03-02 2016-09-08 The Boeing Company Associative templates for machining operations and systems and methods including the same
CN106127749A (en) * 2016-06-16 2016-11-16 华南理工大学 The target part recognition methods of view-based access control model attention mechanism
CN107220455B (en) * 2017-06-20 2020-06-12 江西洪都商用飞机股份有限公司 Automatic drilling and riveting quick programming method for aircraft wall panel
CN108335332A (en) * 2018-01-22 2018-07-27 浙江大学 A kind of axial workpiece central axes measurement method based on binocular vision
CN111198686A (en) * 2019-12-26 2020-05-26 平安国际智慧城市科技股份有限公司 Programming method, device, equipment and computer readable storage medium
CN112232399A (en) * 2020-10-10 2021-01-15 南京埃斯顿机器人工程有限公司 Automobile seat defect detection method based on multi-feature fusion machine learning
CN112733245A (en) * 2021-01-21 2021-04-30 珠海市三鑫科技发展有限公司 Numerical control machining method, device, computer equipment and storage medium
CN113538341A (en) * 2021-03-31 2021-10-22 联合汽车电子有限公司 Automatic optical detection auxiliary method, device and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ULRICH SCHAPER 等: "Matching Model for Planar Bulk Transistors With Halo Implantation", 《IEEE ELECTRON DEVICE LETTERS》, vol. 32, no. 7, pages 859 - 861, XP011357190, DOI: 10.1109/LED.2011.2150194 *
孟博洋 等: "机床智能控制系统体系架构及关键技术研究进展", 《机械工程学报》, vol. 57, no. 9, pages 147 - 165 *
徐金亭 等: "精密复杂曲面零件多轴数控加工技术研究进展", 《航空学报》, vol. 42, no. 10, pages 1 - 24 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114888382A (en) * 2022-05-11 2022-08-12 上海优集工业软件有限公司 Configuration method and device for linear cutting, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114265586B (en) 2023-12-05

Similar Documents

Publication Publication Date Title
US11429076B2 (en) Automatic strategy determination for computer aided manufacturing
US5288209A (en) Automatic adaptive sculptured machining
CN113681469B (en) Intelligent control method and system for polishing equipment
CN114265586B (en) Automatic programming method and device for cutting and computer readable storage medium
CN110750840A (en) Method and device for automatically generating two-dimensional part view based on three-dimensional model
CN115740198A (en) Method and device for determining trimming contour and flanging contour segmentation points
CN115993804B (en) Cutter parameter adjustment method based on numerical control machine tool and related equipment
Shankar et al. A generalized methodology for evaluating manufacturability
CN115629573B (en) Automatic programming method and device for machining program, terminal device and storage medium
CN115016394A (en) Flaw cutter point identification method based on flaw type
CN116569117A (en) Machine learning device, machining program generating device, and machine learning method
CN111598364B (en) Digital process arrangement system for mechanical parts
CN115859516A (en) Method, device and medium for calculating labor cost of parametric modeling of sheet metal mold
CN113983977B (en) UGNX-based mold electrode detection method, UGNX-based mold electrode detection device and UGNX-based mold electrode detection equipment
CN114488943B (en) Random multi-area efficient polishing path planning method oriented to matched working conditions
Yıldız et al. Development of a feature based CAM system for rotational parts
CN104699904B (en) A kind of uneven allowance method of adjustment of propeller
CN114997031B (en) Workpiece machining difficulty assessment method and device, terminal equipment and storage medium
TWI763233B (en) Processing method and system for automatically generating machining feature
CN113110299B (en) Automatic production method of cutting die capable of realizing continuous machining
US11656597B2 (en) Method and system for recognizing deburring trajectory
CN116912241B (en) CNC machine adjustment optimization method and system based on machine learning
US20240069522A1 (en) Systems and methods to automate cnc programming
EP3739480A1 (en) A method of evaluating a capability of a machine and determining a machine run time for manufacturing a part
CN117555286A (en) Automatic programming method and system for intelligent machining center

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