[go: up one dir, main page]

CN115178647B - Punching classification method and system, electronic equipment and storage medium - Google Patents

Punching classification method and system, electronic equipment and storage medium Download PDF

Info

Publication number
CN115178647B
CN115178647B CN202211116319.1A CN202211116319A CN115178647B CN 115178647 B CN115178647 B CN 115178647B CN 202211116319 A CN202211116319 A CN 202211116319A CN 115178647 B CN115178647 B CN 115178647B
Authority
CN
China
Prior art keywords
punching
hole
holes
punched
parameter information
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
CN202211116319.1A
Other languages
Chinese (zh)
Other versions
CN115178647A (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.)
Ji Hua Laboratory
Original Assignee
Ji Hua Laboratory
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 Ji Hua Laboratory filed Critical Ji Hua Laboratory
Priority to CN202211116319.1A priority Critical patent/CN115178647B/en
Publication of CN115178647A publication Critical patent/CN115178647A/en
Application granted granted Critical
Publication of CN115178647B publication Critical patent/CN115178647B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B21MECHANICAL METAL-WORKING WITHOUT ESSENTIALLY REMOVING MATERIAL; PUNCHING METAL
    • B21DWORKING OR PROCESSING OF SHEET METAL OR METAL TUBES, RODS OR PROFILES WITHOUT ESSENTIALLY REMOVING MATERIAL; PUNCHING METAL
    • B21D28/00Shaping by press-cutting; Perforating
    • B21D28/24Perforating, i.e. punching holes
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B30PRESSES
    • B30BPRESSES IN GENERAL
    • B30B15/00Details of, or accessories for, presses; Auxiliary measures in connection with pressing
    • B30B15/26Programme control arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present disclosure relates to a method and a system for classifying punched holes, an electronic device and a storage medium, which relate to the technical field of part processing, and include: acquiring parameter information of punching and parameter information of a machined part; pre-classifying the punched holes according to the parameter information of the punched holes, wherein the pre-classified punched holes comprise a front punched hole and a side punched hole; reclassifying the pre-classified middle side punched holes respectively based on the parameter information of the pre-classified middle side punched holes and the parameter information of the processed parts; and obtaining the positive punching classification data and the reclassified side punching classification data. The classified punching holes can be more suitable for the process machining of the machined parts, the problem of process interference caused by the fact that engineers are not considered when process procedures are arranged is solved, the workload of the process design of the die of the engineers is greatly saved, and the efficiency is improved.

Description

一种冲孔分类方法、系统、电子设备及存储介质A punching classification method, system, electronic equipment and storage medium

技术领域technical field

本公开涉及零件加工技术领域,尤其涉及一种冲孔分类方法、系统、电子设备及存储介质。The present disclosure relates to the technical field of parts processing, and in particular to a punching classification method, system, electronic equipment and storage medium.

背景技术Background technique

冲孔一直是钣金类材料的主要加工内容之一。现有汽车内板件冲压工艺设计技术中,加工零件上一般会有冲孔工艺特征需要加工,且一般由工程师根据冲孔的位置和冲孔形心法向量以及周边轮廓的修边工艺来安排冲孔的加工工序。Punching has always been one of the main processing contents of sheet metal materials. In the existing stamping process design technology for automotive inner panels, there are generally punching process features on the processed parts that need to be processed, and generally arranged by the engineer according to the position of the punching hole, the normal vector of the centroid of the punching hole, and the trimming process of the surrounding contour The punching process.

目前为了避免对冲孔工艺特征加工时产生工艺干涉,工程师要做大量运算以对所有冲孔的工艺进行安排,花费了大量时间;同时工程师若不够熟练,容易对冲孔判断失误导致零件加工生产停滞。At present, in order to avoid process interference in the processing of punching process features, engineers have to do a lot of calculations to arrange all the punching processes, which takes a lot of time; at the same time, if the engineer is not skilled enough, it is easy to make mistakes in the judgment of punching, which will lead to stagnation of parts processing and production.

发明内容Contents of the invention

为了解决上述技术问题或者至少部分地解决上述技术问题,本公开提供了一种冲孔分类方法、系统、电子设备及存储介质。In order to solve the above technical problem or at least partly solve the above technical problem, the present disclosure provides a punching classification method, system, electronic device and storage medium.

第一方面,本公开提供了一种冲孔分类方法,包括:In a first aspect, the present disclosure provides a punching classification method, including:

获得冲孔的参数信息和加工零件的参数信息;Obtain the parameter information of the punching hole and the parameter information of the processed part;

根据冲孔的参数信息对冲孔进行预分类,包括正冲孔和侧冲孔;Pre-classify the punching according to the parameter information of the punching, including front punching and side punching;

基于预分类中侧冲孔的参数信息和加工零件的参数信息,对预分类中侧冲孔分别进行再分类;Based on the parameter information of the side punching holes in the pre-classification and the parameter information of the processed parts, the side punching holes in the pre-classification are reclassified respectively;

获得正冲孔分类数据和再分类后的侧冲孔分类数据。The classification data of front punching holes and the classification data of side punching holes after reclassification are obtained.

进一步地,冲孔的参数信息和加工零件的参数信息,包括,冲孔编号、冲孔坐标、冲孔形心法向量、冲孔形心到孔边的最大距离、轮廓点坐标和轮廓点修边角度。Further, the parameter information of punching and the parameter information of processed parts include punching number, punching coordinates, normal vector of punching centroid, maximum distance from punching centroid to hole edge, contour point coordinates and contour point correction. edge angle.

进一步地,所述预分类包括以下方法:根据每个冲孔的冲孔形心法向量将冲孔分为正冲孔和侧冲孔,所述侧冲孔包括上侧冲孔、下侧冲孔、左侧冲孔和右侧冲孔。Further, the pre-classification includes the following method: according to the punching centroid normal vector of each punching hole, the punching hole is divided into a positive punching hole and a side punching hole, and the side punching hole includes an upper side punching hole, a lower side punching hole, and a side punching hole. Hole, Left Punch, and Right Punch.

进一步地,所述再分类包括以下方法:Further, the reclassification includes the following methods:

根据每个侧冲孔的冲孔坐标、轮廓点坐标、轮廓点修边角度和每个侧冲孔的冲孔形心到孔边的最大距离建立每个侧冲孔与轮廓的第一干涉关系表;Establish the first interference relationship between each side punching hole and the contour according to the punching coordinates of each side punching hole, contour point coordinates, contour point trimming angle and the maximum distance from the punching centroid of each side punching hole to the edge of the hole surface;

