Process rule configuration method, device and electronic equipment

Through interactive configuration of process rules, combined with the binding and logical interface between the target work step unit and the process resource unit, the problem of low efficiency in configuration of existing process rules is solved, efficient and accurate process rules are realized, and technical thresholds are lowered. Communication costs.

CN114840123BActive Publication Date: 2024-11-26SHANG HAI QING YI GONG YE RUAN JIAN YOU XIAN GONG SI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210501531.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-09
Publication Date
2024-11-26
Estimated Expiration
2042-05-09

AI Technical Summary

Technical Problem

The existing process rules configuration method is inefficient and difficult to configure flexibly. Especially when adding new influencing factors and extended geometric feature types, it needs to be modified through the underlying code, with high technical threshold, and business personnel communicate with developers time-consuming and labor-intensive, which is prone to leakage. The problem of correcting errors consumes huge costs.

Method used

Configure process rules interactively, including selecting target interaction objects, setting attributes, connecting objects to determine the initial process rules, and debugging to ensure accuracy, configuring using the binding and logical interface between the target step unit and the process resource unit. Set logic functions and parameter processing separately to improve configuration intuitiveness and efficiency.

Benefits of technology

It realizes the intuitiveness and efficiency of process rules configuration, reduces the technical threshold, improves the accuracy and flexibility of configuration, reduces the communication costs between business personnel and developers, avoids errors and improves configuration efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114840123B_ABST
    Figure CN114840123B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of computer-aided design, and in particular to a configuration method, device and electronic device for process rules, the method comprising: responding to a selection operation of an interactive object to display a target interactive object on a process rule configuration interface, the target interactive object comprising a target feature unit, a target rule unit and a target process unit, the target feature unit being used to represent features having the same geometric rule, the target rule unit being used to represent the rule logic of a process, and the target process unit being used to represent the implementation of a target process method corresponding to the rule logic; responding to the attribute setting of each target interactive object to determine the target attribute; responding to a connection operation of each target interactive object to connect the target interactive object to determine the initial process rule; debugging the initial process rule to determine and display the target process rule on the process rule configuration interface. The method improves the efficiency of process rule configuration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer-aided design, and in particular to a configuration method, device and electronic equipment for process rules. Background Art

[0002] In the field of computer-aided design, when computer-aided programming (CAM) is performed on parts, the same processing method will be used for programming for the same specification of parts with geometric features. This is also the theoretical basis for the currently popular method of automatic programming based on feature recognition. Based on the above theory, we need to establish a correspondence between geometric features and processing methods. For example, for a through hole feature with a diameter of 8, the process scheme of first spot drilling and then punching will be adopted, and the punching tool will use a φ8 twist drill. Therefore, in general, the correspondence between geometric features and processing methods needs to be created as a series of rules in the system to facilitate the reuse of process schemes when encountering the same features next time.

[0003] For the establishment of the above-mentioned process rule library, the rules are usually written into the system one by one in the form of code, and there is also software that uses the above-mentioned rules as configuration tools to maintain database entries. However, from the perspective of engineering practice, the matching relationship between part geometric features and process solutions is often affected by other factors such as accuracy requirements, product process requirements, CNC equipment performance factors, tool factors, personnel habits factors, etc., so this matching relationship will change in different environments and only remain unchanged in a fixed environment. This also leads to the need to modify a set of matching rules to apply to different users.

[0004] However, the above-mentioned methods of hard coding and configuring tools cannot solve the problem of flexible configuration, especially when adding new influencing factors and expanding geometric feature types. Any modification and adjustment of the original process rules must be achieved through underlying code modification, which has a high technical threshold. In addition, the communication process between business personnel and developers is time-consuming and laborious, because the rule compilation cycle is very long, and developers often fail to fully understand the rules, resulting in omissions and errors, which incurs huge costs. Summary of the invention

[0005] In view of this, an embodiment of the present invention provides a method, an apparatus and an electronic device for configuring process rules to solve the problem of low efficiency in configuring process rules.

[0006] According to a first aspect, an embodiment of the present invention provides a method for configuring a process rule, comprising:

[0007] In response to the selection operation of the interactive object, a target interactive object is displayed on the process rule configuration interface, wherein the target interactive object includes a target feature unit, a target rule unit, and a target process unit, wherein the target feature unit is used to represent features having the same geometric rule, the target rule unit is used to represent the rule logic of the process, and the target process unit is used to represent the implementation of the target process method corresponding to the rule logic;

[0008] In response to the attribute settings of each of the target interactive objects, determining a target attribute;

[0009] In response to the connection operation on each of the target interactive objects, determining an initial process rule for connecting the target interactive objects;

[0010] The initial process rules are debugged to determine and display target process rules on the process rule configuration interface.

[0011] The configuration method of the process rules provided by the embodiment of the present invention configures the process rules in an interactive manner, which is intuitive, simple and easy to implement for users; and also provides a property setting function for each target interactive object, so as to set the target properties according to the actual process requirements, so as to achieve personalized configuration; at the same time, after the initial process rules are obtained, debugging is also performed to ensure the accuracy of the obtained target process rules. Therefore, the method improves the efficiency of process rule configuration on the basis of ensuring accuracy.

