Method, device, medium and electronic equipment for constructing industrial software object model

By establishing a tree hierarchical structure and association relationships in the industrial software object model, the data interaction and information sharing capabilities are improved, the problems of poor data interaction capabilities and repetitive modeling in the existing technology are solved, and a more efficient design process is achieved.

CN117389984BActive Publication Date: 2024-10-11SUZHOU SHUSHE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311147059.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-06
Publication Date
2024-10-11
Estimated Expiration
2043-09-06

AI Technical Summary

Technical Problem

Existing industrial software object models have poor data interaction capabilities and are difficult to meet the needs of industrial systems, resulting in data island problems and repeated modeling, which increases design costs and cycles.

Method used

By determining the tree hierarchical structure of the target industrial software object, each element has an attribute library, a method library and a state library, and establishing the association between these libraries, building a multi-level vector structure based on the element identification and hierarchical structure to achieve data filling. and updates to improve data interaction and information sharing capabilities.

Benefits of technology

It effectively improves the data interaction and information sharing capabilities of the model, avoids repeated modeling, shortens the design cycle and reduces design costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117389984B_ABST
    Figure CN117389984B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for constructing an industrial software object model, the method comprising: determining a tree-like hierarchical structure of a target industrial software object; each element in the tree-like hierarchical structure corresponds to an attribute library, a method library, and a state library with an associated relationship; determining the element identification of each element in the tree-like hierarchical structure; based on the element identification of each element and the tree-like hierarchical structure, determining a multi-level vector structure of the target industrial software object; based on the attribute library of each element in the tree-like hierarchical structure, filling the multi-level vector structure with data to obtain an object model of the target industrial software object; the object model has an attribute library, a method library, and a state library of each element of the tree-like hierarchical structure, and when the method library or the state library is updated, the attribute library is updated based on the associated relationship. The technical solution provided by the present invention effectively improves the data interaction and information sharing capabilities of the model by establishing an associated relationship between the attribute library, the method library, and the state library.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of industrial software technology, and more specifically, to a method, device, medium and electronic device for constructing an industrial software object model. Background Art

[0002] Industrial software is the link between traditional industrial production and modern information technology, and is the carrier of intelligent manufacturing. It has been deeply integrated into the industrial design and manufacturing process. Under the background of the gradual transformation and upgrading of the manufacturing industry, the importance of industrial software continues to increase, the complexity of industrial objects is increasing, and the requirements for the construction of industrial software object models are getting higher and higher. However, the object models constructed by the current construction methods of industrial software object models often have poor data interaction capabilities and are difficult to meet the needs of industrial systems. Summary of the invention

[0003] The present invention provides a method and device for constructing an industrial software object model, a computer-readable storage medium and an electronic device to solve the technical problem that the object model constructed in the prior art has poor data interaction capability.

[0004] According to a first aspect of the present invention, there is provided a method for constructing an industrial software object model, comprising:

[0005] Determine a tree-like hierarchical structure of a target industrial software object; each element in the tree-like hierarchical structure corresponds to a property library, a method library, and a state library, and the property library, the method library, and the state library of the same element are associated with each other;

[0006] Determine the element identifier of each element in the tree-shaped hierarchical structure, where the element identifier of the lower-level element includes the element identifier of the upper-level element for the upper-level elements at different levels and having a containment relationship;

[0007] Determining a multi-level vector structure of the target industrial software object based on the element identifier of each element and the tree-shaped hierarchical structure;

[0008] Based on the attribute library of each element in the tree hierarchical structure, the multi-level vector structure is filled with data to obtain the object model of the target industrial software object; the object model has the attribute library, the method library and the status library of each element of the tree hierarchical structure, and when the method library or the status library is updated, the attribute library is updated based on the association relationship.

[0009] Optionally, determining the multi-level vector structure of the target industrial software object based on the element identifier of each element and the tree hierarchy structure includes:

[0010] Based on the element identifier of each element and the tree hierarchy structure, determining vector expression information of each level of the tree hierarchy structure;

[0011] Based on the vector expression information of each level and the hierarchical relationship of the tree hierarchy structure, a multi-level vector structure of the target industrial software object is determined.

[0012] Optionally, determining the tree hierarchy structure of the target industrial software object includes:

[0013] Determine a root element and a first-level element of the target industrial software object, wherein the first-level element is a child element of the root element;

[0014] Based on the root element and the first level element, construct a first level and a second level of the tree hierarchy structure;

[0015] Taking the second level as the first current level, when the current level element of the current level has a next-level child element, construct the next current level based on the next-level child element; when the current level element of the current level does not have a next-level child element, obtain the constructed tree-like hierarchical structure.

[0016] Optionally, before the step of determining the element identifier of each element in the tree hierarchy structure, the method further includes:

[0017] Constructing the attribute library, the method library and the state library for each element;

[0018] The same element in the attribute library, the method library and the state library is represented by the same field information to determine the association relationship among the attribute library, the method library and the state library.