根据上侧冲孔、下侧冲孔、左侧冲孔和右侧冲孔的其中一类侧冲孔的不同冲孔形心法向量和同一类侧冲孔中两两冲孔的冲孔形心到孔边的最大距离建立同一类侧冲孔之间的第二干涉关系表;According to the different punching centroid normal vectors of one type of side punching of upper side punching, lower side punching, left side punching and right side punching and the punching shape of two punching holes in the same type of side punching The maximum distance from the center to the edge of the hole establishes the second interference relationship table between the same type of side punching holes;

根据第一干涉关系表和第二干涉关系表分别对上侧冲孔、下侧冲孔、左侧冲孔和右侧冲孔中的冲孔进行分类。According to the first interference relationship table and the second interference relationship table, the punching holes in the upper side punching hole, the lower side punching hole, the left side punching hole and the right side punching hole are classified respectively.

进一步地,根据第一干涉关系表和第二干涉关系表分别对上侧冲孔、下侧冲孔、左侧冲孔和右侧冲孔中的冲孔进行分类包括以下方法:Further, according to the first interference relation table and the second interference relation table, respectively classifying the punching holes in the upper punching hole, the lower punching hole, the left punching hole and the right punching hole includes the following methods:

A.基于上侧冲孔、下侧冲孔、左侧冲孔和右侧冲孔中的其中一类侧冲孔的冲孔编号随机生成该类的侧冲孔序列;A. Based on the punching number of one type of side punching in the upper side punching, lower side punching, left side punching and right punching, the side punching sequence of this type is randomly generated;

B.根据上述该类侧冲孔序列的顺序,基于第一干涉关系表和第二干涉关系表依次判断该类侧冲孔中某一冲孔与该类序列之前所有冲孔的工艺性质,将相同工艺性质的冲孔归为一小类,反之则自成一小类;B. According to the order of the above-mentioned side punching sequence of this type, based on the first interference relationship table and the second interference relationship table, the technological properties of a punching hole in this type of side punching hole and all punching holes before this type of sequence are judged sequentially, and the Punching with the same process nature is classified into a small category, and vice versa is a subcategory of its own;

C.获得并输出该类侧冲孔的小类分类数据;C. Obtain and output the subclass classification data of this type of side punching;

D.重复步骤A-C,获得并输出其余类侧冲孔的小类分类数据。D. Repeat steps A-C to obtain and output the sub-category data of other side punching holes.

进一步地,在C步骤前还包括:Further, before step C, it also includes:

执行A-B步骤一或多次,Perform steps A-B one or more times,

当执行次数不为一时,执行以下方法:When the number of executions is not one, execute the following method:

获得多组某一类的侧冲孔小类分类数据;Obtain multiple groups of side punching sub-category data of a certain type;

在多组某一类的侧冲孔小类分类数据中,获得并输出小类类数最少的一组侧冲孔小类分类数据。Obtain and output a set of side punching subcategory data with the least number of subcategories among multiple sets of side punching subcategory data of a certain category.

第二方面,本公开提供了一种冲孔分类系统,包括:In a second aspect, the present disclosure provides a punching classification system, including:

参数获得单元,用于获得冲孔的参数信息和加工零件的参数信息;The parameter acquisition unit is used to obtain the parameter information of the punching hole and the parameter information of the processed part;

计算单元,用于根据冲孔的参数信息对冲孔进行预分类,以及基于预分类中侧冲孔的参数信息和加工零件的参数信息,对预分类中侧冲孔分别进行再分类,所述预分类的冲孔包括正冲孔和侧冲孔;The calculation unit is used to pre-classify the punching holes according to the parameter information of the punching holes, and reclassify the side punching holes in the pre-classification based on the parameter information of the side punching holes in the pre-classification and the parameter information of the processed parts. Classified punching includes positive punching and side punching;

输出单元,用于获得并输出正冲孔分类数据和再分类后的侧冲孔分类数据。The output unit is used to obtain and output the classification data of front punching holes and the classification data of side punching holes after reclassification.

第三方面,本公开提供了一种计算机存储介质,所述存储介质存储程序或指令,所述程序或指令使计算机执行第一方面所述的冲孔分类方法。In a third aspect, the present disclosure provides a computer storage medium, the storage medium stores a program or an instruction, and the program or instruction causes a computer to execute the punching classification method described in the first aspect.

第四方面,本公开提供了一种电子设备,包括通信接口、处理器、存储器、总线,存储器用于存储计算机执行指令,处理器与存储器通过总线连接,当电子设备运行时,处理器执行存储器存储的计算机执行指令,用于执行第一方面所述的冲孔分类方法。In a fourth aspect, the present disclosure provides an electronic device, including a communication interface, a processor, a memory, and a bus. The memory is used to store computer-executed instructions. The processor and the memory are connected through the bus. When the electronic device is running, the processor executes the memory. The stored computer-executable instructions are used to execute the punching classification method described in the first aspect.

本公开提供的技术方案与现有技术相比具有如下优点:Compared with the prior art, the technical solution provided by the present disclosure has the following advantages:

将所有冲孔预分类为正冲孔和侧冲孔,并依照冲孔加工工艺要求及轮廓加工工艺对侧冲孔进行再分类,得到侧冲孔中每一类侧冲孔(上侧冲孔、下侧冲孔、左侧冲孔和右侧冲孔)中的多种小类,多种小类的零件工艺加工要求一致,使得冲孔更能适应零件工艺加工,同时也规避了工程师在安排工艺工序时因考虑不周造成工艺干涉的问题,极大节省了工程师零件工艺设计的工作量,提高了效率;多次依某一类侧冲孔编号随机生成该类的侧冲孔序列,进行多次分类,最终取小类数量最少的侧冲孔小类分类数据,避免了单次分类造成的分类误差,提升了冲孔分类的准确度。All punching holes are pre-classified into front punching holes and side punching holes, and the side punching holes are reclassified according to the punching processing technology requirements and contour processing technology, and each type of side punching holes (upper side punching holes) is obtained. , lower side punching, left side punching and right side punching), the parts processing requirements of various subclasses are consistent, which makes punching more suitable for parts processing, and also avoids the need for engineers to The problem of process interference caused by poor consideration when arranging the process process greatly saves the workload of the engineer's part process design and improves the efficiency; multiple times according to the number of a certain type of side punching hole, the sequence of side punching holes of this type is randomly generated, Perform multiple classifications, and finally select the classification data of the side punching sub-category with the least number of sub-categories, avoiding the classification error caused by a single classification, and improving the accuracy of punching classification.

附图说明Description of drawings

图1为本公开实施例一种冲孔分类方法的流程示意图一;FIG. 1 is a first schematic flow diagram of a punching classification method according to an embodiment of the present disclosure;

图2为本公开实施例一种冲孔分类方法的流程示意图二;FIG. 2 is a second schematic flow diagram of a punching classification method according to an embodiment of the present disclosure;

图3为本公开实施例一种冲孔分类系统的结构示意图;FIG. 3 is a schematic structural diagram of a punching classification system according to an embodiment of the present disclosure;

