Milling processing data element model and layered structure automatic construction method, device and equipment thereof and storage medium
Through the milling and machining data element model, a five-layer hierarchical structure of data is described, and a hierarchical structure tree is automatically built, which solves the problem of difficult to automate milling and machining data management, realizes efficient organization and access of data, and supports the refined data management of intelligent manufacturing.
Patent Information
- Application Number
- CN202510230187.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-28
- Publication Date
- 2025-06-10
AI Technical Summary
In modern manufacturing, data such as vibration signals in machine tool processing status and performance are difficult to automatically map, making it difficult to achieve automation and intelligence in milling data management.
The milling processing data element model is used to describe the five-layer hierarchical structure of the data: process layer, workpiece layer, process layer, instruction layer and position layer. Through this model, a hierarchical structure tree is automatically built to realize the hierarchical organization and automatic management of the data.
It realizes automatic organization and efficient access to massive milling processing data, which facilitates technicians to conduct targeted analysis and application of data under different processes, workpieces, processes, instructions and locations, and supports refined data management of intelligent manufacturing.
Smart Images

Figure CN120124296A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular, to a milling machining data element model and an automatic construction method, device, equipment and storage medium for its hierarchical structure. Background Art
[0002] At present, in the manufacturing process of mechanical products, through the integration of technologies such as big data and artificial intelligence, the acquisition, processing of milling machining data and the evaluation of quality indicators such as surface roughness under limited working conditions have been realized. With the complication of the production process in modern manufacturing workshops, vibration signals and other signals that characterize the machining state and performance of machine tools involve endless working conditions, including different processes, workpieces, procedures, instructions and positions, etc. It is difficult to automatically establish a mapping relationship between the obtained machining state data and the machining working conditions, which is the fundamental reason why learning and decision-making in machine tool production activities still need to rely on deep human participation. The traditional method of manually trimming and organizing milling machining data is difficult to meet the requirements of the transformation of modern manufacturing to automation and intelligence. There is an urgent need to hierarchically and automatically manage the milling machining process data to meet the requirements of intelligent manufacturing for refined data management. Summary of the Invention
[0003] The present application provides a milling machining data element model and an automatic construction method, device, equipment and storage medium for its hierarchical structure. While collecting milling machining data, through the five-layer hierarchical structure of milling machining data described by the element model, an automatically constructed hierarchical structure tree with a hierarchical organizational structure can be used to automatically organize a large amount of milling machining data and improve data access efficiency, so as to facilitate technicians to conduct targeted analysis and application of milling machining data under different processes, workpieces, procedures, instructions and positions.
[0004] To achieve the above object, the present application adopts the following technical solutions: In a first aspect, the present application provides a milling machining data element model and an automatic construction method for its hierarchical structure. The method includes: Establish a milling machining data element model, which is used to describe the five-layer hierarchical structure of milling machining data: process layer, workpiece layer, procedure layer, instruction layer and position layer. Based on the hierarchical structure of milling machining data described by the element model, during the milling machining process, automatically construct a milling machining data hierarchical structure tree; Divide the corresponding hierarchical structure tree into a root node, process layer nodes, workpiece layer nodes, procedure layer nodes, instruction layer nodes, position layer nodes and index leaf nodes according to the hierarchical relationship. The data structure definitions of the root node and each branch node are as follows: Node={id n , type n , info n , subnodes n}, where id n is the unique identifier of the node, type n is the node type, info n is the array of node description information, subnodes n is the set of branch nodes; Obtain the number of the hierarchical structure tree, and determine the number of the hierarchical structure tree as the root node of the hierarchical structure tree. The structure of the root node is Root={id r , type r , info r , cnodes r}, where id r is the unique identifier of the root node, type r is the root node type, info r is the array of root node description information, cnodes r is the set of process layer branch nodes, r represents the belonging root node; Collect the names of the processing program files during the processing, and determine the information of the process layer nodes and the information of the workpiece layer nodes according to the identifiers of the processing program files; When the name of the collected processing program file changes, add a process layer node corresponding to the process information under the root node of the data hierarchical structure tree, and add a workpiece layer node corresponding to the workpiece information under the process layer node. The structure of the process layer node is Craft={id c , type c , info c , wnodes c}, where id c is the unique identifier of the process layer node, type c is the process layer node type, info c is the array of process layer node description information, wnodes c is the set of workpiece layer branch nodes, c represents the belonging process layer node; The structure of the workpiece layer node is WorkPiece={id w ,type w , info w , pnodes w}, where id w is the unique identifier of the workpiece layer node, type w is the workpiece layer node type, info w is the array of workpiece layer node description information, pnodes w is the set of operation layer branch nodes, wIndicates the workpiece layer node to which it belongs; Parse the machining program file to obtain the process layer node information and instruction layer node information for the first workpiece machining, and collect the process number and instruction line number. The first workpiece is the workpiece used to obtain the machining program file. The structure of the process layer node is Porcess = {id p , type p , info p , onodes p}, where id p is the unique identifier of the process layer node, type p is the process layer node type, info p is the process layer node description information array, and onodes p is the set of instruction layer branch nodes; p Indicates the process layer node to which it belongs; The structure of the instruction layer node is Order = {id o , type o ,info o , lnodes o}, where id o is the unique identifier of the instruction layer node, type o is the instruction layer node type, info o is the instruction layer node description information array, and Inodes o is the set of position layer branch nodes; o Indicates the instruction layer node to which it belongs; When the collected process number changes, add a process layer node corresponding to the process information under the workpiece layer node; When the collected instruction line number changes, add an instruction layer node corresponding to the instruction line number under the process layer node; During the operation of the instruction in the instruction layer node, collect the machining coordinate position information. When the coordinate position changes, add a position layer node corresponding to the position information under the instruction layer node corresponding to the instruction line number. The structure of the position layer node is Location = {id l , type l , info l , inodes l}, where id l is the unique identifier of the position layer node, type l is the position layer node type, info l is the position layer node description information array, and inodes l is the set of index leaf nodes; l Indicates the position layer node to which it belongs; Obtain the first processing data collected by the internal system of the machine tool and the second processing data collected by the external system of the machine tool, store them in sequence according to the time collection order, and establish a storage index, I 1 ={TimeStamp, D 1}, I 2 ={TimeStamp, D 2}, where TimesStamp is the time stamp, D 1 is the storage index of the first processing data collected by the internal system of the machine tool, D 2 is the storage index of the second processing data collected by the external system of the machine tool; Add the first storage index of the first processing data corresponding to the internal system of the machine tool and the first storage index of the second processing data corresponding to the external system of the machine tool under the position layer node.
[0005] In some possible implementation manners, the data of the internal system of the machine tool includes: the spindle current of the milling equipment, the spindle torque of the milling equipment, or the spindle temperature of the milling equipment; the data of the external system of the machine tool includes: the vibration signals, force signals in the X, Y, and Z directions collected from the external sensors, and the acoustic emission signals collected by the acoustic emission sensors; In some possible implementation manners, adding a process layer node corresponding to the process information under the workpiece layer node includes: Determine the process identifier corresponding to each process layer node according to the process information; Under the workpiece layer node, when the collected processing process number changes, obtain the second processing process number, and create a process layer node for each process with the process identifier corresponding to the second processing process number.
[0006] In some possible implementation manners, adding an instruction layer node corresponding to the instruction line number under the process layer node includes: Determine the instruction identifier of each instruction layer node according to the instruction information; Under the process layer node, when the collected instruction line number changes, obtain the second instruction line number, and create an instruction layer node for each instruction with the instruction identifier corresponding to the second instruction line number.
[0007] In some possible implementation manners, adding a position layer node corresponding to the position information under the instruction layer node corresponding to the instruction line number includes: Determine the position identifier of the processing position node according to the processing position information; Under the instruction layer node, when the collected processing position changes, obtain the second processing position node, and create a position layer node for each position with the position identifier corresponding to the second processing position node.
[0008] In some possible implementations, the method further includes: Obtaining a retrieval data layer input by a user, where the retrieval data layer includes a root node layer, a process node layer, a workpiece node layer, a process step node layer, an instruction node layer, or a position node layer; determining storage indexes of first processing data of the internal machine tool system and storage indexes of second processing data of the external machine tool system corresponding to the retrieval data layer according to the structural relationship of the hierarchical structure tree; obtaining the processing data of the internal machine tool system according to the storage index of the first processing data; and obtaining the processing data of the external machine tool system according to the storage index of the second processing data.
[0009] In a second aspect, the present application provides a device for automatically constructing a milling processing data meta-model and its hierarchical structure, and the device includes: A construction module, configured to establish a milling processing data meta-model, where the meta-model is used to describe a five-layer hierarchical structure of milling processing data: a process layer, a workpiece layer, a process step layer, an instruction layer, and a position layer, and automatically construct a milling processing data hierarchical structure tree during the milling processing based on the milling processing data hierarchical structure described by the meta-model; A layering module, configured to divide the corresponding hierarchical structure tree into a root node, a process layer node, a workpiece layer node, a process step layer node, an instruction layer node, a position layer node, and an index leaf node according to the hierarchical relationship, and the data structures of the root node and each branch node are defined as follows: Node = {id n , type n , info n , subnodes n}, where id n is the unique identifier of the node, type n is the node type, info n is an array of node description information, and subnodes n is a set of branch nodes; obtaining the number of the hierarchical structure tree, and determining the number of the hierarchical structure tree as the root node of the hierarchical structure tree, and the structure of the root node is Root = {id r , type r , info r , cnodes r}, where id r is the unique identifier of the root node, type r is the root node type, info r is an array of root node description information, and cnodes r is a set of process layer branch nodes, rIndicates the root node to which it belongs; the name of the processing program file in the collection and processing process. According to the identifier of the processing program file, the information of the process layer node and the workpiece layer node is determined; when the name of the collected processing program file changes, a process layer node corresponding to the process information is added under the root node of the data hierarchical structure tree, and a workpiece layer node corresponding to the workpiece information is added under the process layer node. The structure of the process layer node is Craft={id c , type c , info c , wnodes c}, where id c is the unique identifier of the process layer node, type c is the type of the process layer node, info c is the array of description information of the process layer node, wnodes c is the set of workpiece layer branch nodes, c Indicates the process layer node to which it belongs; the structure of the workpiece layer node is WorkPiece={id w , type w , info w , pnodes w}, where id w is the unique identifier of the workpiece layer node, type w is the type of the workpiece layer node, info w is the array of description information of the workpiece layer node, pnodes w is the set of operation layer branch nodes, w Indicates the workpiece layer node to which it belongs; Parse the processing program file to obtain the operation layer node information and instruction layer node information of the first workpiece processing, and collect the operation number and instruction line number. The first workpiece is the workpiece used to obtain the processing program file. The structure of the operation layer node is Porcess={id p , type p , info p , onodes p}, where id p is the unique identifier of the operation layer node, type p is the type of the operation layer node, info p is the array of description information of the operation layer node, onodes p is the set of instruction layer branch nodes, p Indicates the operation layer node to which it belongs; The structure of the instruction layer node is Order={id o ,type o , info o , lnodeso}, where id o is the unique identifier of the instruction layer node, and type o is the type of the instruction layer node, and info o is an array of description information of the instruction layer node, and Inodes o is a set of location layer branch nodes, o indicating the belonging instruction layer node; when the collected process number changes, add a process layer node corresponding to the process information under the workpiece layer node; when the collected instruction line number changes, add an instruction layer node corresponding to the instruction line number under the process layer node; during the operation of the instruction in the instruction layer node, collect the machining coordinate position information, and when the coordinate position changes, add a location layer node corresponding to the position information under the instruction layer node corresponding to the instruction line number. The structure of the location layer node is Location={id l , type l , info l , inodes l}, where id l is the unique identifier of the location layer node, and type l is the type of the location layer node, and info l is an array of description information of the location layer node, and inodes l is a set of index leaf nodes, l indicating the belonging location layer node; A storage module for obtaining the first processing data collected by the internal system of the machine tool and the second processing data collected by the external system of the machine tool, storing them in sequence according to the collection time order and establishing a storage index, I 1 ={TimeStamp, D 1}, I 2 ={TimeStamp, D 2}, where TimesStamp is a time stamp, and D 1 is the storage index of the first processing data collected by the internal system of the machine tool, and D 2 is the storage index of the second processing data collected by the external system of the machine tool; add the first storage index of the first processing data corresponding to the internal system of the machine tool and the first storage index of the second processing data corresponding to the external system of the machine tool under the location layer node.
[0010] In a third aspect, the present application provides a computing device, including a memory and a processor; wherein, one or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device is caused to execute the method according to any one of the first aspects.
[0011] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program for executing the method according to any one of the first aspect.
[0012] As can be seen from the above technical solutions, the present application has at least the following beneficial effects: Based on the established milling machining data element model, this method guides the automatic construction of a hierarchical structure tree. Through the construction and retrieval of the hierarchical structure tree, a large amount of milling machining data with hierarchical structure characteristics is gradually accumulated, replacing the cumbersome manual trimming of milling machining data, so as to realize the batch storage and acquisition of a large amount of milling machining data, and provide technical support for establishing a milling process big database and forming data assets in an intelligent workshop.
[0013] In the present application, during the milling machining process, a hierarchical structure tree for data retrieval is synchronously constructed, the number of the hierarchical structure tree is determined, and the number of the hierarchical structure tree is determined as the root node of the hierarchical structure tree; according to the identifier of the collected machining program file, the process information and workpiece information are determined; when the collected program machining file number changes, a process layer node corresponding to the process information is automatically added under the root node, and a workpiece layer node corresponding to the workpiece information is added under the process layer node; the machining program file is parsed to obtain operation information and instruction information; when the collected operation number changes, an operation layer node corresponding to the operation information is added under the workpiece layer node; when the collected instruction line number changes, an instruction layer node corresponding to the instruction information to which the instruction line number belongs is added under the operation layer node; the position information of the target instruction in the instruction information for machining the part is collected, and when the machining position changes, a position layer node corresponding to the position information is added under the instruction layer node corresponding to the target instruction; the first machining data collected by the internal system of the machine tool and the second machining data collected by the external system of the machine tool are obtained, stored in sequence according to the time collection order, and a storage index is established to obtain the storage index leaf node information; a first storage index of the first machining data corresponding to the internal system of the machine tool and a first storage index of the second machining data corresponding to the external system of the machine tool are added under the position layer node.
[0014] In the traditional solution, through the integration of technologies such as big data and artificial intelligence, the collection and processing of milling process data have been achieved. However, due to the diverse types of milling process data, and different processes, workpieces, operations, instructions, and positions all generate corresponding processing data, it has caused certain difficulties for technicians in the application of milling process data. In this application, the milling process data is systematically classified and stored according to the data types, and a hierarchical structure tree of process layer, workpiece layer, operation layer, instruction layer, and position layer is set up to achieve hierarchical storage of milling process data, so as to facilitate technicians to conduct targeted analysis on the milling process data under different processes, workpieces, operations, instructions, and positions.
[0015] It should be understood that the description of technical features, technical solutions, beneficial effects, or similar language in this application does not imply that all features and advantages can be achieved in any single embodiment. On the contrary, it can be understood that the description of features or beneficial effects means that specific technical features, technical solutions, or beneficial effects are included in at least one embodiment. Therefore, the description of technical features, technical solutions, or beneficial effects in this specification does not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions, and beneficial effects described in this embodiment can be combined in any appropriate manner. Those skilled in the art will understand that an embodiment can be implemented without one or more specific technical features, technical solutions, or beneficial effects of a specific embodiment. In other embodiments, additional technical features and beneficial effects can also be identified in specific embodiments that do not embody all embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flowchart of a method for automatically constructing a milling process data meta-model and its hierarchical structure provided by an embodiment of this application; Figure 2 It is a schematic diagram of a process for establishing a hierarchical structure provided by an embodiment of this application; Figure 3 It is a schematic diagram of a milling process data meta-model provided by an embodiment of this application; Figure 4 It is a schematic diagram of a device for automatically constructing a milling process data meta-model and its hierarchical structure provided by an embodiment of this application; Figure 5 It is a schematic diagram of a computing device provided by an embodiment of this application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0017] The terms "first", "second", "third", etc. in the specification and drawings of this application are used to distinguish different objects, rather than to limit a specific order.
[0018] In the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner.
[0019] Currently, through the integration of technologies such as big data and artificial intelligence, the acquisition and processing of milling process data have been realized. However, due to the diverse working conditions of milling process data and the existence of milling process data in different forms, such as machining process data corresponding to different processes, workpieces, processes, instructions, and positions, it is difficult for technicians to apply milling process data.
[0020] In view of this, the embodiments of the present application provide a method for automatically constructing a milling process data meta-model and its hierarchical structure. This method can be applied to a processing device, which can be a terminal or a server. The terminal includes but is not limited to smart phones, tablet computers, laptop computers, personal digital assistants, or smart wearable devices, etc. The server can be a cloud server, such as the central server in a central cloud computing cluster or the edge server in an edge cloud computing cluster. Of course, the server can also be a server in a local data center. A local data center refers to a data center directly controlled by a user. In the present application, the milling process data is classified and stored according to types, and a hierarchical structure tree of a process layer, a workpiece layer, a process layer, an instruction layer, and a position layer is set up to realize the hierarchical organization of milling process data, so as to facilitate technicians to perform targeted analysis on milling process data under different processes, workpieces, processes, instructions, and positions.
[0021] In order to make the technical solutions of the present application clearer and easier to understand, the following will introduce a method for automatically constructing a milling process data meta-model and its hierarchical structure provided by the embodiments of the present application with reference to the accompanying drawings. As Figure 1 shown, this figure is a flowchart of a method for automatically constructing a milling process data meta-model and its hierarchical structure provided by the embodiments of the present application.
[0022] In the embodiments of the present application, the method for automatically constructing the milling process data meta-model and its hierarchical structure includes: S101. Describe the five-layer hierarchical structure of milling process data: process layer, workpiece layer, process layer, instruction layer, and position layer according to the meta-model, create a hierarchical structure tree, and add a root node of the hierarchical structure tree.
[0023] The data structure definitions of the root node and each branch node are as follows: Node = {id, type, info, subnodes}, where id is the unique identifier of the node, type is the node type, info is an array of node description information, and subnodes is a set of branch nodes.
[0024] During the milling process, according to the five-layer hierarchical structure of the milling process data described by the meta-model, the hierarchical structure tree of the milling process data can be automatically constructed. During the milling process, the processing device synchronously constructs a hierarchical structure tree for data retrieval. The hierarchical structure tree is divided into a root node, a process layer node, a workpiece layer node, an operation layer node, an instruction layer node, a position layer node, and a data index leaf node according to the hierarchical relationship. Obtain the number of the milling process hierarchical structure tree, and determine the number of the hierarchical structure tree as the root node of the hierarchical structure tree. An example of the root node of the hierarchical structure tree is as follows: RootNode = {id: "R1", type: "Root", info: ["Face milling", "Five-axis machine tool processing", …], subnodes: ["T001"]}.
[0025] In the embodiment of the present application, the processing device realizes the self-perception of the milling process state of the numerical control machine tool by automatically aggregating the sample milling process data of the numerical control machine tool. Independent acquisition threads are allocated for different data sources, and the acquisition interfaces provided by the numerical control system and the data acquisition card within each thread are triggered by a unified clock generator to ensure the consistency of the acquisition time of the two different sources of data. Further, the acquired data and its clock trigger time are put into the acquisition queue. Subsequently, the data storage thread continuously takes out the data from the acquisition queue for storage in sequence, and creates corresponding storage indexes at the same time.
[0026] In the embodiment of the present application, the milling process data can be stored according to the acquisition time sequence, and the storage index is added to the leaf node of the hierarchical structure tree. In this way, the sample milling process data can be retrieved hierarchically in a more orderly manner.
[0027] S102. The processing device determines the process layer node information and the workpiece layer node information according to the acquired machining program file number.
[0028] The processing device obtains the machining program file, and the machining program file has a file number. The process layer node information and the workpiece layer node information can be determined according to the file number.
[0029] In some embodiments, the file numbers of the machining program files are C001W001, C001W002, C002W001, and C002W002 respectively. According to this file number, it can be determined that the milling machining data model contains two types of process information, one is C001 process information and the other is C002 process information. In the C001 information, there are two workpiece information, one is C001W001 workpiece information and the other is C001W002 workpiece information. In the C002 process information, there are two workpiece information, one is C002W001 workpiece information and the other is C002W002 workpiece information.
[0030] Among them, the embodiments of the present application are only taken as an example. In practice, there may be multiple machining program files, as well as multiple process information and workpiece information.
[0031] S103. The processing device adds a process layer node corresponding to the process information under the root node, and adds a workpiece layer node corresponding to the workpiece information under the process layer node.
[0032] The processing device adds a process layer node corresponding to the process information under the root node and adds a workpiece layer node corresponding to the workpiece information under the process layer node according to the process information and workpiece information obtained in the previous step when the process information and workpiece information change.
[0033] In some embodiments, C001 is added as the first process layer node under the root node, C002 is added as the second process layer node under the root node, then W001 is added as the first workpiece layer node under the first process layer node W, W002 is added as the second workpiece layer node under the first process layer node W, W001 is added as the first workpiece layer node under the second process layer node T, and W002 is added as the second workpiece layer node under the second process layer node T. The example of the process layer node is as follows: CNode = {id: "C001", type: "Craft", info: ["Climb milling", "4-flute end mill", …], subnodes: ["W001"]}, and the example of the workpiece layer node is as follows: WNode = {id: "W001", type: "Workpiece", info: ["Aluminum alloy", "20 mm long", …], subnodes: ["S001"]}.
[0034] S104. The processing device parses the machining program file to obtain the operation layer node information and the instruction layer node information.
[0035] Next, the processing device parses the obtained machining program file to obtain the operation information and instruction information corresponding to the workpiece information.
[0036] S105. When the acquisition process number changes under the workpiece layer node, the processing device automatically adds a process layer node corresponding to the process information. When the instruction line number changes, an instruction layer node corresponding to the instruction information is added under the process layer node.
[0037] Based on the process layer node information and instruction layer node information obtained in the previous step, the processing device automatically adds a process layer node corresponding to the process information under the workpiece node, and adds an instruction layer node corresponding to the instruction information under the process layer node.
[0038] The following is a detailed introduction to adding a process layer node corresponding to the process information under the workpiece layer node and adding an instruction layer node corresponding to the instruction information under the process layer node.
[0039] Determine the instruction identifier of each process layer node according to the process information; Under the workpiece layer node, when the acquired process number changes, a process layer node is automatically created for each process with the process identifier corresponding to each process number. An example of the process layer node is as follows: PNode = {id: "P001", type: "Process", info: ["Rough machining", "Cut depth 0.5mm", …], subnodes: ["O001"]}.
[0040] Determine the instruction identifier of the instruction layer node according to the instruction information; Under the process layer node, when the acquired instruction line number changes, an instruction layer node is automatically created for each instruction with the instruction identifier corresponding to each instruction line number. An example of the instruction layer node is as follows: ONode = {id: "L001", type: "Order", info: ["Straight milling", "The first cut", …], subnodes: ["L001"]}.
[0041] S106. During the instruction execution process, collect the machining coordinate position information. When the coordinate position changes, a position layer node corresponding to the position information is added under the instruction layer node corresponding to the target instruction.
[0042] The processing device parses the instruction information from the machining program file and obtains the position information of the target instruction corresponding to the current instruction line number for machining the part. When the machining position changes, a position layer node corresponding to the position information is added under the instruction layer node corresponding to the target instruction. An example of the position layer node is as follows: LNode = {id: "L001", type: "Location", info: ["X20.00", "Y40.00", …], subnodes: ["I001", "I002"]}.
[0043] S107. Obtain the first processing data collected by the internal system of the machine tool and the second processing data collected by the external system of the machine tool, store them in sequence according to the time collection order, and establish a storage index to obtain the index leaf node information.
[0044] Among them, the milling processing data includes actual processing process information, numerical control program running information, processing position information, and time-varying processing process signals representing the processing state.
[0045] The actual processing process information includes feed speed, spindle speed, cutting depth, tool number, and tool compensation value. The actual processing process information can be described as C = {A i | i = 1, 2, …, n}, where A i = { v f , n s , d c , t n , t c}, and n is the time step.
[0046] The numerical control program running information includes the workpiece processing sequence number for distinguishing workpieces, the subprogram number for distinguishing processes, the instruction line number for distinguishing different instructions, and the content of the current instruction line. The numerical control program running information can be described as N = {O i | i = 1, 2, …, n}, where O i = { m p , s p , o l , o t}, and n is the time step.
[0047] The processing position information includes the mechanical coordinates of the feed axes X, Y, and Z. The processing position information can be described as P = {M i | i = 1, 2, …, n}, where M i = { p x , p y , p z}, and n is the time step.
[0048] The time-varying machining process signal characterizing the machining state includes the internal system data of the machine tool and the external system of the machine tool. The internal system data of the machine tool includes the spindle current of the milling equipment, the spindle torque of the milling equipment, the spindle temperature of the milling equipment, and the spindle load of the milling equipment obtained from the numerical control system. The internal time-varying machining process signal Sl = {L i | i = 1, 2, …, n}, where L i = { s e , s tor , s l , s tem}, and n is the time step.
[0049] The external system data of the machine tool includes the vibration signals, force signals in the X, Y, and Z directions collected from the external sensors, and the acoustic emission signals collected by the acoustic emission sensor. Among them, SH = {H i | j = 1, 2, …, k}, where Hi = { v x , v y , v z , f x , f y , f z , s a}, and k is the time step corresponding to the sensor acquisition frequency. The processing device adds the first storage index of the first processing data corresponding to the internal system of the machine tool and the first storage index of the second processing data corresponding to the external system of the machine tool at the position layer node. i And the first storage index of the second processing data corresponding to the external system of the machine tool. j .
[0050] S108. The processing device adds the first storage index of the first processing data corresponding to the internal system of the machine tool and the first storage index of the second processing data corresponding to the external system of the machine tool at the position layer node.
[0051] According to the above steps, during the milling process, an automatic hierarchical structure tree of milling process data is constructed. To make the technical solution of this application clearer and easier to understand, this application also provides a schematic diagram of the hierarchical structure establishment process, as shown in Figure 2As shown in the figure, this is a schematic diagram of a hierarchical structure establishment process provided by an embodiment of the present application. To construct a milling machining data element model and make the technical solution of the present application clearer and easier to understand, the present application also provides a schematic diagram of the milling machining data element model, as Figure 3 As shown in the figure, this is a schematic diagram of a milling machining process data element model provided by an embodiment of the present application. It can be seen from the figure that: Taking the number of the milling machining data hierarchical structure tree as the root node of the hierarchical structure tree, adding a first sub-node under the root node, where the first sub-node is a process layer node corresponding to process information, adding a second sub-node under the first sub-node, where the second sub-node is a workpiece layer node corresponding to workpiece information, adding a third sub-node under the second sub-node, where the third sub-node is a process step layer node corresponding to process step information, adding a fourth sub-node under the third sub-node, where the fourth sub-node is an instruction layer node corresponding to instruction information, adding a fifth sub-node under the fourth sub-node, where the fifth sub-node is a position layer node corresponding to position information, and adding a fifth leaf node under the fifth sub-node, where the fifth leaf node is the first storage index of the fifth sub-node. The fifth leaf node mainly stores the first machining data collected by the internal system of the machine tool and the second machining data collected by the external system of the machine tool.
[0052] The present application quickly locates and retrieves the sample milling machining data under the required specific processes, workpieces, process steps, instructions, and positions from a large amount of milling machining data, avoiding screening after reading all the stored data, and constructing a hierarchical structure tree with the same hierarchical structure characteristics.
[0053] Based on the above content, by obtaining and parsing the machining program file, a hierarchical structure tree that can realize hierarchical storage of milling machining data is constructed, and the hierarchical structure tree of the process layer, workpiece layer, process step layer, instruction layer, and position layer is set to realize hierarchical storage of milling machining data, so as to facilitate technicians to conduct targeted analysis on the milling machining process data under different processes, workpieces, process steps, instructions, and positions.
[0054] In some embodiments, obtain the retrieved data layer input by the user, where the retrieved data layer includes a root node layer, a process node layer, a workpiece node layer, a process step node layer, an instruction node layer, or a position node layer. According to the structural relationship of the hierarchical structure tree, determine the retrieval storage index of the first machining data corresponding to the retrieved data layer and the retrieval storage index of the second type. According to the retrieval storage index of the first machining data, obtain the retrieved machining data of the internal system of the machine tool; according to the retrieval storage index of the second type, obtain the retrieved machining data of the external system of the machine tool.
[0055] Finally, this embodiment provides a convenient and systematic method for automatically constructing a milling machining data element model and its hierarchical structure, and further constructs a milling machining data hierarchical organization module. This module uses the milling machining data model and the hierarchical structure tree as basic data items, and integrates the hierarchical structure tree retrieval and the data hierarchical organization module.
[0056] The specific application process of the milling machining function model in this embodiment is as follows: During the milling machining process, based on synchronously collecting the machining process data and maintaining the hierarchical structure tree, for the analysis requirements of different data scales, confirm the required data scale and the corresponding nodes in the hierarchical structure tree, traverse the confirmed branch nodes to obtain the storage indexes corresponding to their lower-level leaf nodes, and read the milling machining data from the database according to the storage indexes and organize it in the form of the milling machining data model. Further, the milling machining data model can be serialized into a JSON string for file storage, data transmission, or further processing.
[0057] An embodiment of this application also provides a device for automatically constructing a milling machining data element model and its hierarchical structure, as Figure 4 shown. This figure is a schematic diagram of a device for automatically constructing a milling machining data element model and its hierarchical structure provided by an embodiment of this application. The device includes: a construction module 301, a hierarchical module 302, and a storage module 303; The construction module 301 is used to establish a milling machining data element model, and the element model is used to describe the five-layer hierarchical structure of milling machining data: the process layer, the workpiece layer, the operation layer, the instruction layer, and the position layer. Based on the milling machining data hierarchical structure described by the element model, during the milling machining process, automatically construct a milling machining data hierarchical structure tree; The hierarchical module 302 is used to divide the corresponding hierarchical structure tree into a root node, a process layer node, a workpiece layer node, an operation layer node, an instruction layer node, a position layer node, and an index leaf node according to the hierarchical relationship. The data structures of the root node and each branch node are defined as follows: Node = {id n , type n , info n , subnodes n}, where id n is the unique identifier of the node, type n is the node type, info n is an array of node description information, and subnodes n is a set of branch nodes; obtain the number of the hierarchical structure tree, and determine the number of the hierarchical structure tree as the root node of the hierarchical structure tree. The structure of the root node is Root = {id r , type r, info r , cnodes r , where id r is the unique identifier of the root node, type r is the root node type, info r is an array of root node description information, cnodes r is a set of process layer branch nodes, r indicating the belonging root node; the name of the processing program file in the acquisition and processing process, and the information of the process layer node and the workpiece layer node is determined according to the identifier of the processing program file; when the name of the acquisition processing program file changes, a process layer node corresponding to the process information is added under the root node of the data hierarchical structure tree, and a workpiece layer node corresponding to the workpiece information is added under the process layer node, and the structure of the process layer node is Craft={id c , type c , info c , wnodes c}, where id c is the unique identifier of the process layer node, type c is the process layer node type, info c is an array of process layer node description information, wnodes c is a set of workpiece layer branch nodes, c indicating the belonging process layer node; the structure of the workpiece layer node is WorkPiece={id w , type w , info w , pnodes w}, where id w is the unique identifier of the workpiece layer node, type w is the workpiece layer node type, info w is an array of workpiece layer node description information, pnodes w is a set of operation layer branch nodes, w indicating the belonging workpiece layer node; parsing the processing program file to obtain the operation layer node information and instruction layer node information of the first workpiece processing, and collecting the operation number and instruction line number, where the first workpiece is the workpiece used to obtain the processing program file, and the structure of the operation layer node is Porcess={id p , type p , info p , onodes p}, where id p is the unique identifier of the operation layer node, type p is the operation layer node type, infop It is an array of process layer node description information, onodes p It is a set of instruction layer branch nodes, p indicating the corresponding process layer node; the structure of the instruction layer node is Order={id o ,type o , info o , lnodes o}, where id o is the unique identifier of the instruction layer node, type o is the instruction layer node type, info o is an array of instruction layer node description information, Inodes o It is a set of position layer branch nodes, o indicating the corresponding instruction layer node; when the collected process number changes, a process layer node corresponding to the process information is added under the workpiece layer node; when the collected instruction line number changes, an instruction layer node corresponding to the instruction line number is added under the process layer node; during the operation of the instruction layer node instruction, the machining coordinate position information is collected, and when the coordinate position changes, a position layer node corresponding to the position information is added under the instruction layer node corresponding to the instruction line number. The structure of the position layer node is Location={id l , type l , info l , inodes l}, where id l is the unique identifier of the position layer node, type l is the position layer node type, info l is an array of position layer node description information, inodes l It is a set of index leaf nodes, l indicating the corresponding position layer node; The storage module 303 is used to obtain the first machining data collected by the internal system of the machine tool and the second machining data collected by the external system of the machine tool, store them in sequence according to the time collection order, and establish a storage index, I 1 ={TimeStamp, D 1}, I 2 ={TimeStamp, D 2}, where TimesStamp is the time stamp, D 1 is the storage index of the first machining data collected by the internal system of the machine tool, D 2The storage index for the second processing data collected by the external system of the machine tool; add the first storage index of the first processing data corresponding to the internal system of the machine tool and the first storage index of the second processing data corresponding to the external system of the machine tool under the position layer node.
[0058] In some possible implementation manners, the data of the internal system of the machine tool includes: the spindle current of the milling equipment, the spindle torque of the milling equipment, or the spindle temperature of the milling equipment; the data of the external system of the machine tool includes: the vibration signals, force signals in the X, Y, and Z directions collected from the external sensors, and the acoustic emission signals collected by the acoustic emission sensors.
[0059] In some possible implementation manners, the layering module 302 is specifically configured to add a process layer node corresponding to the process information under the workpiece layer node, including: Determine the process identifier corresponding to each process layer node according to the process information; Under the workpiece layer node, when the collected processing process number changes, obtain the second processing process number, and create a process layer node for each process with the process identifier corresponding to the second processing process number.
[0060] In some possible implementation manners, the layering module 302 is specifically configured to add an instruction layer node corresponding to the instruction line number under the process layer node, including: Determine the instruction identifier of each instruction layer node according to the instruction information; Under the process layer node, when the collected instruction line number changes, obtain the second instruction line number, and create an instruction layer node for each instruction with the instruction identifier corresponding to the second instruction line number.
[0061] In some possible implementation manners, the layering module 302 is specifically configured to add a position layer node corresponding to the position information under the instruction layer node corresponding to the instruction line number, including: Determine the position identifier of the machining position node according to the machining position information; Under the instruction layer node, when the collected machining position changes, obtain the second machining position node, and create a position layer node for each position with the position identifier of the second machining position node.
[0062] In some possible implementation manners, the device further includes: Obtain the retrieval data layer input by the user. The retrieval data layer includes a root node layer, a process node layer, a workpiece node layer, an operation node layer, an instruction node layer, or a position node layer; determine the storage index of the first processing data of the internal system of the machine tool corresponding to the retrieval data layer and the storage index of the second processing data of the external system of the machine tool according to the structural relationship of the hierarchical structure tree; obtain the processing data of the internal system of the machine tool according to the storage index of the first processing data; obtain the processing data of the external system of the machine tool according to the storage index of the second processing data.
[0063] The embodiment of the present application also provides a computing device. As Figure 5 shown, this figure is a schematic diagram of a computing device provided by the embodiment of the present application. The computing device 400 includes a bus 401, a processor 402, a communication interface 403, and a memory 404. The processor 402, the memory 404, and the communication interface 403 communicate with each other through the bus 401.
[0064] The bus 401 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 5 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.
[0065] The processor 402 can be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP), etc.
[0066] The communication interface 403 is used for external communication. For example, when the computing device is the first switch, the communication interface 403 can be used for the first switch to communicate with the first user terminal, or for the first switch to communicate with the second switch.
[0067] The memory 404 may include volatile memory, such as random access memory (RAM). The memory 404 may also include non-volatile memory, such as read-only memory (ROM), flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0068] Executable code is stored in the memory 404, and the processor 402 executes the executable code to perform the foregoing automatic construction method of the milling machining data element model and its hierarchical structure.
[0069] An embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium may be any available medium that can be stored by a computing device or a data storage device such as a data center including one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state drive), etc. The computer-readable storage medium includes instructions that instruct the computing device to execute the foregoing automatic construction method of the milling machining data element model and its hierarchical structure.
[0070] An embodiment of the present application also provides a computer program product, which includes one or more computer instructions. When the computer instructions are loaded and executed on a computing device, the processes or functions according to the embodiments of the present application are fully or partially generated.
[0071] The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, a computer, or a data center to another website, a computer, or a data center in a wired manner (such as coaxial cable, optical fiber) or a wireless manner (such as infrared, wireless, microwave, etc.).
[0072] When the computer program product is executed by a computer, the computer executes any of the foregoing automatic construction methods of the milling machining data element model and its hierarchical structure. The computer program product may be a software installation package. In the case where any of the foregoing automatic construction methods of the milling machining data element model and its hierarchical structure is required, the computer program product may be downloaded and executed on the computer.
[0073] The descriptions of the processes or structures corresponding to the above-mentioned various drawings each have their own focuses. For parts not detailed in a certain process or structure, reference may be made to the relevant descriptions of other processes or structures.
[0074] As described above, the above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be covered within the protection scope of the present application.
Claims
1. A milling processing data meta-model and a method for automatically constructing a hierarchical structure thereof, characterized in that: The method comprises: Establish a milling processing data meta-model, the meta-model is used to describe the five-layer hierarchical structure of milling processing data: process layer, workpiece layer, process layer, instruction layer and position layer. Based on the hierarchical structure of milling processing data described by the meta-model, the hierarchical structure tree of milling processing data is automatically constructed during the milling processing process; The corresponding hierarchical structure tree is divided into root nodes, process layer nodes, workpiece layer nodes, process layer nodes, instruction layer nodes, location layer nodes and index leaf nodes according to the hierarchical relationship. The root node and each branch node data structure are defined as follows: Node={id n , type n , info n , subnodes n }, where id n Is the unique identifier of the node, type n For node type, info n An array of node description information, subnodes n is a collection of branch nodes; Get the number of the hierarchical structure tree, and determine the number of the hierarchical structure tree as the root node of the hierarchical structure tree. The structure of the root node is Root={id r , type r , info r , cnodes r }, where id r Is the unique identifier of the root node, type r Is the root node type, info r Array of root node description information, cnodes r is the collection of process layer branch nodes, r Indicates the root node to which it belongs; Collect the name of the machining program file in the machining process, and determine the information of the process layer node and the information of the workpiece layer node according to the identification of the machining program file; When the name of the collected processing program file changes, a process layer node corresponding to the process information is added under the root node of the data hierarchical structure tree, and a workpiece layer node corresponding to the workpiece information is added under the process layer node. The structure of the process layer node is Craft={id c , type c , info c , wnodes c }, where id c It is the unique identifier of the process layer node, type c is the process layer node type, info c It is the array of process layer node description information, wnodes c is the set of branch nodes at the artifact layer, c Indicates the process layer node; the structure of the workpiece layer node is WorkPiece={id w , type w ,info w , pnodes w }, where id w It is the unique identifier of the artifact layer node. w For the artifact layer node type, info w An array of artifact layer node description information, pnodes w is the set of process-level branch nodes, w Indicates the artifact layer node to which it belongs; Parse the processing program file to obtain the process layer node information and instruction layer node information of the first workpiece processing, and collect the process number and instruction line number. The first workpiece is the workpiece used to obtain the processing program file. The structure of the process layer node is Process={id p , type p , info p , onodes p }, where id p It is the unique identifier of the process layer node, type p is the process layer node type, info p An array of process-level node description information, onodes p is the set of instruction layer branch nodes, p Indicates the process layer node; the structure of the instruction layer node is Order={id o , type o , info o ,lnodes o }, where id o It is the unique identifier of the instruction layer node, type o For the instruction layer node type, info o Inodes is an array of instruction layer node description information. o is the set of location layer branch nodes, o Indicates the instruction layer node to which it belongs; When the collected process number changes, a process layer node corresponding to the process information is added under the workpiece layer node; When the collected instruction line number changes, an instruction layer node corresponding to the instruction line number is added under the process layer node; During the execution of the instruction layer node command, the processing coordinate position information is collected. When the coordinate position changes, a location layer node corresponding to the position information is added under the instruction layer node corresponding to the instruction line number. The structure of the location layer node is Location={id l , type l , info l , inodes l }, where id l It is the unique identifier of the location layer node, type l For the location layer node type, info l It is the array of location layer node description information, inodes l is the set of index leaf nodes, l Indicates the node of the location layer; Obtain the first processing data collected by the internal system of the machine tool and the second processing data collected by the external system of the machine tool, store them in sequence according to the time collection order and establish a storage index, I1={TimeStamp, D1}, I2={TimeStamp, D2}, where TimesStamp is the timestamp, D1 is the data storage index of the first processing data collected by the internal system of the machine tool, and D2 is the data storage index of the second processing data collected by the external system of the machine tool; A first storage index of first processing data corresponding to the internal system of the machine tool and a first storage index of second processing data corresponding to the external system of the machine tool are added under the location layer node.
2. The method according to claim 1, characterized in that The internal system data of the machine tool includes: the spindle current of the milling equipment, the spindle torque of the milling equipment or the spindle temperature of the milling equipment, and the external system data of the machine tool includes: vibration signals in the three directions of X, Y and Z collected from external sensors, force signals and acoustic emission signals collected by acoustic emission sensors.
3. The method according to claim 1, characterized in that The adding of a process layer node corresponding to the process information under the workpiece layer node includes: According to the process information, determine the process identifier corresponding to each process layer node; Under the workpiece layer node, when the collected processing procedure number changes, a second processing procedure number is obtained, and a process layer node is created for each process with a process identifier corresponding to the second processing procedure number.
4. The method according to claim 1, characterized in that: The step of adding an instruction layer node corresponding to the instruction line number under the process layer node includes: Determine the instruction identifier of each instruction layer node according to the instruction information; Under the process layer node, when the collected instruction line number changes, a second instruction line number is obtained, and an instruction layer node is created for each instruction with the instruction identifier corresponding to the second instruction line number.
5. The method according to claim 1, characterized in that The adding a location layer node corresponding to the location information under the instruction layer node corresponding to the instruction line number includes: Determine the position identifier of the processing position node according to the processing position information; Under the instruction layer node, when the acquired processing position changes, a second processing position node is obtained, and a position layer node is created for each position with the position identifier of the second processing position node.
6. The method according to claim 1, characterized in that The method further comprises: Acquire a search data layer input by a user, wherein the search data layer includes a root node layer, a process node layer, a workpiece node layer, a process node layer, an instruction node layer or a position node layer; Determine, according to the structural relationship of the hierarchical structure tree, a storage index of the first processing data of the internal system of the machine tool and a storage index of the second processing data of the external system of the machine tool corresponding to the retrieval data layer; Acquiring processing data of an internal system of a machine tool according to a storage index of the first processing data; The processing data of the external system of the machine tool is acquired according to the storage index of the second processing data.
7. A milling processing data meta-model and a device for automatically constructing a hierarchical structure thereof, characterized in that: The device comprises: A construction module is used to establish a milling processing data meta-model, wherein the meta-model is used to describe a five-layer hierarchical structure of milling processing data: a process layer, a workpiece layer, a process layer, an instruction layer, and a position layer. Based on the hierarchical structure of milling processing data described by the meta-model, a hierarchical structure tree of milling processing data is automatically constructed during the milling processing process; The hierarchical module is used to divide the corresponding hierarchical structure tree into root nodes, process layer nodes, workpiece layer nodes, process layer nodes, instruction layer nodes, location layer nodes and index leaf nodes according to the hierarchical relationship. The root node and each branch node data structure are defined as follows: Node={id n , type n , info n , subnodes n }, where id n Is the unique identifier of the node, type n For node type, info n An array of node description information, subnodes n is a collection of branch nodes; obtaining the number of the hierarchical structure tree, and determining the number of the hierarchical structure tree as the root node of the hierarchical structure tree, wherein the structure of the root node is Root={id r , type r , info r , cnodes r }, where id r Is the unique identifier of the root node, type r Is the root node type, info r Array of root node description information, cnodes r is the collection of process layer branch nodes, r Indicates the root node; collects the name of the processing program file in the processing process, and determines the information of the process layer node and the workpiece layer node according to the identification of the processing program file; when the name of the collected processing program file changes, adds the process layer node corresponding to the process information under the root node of the data hierarchical structure tree, and adds the workpiece layer node corresponding to the workpiece information under the process layer node, and the structure of the process layer node is Craft={id c , type c , info c , wnodes c }, where id c It is the unique identifier of the process layer node, type c is the process layer node type, info c It is the array of process layer node description information, wnodes c is the set of branch nodes at the artifact layer, c Indicates the process layer node; the structure of the workpiece layer node is WorkPiece={id w , type w , info w , pnodes w }, where id w It is the unique identifier of the artifact layer node. w For the artifact layer node type, info w An array of artifact layer node description information, pnodes w is the set of process-level branch nodes, w Indicates the workpiece layer node; parse the processing program file to obtain the process layer node information and instruction layer node information of the first workpiece processing, and collect the process number and instruction line number. The first workpiece is the workpiece used to obtain the processing program file. The structure of the process layer node is Process={id p , type p , info p , onodes p }, where id p It is the unique identifier of the process layer node, type p is the process layer node type, info p An array of process-level node description information, onodes p is the set of instruction layer branch nodes, p Indicates the process layer node; the structure of the instruction layer node is Order={id o ,type o , info o , lnodes o }, where id o It is the unique identifier of the instruction layer node, type o For the instruction layer node type, info o Inodes is an array of instruction layer node description information. o is the set of location layer branch nodes, o Indicates the instruction layer node to which it belongs; when the collected process number changes, a process layer node corresponding to the process information is added under the workpiece layer node; when the collected instruction line number changes, an instruction layer node corresponding to the instruction line number is added under the process layer node; during the execution of the instruction layer node instruction, the processing coordinate position information is collected. When the coordinate position changes, a location layer node corresponding to the location information is added under the instruction layer node corresponding to the instruction line number. The structure of the location layer node is Location={id l , type l , info l , inodes l }, where id l It is the unique identifier of the location layer node, type l For the location layer node type, info l It is the array of location layer node description information, inodes l is the set of index leaf nodes, l Indicates the node of the location layer; A storage module is used to obtain the first processing data collected by the internal system of the machine tool and the second processing data collected by the external system of the machine tool, store them in sequence according to the time collection order and establish storage indexes, I1={TimeStamp, D1}, I2={TimeStamp, D2}, where TimesStamp is the timestamp, D1 is the storage index of the first processing data collected by the internal system of the machine tool, and D2 is the storage index of the second processing data collected by the external system of the machine tool; under the position layer node, add the first storage index of the first processing data corresponding to the internal system of the machine tool and the first storage index of the second processing data corresponding to the external system of the machine tool.
8. A computing device, characterized in that including memory and processor; One or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device executes the method as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 6.