[0012] In combination with the first aspect, in a first implementation manner of the first aspect, the target process unit includes a target process step unit and a target process resource unit, the target process step unit is used to represent a processing technology, the target process resource unit is used to represent a process resource corresponding to the processing technology, and the response to the connection operation of each of the target interactive objects is to connect the target interactive objects to determine the initial process rule, including:

[0013] In response to the connection between the binding interface of the target process step unit and the corresponding binding interface of the target process resource unit, determining a binding relationship between the target process step unit and the target process resource unit;

[0014] In response to the connection of the logical interfaces of the target process step units, determining the logical relationship between the target process step units;

[0015] Based on the binding relationship and the logical relationship, determining the target process unit;

[0016] The initial process rule is determined in response to the connection operation of the target rule unit with the target feature unit and the target process unit respectively.

[0017] The configuration method of process rules provided in an embodiment of the present invention includes a target process step unit and a target process resource unit in the target process unit. By dividing them, the reuse of the process step unit and the process resource unit is achieved, that is, process units with different functions can be obtained through various different combinations, which can greatly improve the application scenarios of the configuration method.

[0018] In combination with the first embodiment of the first aspect, in the second embodiment of the first aspect, in response to the connection operation between the target rule unit and the target feature unit and the target process unit, respectively, determining the initial process rule includes:

[0019] In response to the connection operation of the logic interface of the target rule unit with the logic interfaces of the target feature unit and the target process unit, respectively, determining the logical relationship between the target rule unit, the target feature unit and the target process unit;

[0020] In response to the connection operation of the parameter interface of the target rule unit with the parameter interfaces of the target feature unit and the target process unit respectively, the parameter transfer between the target rule unit, the target feature unit and the target process unit is determined to determine the initial process rule.

[0021] The configuration method of process rules provided by the embodiment of the present invention connects corresponding functions respectively through the logic interface and the parameter interface, that is, the logic function and the parameter processing function are separately set and then connected, so that the configuration process is simpler and easier to implement.

[0022] In combination with the second embodiment of the first aspect, in the third embodiment of the first aspect, the target rule unit includes a target function unit and / or a target logic unit, the target function unit is used to calculate the value of the input parameter based on the target function, and the target logic unit is used to perform logical processing on the input parameter.

[0023] The process rule configuration method provided by the embodiment of the present invention includes a target function unit and / or a target logic unit in the target rule unit, and various rules can be configured through the combination of function and logic, thereby enriching the application scenarios of the configuration method.

[0024] In combination with the first aspect, in a fourth implementation of the first aspect, in response to setting the attributes of each of the target interactive objects, determining the target attributes includes:

[0025] In response to a selection operation on each of the target interactive objects, determining a property setting interface;

[0026] In response to a selection operation on the property setting interface, the target property is determined.

[0027] The configuration method of process rules provided in the embodiment of the present invention can realize personalized configuration by setting properties of the target interactive object, and the property setting is based on the property setting interface, so the process is more intuitive and the configuration efficiency is improved.

[0028] In combination with the first aspect, in a fifth implementation of the first aspect, debugging the initial process rules, determining and displaying target process rules on the process rule configuration interface includes:

[0029] Get the current debugging progress;

[0030] Displaying the current debugging progress on the initial process rule of the process rule configuration interface;

[0031] When the debugging is successful, the target process rule is displayed on the process rule configuration interface.

[0032] The configuration method of process rules provided by the embodiment of the present invention displays the current debugging progress on the initial process rules, so that the current debugging progress can be displayed intuitively. If a debugging error occurs, the error location can be determined in time, further improving the configuration efficiency.

[0033] In combination with the fifth implementation of the first aspect, in the sixth implementation of the first aspect, the method further includes:

[0034] When the debugging is passed, the target process rule is compiled, and the compilation result corresponding to the target process rule is obtained.

[0035] The configuration method of the process rules provided by the embodiment of the present invention stores the compilation result of the target process rules, and the compilation result can be directly used for processing later without processing the target process rules again.

[0036] According to the second aspect, an embodiment of the present invention further provides a device for configuring process rules, including:

[0037] A first response unit, for responding to a selection operation of an interactive object to display a target interactive object on a process rule configuration interface, wherein the target interactive object includes a target feature unit, a target rule unit, and a target process unit, wherein the target feature unit is used to represent features having the same geometric rule, the target rule unit is used to represent a rule logic of a process, and the target process unit is used to represent an implementation of a target process method corresponding to the rule logic;

[0038] A second response unit, configured to determine a target attribute in response to attribute settings of each of the target interactive objects;

[0039] A third response unit, configured to respond to a connection operation on each of the target interaction objects to connect the target interaction objects to determine an initial process rule;

[0040] The debugging unit is used to debug the initial process rules to determine and display the target process rules on the process rule configuration interface.

[0041] According to the third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method for configuring process rules described in the first aspect or any one of the embodiments of the first aspect by executing the computer instructions.