[0019] Optionally, constructing the attribute library, the method library and the state library for each element includes:

[0020] Constructing a basic model attribute library, wherein the basic model attribute library is used to establish a peer relationship between different field information;

[0021] Get the original attribute library, original method library and original state library;

[0022] Based on the basic model attribute library, field correction is performed on the original attribute library, the original method library and the original state library to obtain the attribute library, method library and state library of each element.

[0023] Optionally, for upper and lower elements at different levels and having a containment relationship, the attribute library of the lower element has an inheritance relationship with the attribute library of the upper element; when the attribute library of the upper element is updated, the attribute library of the lower element is updated.

[0024] According to a second aspect of the present invention, there is provided a device for constructing an industrial software object model, comprising:

[0025] A first structure determination module is used to determine a tree-like hierarchical structure of a target industrial software object; each element in the tree-like hierarchical structure corresponds to a property library, a method library and a state library, and the property library, the method library and the state library of the same element are associated with each other;

[0026] A second structure determination module is used to determine the element identifier of each element in the tree-shaped hierarchical structure, and the element identifier of the subordinate element includes the element identifier of the superior element for superior and inferior elements at different levels and having a containment relationship;

[0027] A third structure determination module, configured to determine a multi-level vector structure of the target industrial software object based on the element identifier of each element and the tree hierarchy structure;

[0028] An object model determination module is used to fill the multi-level vector structure with data based on the attribute library of each element in the tree hierarchical structure to obtain the object model of the target industrial software object; the object model has the attribute library, the method library and the status library of each element of the tree hierarchical structure, and when the method library or the status library is updated, the attribute library is updated based on the association relationship.

[0029] an expression information determining unit, configured to determine the vector expression information of each level of the tree hierarchy structure based on the element identifier of each element and the tree hierarchy structure;

[0030] The vector structure determination unit is used to determine the multi-level vector structure of the target industrial software object based on the vector expression information of each level and the hierarchical relationship of the tree hierarchy structure.

[0031] According to a third aspect of the present invention, there is provided a computer-readable storage medium, wherein the storage medium stores a computer program for executing the above-mentioned method for constructing an industrial software object model.

[0032] According to a fourth aspect of the present invention, there is provided an electronic device, the electronic device comprising:

[0033] processor;

[0034] a memory for storing instructions executable by the processor;

[0035] The processor is used to read the executable instructions from the memory and execute the instructions to implement the above-mentioned method for constructing the industrial software object model.

[0036] Compared with the prior art, the method, device, computer-readable storage medium and electronic device for constructing an industrial software object model provided by the present invention have at least the following beneficial effects:

[0037] The technical solution of the present invention is to determine a tree-like hierarchical structure for a target industrial software object, and the tree-like hierarchical structure includes multiple elements, each of which has an attribute library, a method library, and a state library. The attribute library of an element includes the basic attributes of the element, and the basic attributes are used to indicate the characteristic information of the element; the method library of an element includes the industrial process or specific algorithm corresponding to the element; the state library of an element includes the current state of the element. For the same element, an association relationship between the element in the attribute library, the method library, and the state library is established. Then, the element identifier of each element in the tree-like hierarchical structure is determined, and the element identifier is used to distinguish different elements. For upper and lower elements at different levels and with a containment relationship, the element identifier of the lower element includes the element identifier of the upper element, so that the relationship between each element can be accurately identified based on the element identifier. Further, according to each element of the tree-like hierarchical structure and the name information of each element, the multi-level vector structure of the target industrial software object is determined, and according to the attribute library of each element in the tree-like hierarchical structure, the multi-level vector structure is filled with data to obtain the object model corresponding to the target industrial software object. The object model has the attribute library, method library and state library of each element of the tree-like hierarchical structure. When the method library or the state library is updated, the attribute library can be updated according to the association relationship. In other words, by establishing the association relationship between the attribute library, the method library and the state library, the connection between the database is avoided from being severed, and the data interaction ability and information sharing ability of the model are effectively improved. In addition, by accurately identifying the element identifier, a grammatically standardized multi-level vector structure is constructed according to the element identifier and the tree-like hierarchical structure. The multi-level vector structure is a standardized template with a unified expression and good versatility, which can avoid repeated modeling, shorten the design cycle and reduce the design cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0039] Figure 1 It is a flowchart of a method for constructing an industrial software object model provided by an exemplary embodiment of the present invention;

[0040] Figure 2The tree-like hierarchical structure in the method for constructing an industrial software object model provided by an exemplary embodiment of the present invention is shown in FIG. Figure 1 ;

[0041] Figure 3 The tree-like hierarchical structure in the method for constructing an industrial software object model provided by an exemplary embodiment of the present invention is shown in FIG. Figure 2 ;

[0042] Figure 4 It is a schematic diagram of vector expression information in a method for constructing an industrial software object model provided by an exemplary embodiment of the present invention;

[0043] Figure 5 is a schematic diagram of a multi-level vector structure in a method for constructing an industrial software object model provided by an exemplary embodiment of the present invention;