图4为本公开实施例一种电子设备的结构示意图;FIG. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;

图5为本公开实施例一种计算机存储介质的示意图。FIG. 5 is a schematic diagram of a computer storage medium according to an embodiment of the present disclosure.

其中,21、参数获得单元;22、计算单元;23、输出单元;3、电子设备;31、处理器;32、存储器;33、通信接口;34、通信总线;35、处理器;4、计算机程序产品;41、信号承载介质;42、计算机可读介质;43、计算机可记录介质;44、通信介质;45、程序指令。Among them, 21. Parameter acquisition unit; 22. Calculation unit; 23. Output unit; 3. Electronic equipment; 31. Processor; 32. Memory; 33. Communication interface; 34. Communication bus; 35. Processor; 4. Computer Program product; 41. Signal bearing medium; 42. Computer readable medium; 43. Computer recordable medium; 44. Communication medium; 45. Program instructions.

具体实施方式detailed description

为了能够更清楚地理解本公开的上述目的、特征和优点,下面将对本公开的方案进行进一步描述。需要说明的是,在不冲突的情况下,本公开的实施例及实施例中的特征可以相互组合。In order to more clearly understand the above objects, features and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that, in the case of no conflict, the embodiments of the present disclosure and the features in the embodiments can be combined with each other.

在下面的描述中阐述了很多具体细节以便于充分理解本公开,但本公开还可以采用其他不同于在此描述的方式来实施;显然,说明书中的实施例只是本公开的一部分实施例,而不是全部的实施例。In the following description, many specific details are set forth in order to fully understand the present disclosure, but the present disclosure can also be implemented in other ways than described here; obviously, the embodiments in the description are only some of the embodiments of the present disclosure, and Not all examples.

图1为本公开实施例所述一种冲孔分类方法的流程示意图一,图2为本公开实施例所述一种冲孔分类方法的流程示意图二,结合图1和图2,本公开实施例包括以下步骤:Figure 1 is a schematic flow diagram of a punching classification method described in an embodiment of the present disclosure, and Figure 2 is a schematic flow diagram of a punching classification method described in an embodiment of the present disclosure. The example includes the following steps:

S110:获得冲孔的参数信息和加工零件的参数信息。S110: Acquiring punching parameter information and processing part parameter information.

所述冲孔的参数信息和加工零件的参数信息包括冲孔编号、冲孔坐标、冲孔形心到孔边的最大距离和冲孔形心法向量、轮廓点坐标和轮廓修边角度。一个冲孔的参数信息包括冲孔编号、冲孔坐标、冲孔形心到孔边的最大距离和冲孔形心法向量,冲孔坐标和冲孔法向量可混合表示为(x,y,z,u,v,w,r),其中(x,y,z)为冲孔形心的笛卡尔坐标,(u,v,w)为冲孔形心的在x,y,z轴上的法向量,r为冲孔形心到孔边的最大距离。加工零件的参数信息包括轮廓点坐标和轮廓点修边角度。轮廓指加工零件的面的边缘,例如在钣金件中,钣金件的形状为片体,因此轮廓指的是钣金件的外边缘,也可以说是钣金件面的边缘。另外,由轮廓点修边角度可以得知修边工艺,如正修或侧修。The punching parameter information and the processing part parameter information include punching number, punching coordinates, maximum distance from punching centroid to hole edge, normal vector of punching centroid, contour point coordinates and contour trimming angle. The parameter information of a punching hole includes the punching number, punching coordinates, the maximum distance from the punching centroid to the edge of the hole and the normal vector of the punching centroid. The punching coordinates and the punching normal vector can be mixed and expressed as (x, y, z,u,v,w,r), where (x,y,z) is the Cartesian coordinates of the punching centroid, (u,v,w) is the punching centroid on the x,y,z axis The normal vector of , r is the maximum distance from the centroid of the punching hole to the edge of the hole. The parameter information of the processed part includes the contour point coordinates and the trimming angle of the contour point. The contour refers to the edge of the surface of the processed part. For example, in the sheet metal part, the shape of the sheet metal part is a sheet, so the contour refers to the outer edge of the sheet metal part, which can also be said to be the edge of the sheet metal part. In addition, the trimming process, such as main trimming or side trimming, can be known from the trimming angle of the contour point.

S120:根据冲孔的参数信息对冲孔进行预分类,所述预分类的冲孔包括正冲孔和侧冲孔。S120: Pre-classify punching holes according to punching parameter information, where the pre-classified punching holes include front punching holes and side punching holes.

具体而言,根据冲孔法向量区分正冲孔和侧冲孔,同时将侧冲孔继续分类为上侧冲孔、下侧冲孔、左侧冲孔和右侧冲孔。区分原则如下,根据工艺规则,在本实施例中,正冲孔的法向量与z轴正向的夹角需要小于10°,因此可以得到以下分类规则:Specifically, positive punching and side punching are distinguished according to the punching normal vector, while side punching is further classified into upper side punching, lower side punching, left side punching and right side punching. The principle of distinction is as follows. According to the process rules, in this embodiment, the angle between the normal vector of the positive punching hole and the positive direction of the z-axis needs to be less than 10°, so the following classification rules can be obtained:

正冲孔:w≥cos10°≈0.98481;Positive punching: w≥cos10°≈0.98481;

上侧冲孔:w<cos10°≈0.98481,v≥u,v≥-u;Upper side punching: w<cos10°≈0.98481, v≥u, v≥-u;

左侧冲孔:w<cos10°≈0.98481,v≥u,v<-u;Left punching: w<cos10°≈0.98481, v≥u, v<-u;

下侧冲孔:w<cos10°≈0.98481,v<u,v<-u;Lower side punching: w<cos10°≈0.98481, v<u, v<-u;

右侧冲孔:w<cos10°≈0.98481,v<u,v≥-u。Right punching: w<cos10°≈0.98481, v<u, v≥-u.

由此则可以区分出5种冲孔类型,在其他的实施例中,可以按实际情况以及工艺规则调整冲孔的判定参数。Thus, five types of punching can be distinguished. In other embodiments, the determination parameters of punching can be adjusted according to actual conditions and process rules.

S130:基于预分类中侧冲孔的参数信息和加工零件的参数信息,对预分类中侧冲孔分别进行再分类。S130: Based on the parameter information of the side punching holes in the pre-classification and the parameter information of the processed parts, respectively reclassify the side punching holes in the pre-classification.