[0042] According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method for configuring process rules described in the first aspect or any one of the embodiments of the first aspect.

[0043] It should be noted that the corresponding beneficial effects of the process rule configuration device, electronic device and computer-readable storage medium provided in the embodiments of the present invention can be found in the description of the corresponding beneficial effects of the process rule configuration method above, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 is a flow chart of a method for configuring process rules according to an embodiment of the present invention;

[0046] Figure 2 is a flow chart of a method for configuring process rules according to an embodiment of the present invention;

[0047] Figure 3 is a schematic diagram of a target process rule according to an embodiment of the present invention;

[0048] Figure 4 is a flow chart of a method for configuring process rules according to an embodiment of the present invention;

[0049] Figure 5 is a schematic diagram of each unit in a configuration system of a process rule according to an embodiment of the present invention;

[0050] Figure 6 is a structural block diagram of a device for configuring process rules according to an embodiment of the present invention;

[0051] Figure 7 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0053] The method for configuring process rules provided in an embodiment of the present invention is applied to electronic devices, which include but are not limited to process design terminals, such as computers, servers, tablets, etc.; and processing equipment, such as CNC machine tools, etc.

[0054] As an optional application scenario, the electronic device is a server, which can be connected to at least one processing device at the same time. The user configures the process rules in the server and sends the configuration results of the process rules to the corresponding processing equipment. Based on this, each processing equipment can process the product based on the received process rules.

[0055] As another optional application scenario, the electronic device is a processing device, which is used to configure process rules on the processing device. After the configuration is completed, the processing device can process the product based on the configuration results.

[0056] As another optional application scenario, the electronic device is a mobile terminal, which is connected to the processing equipment by wireless means. The process rules are configured on the mobile terminal, and the configuration results of the process rules are sent to the processing equipment through the communication connection with the processing equipment. Based on this, the processing equipment can process the product based on the received process rules.

[0057] Of course, the above application scenarios are only used as an example and do not limit the protection scope of the present invention. The construction of specific application scenarios is set according to actual needs.

[0058] The configuration method of process rules provided in an embodiment of the present invention configures target process rules in an interactive manner. Specifically, the electronic device runs a configuration system, which includes multiple module units, each of which is a packaged program unit for implementing corresponding functions. For the user, during the configuration process, it is only necessary to modify and combine the corresponding module units to configure the target process rules. Based on this, the configuration method of the process rules can quickly configure the target process rules, and the modification of the target process rules is flexible and personalized, which can meet the needs of the user and greatly improve the configuration efficiency.

[0059] According to an embodiment of the present invention, an embodiment of a method for configuring process rules is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0060] In this embodiment, a method for configuring process rules is provided, which can be used in electronic equipment, such as computers, servers, CNC machine tools, other processing equipment, etc. Figure 1 is a flow chart of a method for configuring process rules according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0061] S11, in response to a selection operation of an interactive object, displaying a target interactive object on a process rule configuration interface.

[0062] Among them, the target interaction object includes a target feature unit, a target rule unit and a target process unit. The target feature unit is used to represent features with the same geometric rules, the target rule unit is used to represent the rule logic of the process, and the target process unit is used to represent the implementation of the target process method corresponding to the rule logic.

[0063] Specifically, the target interaction object is the main body of the process rule configuration, that is, the module unit described above. The target process rule can be obtained by connecting and modifying the corresponding target interaction objects. The target feature units include but are not limited to holes, grooves, bosses, planes, etc. Each feature unit has corresponding parameter attributes. The modification of the target feature unit is to configure the parameter attributes of the target feature unit to meet the needs of the current process rule configuration. For example, when the target feature unit is a hole, the parameter attributes it provides include attribute 1, attribute 2, attribute 3 and attribute 4, but for the configuration of the current process rule, it only needs to use attribute 1 and attribute 2. Therefore, when the target feature unit is modified later, its parameter attributes are configured as attribute 1 and attribute 2.

[0064] The target rule unit is the link between the target feature unit and the target process unit. The target rule unit is used to determine the correspondence between the attributes configured by the target feature unit and the target rule. If the target rule is met, it corresponds to target process unit 1; if the target rule is not met, it corresponds to target process unit 2. Of course, the target rule unit is not limited to being used as a judgment unit for target rules. It can also be used to process the attributes configured by the target feature unit according to the rules, and then pass the processed parameters to the target process unit for processing, etc. There is no restriction on the specific implementation of the target rule unit here, and it is set according to actual needs.

[0065] The target process unit is used to represent the specific implementation of the target process method corresponding to the rule logic. For example, for a hole of a specific size, its implementation process includes center drilling, drilling, plane milling 1, and plane milling 2, etc. These processing processes are implemented by the target process unit. The target process unit can be a combination of multiple process units or a single process unit. There is no limitation on the specific implementation of the target process unit, which is set according to actual needs.

[0066] The electronic device provides a process rule configuration interface, and after the user selects a target interaction object, the target interaction object is displayed on the process rule configuration interface accordingly. For example, the user can drag the target interaction object to the process rule configuration interface.