[0044] Figure 6 It is a structural schematic diagram of a device for constructing an industrial software object model provided by an exemplary embodiment of the present invention;

[0045] Figure 7 is a structural diagram of an electronic device provided by an exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0046] The following will be combined with the accompanying drawings in the present invention to clearly and completely describe the technical solutions in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this embodiment. SUMMARY OF THE INVENTION

[0048] Industrial software is the link between traditional industrial production and modern information technology, and is the carrier of intelligent manufacturing. It has been deeply integrated into the industrial design and manufacturing process. Under the background of the gradual transformation and upgrading of the manufacturing industry, the importance of industrial software continues to increase, the complexity of industrial objects is increasing, and the requirements for the construction of industrial software object models are getting higher and higher. However, the current construction methods of industrial software object models are often aimed at a single field and a single task, which is difficult to support the information needs of industrial systems at all stages of the life cycle. The model data exchange and information sharing capabilities are poor, and the data island problem is obvious. At the same time, in the process of model construction, due to the poor versatility of the model and the prominent phenomenon of repeated modeling, the cost of industrial software design is high, the cycle is long, and the quality is low.

[0049] The technical solution provided by the present application is to determine a tree-like hierarchical structure for a target industrial software object, and the tree-like hierarchical structure includes multiple elements, each of which has an attribute library, a method library, and a state library. The attribute library of an element includes the basic attributes of the element, and the basic attributes are used to indicate the characteristic information of the element; the method library of an element includes the industrial process or specific algorithm corresponding to the element; the state library of an element includes the current state of the element. For the same element, an association relationship between the element in the attribute library, the method library, and the state library is established. Then, the element identifier of each element in the tree-like hierarchical structure is determined. The element identifier is used to distinguish different elements. For superior and subordinate elements at different levels and with a containment relationship, the element identifier of the subordinate element includes the element identifier of the superior element, so that the relationship between the elements can be accurately identified based on the element identifier. Further, according to each element of the tree-like hierarchical structure and the name information of each element, the multi-level vector structure of the target industrial software object is determined, and according to the attribute library of each element in the tree-like hierarchical structure, the multi-level vector structure is filled with data to obtain the object model corresponding to the target industrial software object. The object model has the attribute library, method library and state library of each element of the tree-like hierarchical structure. When the method library or the state library is updated, the attribute library can be updated according to the association relationship. In other words, by establishing the association relationship between the attribute library, the method library and the state library, the connection between the database is avoided from being severed, and the data interaction ability and information sharing ability of the model are effectively improved. In addition, by accurately identifying the element identifier, a grammatically standardized multi-level vector structure is constructed according to the element identifier and the tree-like hierarchical structure. The multi-level vector structure is a standardized template with a unified expression and good versatility, which can avoid repeated modeling, shorten the design cycle and reduce the design cost.

[0050] Exemplary Methods

[0051] Figure 1 1 is a flow chart of a method for constructing an industrial software object model provided by an exemplary embodiment of the present invention, which at least includes the following steps:

[0052] Step 11, determine the tree hierarchy structure of the target industrial software object; each element in the tree hierarchy structure corresponds to a property library, a method library and a state library, and the property library, the method library and the state library of the same element are associated with each other.

[0053] Among them, the target industrial software object is aimed at an industrial system, such as a pipe bending machine system. The number of the industrial systems can be one or more. When the target industrial software object is aimed at multiple industrial systems, there is an association relationship among the multiple industrial systems.

[0054] The tree hierarchy structure includes multiple elements. An element is a node of the tree hierarchy structure. The node can be a decomposable node or an inseparable node. Different elements of the tree hierarchy structure can be in the same tree hierarchy or in different tree hierarchies. There are other nodes connected to the decomposable node, that is, there is a next level for the decomposable node, and there is no next level for the inseparable node. The next level of the decomposable node may include decomposable nodes and / or inseparable nodes.

[0055] For example, Figure 2 As shown, the tree hierarchy includes n+1 levels, namely level 0, level 1, level 2, and level n, where level 0 includes one element, namely a, and level 1 includes a0, a1, a b0 etc. Level 2 includes a b00 、a b01 、a b0b1 Elements such as, the nth level includes a b0…0 、a b0…1 、a b0…bn-1 Furthermore, the tree-like hierarchical structure has a hierarchical relationship, and the upper and lower adjacent elements have a containment relationship, that is, the lower element is a sub-element of some upper elements, such as a b00 、a b01 、a b0b1 The elements are a in the upper level b0 The child elements of the element.

[0056] Each element in the tree-like hierarchical structure has a corresponding attribute library, method library and state library. Among them, the attribute library contains industrial object attribute information, such as: number, name, type, department, person in charge, price, characteristics, affiliation, etc.; the method library contains the method behavior corresponding to the element's operation, such as: implementation plan, specific algorithm and action behavior, etc.; the state library contains the initial state of the element and the intermediate state of the operation through the specific behavior method in the method library and the final result state.