上述步骤中的正冲孔自成一类,仅对侧冲孔进行再分类。具体而言,基于每个侧冲孔的冲孔坐标、轮廓点坐标、轮廓点修边角度和每个侧冲孔的冲孔形心到孔边的最大距离建立每个侧冲孔与轮廓的第一干涉关系表。判断侧冲孔和轮廓工艺是否产生干涉的方法如下:The positive punching in the above steps is in its own category, and only the side punching is reclassified. Specifically, based on the punching coordinates of each side punching hole, contour point coordinates, contour point trimming angle and the maximum distance from the punching centroid of each side punching hole to the edge of the hole, the relationship between each side punching hole and the contour is established. The first interference relationship table. The method of judging whether side punching and contouring process interfere is as follows:

通过冲孔坐标,计算侧冲孔中某一个冲孔与所有轮廓点的欧几里得距离,记为j,欧几里得距离的计算是现有技术,在此不作赘述。接下来判断以该冲孔为中心,满足j<δr范围内的所有轮廓点的修边工艺,若存有轮廓点的修边工艺为侧修,则判定该冲孔的加工工艺和轮廓工艺产生干涉,并记录在第一干涉关系表中。δ为经验参数,由技术人员决定,在本实施例中,δ的值取2以适应该实施例中的工艺规则。Calculate the Euclidean distance between a certain punching hole in the side punching hole and all contour points through the punching coordinates, which is denoted as j. The calculation of the Euclidean distance is a prior art, and will not be repeated here. Next, determine the trimming process centered on the punching hole and satisfy all contour points within the range of j<δr. If the trimming process with contour points is side trimming, then determine the processing technology and contour process of the punching hole. Interference, and recorded in the first interference relationship table. δ is an empirical parameter, which is determined by technical personnel. In this embodiment, the value of δ is 2 to adapt to the process rule in this embodiment.

本实施例中的第一干涉关系表如下:The first interference relationship table in this embodiment is as follows:

Figure 923092DEST_PATH_IMAGE002
Figure 923092DEST_PATH_IMAGE002

接下来基于同一类每个侧冲孔的不同冲孔向量和同一类侧冲孔中两两冲孔的冲孔形心到孔边的最大距离建立同一类侧冲孔之间的第二干涉关系表。具体方法如下:Next, based on the different punching vectors of each side punching hole of the same type and the maximum distance from the punching centroid of two punching holes in the same type of side punching to the edge of the hole, the second interference relationship between the same type of side punching holes is established surface. The specific method is as follows:

计算同一类侧冲孔中两两冲孔之间的工艺距离,假设有P、Q两个左侧冲孔,其工艺距离的计算公式如下:Calculate the technological distance between two punching holes in the same type of side punching holes. Assuming there are two left-hand punching holes, P and Q, the formula for calculating the technological distance is as follows:

Figure 902549DEST_PATH_IMAGE003
Figure 902549DEST_PATH_IMAGE003

其中,

Figure 275762DEST_PATH_IMAGE004
代表冲孔P和冲孔Q的工艺距离,
Figure 966244DEST_PATH_IMAGE005
表示冲孔P的 法向量,
Figure 249458DEST_PATH_IMAGE006
表示冲孔Q的法向量,
Figure 665396DEST_PATH_IMAGE007
Figure 401270DEST_PATH_IMAGE008
分别表示冲孔Q在x,y,z轴上的坐标,也可以认为是冲孔Q的冲孔形心的笛卡尔坐标,
Figure 459225DEST_PATH_IMAGE009
分别表示冲孔P在x,y,z轴上的坐标,也可以认为是冲孔P的冲孔形心的笛卡尔坐 标,
Figure 331366DEST_PATH_IMAGE010
分别表示冲孔P、冲孔Q的冲孔形心到孔边的最大距离,h表示模具闭合高度,由技术 人员根据工艺规则设置,ε表示经验参数,由技术人员根据工艺规则设置。接着通过冲孔坐 标,计算左侧冲孔P和左侧冲孔Q之间的欧几里得距离,记为k。若
Figure 918205DEST_PATH_IMAGE004
大于k,则记冲 孔P、Q之间会产生干涉,否则记录不会产生干涉。若需要判断的同一类侧冲孔(如上述的左 侧冲孔)有n个,则计算n*(n-1)/2次左侧冲孔中两两冲孔间的工艺距离以及欧几里得距离。 in,
Figure 275762DEST_PATH_IMAGE004
Represents the process distance of punching P and punching Q,
Figure 966244DEST_PATH_IMAGE005
Indicates the normal vector of punching P,
Figure 249458DEST_PATH_IMAGE006
Indicates the normal vector of punching Q,
Figure 665396DEST_PATH_IMAGE007
,
Figure 401270DEST_PATH_IMAGE008
Respectively represent the coordinates of the punching Q on the x, y, and z axes, which can also be considered as the Cartesian coordinates of the punching centroid of the punching Q,
Figure 459225DEST_PATH_IMAGE009
Respectively represent the coordinates of the punching P on the x, y, and z axes, which can also be considered as the Cartesian coordinates of the punching centroid of the punching P,
Figure 331366DEST_PATH_IMAGE010
Respectively represent the maximum distance from the punching centroid of punching hole P and punching Q to the edge of the hole, h represents the closed height of the mold, which is set by the technician according to the process rules, and ε represents the empirical parameter, which is set by the technician according to the process rules. Then, through the punching coordinates, calculate the Euclidean distance between the left punching P and the left punching Q, which is denoted as k. like
Figure 918205DEST_PATH_IMAGE004
If it is greater than k, there will be interference between the recording punch holes P and Q, otherwise there will be no interference in the recording. If there are n pieces of the same type of side punching (such as the above-mentioned left punching) that need to be judged, then calculate the process distance between two punching holes in the left side punching for n*(n-1)/2 times and the Euclidean Reid distance.

本实施例中的第二干涉关系表如下:The second interference relationship table in this embodiment is as follows:

Figure 141376DEST_PATH_IMAGE011
Figure 141376DEST_PATH_IMAGE011

由此,生成了第一和第二干涉关系表。Thus, the first and second interference relationship tables are generated.