[0067] In some optional embodiments, the process rule configuration interface of the electronic device includes an interactive object display area and a configuration area, wherein the interactive object display area is used to display interactive objects, and the configuration area is used to display target interactive objects. For the interactive object display area, each interactive object can be displayed in a list or icon manner, or a search method can be provided to obtain the target interactive object; for the configuration area, the user uses this area to modify the target interactive object and connect the target interactive object to obtain the target rule.

[0068] S12, in response to the attribute settings of each target interactive object, determining the target attribute.

[0069] As described above, each target interactive object provides multiple parameter attributes. The user sets the attributes of each target interactive object based on the configuration requirements of the current process rules. Accordingly, the electronic device can determine the target attributes of each target interactive object. When setting the attributes, it is not necessary to set the attributes of all target interactive objects, but it is done according to actual needs.

[0070] When setting properties for a target interactive object, the user can select the target interactive object and display all parameter properties of the target interactive object on the process rule configuration interface. The target properties can be determined by selection. Of course, if all displayed parameter properties cannot meet the configuration requirements of the current process rules, the target interactive object also provides a new function for creating new property parameters to obtain the target properties.

[0071] This step will be described in detail below.

[0072] S13, in response to the connection operation on each target interactive object, the target interactive objects are connected to determine the initial process rule.

[0073] The user connects each target interactive object according to the configuration requirements, and accordingly, the electronic device connects the target interactive objects in response to the connection operation of each target interactive object to determine the initial process rule. The initial process rule includes the connection relationship between the target feature unit, the target rule unit and the target process unit, and the target attributes of the above units; that is, it includes the connection relationship and the logical relationship.

[0074] This step will be described in detail below.

[0075] S14, debugging the initial process rules to determine and display the target process rules on the process rule configuration interface.

[0076] After obtaining the initial process rules, the electronic device may automatically trigger debugging of the initial process rules, or may trigger debugging, etc. When debugging the initial process rules, it may be step-by-step debugging, or overall debugging, etc., and no limitation is imposed on the specific debugging method.

[0077] If an error occurs during the debugging process, the error point can be prompted on the process rule interface, for example, by highlighting the error point, or displaying the error point in text, etc. By displaying the error point on the process rule interface, the user can intuitively know the current error point so as to make timely adjustment configurations.

[0078] If there is no error after debugging, the initial process rule is determined as the target process rule, indicating that the current process rule configuration is complete. Subsequently, the electronic device can compile the target process rule to obtain a process rule that can be directly used, so that the processing equipment can directly use the compilation result to process the product.

[0079] This step will be described in detail below.

[0080] The configuration method of the process rules provided in this embodiment configures the process rules in an interactive manner, which is intuitive, simple and easy to implement for users; and also provides a property setting function for each target interactive object, so as to set the target properties according to the actual process requirements, so as to achieve personalized configuration; at the same time, after obtaining the initial process rules, debugging is also performed to ensure the accuracy of the obtained target process rules. Therefore, this method improves the efficiency of process rule configuration on the basis of ensuring accuracy.

[0081] It should be noted that the order between S12 and S13 is not limited to that described above, and the target interactive object may be configured with attributes first, and then connected; that is, S13 is executed first, and then S12 is executed.

[0082] In this embodiment, a method for configuring process rules is provided, which can be used in electronic equipment, such as computers, servers, CNC machine tools, other processing equipment, etc. Figure 2 is a flow chart of a method for configuring process rules according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0083] S21, in response to a selection operation of an interactive object, displaying a target interactive object on a process rule configuration interface.

[0084] Among them, the target interaction object includes a target feature unit, a target rule unit and a target process unit. The target feature unit is used to represent features with the same geometric rules, the target rule unit is used to represent the rule logic of the process, and the target process unit is used to represent the implementation of the target process method corresponding to the rule logic.

[0085] Specifically, the target process unit includes a target process step unit and a target process resource unit. The target process step unit is used to represent the processing technology, and the target process resource unit is used to represent the process resources corresponding to the processing technology. For example, the target process step unit is used to represent drilling, and the target process resource unit represents how to implement the drilling process, such as the configuration of the drill bit.

[0086] The target process unit includes a plurality of target process step units, each target process step unit includes at least one target process resource unit, and the connection and logical relationship between each target process resource unit are configured according to actual needs.

[0087] For more details, please see Figure 1 S11 of the illustrated embodiment will not be described in detail here.

[0088] S22: Determine target attributes in response to attribute settings for each target interactive object.

[0089] Specifically, the above S22 includes:

[0090] S221, in response to the selection operation on each target interactive object, determining a property setting interface.

[0091] The selection of each target interactive object may be performed by right-clicking or double-clicking on the target interactive object, etc. After the target interactive object is selected, a property setting interface is displayed on the process rule configuration interface, and the property setting interface corresponds to the target interactive object. As described above, the property setting interface includes the property parameters supported by the target interactive object.

[0092] S222: In response to a selection operation on the property setting interface, determine a target property.

