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

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

Info

Publication number
CN114265586B
CN114265586B CN202111514303.1A CN202111514303A CN114265586B CN 114265586 B CN114265586 B CN 114265586B CN 202111514303 A CN202111514303 A CN 202111514303A CN 114265586 B CN114265586 B CN 114265586B
Authority
CN
China
Prior art keywords
cutting
template
processing area
creating
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.)
Active
Application number
CN202111514303.1A
Other languages
Chinese (zh)
Other versions
CN114265586A (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

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 processing area identification result; and creating a machining program according to the first process template and the cutting characteristic type. By the implementation of the invention, the first process template corresponding to the workpiece model is not required to be selected manually, the cutting parameter setting efficiency and accuracy of the workpiece model are improved, and the automatic parameter adjustment can be realized; compared with the prior art, after all the processing areas are manually selected, the cutting parameters are set one by one for each processing area to create a processing program, so that the programming efficiency can be further improved, and meanwhile, the automatic programming can be realized.

Description

Automatic programming method and device for cutting and computer readable storage medium
Technical Field
The present invention relates to the field of numerical control programming, and in particular, to a cutting automatic programming method, apparatus, and computer readable storage medium.
Background
At present, the wire cutting and spark cutting programming is completely dependent on the experience of a designer, and after the wire cutting area or the contour is manually selected, the editing cutting parameters are set one by one to generate a cutting path, so that the whole process is low in efficiency, easy to make mistakes and seriously affects the cutting processing quality.
Disclosure of Invention
The invention aims to solve the technical problems of low programming efficiency and easy error caused by manual cutting programming in the related art by providing a cutting automatic programming method, a cutting automatic programming device and a computer readable storage medium.
To solve the above technical problem, a first aspect of the present invention provides a cutting automatic 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 sides of the workpiece model are colored;
creating a cutting feature type according to the first process template and the processing area identification result;
and creating a machining program according to the first process template and the cutting characteristic type.
A second aspect of the present invention provides an automatic cutting programming apparatus 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 characteristic type according to the first process template and the machining area identification result;
and the second creating module is used for creating a machining program according to the first process template and the cutting characteristic type.
A third aspect of the present invention provides 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 cut auto-programming method as described above.
A fourth aspect of the present invention provides a computer readable storage medium storing one or more programs executable by one or more processors to implement the steps of a cut automatic programming method as described above.
Compared with the prior art, the cutting automatic programming method, the cutting automatic programming device and the computer readable storage medium have the beneficial effects that: loading a workpiece model in the 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 processing area identification result; and creating a machining program according to the first process template and the cutting characteristic type. By the implementation of the invention, the first process template corresponding to the workpiece model is not required to be selected manually, the cutting parameter setting efficiency and accuracy of the workpiece model are improved, and the automatic parameter adjustment can be realized; compared with the prior art, after all the processing areas are manually selected, the cutting parameters are set one by one for each processing area to create a processing program, so that the programming efficiency can be further improved, and meanwhile, the automatic programming can be realized.
Drawings
FIG. 1 is a basic flow diagram of a method for automatic programming of cuts provided in embodiment 1 of the present invention;
FIG. 2 is a flow chart of morphological analysis of a workpiece model according to embodiment 1 of the present invention;
FIG. 3 is a flow chart of a first process template obtained by matching the analysis result with a knowledge base in embodiment 1 of the present invention;
FIG. 4 is a schematic flow chart of step S12 in embodiment 1 of the present invention;
fig. 5 is a schematic flow chart of step S13 in embodiment 1 of the present invention;
FIG. 6 is a schematic flow chart of a method for automatic programming of cutting provided in embodiment 2 of the present invention;
FIG. 7 is a schematic view of a program module of an automatic cutting programming device according to embodiment 3 of the present invention;
FIG. 8 is a schematic color diagram of a model of a workpiece in example 1 of the present invention;
FIG. 9 is a schematic view of the various processing regions of the workpiece model of example 1 of the present invention;
FIG. 10 is a schematic view showing the angle between the outer wall of the measurement processing region and 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 diagram showing the path simulation of a machining region in a workpiece model according to embodiment 1 of the present invention;
FIG. 13 is a schematic drawing showing the punching of each processing region in the workpiece model in example 1 of the present invention;
fig. 14 is a schematic diagram of clamping of each processing 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. and a second creation module.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Example 1:
in order to solve the technical problem of low programming efficiency and easy error caused by manual cutting programming in the related art, the embodiment provides a cutting automatic programming method, which can be preferably applied to wire cutting equipment, as shown in fig. 1, which is a basic flow diagram of the cutting automatic programming method provided by the embodiment, and the cutting automatic programming method provided by the embodiment comprises the following steps:
step S10, loading a workpiece model.
And S11, 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.
And S12, creating a cutting characteristic type according to the first process template and the machining area identification result.
Step S13, creating a machining program according to the first process template and the cutting characteristic type.
Specifically, a plurality of targets to be cut can be arranged on the workpiece model, the targets to be cut can be square holes, round holes, conical holes, special-shaped holes, appearance and the like, the workpiece model can be a CAD model, and the CAD model can be in any one of stp, prt, igs and x_t. The knowledge base is provided with a plurality of parameter templates, and relevant parameters for cutting the workpiece are arranged in each parameter template; because the specific parameters contained in the analysis result and the templates of the knowledge base have corresponding mapping relations, after the analysis result is matched with the knowledge base, the first process template can be obtained, namely, when different workpiece models are loaded, the first process template corresponding to the workpiece models can be automatically matched, so that the first process template corresponding to the workpiece models does not need to be manually selected, the cutting parameter setting efficiency and accuracy of the workpiece models are improved, and meanwhile, the automatic parameter adjustment can be realized. After the cutting feature type is created, the same cutting parameters can be set according to the same number of machining areas with the cutting feature type, and then a machining program is created.
In this embodiment, since the surfaces of the workpiece model before loading have various conditions, such as a partial surface of the workpiece model has a color, all surfaces of the workpiece model have the same color, all surfaces of the workpiece model do not have a color, and the like, it is necessary to perform pretreatment on the workpiece model at the time of loading, to ensure that all surfaces of the workpiece model after loading have a color, and different surfaces have different colors. The pretreatment process may include: traversing all the physical faces of the workpiece model, performing color removal processing on all the physical faces, and then performing color marking on all the physical faces, wherein different faces are marked with different colors.
Fig. 2 is a schematic flow chart of morphological analysis on the workpiece model in the step S11, which specifically includes the following steps:
and step S20, traversing all the surfaces of the workpiece model on the entity to obtain the closed surface and the non-closed surface which are arranged on the entity.
Step S21, grouping the sealing surfaces according to the colors of the sealing surfaces.
And S22, judging whether different sealing surfaces are adjacent or not, and obtaining a processing area according to a judging result.
Step S23, determining the cutting type according to the shape of the processing area.
And S24, judging whether the included angle of the side wall of the processing area relative to the normal line is equal to zero, and determining whether the processing area is shaped vertically according to a judging result.
And S25, determining upper and lower plane parameters of the processing area according to the thickness of the workpiece model.
Step S26, determining a cutting mode according to the size of the processing area.
Specifically, the colors of the surfaces of the workpiece model are different; the shape of the processing area comprises square, round, taper hole, special-shaped hole, outline and the like, and the corresponding cutting types comprise square cutting, round cutting, taper hole cutting, special-shaped hole cutting and outline cutting; as shown in fig. 10, fig. 10 is a schematic diagram of an included angle of an outer wall of a processing area relative to a normal line, wherein the direction of the measured normal line is a thickness direction of a workpiece model, the processing area is hollow after cutting is completed, when the included angle of the outer wall of the processing area relative to the normal line is not equal to zero, the processing area is shaped up and down, such as a taper hole, a shaped hole, a chute and the like, and when the included angle of the outer wall of the processing area relative to the normal line is equal to zero, the processing area is not shaped up and down, such as a rectangle, a circle and the like; the cutting mode includes chipless cutting and chipless cutting, and chipless cutting adopts chipless cutting, and chipless cutting is used for cutting small-size processing area, and chipless cutting is used for cutting large-size processing area, is favorable to the maximize reduce cutting time to promote cutting efficiency.
As shown in fig. 9, fig. 9 is a schematic diagram of each processing area of the workpiece model, in an implementation manner of this embodiment, all entities of the workpiece model may be obtained by traversing all entity functions esapplication, document, solids interfaces, grouping the faces of the entities by using all face functions solid, solid bodies, solid faces on the traversed entities, and finally obtaining a single complete processing area by searching whether the faces are adjacent to each other by analyzing the adjacent face functions solid loop, ad jacent solid faces (). 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 rectangular holes and cylindrical holes with upper and lower special shapes, and the two cylindrical holes are cylindrical holes with a large size and a small size. As shown in fig. 8, fig. 8 is a schematic color drawing of each face of the workpiece model, for convenience of description and understanding, the inner wall face of the rectangular hole is set to green 106, the inner wall face of the chute is set to red 147, the inner wall face of the taper hole is set to orange 42, the inner wall face of the large cylindrical hole is set to pink 114, the inner wall face of the small cylindrical hole is set to purple 152, the inner wall face of the cylindrical hole shaped up and down is set to cyan 59, and the outer shape of the workpiece model is set to gray. In another implementation manner of this embodiment, the inner wall surface of the rectangular hole, the inner wall surface of the chute, the inner wall surface of the taper 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 vertical special-shaped cylindrical hole and the outer shape of the workpiece model can be set to be any color according to actual needs; other bores and numbers of bores may also be provided.
In this embodiment, when traversing all the solid surfaces of the workpiece model, the color of the solid surfaces is different, so that a closed surface and an unsealed surface can be obtained, where the closed surface is the inner wall surface of the rectangular hole, the inner wall surface of the chute, the inner wall surface of the conical hole, the inner wall surface of the large cylindrical hole, the inner wall surface of the small cylindrical hole and the inner wall surface of the cylindrical hole with the upper and lower special shapes, and the unsealed surface is the outer shape of the workpiece model. Because the colors of the sealing surfaces are different, the sealing surfaces can be grouped, and each group of sealing surfaces has the same color; since the main object of the wire cutting process is a hole and an outline, the object surface has adjacent features in terms of geometric properties. Therefore, by the colors of the sealing surfaces, the sealing surfaces with common colors are classified into one group, and the adjacent sealing surfaces are searched for iteratively until all the sealing surfaces are grouped, whether the sealing surfaces are adjacent or not is judged, when the two groups of sealing surfaces are adjacent, any one of the two groups of sealing surfaces is determined to be an incomplete processing area, and when the other group of sealing surfaces is determined to be not adjacent, the sealing surfaces are determined to be a single complete processing area.
Fig. 3 is a schematic flow chart of the step S11 for 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 outline 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 inner hole cutting, matching the corresponding concave die cutting template from the knowledge base and configuring the concave film cutting template as the first process template.
And S31, when the machining area is in an upper and lower special shape, matching the corresponding four-axis cutting templates from the knowledge base and configuring the four-axis cutting templates as a first process template, and when the machining area is not in an upper and lower special shape, matching the corresponding two-axis cutting templates from the knowledge base and configuring the two-axis cutting templates 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 processing template from the knowledge base and configuring the chipless processing 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 processing template from the knowledge base and configuring the chipless processing 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 die cutting template, a four-axis cutting template, a two-axis cutting template, a chipless cutting template, an outline cutting template and the like, and the parameter templates can be combined, such as a two-axis chipless cutting template, a four-axis chipless cutting template, a two-axis chipless outline template and the like, a four-axis chipless outline cutting template and the like. The corresponding cutting template can be matched according to the workpiece model through the cutting template in the knowledge base, namely, the technological parameters can be reserved through the knowledge base and can be obtained through matching when the knowledge base is needed, so that the efficiency of cutting parameter adjustment is improved; meanwhile, the knowledge base comprises a plurality of cutting templates, and the adjustment of any cutting parameters can be met.
In one implementation of this embodiment, the rectangular hole is an inner hole, and then the corresponding die cutting template is matched from the knowledge base and configured as a first process template; the rectangular holes are not shaped vertically, and the corresponding two-axis cutting templates are matched from the knowledge base and configured as a first process template; the sizes (length, width and height) of the rectangular holes are 21.20mm, 12.70mm and 20.20mm, the preset threshold value is that the diameter of the inner holes is 2.5, namely, the sizes of the rectangular holes are larger than the preset threshold value, and the corresponding chipped machining templates are matched from the knowledge base and configured as first process templates; therefore, the first process template matched with the rectangular hole is subjected to two-axis chipped cutting, the process template matched with the chute is subjected to four-axis chipped cutting, and the first process template matched with the shape is subjected to two-axis chipped shape cutting.
Fig. 4 is a schematic flow chart of the step S12, which specifically includes the following steps:
step S40, creating the cutting characteristic type according to the number of machining areas cut by two shafts and the number of machining areas cut by four shafts.
Step S41, creating a machining program according to the rest process templates and the cutting characteristic types in the first process template.
In one implementation of this embodiment, the feature parameters are set by creating a technical parameter function esapplication. Creating a machining program according to the remaining process templates and the types of cutting features in the first process template, specifically, initializing parameters of the first process template by creating a technical parameter function of application.
Table 1:
type(s) Female die Upper nozzle 22.000000
Strategy Anticlockwise Minor plane 'Q' (thickness) 21.000000
Strategy [ coarse cutting ] and [ fine cutting ] Program plane 'P' 0.000000
Compensation type G41\G42 Workpiece bottom 0.000000
Lower nozzle -1.000000
Then matching the corresponding first process templates from the knowledge base, creating operations by creating a line cutting operation function esapplication. By creating a cutting feature type, a more optimal cutting path may be obtained, thereby improving the efficiency of cutting the workpiece.
Fig. 5 is a schematic flow chart of the step S13, which specifically includes the following steps:
and S50, creating a machining blank according to the workpiece model.
And S51, performing tool path simulation on the blank according to the first process template and the cutting characteristic type.
And step S52, creating a machining program according to the tool path simulation result.
As shown in fig. 12, fig. 12 is a schematic diagram of a tool path simulation of a machining area in a workpiece model, in this embodiment, a machined blank is created according to the machining area on the workpiece model, a first process template matched with each machining area is called, an optimal cutting tool path is generated in combination with the cutting feature type of the machining area, the tool path simulation is performed on the blank, when the tool path simulation is abnormal, all program information of the cutting tool path is obtained, batch post-processing is performed, and a machining 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 Process [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 loads the machining program and when the process parameters are debugged, the on-site machining process parameter tuning process is recorded, and the extended knowledge base is automatically updated; firstly, loading a machining program on a machine, modifying parameters according to actual machining conditions, reporting the optimized parameters, analyzing the reported parameters, and updating the machine model into a first process template according to the machine type. By recording the field processing technology parameter tuning process and updating the field processing technology parameter tuning process into the knowledge base, the knowledge base can be expanded, the next direct use of the parameter is facilitated, and the parameter does not need to be continuously adjusted, so that automatic parameter tuning is realized.
In one embodiment of the present 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 for reporting the parameters 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
}
}
}
fig. 13 is a schematic drawing of punching of each processing region in the workpiece model, and fig. 14 is a schematic drawing of clamping of each processing region in the workpiece model, in this embodiment, after the processing program is created, a punching map and a clamping map are also created for convenience of punching on a punch.
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 compensation value; finishing 1 electric quantity, compensation value, finishing 2 electric quantity, compensation value and the like.
Fig. 6 is a schematic flow chart of a cutting automatic programming method according to the present embodiment, which specifically includes the following steps:
step S60, loading a 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 a processing area in the analysis result.
Step S62, a cutting characteristic type is created 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 obtaining a second process template from the knowledge base in a matching manner according to the processing environment.
Step S64, creating a machining program according to the second process template, the first process template and the cutting characteristic type.
In this embodiment, the processing environment is set to select a machine model and a wire cutting type for wire cutting processing, and specifically as shown in table 2, table 2 is a machine model and a wire cutting type.
Table 2:
and matching corresponding parameter templates in a knowledge base according to the machine type, the machine model, the cutting wire, the workpiece material, the model thickness and the finish cutting parameters to obtain a second process template.
In one embodiment, the specific parameters are as shown after the Makino machine is selected. According to the machine type of Makino, the machine type of U3, U6 (V5), the wire cutting of 0.25, the workpiece material of die steel NAK80, the model thickness of 20 and the precision of rough cutting and fine cutting of 2, the second process template at the moment is a parameter library U3, U6 (V5) of mdb, and the adaptive parameters are rough cutting electric quantity and compensation value; finishing 1 electric quantity and compensation value; the electric quantity and compensation value of the fine 2 are shown in the following table 3, the table 3 is a specific parameter of rough cutting and fine cutting 2,
table 3:
electric quantity Compensation Compensation value
Rough machining 1061 0.210 0
Jump 1 1311 0.155 1
Jump 2 1312 0.133 2
The method comprises the following specific steps:
"wireDiameter" is 0.25, wire cut
"wireMaterial":"BS",
"workpiece Material": "St", workpiece material
"items":[{
"workpiece thickness" 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 processing procedure was as follows:
(This program is in METRIC)
(rough cutting main process)
(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 Process [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 Process [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 a program module of the automatic cutting programming device according to the present embodiment, which specifically includes:
a loading module 70 for loading the workpiece model.
And the processing module 71 is used for performing morphological analysis on the workpiece model, matching the analysis result with the knowledge base to obtain a first process template, and identifying a processing area in the analysis result.
A first creation module 72 for creating a cut feature type based on the first process template and the process area identification result.
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 workpiece model during loading, so that all 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 unsealed surface which are arranged on the entity; grouping the sealing surfaces according to the colors of the sealing surfaces; judging whether different sealing surfaces are adjacent or not, and obtaining a processing area according to a judging result. Also used for: obtaining a processing area according to the colors of all the surfaces of the workpiece model; determining a cutting type according to the shape of the processing area; judging whether the included angle of the side wall of the processing area relative to the normal is equal to zero, and determining whether the processing area is shaped vertically according to a judging 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 the sealing surfaces are different, the sealing surfaces can be grouped, and each group of sealing surfaces has the same color; since the main object of the wire cutting process is a hole and an outline, the object surface has adjacent features in terms of geometric properties. Therefore, by the colors of the sealing surfaces, the sealing surfaces with common colors are classified into one group, and the adjacent sealing surfaces are searched for iteratively until all the sealing surfaces are grouped, whether the sealing surfaces are adjacent or not is judged, when the two groups of sealing surfaces are adjacent, any one of the two groups of sealing surfaces is determined to be an incomplete processing area, and when the other group of sealing surfaces is determined to be not adjacent, the sealing surfaces are determined to be a single complete processing area. The shape of the processing area comprises square, round, taper hole, special-shaped hole, outline and the like, and the corresponding cutting types comprise square cutting, round cutting, taper hole cutting, special-shaped hole cutting and outline cutting; the normal direction is the thickness direction of the workpiece model, the processing area is hollow after cutting is completed, 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 shaped up and down, such as a taper hole, a 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 shaped up and down, such as a rectangle, a circle and the like; the cutting mode includes chipless cutting and chipless cutting, and chipless cutting adopts chipless cutting, and chipless cutting is used for cutting small-size processing area, and chipless cutting is used for cutting large-size processing area, is favorable to the maximize reduce cutting time to promote cutting efficiency.
The processing module 71 is further configured to: when the cutting type is shape cutting, matching a corresponding convex film cutting template from a 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 die cutting template from the knowledge base and configuring the concave die cutting template as the first process template; when the processing area is in an upper and lower special shape, matching the corresponding four-axis cutting templates from the knowledge base and configuring the four-axis cutting templates as first process templates, and when the processing area is not in an upper and lower special shape, matching the corresponding two-axis cutting templates from the knowledge base and configuring the two-axis cutting templates as first process templates; 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 chipless machining template as a first process template. The knowledge base is provided with a plurality of parameter templates, including a convex film cutting template, a concave die cutting template, a four-axis cutting template, a two-axis cutting template, a chipless cutting template, an outline cutting template and the like, and the parameter templates can be combined, such as a two-axis chipless cutting template, a four-axis chipless cutting template, a two-axis chipless outline template and the like, a four-axis chipless outline cutting template and the like.
The first creation module 72 is specifically configured to: creating a cutting characteristic type according to the number of machining areas cut by two shafts and the number of machining areas cut by four shafts; the corresponding second creation module 83 is configured to create a machining program according to the remaining process templates and the types of cutting features in the first process template.
The second creation module 73 is specifically configured to: creating a machining blank according to the workpiece model; according to the first process template and the cutting characteristic type, performing tool path simulation on the blank; and creating a machining program according to the tool path simulation result.
Example 4:
the present embodiment provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing at least one step of the method of embodiments 1 to 2 above when the computer program is executed by the processor.
The present embodiments also provide a computer-readable storage medium including volatile or nonvolatile, 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 includes, but is not limited to, RAM (Random Access Memory ), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory, charged erasable programmable Read-Only Memory), flash Memory or other Memory technology, CD-ROM (Compact Disc 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, and the one or more computer programs stored therein 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 computable device to implement at least one step of the method of embodiment 1 above; and in some cases at least one of the steps shown or described may be performed in a different order than that described in the above embodiments.
The present embodiment also provides a computer program product comprising computer readable means having stored thereon a computer program as shown above. The computer readable means in this embodiment may comprise a computer readable storage medium as shown above.
It will be apparent to one skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the apparatus disclosed above may be implemented as software (which may be implemented in computer program code executable by a computing apparatus), firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between the 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 cooperatively by several physical components. 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 foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.

Claims (9)

1. A method of automatic programming of cuts, comprising:
loading a workpiece model;
traversing all the surfaces on the entity of the workpiece model to obtain a closed surface and an unsealed surface which are arranged on the entity; grouping the sealing surfaces according to the colors of the sealing surfaces; judging whether different sealing surfaces are adjacent or not, and obtaining a processing area according to a judging result; determining a cutting type according to the shape of the processing area; judging whether the included angle of the side wall of the processing area relative to the normal is equal to zero, and determining whether the processing area is shaped vertically according to a judging result; 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; matching the analysis result with a knowledge base to obtain a first process template, and identifying a processing area in the analysis result; wherein all sides of the workpiece model are colored;
creating a cutting feature type according to the first process template and the processing area identification result;
and creating a machining program according to the first process template and the cutting characteristic type.
2. The method of automatic programming of cutting of claim 1, wherein the colors of the faces of the workpiece model are different; the cutting types comprise square, round, taper holes, special-shaped holes and profile cutting; when the included angle is not equal to zero, the processing area is shaped up and down; the cutting mode comprises chipless cutting and chipless cutting.
3. The method of claim 1, wherein matching the analysis result to the knowledge base to obtain a first process template comprises:
when the cutting type is profile cutting, matching a corresponding convex film cutting template from a 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 die cutting template from the knowledge base and configuring the concave die cutting template as the first process template;
when the processing area is in an upper and lower special shape, matching a corresponding four-axis cutting template from a knowledge base and configuring the four-axis cutting template as a first process template, and when the processing area is not in an upper and lower special shape, matching a corresponding two-axis cutting template from the knowledge base and configuring the two-axis 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 processing template from the knowledge base and configuring the chipless processing template as a first process template.
4. The method of automatic cutting programming according to claim 3, wherein said creating a cut feature type from said first process template and process area identification result comprises:
creating a cutting characteristic type according to the number of the machining areas cut by two shafts and the number of the machining areas cut by four shafts;
said creating a machining program from said first process template and said cut feature type comprising:
and creating a machining program according to the rest process templates in the first process templates and the cutting characteristic types.
5. The method of automatic programming of cutting of claim 1, wherein said creating a machining program based on said first process template and said type of cutting feature comprises:
creating a machining blank according to the workpiece model;
performing cutter path simulation on the blank according to the first process template and the cutting characteristic type;
and creating a machining program according to the tool path simulation result.
6. The method of automatic programming of cutting of claim 1, further comprising, prior to said creating a machining program step from said first process template and said type of cutting feature:
setting a processing environment corresponding to the workpiece model, and obtaining a second process template from a knowledge base in a matching manner according to the processing environment;
and creating a machining program according to the second process template, the first process template and the cutting characteristic type.
7. A cutting automatic programming device, comprising:
the loading module is used for loading the workpiece model;
a processing module for: traversing all the surfaces on the entity of the workpiece model to obtain a closed surface and an unsealed surface which are arranged on the entity; grouping the sealing surfaces according to the colors of the sealing surfaces; judging whether different sealing surfaces are adjacent or not, and obtaining a processing area according to a judging result; determining a cutting type according to the shape of the processing area; judging whether the included angle of the side wall of the processing area relative to the normal is equal to zero, and determining whether the processing area is shaped vertically according to a judging result; 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; 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;
the first creating module is used for creating a cutting characteristic type according to the first process template and the machining area identification result;
and the second creating module is used for creating a machining program according to the first process template and the cutting characteristic type.
8. 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 cut automatic programming method of any one of claims 1 to 6.
9. A computer readable storage medium storing one or more programs executable by one or more processors to implement the steps of the cut automatic programming method of any one of claims 1 to 6.
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 CN114265586A (en) 2022-04-01
CN114265586B true 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)

Families Citing this family (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 (8)

* 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
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9927795B2 (en) * 2015-03-02 2018-03-27 The Boeing Company Associative templates for machining operations and systems and methods including the same

Patent Citations (8)

* 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
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
Matching Model for Planar Bulk Transistors With Halo Implantation;Ulrich Schaper 等;《IEEE Electron Device Letters》;第32卷(第7期);859-861 *
机床智能控制系统体系架构及关键技术研究进展;孟博洋 等;《机械工程学报》;第57卷(第9期);147-165 *
精密复杂曲面零件多轴数控加工技术研究进展;徐金亭 等;《航空学报》;第42卷(第10期);1-24 *

Also Published As

Publication number Publication date
CN114265586A (en) 2022-04-01

Similar Documents

Publication Publication Date Title
US5351196A (en) Method and apparatus for solids based 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
CN110449658B (en) Plate cutting method and device
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
CN114488943B (en) Random multi-area efficient polishing path planning method oriented to matched working conditions
Groch et al. Simulation tests of the accuracy of fitting two freeform surfaces
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
Ong et al. Fuzzy-set-based approach for concurrent constraint set-up planning
Osman Zahid et al. End mill tools integration in CNC machining for rapid manufacturing processes: simulation studies
Abdel-Malek et al. Process and design tolerance in relation to manufacturing cost: A review & extension
Thilak et al. Computer-aided tolerance chain identification system for tolerance allocation
Berry et al. Closed-loop coordinate metrology for hybrid manufacturing system
US11656597B2 (en) Method and system for recognizing deburring trajectory
US20220215483A1 (en) A method of evaluating a capability of a machine and determining a machine run time for manufacturing a part
Cosic et al. Web Oriented Sequence Operations
Bartkowiak et al. Application of order statistics in the evaluation of flatness error: Sampling problem
CN114997031B (en) Workpiece machining difficulty assessment method and device, terminal equipment and storage medium
JPH0916657A (en) Methods for preparing designing data of shape of intermediate structure and tool tracing data
Hendriko et al. Analytical cut geometry prediction for free form surface during semi-finish milling
Dvorak Modeling strategy of freeforms on the basis of qualitative analysis
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