[0057] The same element has an association relationship among the attribute library, method library, and state library. The association relationship is used for data interaction and data sharing to maintain the uniformity of data in the attribute library, method library, and state library and ensure timely updating of data.

[0058] In some embodiments, the step 11 of determining the tree hierarchy structure of the target industrial software object includes:

[0059] Step 111, determining the root element and the first-level element of the target industrial software object, where the first-level element is a child element of the root element.

[0060] Step 112: construct the first level and the second level of the tree hierarchy structure based on the root element and the first level element.

[0061] Step 113, taking the second level as the first current level, and if the current level element of the current level has a next-level child element, constructing the next current level based on the next-level child element; if the current level element of the current level does not have a next-level child element, obtaining the constructed tree-like hierarchical structure.

[0062] In this embodiment, when constructing a tree-like hierarchical structure, the root element is first determined, which can be used to indicate an industrial system. Then, the child element of the root element, i.e., the first-level element, is determined. The root element is used as the first level of the tree-like hierarchical structure, and the first-level element is placed at the next level of the first level corresponding to the root element. Based on the inclusion relationship between the first-level element and the root element, the connection relationship between the root element and the first-level element is determined, thereby constructing the first level and the second level.

[0063] Further, the next level sub-element of the second level, that is, the second level element, is determined. If the second level element exists, the connection relationship between the first level element and the second level element is determined based on the inclusion relationship between the first level element and the second level element, and the third level is constructed. The next level sub-element of the third level is further determined, and the sub-element confirmation and level construction process is continuously cycled until the cognitive domain of the current industrial software is complete, that is, there is no next level sub-element position, and the complete tree hierarchy structure is determined.

[0064] Exemplarily, the pipe bending machine system is taken as the root element.

[0065] Furthermore, the sub-units or sub-elements corresponding to the pipe bending machine system are taken as the first-level elements, including pipe fittings, pipe bending machines and robots. Figure 3 It can be seen that the topological relationship between the pipe bending machine system and the pipe fittings, pipe bending machines and robots is obtained, and the first and second levels of the tree hierarchy structure are obtained.

[0066] Furthermore, the subunits corresponding to the pipe bending machine and the subunits of the robot are taken as the second-level elements. The subunits of the pipe bending machine include a mold, a swing bending device and a support, and the subunits of the robot include a gripper, an arm and a base, forming a Figure 3 The topological structure between the second and third levels of the tree structure shown obtains the third level of the tree hierarchy structure.

[0067] Furthermore, the three-level swing bending device and the rotation of the swing bending device's subunit, the swing arm, the main clamp, the guide clamp device, and the robot arm and the robot arm's subunit J1, J2, J3, J4, J5, and J6 arms form a topological structure between the third and fourth levels, and the fourth level of the tree hierarchy structure is obtained. At this time, the entire pipe bending machine system model reaches a complete state, and the establishment of the tree hierarchy model is completed. Figure 3 The tree hierarchy of the tube bending machine system is shown.

[0068] In some embodiments, the method further comprises:

[0069] Step 15, constructing the attribute library, the method library and the state library for each element.

[0070] Step 16: The same element in the attribute library, the method library and the state library is represented by the same field information to determine the association relationship among the attribute library, the method library and the state library.

[0071] In this embodiment, an attribute library, a method library and a state library are constructed for each element in the tree hierarchical structure, and the same element in the attribute library, the method library and the state library is represented by the same field information, that is, the same field information exists in the attribute library, the method library and the state library, and the association relationship between the attribute library, the method library and the state library can be established through the same field information.

[0072] Specifically, the attribute library contains the field names in the method library and the state library, but does not contain the specific behavior of the method library and the specific state of the state library. The attribute library only forms a mapping relationship with the method library and the state library through the fields. Figure 2 When there is field information such as a0... in the attribute library, there is also field information such as a0... in the method library and the state library. That is to say, when there is a certain field information in the attribute library, there is also a method corresponding to the same field information in the method library, and because the state of the object will change with the execution of the method, the state library will contain the same attribute information as the corresponding method in the method library, that is, the same field information.

[0073] Specifically, the initial state in the state library is obtained from the attribute library, and the result state is mapped through the method with field information in the method library to obtain the result state. Further, by finding elements with the same fields as the method, the result state is added to the attribute library of the same field element, and the result state contains the data information after the object is executed, so the attribute library can be updated. Therefore, by establishing the association relationship between the attribute library, method library and state library, data exchange and data sharing between different databases can be realized, effectively solving the problem of data islands.

[0074] In some embodiments, the step 15 constructs the attribute library, the method library and the state library for each element, including:

[0075] Step 151: construct a basic model attribute library, wherein the basic model attribute library is used to establish a peer relationship between different field information.

[0076] Step 152, constructing an original attribute library, an original method library and an original state library.

[0077] Step 153, based on the basic model attribute library, the original attribute library, the original method library and the original state library are subjected to field correction to obtain the attribute library, method library and state library of each element.