[0093] If the parameter attributes displayed on the attribute setting interface can meet the configuration requirements of the current process rules, the user can directly select on the attribute setting interface to obtain the target attribute; if the displayed parameter attributes cannot meet the configuration requirements of the current process rules, the attribute setting interface provides the configuration of new attributes, and the user selects the new attribute to set the target attribute. For example, when the target feature unit is a hole, a float variable "precision" is created for the target feature unit, and the electronic device will create a floating-point variable named precision in the database and associate it with the hole feature type.

[0094] S23, responding to the connection operation on each target interactive object, to connect the target interactive objects and determine the initial process rule.

[0095] Specifically, the above S23 includes:

[0096] S231 , in response to the connection between the binding interface of the target process step unit and the binding interface of the corresponding target process resource unit, determine the binding relationship between the target process step unit and the target process resource unit.

[0097] As described above, the target work step unit corresponds to the target process resource unit. In order to distinguish each interface, each target interaction object is distinguished by a different interface. The binding interface is used to bind two connected units. For example, when the user connects the binding interface of the target work step unit A to the binding interface of the target process resource unit a1, the electronic device establishes a binding relationship between the target work step unit A and the target process resource unit a1.

[0098] S232, in response to the connection of the logical interfaces of the target process step units, determining the logical relationship between the target process step units.

[0099] The above S231 is to establish the binding relationship between the target process unit and the target process resource, that is, the specific implementation of each target process unit. In this step, the user determines the logical relationship between the target process units by connecting the logical interfaces of each target process unit. For example, the logical interfaces of the target process units A, B and C are connected in sequence to establish the sequential logical relationship between the target process units AC.

[0100] S233, determining the target process unit based on the binding relationship and the logical relationship.

[0101] Specifically, after the binding relationship processing of S231, each target process step unit AC corresponds to a target process resource unit; and after the logical relationship processing of S232, the sequential logical relationship of the target process step units AC is obtained. The target process unit can be determined through the binding relationship and the logical relationship.

[0102] S234, in response to the connection operation of the target rule unit with the target feature unit and the target process unit, an initial process rule is determined.

[0103] As described above, the target rule unit output connection corresponds to the target process unit, and the target feature unit input corresponds to the target feature unit. Therefore, the user connects the target rule unit to the target feature unit and the target process unit respectively, and accordingly, the electronic device responds to the user's connection operation to obtain the initial process rule.

[0104] It should be noted that the execution order of the above S231-S234 is not limited to that described above, and can also be other orders. There is no limitation on the specific order here, and it is configured according to actual needs.

[0105] In some optional implementations, the above S234 includes:

[0106] (1) In response to the connection operation of the logic interface of the target rule unit with the logic interfaces of the target feature unit and the target process unit, respectively, the logical relationship among the target rule unit, the target feature unit and the target process unit is determined.

[0107] As described above, the logical interface is used to represent the connection interface between the logical processing sequences. The user connects the logical interface of the target rule unit with the logical interfaces of the target feature unit and the target process unit respectively according to the processing sequence of the process rules. Accordingly, the electronic device determines the logical relationship between the target feature unit, the target process unit and the target rule unit in response to the user's connection operation on the logical interface.

[0108] (2) In response to the connection operation of the parameter interface of the target rule unit with the parameter interfaces of the target feature unit and the target process unit respectively, the parameter transfer between the target rule unit, the target feature unit and the target process unit is determined to determine the initial process rule.

[0109] The parameter interface is used to realize the parameter transfer connection port. By connecting the parameter interface of the corresponding unit, the parameter transfer of the two connected units is realized, and the parameter transfer direction is determined by the connection relationship between the logical interfaces. Therefore, the electronic device can obtain the logical processing order and parameter transfer by combining the selection results of the logical interface and the parameter interface, thereby determining the initial process rules. The corresponding functions are connected through the logical interface and the parameter interface respectively, that is, the logical function and the parameter processing function are set separately and then combined, making the configuration process simpler and easier to implement.

[0110] In some optional implementations, the target rule unit includes a target function unit and / or a target logic unit, wherein the target function unit is used to calculate the value of the input parameter based on the target function, and the target logic unit is used to perform logical processing on the input parameter.

[0111] The target function unit includes but is not limited to addition, subtraction, multiplication, division, square, etc., and the target logic unit includes judgment, logical AND, logical OR, etc. The user selects the corresponding target function unit and / or target logic unit according to the configuration requirements of the current process rule to form the target rule unit. The target rule unit includes the target function unit and / or the target logic unit, and various rules can be configured through the combination of functions and logic, thereby enriching the application scenarios of the configuration method.

[0112] S24, debugging the initial process rules to determine and display the target process rules on the process rule configuration interface.

[0113] For details, please see Figure 1 S14 of the illustrated embodiment will not be described in detail here.

[0114] The configuration method of the process rules provided in this embodiment can realize personalized configuration by setting the properties of the target interactive object, and the property setting is based on the property setting interface, the process is more intuitive, and the configuration efficiency is improved. The target process unit includes a target process step unit and a target process resource unit. By dividing them, the reuse of the process step unit and the process resource unit is realized, that is, process units with different functions can be obtained through various combinations, which can greatly improve the application scenarios of the configuration method.