接下来对同一类侧冲孔中的所有冲孔进行分类,首先打乱该类侧冲孔中所有冲孔的冲孔编号,重新生成一个序列,按顺序进行分类,不同的序列顺序可能会导致分类结果的不一致,比如小类内部的冲孔数量不一致,或者小类类数量也不一致,打乱冲孔编号的目的是为了使得分类更具有随机性,提升分类冲孔的准确性。如果当前的冲孔与该序列之前一个冲孔在第一干涉关系表中的关系相同,即都为“是”或者都为“否”,且第二干涉关系表中的关系为“否”时,认定当前的冲孔与该序列之前一个冲孔为同类,放入同一小类中,否则将当前的冲孔自成一小类。以本实施例的第一、第二干涉关系表为例,2号冲孔与1号冲孔在第一干涉关系表中的关系均为“否”,且2号冲孔与1号冲孔在第二干涉关系表中的关系也为“否”,因此将2号冲孔放入1号冲孔预先生成的小类中,认为2号冲孔与1号冲孔存于相同工艺性质的分类,当判断3号冲孔时,3号冲孔将与现存的所有小类相比,判断3号冲孔是否属于1号冲孔和2号冲孔形成的小类,此时3号冲孔将与1号冲孔和2号冲孔中的所有冲孔作比较,例如3号冲孔与1号冲孔相比,在第一干涉关系表中会得到不一致的关系,当在第一干涉关系表中得到不一致的关系时,就不会再用第二干涉关系表继续判断关系。接着再将3号冲孔与2号冲孔相比,在第一干涉关系表中也会得到不一致的关系,此时会将3号冲孔单独形成一小类。在本实施例中,使用第一干涉关系表和第二干涉关系表是由零件结构决定的,例如修边有修边镶块的机构,冲孔有冲孔的机构,工程师需要判断各种机构是否能设计安装在同一个模具之上以及是否能在同一工序进行加工(即是否会发生刀路路径干涉),因此将工程师判断上述问题的方式抽象为工艺性质的冲突与否,并形成第一干涉关系表和第二干涉关系表,再依上述两种干涉关系表中的关系,在左侧冲孔、上侧冲孔、下侧冲孔和右侧冲孔这四类侧冲孔中分类进行再分类,将工艺性质相同的冲孔形成小类,这样做从而使得小类中的冲孔不会发生刀路路径干涉,也不会因为轮廓加工的影响导致不能在同一工序进行加工。Next, classify all the punches in the same type of side punches, first scramble the punch numbers of all the punches in this type of side punches, regenerate a sequence, and classify in order, different sequence order may cause Inconsistencies in the classification results, such as inconsistent numbers of punches within sub-categories, or inconsistent numbers of sub-categories, the purpose of disrupting the punching numbers is to make the classification more random and improve the accuracy of the classification punches. If the relationship between the current punching hole and the previous punching hole in the sequence in the first interference relationship table is the same, that is, both are "yes" or both are "no", and the relationship in the second interference relationship table is "no" , it is determined that the current punching is of the same type as the previous punching of the sequence, and put into the same subclass, otherwise the current punching is a subclass of its own. Taking the first and second interference relationship tables of this embodiment as an example, the relationship between No. 2 punching hole and No. 1 punching hole in the first interference relationship table is "No", and No. 2 punching hole and No. 1 punching hole The relationship in the second interference relationship table is also "No", so the No. 2 punch is put into the pre-generated subclass of the No. 1 punch, and it is considered that the No. 2 punch and the No. 1 punch are stored in the same technological nature Classification, when judging No. 3 punching, No. 3 punching will be compared with all existing subclasses to judge whether No. 3 punching belongs to the subclass formed by No. 1 punching and No. 2 punching. At this time, No. 3 punching Holes will be compared with all punches in punch no.1 and punch no.2, for example punch no.3 compared to punch no.1, you will get inconsistent relationship in the first interference relation table, when in the first When an inconsistent relationship is obtained in the interference relationship table, the second interference relationship table will not be used to continue judging the relationship. Then compare punching hole No. 3 with punching hole No. 2, and an inconsistent relationship will be obtained in the first interference relationship table. At this time, punching hole No. 3 will be separately formed into a small category. In this embodiment, the use of the first interference relationship table and the second interference relationship table is determined by the structure of the part. For example, there is a mechanism for trimming and trimming inserts, and there is a mechanism for punching holes. Engineers need to judge various mechanisms Whether it can be designed and installed on the same mold and whether it can be processed in the same process (that is, whether there will be tool path interference), so the way engineers judge the above problems is abstracted as the conflict of the process nature, and form the first The interference relationship table and the second interference relationship table are classified into four types of side punching holes: left side punching, upper side punching, lower side punching and right side punching according to the relationship in the above two interference relationship tables Carry out reclassification, and form punching holes with the same process nature into sub-categories, so that the punching holes in the sub-category will not interfere with the tool path, and will not be unable to process in the same process due to the influence of contour processing.

形成上述的小类后,再随机生成若干次序列,按顺序进行分类,最后取小类数量最少的一种结果作为同一侧类冲孔的分类结果。如左侧冲孔中有4个冲孔需要分类,随机生成多个序列,如1234和4321两组序列,在1234序列中,4个冲孔依上述的分类方法分成了2个小类,4321序列依上述的分类方法分成了3个小类,此时将取2个小类的结果。在本实施例中,序列的生成次数为10次,该次数随实际需要而定,也可以仅进行1次分类以节约计算资源,该次数并没有硬性规定。进行多次分类,最终取小类数量最少的侧冲孔小类分类数据,避免了单次分类造成的分类误差,提升了冲孔分类的准确度。需要说明的是,小类数量和零件加工的工序数量呈正相关,零件加工的工序数量同样与零件加工需要的模具数量呈正相关,模具数量的增加会使得零件加工成本陡然增加,因此小类数量越少使得零件加工在不影响加工效果的同时,零件加工的成本也相对越低。After forming the above sub-categories, several sequences are randomly generated and classified in order, and finally the result with the least number of sub-categories is taken as the classification result of the punching of the same side category. For example, there are 4 punching holes in the left punching holes that need to be classified, multiple sequences are randomly generated, such as 1234 and 4321 two sets of sequences, in the 1234 sequence, the 4 punching holes are divided into 2 subcategories according to the above classification method, 4321 The sequence is divided into 3 sub-categories according to the above classification method, and the results of 2 sub-categories will be taken at this time. In this embodiment, the generation times of the sequences are 10 times, which depends on the actual needs, and it is also possible to classify only once to save computing resources, and the times are not strictly regulated. Perform multiple classifications, and finally select the classification data of the side punching sub-category with the least number of sub-categories, avoiding the classification error caused by a single classification, and improving the accuracy of punching classification. It should be noted that the number of sub-categories is positively correlated with the number of parts processing processes, and the number of parts processing processes is also positively correlated with the number of molds required for part processing. The increase in the number of molds will increase the cost of parts processing, so the smaller the number of sub-categories Less makes the cost of parts processing relatively lower while not affecting the processing effect.

当完成了某一类侧冲孔,例如左侧冲孔的分类结果时,接着会对其他类别的侧冲孔(上侧冲孔、下侧冲孔和右侧冲孔)进行如上步骤的分类,最终完成上侧冲孔、下侧冲孔、左侧冲孔和右侧冲孔内部冲孔的分类。When a certain type of side punching is completed, such as the classification results of the left side punching, then the other types of side punching (upper side punching, lower side punching, and right side punching) are classified as above , and finally complete the classification of upper side punching, lower side punching, left side punching and right side punching inner punching.

S140:获得正冲孔分类数据和再分类后的侧冲孔分类数据。S140: Obtain the classification data of front punching holes and the classified data of side punching holes after reclassification.