[0078] Specifically, domain experts give unified descriptions to elements with different fields but the same values ​​(for example, the same product has different names in different modules, and the same method has different names) based on the extracted common features of each element, that is, establish an equivalent relationship between different field information, and add the field information with equivalent relationships to the basic model attribute library.

[0079] After obtaining the basic model attribute library, the basic model attribute library is used to perform field correction on the original attribute library, the original method library, and the original state library, where the original attribute library refers to the attribute library before field correction, the original method library refers to the method library before field correction, and the original state library refers to the state library before field correction. Performing field correction means using a unified field to represent different fields that represent the same value, which is conducive to subsequent rapid data processing and improves data processing efficiency.

[0080] Exemplarily, field A and field K are essentially the same, but due to the habits of different staff members, field A exists in the original attribute library, field K exists in the original method library, and field K exists in the original state library. In the base model attribute library, field A=field K exists, so the base model attribute library can be used to perform field correction on the original attribute library, the original method library, and the original state library. For example, a main field with a unified representation is determined for field A and field K, such as field A. Then, when performing field correction, field A in the original attribute library remains unchanged, field K in the original method library is modified to field A, and field K in the original state library is modified to field A, so as to achieve a unified representation of field A and field K. It should be noted that the main fields of field A and field K may not be the same as field A or field K, and the determined main fields can uniformly represent field A and field K.

[0081] In some embodiments, for superior and subordinate elements at different levels and having a containment relationship, the attribute library of the subordinate element has an inheritance relationship with the attribute library of the superior element; when the attribute library of the superior element is updated, the attribute library of the subordinate element is updated.

[0082] In this embodiment, not only the association relationship between the attribute library, method library and state library of a single element is established, but also the inheritance relationship between the attribute libraries of the upper and lower elements is established. That is to say, the content in the attribute library of the upper element will be stored in the attribute library of the lower element, and when the attribute library of the upper element is updated, the attribute library of the lower element will be updated together to ensure the synchronization of the attributes of the upper and lower elements.

[0083] Step 12, determining the element identifier of each element in the tree-shaped hierarchical structure, for upper and lower elements at different levels and having a containment relationship, the element identifier of the lower element includes the element identifier of the upper element.

[0084] Among them, the element identifier is used to distinguish different elements in the tree hierarchy. The element identifiers at the same level are different, and the element identifiers at the same level are changed in sequence, such as increasing from top to bottom. For adjacent upper and lower elements at different levels with a containment relationship, the element identifier of the lower element includes the element identifier of the upper element.

[0085] For example, Figure 2 As shown, the element identifier of the root element is a, and the element identifiers of the first-level elements are a0, a1, a b0 , where the element identifier of the first-level element includes the element identifier of the root element, and a0, a1, a b0 , the numerical part of the element identifier increases in sequence. Based on the identifier extension operation, the element identifier of the child element will contain the element representation of the parent element. The child element is associated with the parent element through the element identifier. When the parent element is executed through a specific method in the method library, the state of its element attribute changes. The state of the element attribute library is updated, and the attributes of the child element associated with it will be updated accordingly. Therefore, according to the attribute library, method library, and state library, the subordinate elements can be updated by updating each element in the parent topological relationship.

[0086] Step 13: Determine the multi-level vector structure of the target industrial software object based on the element identifier of each element and the tree hierarchy structure.

[0087] Among them, the mathematical expression of the structural hierarchical structure of the multi-level vector structure is standardized and universal, and the number of levels of the multi-level vector structure is the same as the number of levels of the tree hierarchical structure.

[0088] Specifically, after the element identifier of each element is determined, the element identifier is combined with the element of the tree hierarchy structure and expressed by each level of the vector to obtain a multi-level vector structure.

[0089] In some embodiments, the step 13 determines the multi-level vector structure of the target industrial software object based on the element identifier of each element and the tree hierarchy structure, including:

[0090] Step 131: Determine vector expression information of each level of the tree hierarchy based on the element identifier of each element and the tree hierarchy.

[0091] Step 132: Determine the multi-level vector structure of the target industrial software object based on the vector expression information of each level and the hierarchical relationship of the tree hierarchy structure.

[0092] In this embodiment, the tree hierarchy structure is divided according to its levels, and the vector expression information of each level is determined. The hierarchical positions and hierarchical elements of the tree hierarchy structure corresponding to different levels are different, and the vector expression information is different. After determining the vector expression information of each level, the vector expression information of each level is arranged in sequence according to the hierarchical relationship of the tree hierarchy structure to obtain a multi-level vector structure of the target industrial software object.

[0093] Specifically, the vector expression information of a level can be as follows:

[0094]

[0095] Where: i is the level of the vector

[0096] j i =0, ..., b i-1 is the subscript of the i-th level vector

[0097] b i-1 is the length of the i-th level

[0098] Figure 4 The vector expression information of each level is shown. Figure 4 The first-level elements in include a0, a j1 、a b0 In the case of , the vector expression information of the first level is [a0, aj1, abo].