[0115] As a specific application example of this embodiment, the configuration rules of the process scheme (center drilling-drilling-chamfering-correction) adopted for the through hole with a diameter ratio (hole depth / diameter) less than 0.25 are as follows: Figure 3 As shown, the configuration method of this rule includes:

[0116] 1. First, drag a target feature unit such as a "hole feature". Each feature unit has corresponding parameter attributes, such as diameter, depth, accuracy, and roughness parameters.

[0117] 2. Accordingly, the electronic device will create two logic units, "Start" and "End", by default, representing the logical starting point and end point of the rule. In this example, you need to drag the "branch" logic unit from the logic library to control the exit of the judgment condition;

[0118] 3. In response to the selection operation of two function units "divide" and "compare" from the function library, the "divide" logic unit realizes the calculation of the diameter ratio (hole depth divided by diameter); the "compare" logic unit is used to compare the diameter ratio with the value of 0.25 and control the logic flow of the comparison result. Among them, there is also a variable unit in the function library, which is used to define user variables, such as saving the above calculation result as a variable called diameter ratio for future reuse;

[0119] 4. Respond to the selection operation of the corresponding four target process step units, i.e., center drilling, drilling, plane milling 1, plane milling 2, and adjust the process step parameters of each target process step unit. Among them, the target process step unit is the minimum set of processes, expressing a processing method. The parameters of the target process step unit can be set through attributes, and also support the connection method from other variables to be calculated through function units; there is a binding interface of the target process resource on the right side of the target process step unit, which is connected to the binding interfaces of the tools, equipment, and tooling in the process resources respectively, expressing the binding relationship between the process step and the process resources;

[0120] 5. Respond to the selection of the corresponding target process resource unit, i.e., center drill, drill bit, chamfering cutter, end mill, and set the parameters of the tool. The process resource unit usually includes tools, equipment, fixtures, etc.;

[0121] 6. Respond to the connection of the corresponding interface of each target interactive object in the process rule configuration interface, the interface includes a logic interface, a parameter interface, a binding interface, etc. For example, Figure 3The arrow in the figure is the logic interface. The connection of the logic interface represents the judgment workflow of the entire logic rule. Usually, the starting nodes of the logic connection are "Start" and "End". The circular interface of the target feature unit and the target rule unit represents the parameter interface, which is used to realize parameter transfer. The circular interface on the right side of the target step unit and the left side of the target process resource unit is the binding interface, which is used to realize the binding relationship between the target step unit and the target process resource.

[0122] Through the above steps, the initial process rules can be obtained, and then debugging is performed on this basis to obtain the target process rules.

[0123] In this embodiment, a method for configuring process rules is provided, which can be used in electronic equipment, such as computers, servers, CNC machine tools, other processing equipment, etc. Figure 4 is a flow chart of a method for configuring process rules according to an embodiment of the present invention. Figure 4 As shown, the process includes the following steps:

[0124] S31, in response to a selection operation of an interactive object, displaying a target interactive object on a process rule configuration interface.

[0125] Among them, the target interaction object includes a target feature unit, a target rule unit and a target process unit. The target feature unit is used to represent features with the same geometric rules, the target rule unit is used to represent the rule logic of the process, and the target process unit is used to represent the implementation of the target process method corresponding to the rule logic.

[0126] For details, please see Figure 2 S21 of the illustrated embodiment will not be described in detail here.

[0127] S32: Determine target attributes in response to attribute settings for each target interactive object.

[0128] For details, please see Figure 2 S22 of the illustrated embodiment will not be described in detail here.

[0129] S33, responding to the connection operation on each target interactive object, to connect the target interactive objects and determine the initial process rule.

[0130] For details, please see Figure 2 S23 of the illustrated embodiment will not be described in detail here.

[0131] S34, debugging the initial process rules to determine and display the target process rules on the process rule configuration interface.

[0132] Specifically, the above S34 includes:

[0133] S341, obtaining the current debugging progress.

[0134] The current debugging progress indicates which step the current debugging logic has run to, for example, which unit of the initial process rule has been run to, and so on.

[0135] S342, displaying the current debugging progress on the initial process rule of the process rule configuration interface.

[0136] For the display of the current debugging progress, the unit corresponding to the current debugging progress can be displayed in a highlighted manner. For example, during the debugging process, the logical connection will be highlighted, and the corresponding connection will be highlighted according to the step of the rule. The unit corresponding to the current debugging progress can also be displayed in other colors, etc. There is no restriction on the display method, which can be set according to actual needs.

[0137] S343, when the debugging is passed, the target process rule is displayed on the process rule configuration interface.

[0138] When the debugging is passed, it means that the process rule displayed on the process rule configuration interface is the target process rule, and the target process rule can meet the rules and user requirements.

[0139] In some optional implementations, the method further includes: when the debugging is passed, compiling the target process rule and storing the compilation result corresponding to the target process rule. By storing the compilation result of the target process rule, the compilation result can be directly used for processing later without processing the target process rule again.

[0140] The configuration method of the process rules provided in this embodiment displays the current debugging progress on the initial process rules, so that the current debugging progress can be displayed intuitively. If a debugging error occurs, the error location can be determined in time, further improving the configuration efficiency.