基于上述步骤,获得正冲孔的冲孔数据,以及包含多个小类的上侧冲孔、下侧冲孔、左侧冲孔和右侧冲孔的冲孔数据,完成分类,将每一小类内部的冲孔视作工艺性质相同。Based on the above steps, the punching data of positive punching, as well as the punching data of upper punching, lower punching, left punching and right punching including multiple sub-categories are obtained, and the classification is completed, and each Punching holes within subclasses are considered to be of the same nature as workmanship.

图3为本公开实施例所述一种冲孔分类系统的结构示意图,所述冲孔分类系统包括参数获得单元21、计算单元22和输出单元23。其中,参数获得单元21,用于获得冲孔的参数信息和加工零件的参数信息,冲孔的参数信息和加工零件的参数信息包括冲孔编号、冲孔坐标、冲孔形心到孔边的最大距离和冲孔形心法向量、轮廓点坐标和轮廓修边角度。上述参数可由加工零件的3D模型中获取。计算单元22用于根据冲孔的参数信息对冲孔进行预分类,以及基于预分类中侧冲孔的参数信息和加工零件的参数信息,即基于每个侧冲孔的冲孔坐标、轮廓点坐标、轮廓点修边角度和每个侧冲孔的冲孔形心到孔边的最大距离建立每个侧冲孔与轮廓的第一干涉关系表,基于同一类每个侧冲孔的不同冲孔向量和同一类侧冲孔中两两冲孔的冲孔形心到孔边的最大距离建立同一类侧冲孔之间的第二干涉关系表,根据第一干涉关系表和第二干涉关系表对预分类中侧冲孔分别进行再分类,所述预分类的冲孔包括正冲孔和侧冲孔。输出单元23,用于获得并输出正冲孔分类数据和再分类后的侧冲孔分类数据,即正冲孔分类数据和所有方向的侧冲孔(上侧冲孔、下侧冲孔、左侧冲孔和右侧冲孔)小类数量最少的侧冲孔小类分类数据。本公开实施例中的一种冲孔分类方法的步骤可以通过图3的冲孔分类系统实现,例如,参数获得单元21可用于执行步骤S110,计算单元22可用于执行步骤S120和S130,输出单元23可用于执行步骤S140。FIG. 3 is a schematic structural diagram of a punching classification system according to an embodiment of the present disclosure. The punching classification system includes a parameter obtaining unit 21 , a computing unit 22 and an output unit 23 . Among them, the parameter obtaining unit 21 is used to obtain the parameter information of the punching hole and the parameter information of the processed part. Maximum distance and punching centroid normal vector, contour point coordinates and contour trimming angle. The above parameters can be obtained from the 3D model of the processed part. The calculation unit 22 is used to pre-classify the punching holes according to the parameter information of the punching holes, and based on the parameter information of the side punching holes in the pre-classification and the parameter information of the processed parts, that is, based on the punching coordinates and contour point coordinates of each side punching hole , contour point trimming angle and the maximum distance from the punching centroid of each side punching hole to the edge of the hole to establish the first interference relationship table between each side punching hole and the contour, based on the different punching holes of each side punching hole of the same type The vector and the maximum distance from the punching centroid to the hole edge of two punching holes in the same type of side punching holes establish the second interference relationship table between the same type of side punching holes, according to the first interference relationship table and the second interference relationship table The side punching holes in the pre-classification are respectively reclassified, and the pre-classification punching holes include front punching holes and side punching holes. The output unit 23 is used to obtain and output positive punching classification data and reclassified side punching classification data, that is, positive punching classification data and side punching in all directions (upper side punching, lower side punching, left side punching). side punching and right punching) classification data of side punching sub-category with the least number of sub-categories. The steps of a punching classification method in the embodiment of the present disclosure can be realized by the punching classification system in FIG. 23 can be used to execute step S140.

图4为本发明实施例提供的一种电子设备3的结构示意图,如图4所示,该电子设备3可以包括:处理器31、存储器32、通信接口33和通信总线34,所述处理器31有一或多个。FIG. 4 is a schematic structural diagram of an electronic device 3 provided by an embodiment of the present invention. As shown in FIG. 31 one or more.

下面对电子设备3的各个构成部件进行具体的介绍:Each component of the electronic device 3 is specifically introduced as follows:

其中,处理器31是电子设备3的控制中心,可以是一个处理器,也可以是多个处理元件的统称。例如,处理器31是一个中央处理器(Central Processing Unit,CPU),也可以是特定集成电路(Application Specific Integrated Circuit,ASIC),或者是被配置成实施本发明实施例的一个或多个集成电路,例如:一个或多个DSP,或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,FPGA)。Wherein, the processor 31 is the control center of the electronic device 3 , and may be one processor, or may be a general term for multiple processing elements. For example, the processor 31 is a central processing unit (Central Processing Unit, CPU), or a specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention , for example: one or more DSPs, or one or more Field Programmable Gate Arrays (Field Programmable Gate Array, FPGA).

在具体的实现中,作为一种实施例,处理器31可以包括一个或多个CPU,例如图4中所示的CPU0和CPU1。且,作为一种实施例,电子设备3可以包括多个处理器,例如图4中所示的处理器31和处理器35。这些处理器中的每一个可以是一个单核处理器(Single-CPU),也可以是一个多核处理器(Multi-CPU)。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the processor 31 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 4 . Moreover, as an embodiment, the electronic device 3 may include multiple processors, such as the processor 31 and the processor 35 shown in FIG. 4 . Each of these processors can be a single-core processor (Single-CPU) or a multi-core processor (Multi-CPU). A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).