[0099] For example, Figure 5 A multi-level vector structure is shown, and the tree-like hierarchical structure of the multi-level vector structure is as follows Figure 3 As shown. Figure 3 After the tree-like hierarchical structure is shown, the element identification of each element in the tree-like hierarchical structure is determined, such as determining that the element identification of the pipe bending machine system is unit 0, the pipe fitting is unit 1, the pipe bending machine is unit 2, the robot is unit 3, and the mold is unit 21 , the swing bending device is a unit 22 , the support is a unit 23, hand grasping as unit 31 , the arm is a unit 32 , the base is a unit 33 , the rotating device is a unit 221 , the swing arm device is a unit 222 , the main clamping device is a unit 223 , the guide clamp device is a unit 224 , J1 arm is a unit 321 , J2 arm is a unit 322 , J3 arm is a unit 323 , J4 arm is a unit 324 , J5 arm is a unit 325 , J6 arm is a unit 326 Then, according to the element identification and the hierarchical relationship of the tree hierarchy, the vector expression information of the first level is determined to be [unit 0 = pipe bending machine system], the vector expression information of the second level is [unit 1 = pipe fitting, unit 2 = pipe bending machine, unit 3 = robot], and the vector expression information of the third level is [unit 21 =Mold, unit 22 =Bending device, unit 23 =Support, unit 31 = Hand grip, unit 32 = Arm, unit 33 = base], the fourth level vector expression information is [unit 221 = Rotating device, unit 222 =Swing arm device, unit 223 = Main clamping device, unit 224 = Clamp guide, unit 321 = J1 arm, unit 322 = J2 arm, unit 323 = J3 arm, unit 324 = J4 arm, unit 325 = J5 arm, unit 326 =J6 arm]. Further arrange the vector expression information of the first level, the vector expression information of the second level, the vector expression information of the third level, and the vector expression information of the fourth level in hierarchical order to obtain the following: Figure 5 The multi-level vector structure shown has standardization and high versatility.

[0100] Step 14, based on the attribute library of each element in the tree hierarchical structure, fill the multi-level vector structure with data to obtain the object model of the target industrial software object; the object model has the attribute library, the method library and the status library of each element of the tree hierarchical structure, and when the method library or the status library is updated, the attribute library is updated based on the association relationship.

[0101] In this embodiment, the constructed multi-level vector structure is a data template with a unified expression. The attribute library of the element stores the relevant characteristics of the element, such as the specific element value. Therefore, the multi-level vector structure can be filled with data according to the attribute library of each element in the tree hierarchical structure to obtain the object model of the target industrial software object. In this step, the main task is to fill in data to fill the constructed data template with real values ​​to obtain an object model that is adapted to the currently constructed target industrial software object.

[0102] Furthermore, the object model has an attribute library, a method library, and a state library for each element of the tree-like hierarchical structure. When the method library or the state library is updated, the attribute library is updated based on the association relationship. For example, when executing an industrial process, such as bending a straight pipe 90°, the attributes of the pipe bending robot and pipe fittings can be automatically updated through the constructed attribute library, method library, and state library, and the updated result data can be displayed on the software.

[0103] In the above embodiment, a tree-like hierarchical structure is determined for the target industrial software object, and the tree-like hierarchical structure includes multiple elements, each of which has an attribute library, a method library, and a state library. The attribute library of an element includes the basic attributes of the element, and the basic attributes are used to indicate the characteristic information of the element; the method library of an element includes the industrial process or specific algorithm corresponding to the element; the state library of an element includes the current state of the element. For the same element, an association relationship between the element in the attribute library, the method library, and the state library is established. Then, the element identifier of each element in the tree-like hierarchical structure is determined. The element identifier is used to distinguish different elements. For upper and lower elements at different levels and with a containment relationship, the element identifier of the lower element includes the element identifier of the upper element, so that the relationship between the elements can be accurately identified based on the element identifier. Further, according to each element of the tree-like hierarchical structure and the name information of each element, the multi-level vector structure of the target industrial software object is determined, and according to the attribute library of each element in the tree-like hierarchical structure, the multi-level vector structure is filled with data to obtain the object model corresponding to the target industrial software object. The object model has the attribute library, method library and state library of each element of the tree-like hierarchical structure. When the method library or the state library is updated, the attribute library can be updated according to the association relationship. In other words, by establishing the association relationship between the attribute library, the method library and the state library, the connection between the database is avoided from being severed, and the data interaction ability and information sharing ability of the model are effectively improved. In addition, by accurately identifying the element identifier, a grammatically standardized multi-level vector structure is constructed according to the element identifier and the tree-like hierarchical structure. The multi-level vector structure is a standardized template with a unified expression and good versatility, which can avoid repeated modeling, shorten the design cycle and reduce the design cost.

[0104] Exemplary Devices

[0105] Based on the same concept as the embodiment of the method of the present invention, the embodiment of the present invention also provides a device for constructing an industrial software object model.

[0106] Figure 6 A schematic diagram of a structure of a device for constructing an industrial software object model provided by an exemplary embodiment of the present invention is shown, comprising:

[0107] A first structure determination module 61 is used to determine a tree-like hierarchical structure of a target industrial software object; each element in the tree-like hierarchical structure corresponds to a property library, a method library and a state library, and the property library, the method library and the state library of the same element are associated with each other;

[0108] The second structure determination module 62 is used to determine the element identification of each element in the tree-shaped hierarchical structure, and the element identification of the lower-level element includes the element identification of the upper-level element for the upper-level elements at different levels and having a containment relationship;

[0109] A third structure determination module 63, configured to determine the multi-level vector structure of the target industrial software object based on the element identification of each element and the tree hierarchy structure;

[0110] The object model determination module 64 is used to fill the multi-level vector structure with data based on the attribute library of each element in the tree hierarchical structure to obtain the object model of the target industrial software object; the object model has the attribute library, the method library and the status library of each element of the tree hierarchical structure, and when the method library or the status library is updated, the attribute library is updated based on the association relationship.

[0111] In an exemplary embodiment of the present invention, the third structure determination module includes:

[0112] an expression information determining unit, configured to determine the vector expression information of each level of the tree hierarchy structure based on the element identifier of each element and the tree hierarchy structure;

[0113] The vector structure determination unit is used to determine the multi-level vector structure of the target industrial software object based on the vector expression information of each level and the hierarchical relationship of the tree hierarchy structure.

[0114] In an exemplary embodiment of the present invention, the first structure determination module includes:

[0115] A sub-element determination unit, used to determine a root element and a first-level element of the target industrial software object, wherein the first-level element is a sub-element of the root element;

[0116] A first construction unit, configured to construct a first level and a second level of the tree-shaped hierarchical structure based on the root element and the first level element;

[0117] The second construction unit is used to take the second level as the first current level, and when the current level element of the current level has a next-level child element, construct the next current level based on the next-level child element; when the current level element of the current level does not have a next-level child element, obtain the constructed tree-like hierarchical structure.

[0118] In an exemplary embodiment of the present invention, the device further comprises:

[0119] A database construction module, used for constructing the attribute library, the method library and the state library for each element;

[0120] The relationship determination module is used to represent the same element in the attribute library, the method library and the state library with the same field information to determine the association relationship among the attribute library, the method library and the state library.

[0121] In an exemplary embodiment of the present invention, the database construction module includes:

[0122] An attribute library construction unit, used to construct a basic model attribute library, wherein the basic model attribute library is used to establish a peer relationship between different field information;

[0123] An original data acquisition unit, used for acquiring an original attribute library, an original method library and an original state library;

[0124] The field correction unit is used to perform field correction on the original attribute library, the original method library and the original state library based on the basic model attribute library to obtain the attribute library, the method library and the state library of each element.

[0125] In an exemplary embodiment of the present invention, for superior and subordinate elements at different levels and having a containment relationship, the attribute library of the subordinate element has an inheritance relationship with the attribute library of the superior element; when the attribute library of the superior element is updated, the attribute library of the subordinate element is updated.

[0126] Exemplary Electronic Devices

[0127] Figure 7 A block diagram of an electronic device according to an embodiment of the present invention is illustrated.

[0128] like Figure 7 As shown, the electronic device 70 includes one or more processors 71 and a memory 72 .

[0129] The processor 71 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 70 to perform desired functions.

[0130] The memory 72 may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, a random access memory (RAM) and / or a cache memory (cache), etc. The non-volatile memory may include, for example, a read-only memory (ROM), a hard disk, a flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 71 may execute the program instructions to implement the method for constructing the industrial software object model of each embodiment of the present invention described above and / or other desired functions.

[0131] In one example, the electronic device 70 may further include: an input device 73 and an output device 74, and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).

[0132] Of course, to simplify, Figure 7 Only some of the components related to the present invention in the electronic device 70 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application conditions, the electronic device 70 may also include any other appropriate components.

[0133] Exemplary computer program products and computer-readable storage media

[0134] In the sixth aspect, in addition to the above-mentioned methods and devices, an embodiment of the present invention may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps in the method for constructing an industrial software object model according to various embodiments of the present invention described in the above-mentioned "Exemplary Method" section of this specification.

[0135] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the embodiments of the present invention, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0136] In addition, an embodiment of the present invention may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, enable the processor to execute the steps of the method for constructing an industrial software object model according to various embodiments of the present invention described in the above “Exemplary Method” section of this specification.

[0137] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0138] The basic principle of the present invention is described above in conjunction with specific embodiments. However, it should be pointed out that the advantages, strengths, effects, etc. mentioned in the present invention are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present invention. In addition, the specific details of the above invention are only for the purpose of illustration and facilitation of understanding, rather than limitation, and the above details do not limit the present invention to being implemented by adopting the above specific details.