[0141] The configuration method of the process rules provided in the embodiment of the present invention is implemented based on the configuration software running on the electronic device. From the perspective of the functional division of the configuration software, Figure 5 As shown in the figure, the configuration software is mainly composed of three main modules: functional unit library, process rule configuration interface, preview number and output. Specifically, the functional unit library is divided into three categories. The first category is the object library, including feature units, process step units and process resource units, which are all interactive object entities; the second category is the function library, including function units and variable units, which are mainly used to process the calculation of variable expressions; the third category is the logic library, including logic units and event units, which are mainly used to process the logical entry and exit of the workflow.

[0142] The process rule configuration interface provides users with a special window for configuring process rules. Users need to drag objects in the functional unit library into the process rule configuration interface, use the function library unit to design the judgment expression for the object's variables, use the logic library unit to perform the logic design of the overall rule process, and finally connect all functional units in series by connecting them, and complete the creation of matching rules in the form of workflow. The process rule configuration interface is mainly composed of feature unit editor, workflow designer, unit data communication service, data processor, and variable manager. The feature unit editor implements variable exposure and parameter editing of feature objects, step objects, and process resource objects; the workflow designer provides workflow tools to implement matching rule logic; the unit data communication service is used to process data communication between units; the data processor is used for data interaction at the bottom of the system; the variable manager is used to manage the variable interface and status of each object unit. The debugging preview and output tool provides the final effect preview and debugging functions. The user can switch back to the process rule configuration interface to view the implementation effect of the matching rule through the event entry. The workflow designer will display the processing status of the logic in real time by highlighting the connection during debugging; it also provides variable monitoring function to detect the changes of variables in different stages. After the user confirms that it is correct, the configuration results will be compiled and stored through the compiler and data synchronizer, and the compiled results can also be sent to the processing equipment for product processing.

[0143] The configuration software modularizes each function, that is, applies low-code technology to the process rule configuration link oriented to feature programming, effectively improving the configuration efficiency of process rules; reduces the technical requirements of configuration work for business personnel, and business personnel directly face the configuration of process rules, shortening the implementation cycle and saving enterprise costs; expresses the matching logic of the entire process rules through inter-unit connections and workflows, which is simple and clear, further reducing the technical threshold for business personnel at the development level; further, the dynamic debugging tool expresses the status of process rules by highlighting connections and nodes, which is convenient for business personnel to accurately locate the current position of the matching logic, greatly improving the debugging work efficiency.

[0144] The method for configuring process rules provided in the embodiment of the present invention can greatly improve the configuration efficiency of the matching rules between part geometric features and process solutions, effectively reducing the workload of personnel; it solves the problem that feature process rules need to be reconfigured in different enterprise environments, improves the adaptability to different enterprises by improving the convenience of configuration tools, reduces the implementation cycle of system personalized customization, and realizes cost reduction and efficiency improvement for enterprises; at the same time, it can reduce the technical requirements of configuration work for business personnel, and business personnel directly face the configuration of process rules, reducing the communication cost with technical personnel and avoiding rule errors caused by misunderstanding; further, it provides support for the practical implementation of feature-oriented programming and provides a basic data platform for the creation of enterprise process knowledge bases.

[0145] In this embodiment, a configuration device for process rules is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0146] This embodiment provides a device for configuring process rules, such as Figure 6 As shown, including:

[0147] A first response unit 41 is used to respond to the selection operation of the interactive object to display a target interactive object on the process rule configuration interface, wherein the target interactive object includes a target feature unit, a target rule unit and a target process unit, wherein the target feature unit is used to represent features having the same geometric rule, the target rule unit is used to represent the rule logic of the process, and the target process unit is used to represent the implementation of the target process method corresponding to the rule logic;

[0148] A second response unit 42, configured to determine a target attribute in response to attribute settings of each of the target interactive objects;

[0149] A third response unit 43, configured to respond to the connection operation on each of the target interaction objects to connect the target interaction objects to determine an initial process rule;

[0150] The debugging unit 44 is used to debug the initial process rules to determine and display target process rules on the process rule configuration interface.

[0151] The configuration device of the process rules in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and a memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0152] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.

[0153] The embodiment of the present invention also provides an electronic device having the above Figure 6 Configuration device of the process rules shown.

[0154] See also Figure 7 , Figure 7 is a schematic diagram of the structure of an electronic device provided by an optional embodiment of the present invention, such as Figure 7As shown, the electronic device may include: at least one processor 51, such as a CPU (Central Processing Unit), at least one communication interface 53, a memory 54, and at least one communication bus 52. The communication bus 52 is used to realize the connection and communication between these components. The communication interface 53 may include a display screen (Display) and a keyboard (Keyboard), and the optional communication interface 53 may also include a standard wired interface and a wireless interface. The memory 54 may be a high-speed RAM memory (Random Access Memory) or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 54 may optionally be at least one storage device located away from the aforementioned processor 51. The processor 51 may be combined with Figure 6 In the described device, the memory 54 stores an application program, and the processor 51 calls the program code stored in the memory 54 to execute any of the above method steps.