存储器32可以是只读存储器(Read-Only Memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(Random Access Memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(ElectricallyErasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器32可以是独立存在,通过通信总线34与处理器31相连接。存储器32也可以和处理器31集成在一起。The memory 32 may be a read-only memory (Read-Only Memory, ROM) or other types of static storage devices that can store static information and instructions, a random access memory (Random Access Memory, RAM) or other types that can store information and instructions It can also be an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a compact disc (Compact Disc Read-Only Memory, CD-ROM) or other optical disc storage, optical disc storage ( including compact discs, laser discs, optical discs, digital versatile discs, blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be stored by a computer Any other medium, but not limited to. The memory 32 may exist independently, and is connected with the processor 31 through the communication bus 34 . The memory 32 can also be integrated with the processor 31 .

在具体的实现中,存储器32用于存储本发明中的数据和执行本发明的软件程序。处理器31通过运行或执行存储在存储器32软件程序,以及调用存储在存储器32数据,执行上面实施例所述的冲孔分类方法。In a specific implementation, the memory 32 is used for storing the data in the present invention and executing the software program of the present invention. The processor 31 executes the punching classification method described in the above embodiments by running or executing the software program stored in the memory 32 and calling the data stored in the memory 32 .

通信接口33,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如无线接入网(Radio Access Network,RAN),无线局域网(Wireless Local Area Networks,WLAN)、终端、云端等。通信接口33可以包括获取单元(图中未示出),以实现获取功能。The communication interface 33 is used for communicating with other devices or communication networks, such as radio access network (Radio Access Network, RAN), wireless local area network (Wireless Local Area Networks, WLAN), terminal, cloud Wait. The communication interface 33 may include an acquisition unit (not shown in the figure) to realize the acquisition function.

通信总线34,可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component Interconnect,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图4中仅用一条线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus 34 may be an Industry Standard Architecture (Industry Standard Architecture, ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus, etc. The bus can be divided into address bus, data bus, control bus and so on. For ease of representation, only one line is used in FIG. 4 , but it does not mean that there is only one bus or one type of bus.

本发明另一实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当指令在计算机上运行时,使得计算机执行上述方法实施例所述的冲孔分类方法。Another embodiment of the present invention also provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer is made to execute the punching classification method described in the above method embodiments.

在一些实施例中,所公开的方法可以实施为以机器可读格式被编码在计算机可读存储介质上的或者被编码在其它非瞬时性介质或者制品上的计算机程序指令。In some embodiments, the disclosed methods can be implemented as computer program instructions encoded in a machine-readable format on a computer-readable storage medium or on other non-transitory media or articles of manufacture.

图5示意性地示出本发明实施例提供的计算机程序产品4的概念性局部视图,所述计算机程序产品4包括用于在计算设备上执行计算机进程的计算机程序。Fig. 5 schematically shows a conceptual partial view of a computer program product 4 provided by an embodiment of the present invention, and the computer program product 4 includes a computer program for executing a computer process on a computing device.

在一个实施例中,计算机程序产品是使用信号承载介质41来提供的。所述信号承载介质41可以包括一个或多个程序指令45,其当被一个或多个处理器运行时可以提供以上针对图1或图2描述的功能或者部分功能。此外,图5中的程序指令45也描述示例指令。In one embodiment, a computer program product is provided using signal bearing media 41 . The signal bearing medium 41 may include one or more program instructions 45 which, when executed by one or more processors, may provide the functions or part of the functions described above with respect to FIG. 1 or FIG. 2 . Additionally, program instructions 45 in FIG. 5 also describe example instructions.

在一些示例中,信号承载介质41可以包含计算机可读介质42,诸如但不限于,硬盘驱动器、紧密盘(CD)、数字视频光盘(DVD)、数字磁带、存储器、只读存储记忆体(read-onlymemory,ROM)或随机存储记忆体(random access memory,RAM)等等。In some examples, signal bearing medium 41 may comprise computer readable medium 42 such as, but not limited to, a hard drive, compact disc (CD), digital video disc (DVD), digital tape, memory, read-only memory (read-only memory) -onlymemory, ROM) or random access memory (random access memory, RAM) and so on.

在一些实施方式中,信号承载介质41可以包含计算机可记录介质43,诸如但不限于,存储器、读/写(R/W)CD、R/W DVD、等等。In some implementations, signal bearing media 41 may comprise computer recordable media 43 such as, but not limited to, memory, read/write (R/W) CDs, R/W DVDs, and the like.

在一些实施方式中,信号承载介质41可以包含通信介质44,诸如但不限于,数字和/或模拟通信介质(例如,光纤电缆、波导、有线通信链路、无线通信链路、等等)。In some implementations, signal bearing medium 41 may include communication media 44 such as, but not limited to, digital and/or analog communication media (eg, fiber optic cables, waveguides, wired communication links, wireless communication links, etc.).

信号承载介质41可以由无线形式的通信介质44(例如,遵守IEEE 802.41标准或者其它传输协议的无线通信介质)来传达。一个或多个程序指令可以是,例如,计算机可执行指令或者逻辑实施指令。The signal bearing medium 41 may be conveyed by a wireless form of communication medium 44 (eg, a wireless communication medium complying with the IEEE 802.41 standard or other transmission protocol). One or more program instructions may be, for example, computer-executable instructions or logic-implementing instructions.

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated according to needs It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation or may be integrated into another device, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separated, and the component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places . Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relative terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these No such actual relationship or order exists between entities or operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

以上所述仅是本公开的具体实施方式,使本领域技术人员能够理解或实现本公开。对这些实施例的多种修改对本领域的技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本公开的精神或范围的情况下,在其它实施例中实现。因此,本公开将不会被限制于本文所述的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above descriptions are only specific implementation manners of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (6)

1. A punch sorting method, comprising:
obtaining parameter information of punching holes and parameter information of machined parts, comprising the following steps: the punching machine comprises a punching number, a punching coordinate, a normal vector of a punching centroid, the maximum distance from the punching centroid to a hole edge, a contour point coordinate and a contour point trimming angle;
the method comprises the steps that punching holes are pre-classified according to parameter information of the punching holes, the pre-classification method divides the punching holes into a front punching hole and a side punching hole according to a punching hole centroid normal vector of each punching hole, and the side punching holes comprise an upper side punching hole, a lower side punching hole, a left side punching hole and a right side punching hole;
the method comprises the following steps of reclassifying the pre-classified middle side punched holes respectively based on parameter information of the pre-classified middle side punched holes and parameter information of processed parts, wherein the reclassification comprises the following steps: x, establishing a first interference relation table of each side punched hole and the profile according to the punching coordinate, the profile point trimming angle and the maximum distance from the punching centroid of each side punched hole to the hole edge of each side punched hole;
y, establishing a second interference relation table between the side punched holes of the same type according to the normal vectors of the centroids of different side punched holes of the upper side punched hole, the lower side punched hole, the left side punched hole and the right side punched hole and the maximum distance from the centroid of every two punched holes in the side punched holes of the same type to the hole edge;
respectively classifying the punched holes in the upper punched hole, the lower punched hole, the left punched hole and the right punched hole according to the first interference relation table and the second interference relation table;
and obtaining the positive punching classification data and the reclassified side punching classification data.
2. A punch hole sorting method according to claim 1, wherein sorting the punch holes in the upper side punch hole, the lower side punch hole, the left side punch hole, and the right side punch hole according to the first interference relationship table and the second interference relationship table, respectively, comprises the steps of:
A. randomly generating a side punching hole sequence of one type of side punching holes based on punching numbers of the side punching holes in the upper side punching holes, the lower side punching holes, the left side punching holes and the right side punching holes;
B. according to the sequence of the side punching hole sequence, the process properties of one punching hole in the side punching hole sequence and all punching holes before the side punching hole sequence are sequentially judged on the basis of the first interference relation table and the second interference relation table, the punching holes with the same process properties are classified into a subclass, and otherwise, the punching holes are classified into a subclass;
C. acquiring and outputting subclass classification data of the side punching;
D. and repeating the steps A-C to obtain and output the subclass classification data of the rest class side punching holes.
3. A method of sorting punched holes according to claim 2, further comprising, before step C:
the steps a-B are performed one or more times,
when the execution times are not one, the following method is executed:
obtaining a plurality of groups of classification data of the small side punching class of a certain class;
and obtaining and outputting one group of side punching subclass classification data with the least subclass number from a plurality of groups of side punching subclass classification data of a certain class.
4. A punch hole sorting system, comprising:
the parameter obtaining unit is used for obtaining parameter information of punching and parameter information of a machined part, and comprises: the punching method comprises the following steps of punching number, punching coordinates, a punching centroid normal vector, the maximum distance from a punching centroid to a hole edge, contour point coordinates and a contour point trimming angle;
the calculation unit is used for pre-classifying the punched holes according to the parameter information of the punched holes, wherein the pre-classified punched holes comprise front punched holes and side punched holes, and the side punched holes comprise upper punched holes, lower punched holes, left punched holes and right punched holes; the method comprises the following steps of reclassifying pre-classified middle side punched holes respectively based on parameter information of the pre-classified middle side punched holes and parameter information of processed parts, wherein the reclassification comprises the following steps: x, establishing a first interference relation table of each side punched hole and the profile according to the punching coordinate, the profile point trimming angle and the maximum distance from the punching centroid of each side punched hole to the hole edge of each side punched hole;
y, establishing a second interference relation table between the side punched holes of the same type according to the normal vectors of the centroids of different side punched holes of the upper side punched hole, the lower side punched hole, the left side punched hole and the right side punched hole and the maximum distance from the centroid of every two punched holes in the side punched holes of the same type to the hole edge;
respectively classifying the punched holes in the upper punched hole, the lower punched hole, the left punched hole and the right punched hole according to the first interference relation table and the second interference relation table, wherein the pre-classified punched holes comprise a front punched hole and a side punched hole;
and the output unit is used for obtaining and outputting the positive punching classification data and the reclassified side punching classification data.
5. A computer storage medium characterized in that the storage medium stores a program or instructions that causes a computer to execute the punch hole sorting method according to any one of claims 1 to 3.
6. An electronic device comprising a communication interface, a processor, a memory, and a bus, wherein the memory is used for storing computer-executable instructions, the processor is connected with the memory through the bus, and when the electronic device is operated, the processor executes the computer-executable instructions stored in the memory, so as to execute the punching classification method according to any one of claims 1 to 3.
CN202211116319.1A 2022-09-14 2022-09-14 Punching classification method and system, electronic equipment and storage medium Active CN115178647B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211116319.1A CN115178647B (en) 2022-09-14 2022-09-14 Punching classification method and system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211116319.1A CN115178647B (en) 2022-09-14 2022-09-14 Punching classification method and system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115178647A CN115178647A (en) 2022-10-14
CN115178647B true CN115178647B (en) 2022-12-16

Family

ID=83524831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211116319.1A Active CN115178647B (en) 2022-09-14 2022-09-14 Punching classification method and system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115178647B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115577279B (en) * 2022-11-11 2023-03-10 季华实验室 Punching clustering method and device, stamping process design and processing method of stamping parts
CN116713378B (en) * 2023-08-04 2023-09-29 季华实验室 Punching direction determining method, device, equipment and computer readable storage medium
CN117910286B (en) * 2024-03-20 2024-07-16 季华实验室 Automatic pressure calculation method, sheet metal processing method and related equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE415638B (en) * 1978-04-17 1980-10-20 Saab Scania Ab DEVICE FOR PRESSURES WHICH ARE PREFERRED FOR THE FORMATION OF THE PALTIM AND WHICH THE FORMATION IS DUE TO A HYDRAULIC PRESSURE VARIABLE IN A PRESSING OPERATION
AUPR464601A0 (en) * 2001-04-30 2001-05-24 Commonwealth Of Australia, The Shapes vector
CN102615170A (en) * 2012-04-11 2012-08-01 鹰潭市瑞源微型元件有限公司 Punching technology
CN107093002A (en) * 2017-03-02 2017-08-25 平顶山天安煤业股份有限公司 A kind of bore closed quality classification and hazard assessment system based on cloud computing
CN108228996B (en) * 2017-12-28 2021-12-28 重庆平伟汽车科技股份有限公司 System and method for automatically programming hole based on hole characteristics
CN109530221A (en) * 2018-12-28 2019-03-29 陈晓铷 A kind of two degrees of freedom category filter device

Also Published As

Publication number Publication date
CN115178647A (en) 2022-10-14

Similar Documents

Publication Publication Date Title
CN115178647B (en) Punching classification method and system, electronic equipment and storage medium
CN108920601B (en) A data matching method and device
CN114036594B (en) Method and device for generating process image and electronic equipment
CN110672323A (en) Bearing health state assessment method and device based on neural network
CN113468465B (en) Electronic cam curve generation method, system, computer storage medium and terminal
CN110097184B (en) Information processing method and information processing system
CN112241567A (en) Method and device for calculating processing information of ship curved panel, terminal and storage medium
CN106372393A (en) Assembly sequence planning method of complex assembly on the basis of assembly matrix
CN118114580A (en) Method and device for determining grid for fluid calculation
CN111123833B (en) Thermal error compensation calculation method, device, equipment and storage medium of machine tool
CN108537249A (en) A kind of industrial process data clustering method of density peaks cluster
CN104765804B (en) A kind of method and system loaded according to feature selecting
CN103713953A (en) Device and method for transferring data in memory
CN115577279B (en) Punching clustering method and device, stamping process design and processing method of stamping parts
CN108228996A (en) A kind of system and method for the device to hole automated programming based on hole characteristic
CN104182561B (en) It is a kind of that metal slabs and the method and system of the influence of guiding pin contacts are added within the gravitational load stage of the deep draw operating simulation of sheet metal part
CN115600371A (en) A stamping process optimization method, system and electronic equipment
AU2020103440A4 (en) A method for optimizing the convergence performance of data learning with minimal computational steps
CN111401383B (en) Target frame estimation method, system, device and medium based on image detection
CN115841663A (en) Wafer image identification method, device, equipment and application
TWI797089B (en) Manufacture parameters grouping and analyzing method, and manufacture parameters grouping and analyzing system
CN114661925A (en) Method, device, equipment and storage medium for identifying similar legends of CAD drawings
CN115063787A (en) Semantic segmentation method for large complex curved surface part point cloud
CN114799205A (en) Part additive manufacturing method and device and computer storage medium
CN115690123B (en) Laser area division method, device and electronic equipment

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