[0139] The block diagrams of the devices, apparatuses, equipment, and systems involved in the present invention are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including", "comprising", "having", etc. are open words, referring to "including but not limited to", and can be used interchangeably with them. The words "or" and "and" used here refer to the words "and / or" and can be used interchangeably with them, unless the context clearly indicates otherwise. The word "such as" used here refers to the phrase "such as but not limited to", and can be used interchangeably with it.

[0140] It should also be noted that in the device, apparatus and method of the present invention, each component or each step can be decomposed and / or reassembled, and such decomposition and / or reassembly should be regarded as an equivalent solution of the present invention.

[0141] The above description of the invented aspects is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present invention. Therefore, the present invention is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features of the present invention.

[0142] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present invention to the form invented herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.

Claims

1. A method for constructing an industrial software object model, characterized in that: include: Determine the tree hierarchy structure of the target industrial software object; Each element in the tree-shaped hierarchical structure corresponds to a property library, a method library and a state library, and the property library, the method library and the state library of the same element are associated with each other; Determine the element identifier of each element in the tree-shaped hierarchical structure, where the element identifier of the lower-level element includes the element identifier of the upper-level element for the upper-level elements at different levels and having a containment relationship; Determining a multi-level vector structure of the target industrial software object based on the element identifier of each element and the tree-shaped hierarchical structure; Based on the attribute library of each element in the tree-shaped hierarchical structure, the multi-level vector structure is filled with data to obtain an object model of the target industrial software object; the object model has the attribute library, the method library and the state library of each element of the tree-shaped hierarchical structure, and when the method library or the state library is updated, the attribute library is updated based on the association relationship; Wherein, determining the multi-level vector structure of the target industrial software object based on the element identifier of each element and the tree hierarchy structure includes: Based on the element identifier of each element and the tree hierarchy structure, determining vector expression information of each level of the tree hierarchy structure; Determining a multi-level vector structure of the target industrial software object based on the vector expression information of each level and the hierarchical relationship of the tree-shaped hierarchical structure; Before the step of determining the element identifier of each element in the tree hierarchy structure, the method further includes: Constructing the attribute library, the method library and the state library for each element; The same element in the attribute library, the method library and the state library is represented by the same field information to determine the association relationship among the attribute library, the method library and the state library.

2. The method according to claim 1, characterized in that The step of determining the tree-like hierarchical structure of the target industrial software object includes: Determine a root element and a first-level element of the target industrial software object, wherein the first-level element is a child element of the root element; Based on the root element and the first level element, construct a first level and a second level of the tree hierarchy structure; Taking the second level as the first current level, when the current level element of the current level has a next-level child element, construct the next current level based on the next-level child element; when the current level element of the current level does not have a next-level child element, obtain the constructed tree-like hierarchical structure.

3. The method according to claim 1, characterized in that The step of constructing the attribute library, the method library and the state library for each element includes: Constructing a basic model attribute library, wherein the basic model attribute library is used to establish a peer relationship between different field information; Get the original attribute library, original method library and original state library; Based on the basic model attribute library, field correction is performed on the original attribute library, the original method library and the original state library to obtain the attribute library, the method library and the state library of each element.

4. The method according to claim 1, characterized in that: For upper and lower elements at different levels and having a containment relationship, the attribute library of the lower element has an inheritance relationship with the attribute library of the upper element; when the attribute library of the upper element is updated, the attribute library of the lower element is updated.

5. A device for constructing an industrial software object model, characterized in that: include: A first structure determination module, used to determine the tree-like hierarchical structure of the target industrial software object; Each element in the tree-shaped hierarchical structure corresponds to a property library, a method library and a state library, and the property library, the method library and the state library of the same element are associated with each other; A second structure determination module is used to determine the element identifier of each element in the tree-shaped hierarchical structure, and the element identifier of the subordinate element includes the element identifier of the superior element for superior and inferior elements at different levels and having a containment relationship; A third structure determination module, configured to determine a multi-level vector structure of the target industrial software object based on the element identifier of each element and the tree hierarchy structure; An object model determination module is used to fill the multi-level vector structure with data based on the attribute library of each element in the tree-shaped hierarchical structure to obtain the object model of the target industrial software object; the object model has the attribute library, the method library and the state library of each element of the tree-shaped hierarchical structure, and when the method library or the state library is updated, the attribute library is updated based on the association relationship; The third structure determination module comprises: an expression information determining unit, configured to determine the vector expression information of each level of the tree hierarchy structure based on the element identifier of each element and the tree hierarchy structure; A vector structure determination unit, configured to determine a multi-level vector structure of the target industrial software object based on the vector expression information of each level and the hierarchical relationship of the tree-shaped hierarchical structure; A database construction module, used for constructing the attribute library, the method library and the state library for each element; The relationship determination module is used to represent the same element in the attribute library, the method library and the state library with the same field information to determine the association relationship among the attribute library, the method library and the state library.

6. A computer-readable storage medium storing a computer program, wherein the computer program is used to execute the method for constructing an industrial software object model according to any one of claims 1 to 4.

7. An electronic device, comprising: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the method for constructing an industrial software object model as described in any one of claims 1 to 4 above.