[0155] The communication bus 52 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The communication bus 52 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0156] Among them, the memory 54 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated: RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (English: hard disk drive, abbreviated: HDD) or a solid-state drive (English: solid-state drive, abbreviated: SSD); the memory 54 may also include a combination of the above types of memory.

[0157] The processor 51 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP.

[0158] The processor 51 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0159] Optionally, the memory 54 is also used to store program instructions. The processor 51 can call the program instructions to implement the configuration method of the process rules shown in any embodiment of the present application.

[0160] The embodiment of the present invention further provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the configuration method of the process rules in any of the above method embodiments. The storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.

[0161] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for configuring process rules, characterized in that: include: In response to the selection operation of the interactive object, a target interactive object is displayed on the process rule configuration interface, wherein the target interactive object includes a target feature unit, a target rule unit, and a target process unit, wherein the target feature unit is used to represent features having the same geometric rule, the target rule unit is used to represent the rule logic of the process, and the target process unit is used to represent the implementation of the target process method corresponding to the rule logic; In response to the attribute settings of each of the target interactive objects, determining a target attribute; In response to the connection operation of each of the target interactive objects, the target interactive objects are connected to determine the initial process rules; the target process unit includes a target process step unit and a target process resource unit, the target process step unit is used to represent the processing technology, and the target process resource unit is used to represent the process resources corresponding to the processing technology, and the response to the connection operation of each of the target interactive objects to connect the target interactive objects to determine the initial process rules, including: in response to the connection of the binding interface of the target process step unit with the binding interface of the corresponding target process resource unit, determining the binding relationship between the target process step unit and the target process resource unit; in response to the connection of the logical interface of each of the target process step units, determining the logical relationship between the target process step units; based on the binding relationship and the logical relationship, determining the target process unit; in response to the connection operation of the target rule unit with the target feature unit and the target process unit, respectively, determining the initial process rules; The initial process rules are debugged to determine and display target process rules on the process rule configuration interface.

2. The method according to claim 1, characterized in that The determining of the initial process rule in response to the connection operation between the target rule unit and the target feature unit and the target process unit, respectively, comprises: In response to the connection operation of the logic interface of the target rule unit with the logic interfaces of the target feature unit and the target process unit, respectively, determining the logical relationship between the target rule unit, the target feature unit and the target process unit; In response to the connection operation of the parameter interface of the target rule unit with the parameter interfaces of the target feature unit and the target process unit respectively, the parameter transfer between the target rule unit, the target feature unit and the target process unit is determined to determine the initial process rule.

3. The method according to claim 2, characterized in that The target rule unit includes a target function unit and / or a target logic unit. The target function unit is used to calculate the value of the input parameter based on the target function, and the target logic unit is used to perform logical processing on the input parameter.

4. The method according to claim 1, characterized in that: The step of determining target attributes in response to attribute settings of each target interactive object includes: In response to a selection operation on each of the target interactive objects, determining a property setting interface; In response to a selection operation on the property setting interface, the target property is determined.

5. The method according to claim 1, characterized in that The debugging of the initial process rules, determining and displaying the target process rules on the process rule configuration interface, includes: Get the current debugging progress; Displaying the current debugging progress on the initial process rule of the process rule configuration interface; When the debugging is successful, the target process rule is displayed on the process rule configuration interface.

6. The method according to claim 5, characterized in that The method further comprises: When the debugging is passed, the target process rule is compiled, and the compilation result corresponding to the target process rule is obtained.

7. A device for configuring process rules, characterized in that: include: A first response unit, for responding to a selection operation of an interactive object to display a target interactive object on a process rule configuration interface, wherein the target interactive object includes a target feature unit, a target rule unit, and a target process unit, wherein the target feature unit is used to represent features having the same geometric rule, the target rule unit is used to represent a rule logic of a process, and the target process unit is used to represent an implementation of a target process method corresponding to the rule logic; A second response unit, configured to determine a target attribute in response to attribute settings of each of the target interactive objects; A third response unit is used to respond to the connection operation of each of the target interactive objects to connect the target interactive objects to determine the initial process rules; the target process unit includes a target process step unit and a target process resource unit, the target process step unit is used to represent the processing technology, and the target process resource unit is used to represent the process resources corresponding to the processing technology, and the response to the connection operation of each of the target interactive objects to connect the target interactive objects to determine the initial process rules includes: responding to the connection of the binding interface of the target process step unit with the corresponding binding interface of the target process resource unit, determining the binding relationship between the target process step unit and the target process resource unit; responding to the connection of the logical interface of each of the target process step units, determining the logical relationship between the target process step units; determining the target process unit based on the binding relationship and the logical relationship; and determining the initial process rules in response to the connection operation of the target rule unit with the target feature unit and the target process unit respectively; The debugging unit is used to debug the initial process rules to determine and display the target process rules on the process rule configuration interface.

8. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for configuring the process rules according to any one of claims 1 to 6 by executing the computer instructions.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for configuring process rules according to any one of claims 1 to 6.