CN114840123A - Method and device for configuring process rules and electronic equipment - Google Patents

Method and device for configuring process rules and electronic equipment Download PDF

Info

Publication number
CN114840123A
CN114840123A CN202210501531.3A CN202210501531A CN114840123A CN 114840123 A CN114840123 A CN 114840123A CN 202210501531 A CN202210501531 A CN 202210501531A CN 114840123 A CN114840123 A CN 114840123A
Authority
CN
China
Prior art keywords
target
unit
rule
determining
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210501531.3A
Other languages
Chinese (zh)
Inventor
吴超
严翼飞
康勇斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Youji Industrial Software Co ltd
Original Assignee
Shanghai Youji Industrial Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Youji Industrial Software Co ltd filed Critical Shanghai Youji Industrial Software Co ltd
Priority to CN202210501531.3A priority Critical patent/CN114840123A/en
Publication of CN114840123A publication Critical patent/CN114840123A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of computer aided design, in particular to a configuration method, a device and electronic equipment of process rules, wherein the method comprises the steps of responding to the selection operation of an interactive object to display a target interactive object on a process rule configuration interface, wherein the target interactive object comprises a target characteristic unit, a target rule unit and a target process unit, the target characteristic unit is used for representing the characteristics with the same geometric rules, the target rule unit is used for representing the rule logic of the process, and the target process unit is used for representing the realization of a target process method corresponding to the rule logic; determining target attributes in response to attribute settings for each target interaction object; responding to the connection operation of each target interactive object to connect the target interactive objects to determine an initial process rule; and 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.

Description

Method and device for configuring process rules and electronic equipment
Technical Field
The invention relates to the technical field of computer aided design, in particular to a method and a device for configuring process rules and electronic equipment.
Background
In the field of Computer Aided design, when Computer Aided programming (CAM) is performed on a part, the same machining method is adopted in programming for geometric features of parts of the same specification, which is also the theoretical basis of the currently popular feature identification and automatic programming method. Based on the theory, a corresponding relation between the geometric characteristics and the processing method needs to be established, for example, for the characteristics of a through hole with the diameter of 8, a process scheme that point drilling is carried out firstly, then punching is carried out, and a phi 8 twist drill is adopted as a punching cutter is adopted. Therefore, it is usually necessary to create a series of rules in the system according to the correspondence between the geometric features and the processing method, so as to facilitate reuse of the process schemes when the same features are encountered next time.
For the establishment of the process rule base, the rules are generally written in the system in a code manner, and some software maintains the database entries in a configuration tool manner. However, in terms of engineering practice, the matching relationship between the geometric features of the part and the process scheme is often influenced by other factors such as precision requirements, product process requirements, numerical control equipment performance factors, cutter factors, personnel habit factors and the like, so that the matching relationship changes in different environments and is kept unchanged only in fixed environments, which also results in that a set of matching rules needs to be revised again to be applicable to different users.
However, the above method for hard code dead writing and tool configuration cannot solve the problem of flexible configuration, and particularly, under the conditions of adding new influence factors and expanding geometric feature types, modification and adjustment of the original process rules are realized by modifying the bottom layer codes, so that the technical threshold is high; and the communication process between the business personnel and the developers is time-consuming and labor-consuming, and because the arrangement period of the rules is long, the problem of missed modification and wrong modification caused by incomplete understanding of the developers often occurs, and huge cost is consumed.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for configuring process rules, and an electronic device, so as to solve the problem of low efficiency of configuring process rules.
According to a first aspect, an embodiment of the present invention provides a method for configuring a process rule, including:
responding to the selection operation of the interactive object, and displaying a target interactive object on a process rule configuration interface, wherein the target interactive object comprises a target characteristic unit, a target rule unit and a target process unit, the target characteristic unit is used for representing characteristics with the same geometric rules, the target rule unit is used for representing rule logics of processes, and the target process unit is used for representing the realization of a target process method corresponding to the rule logics;
responding to the attribute setting of each target interaction object, and determining a target attribute;
responding to the connection operation of each target interaction object to connect the target interaction objects to determine an initial process rule;
and debugging the initial process rule to determine and display a target process rule on the process rule configuration interface.
The configuration method of the process rules provided by the embodiment of the invention carries out the configuration of the process rules in an interactive mode, and is visual, simple and easy to realize for users; an attribute setting function is further provided for each target interaction object so as to set target attributes according to actual process requirements, and therefore personalized configuration can be achieved; and meanwhile, debugging is carried out after the initial process rule is obtained so as to facilitate the accuracy of the obtained target process rule. Therefore, the method improves the efficiency of process rule configuration on the basis of ensuring the accuracy.
With reference to the first aspect, in a first implementation manner of the first aspect, the determining an initial process rule by connecting the target interaction objects in response to the connection operation on each target interaction object includes:
responding to the connection between the binding interface of the target process step unit and the corresponding binding interface of the target process resource unit, and determining the binding relationship between the target process step unit and the target process resource unit;
responding to the connection of the logic interface of each target step unit, and determining the logic relationship among the target step units;
determining the target process unit based on the binding relationship and the logical relationship;
and determining the initial process rule in response to the connection operation of the target rule unit with the target feature unit and the target process unit respectively.
According to the configuration method of the process rule provided by the embodiment of the invention, the target process unit comprises the target process step unit and the target process resource unit, and the target process unit is divided, so that the process step unit and the process resource unit are repeatedly utilized, namely, the process units with different functions can be obtained through various combinations, and the application scene of the configuration method can be greatly improved.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the determining the initial process rule in response to the connection operation between the target rule unit and the target feature unit and the connection operation between the target process unit and the target process unit respectively includes:
responding to the connection operation of the logic interface of the target rule unit and the logic interfaces of the target feature unit and the target process unit respectively, and determining the logic relationship among the target rule unit, the target feature unit and the target process unit;
and 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, determining parameter transmission among the target rule unit, the target feature unit and the target process unit so as to determine the initial process rule.
According to the configuration method of the process rule provided by the embodiment of the invention, the logic interface and the parameter interface are respectively used for connecting corresponding functions, namely, the logic function and the parameter processing function are separately set and then connected, so that the configuration process is simpler and easier to realize.
With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the target rule unit includes a target function unit and/or a target logic unit, the target function unit is configured to calculate a value of the input parameter based on the target function, and the target logic unit is configured to perform logic processing on the input parameter.
According to the configuration method of the process rule provided by the embodiment of the invention, the target rule unit comprises the target function unit and/or the target logic unit, and various rules can be configured through the combination of functions and logics, so that the application scenes of the configuration method are enriched.
With reference to the first aspect, in a fourth implementation manner of the first aspect, the determining a target attribute in response to the attribute setting of each target interaction object includes:
responding to the selection operation of each target interaction object, and determining a property setting interface;
and determining the target attribute in response to the selection operation of the attribute setting interface.
According to the configuration method of the process rule, the target interaction object is subjected to attribute setting, personalized configuration can be achieved, operation is carried out based on the attribute setting interface during attribute setting, the process is visual, and configuration efficiency is improved.
With reference to the first aspect, in a fifth implementation manner of the first aspect, the debugging the initial process rule, and determining and displaying a target process rule on the process rule configuration interface includes:
acquiring a current debugging progress;
displaying the current debugging progress on an initial process rule of the process rule configuration interface;
and when the debugging is passed, displaying the target process rule on the process rule configuration interface.
According to the configuration method of the process rule provided by the embodiment of the invention, the current debugging progress is displayed on the initial process rule, so that the current debugging progress can be visually displayed, and if debugging is wrong, the wrong position can be timely determined, and the configuration efficiency is further improved.
With reference to the fifth embodiment of the first aspect, in the sixth embodiment of the first aspect, the method further comprises:
and when the debugging is passed, compiling the target process rule, and compiling a compiling result corresponding to the target process rule.
According to the configuration method of the process rule provided by the embodiment of the invention, the compiling result of the target process rule is stored, and the compiling result can be directly used for processing subsequently without processing the target process rule again.
According to a second aspect, an embodiment of the present invention further provides an apparatus for configuring process rules, including:
the system comprises a first response unit, a second response unit and a third response unit, wherein the first response unit is used for responding to selection operation of an interactive object so as to display a target interactive object on a process rule configuration interface, the target interactive object comprises a target characteristic unit, a target rule unit and a target process unit, the target characteristic unit is used for representing characteristics with the same geometric rules, the target rule unit is used for representing rule logic of a process, and the target process unit is used for representing implementation of a target process method corresponding to the rule logic;
the second response unit is used for responding to the attribute setting of each target interaction object and determining a target attribute;
the third response unit is used for responding to the connection operation of each target interaction object so as to connect the target interaction objects to determine an initial process rule;
and the debugging unit is used for debugging the initial process rule so as to determine and display a target process rule on the process rule configuration interface.
According to a third aspect, an embodiment of the present invention provides an electronic device, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing therein computer instructions, and the processor executing the computer instructions to perform the method for configuring the process rule according to the first aspect or any one of the embodiments of the first aspect.
According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer instructions for causing a computer to execute the method for configuring the process rule described in the first aspect or any one of the implementation manners of the first aspect.
It should be noted that, for corresponding beneficial effects of the configuration apparatus for process rules, the electronic device and the computer-readable storage medium provided in the embodiment of the present invention, please refer to the description of the corresponding beneficial effects of the configuration method for process rules, which is not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of a method of configuring process rules according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of configuring process rules according to an embodiment of the present invention;
FIG. 3 is a schematic illustration of a target process recipe according to an embodiment of the invention;
FIG. 4 is a flow chart of a method of configuring process rules according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of the elements of a system for configuring process recipes according to an embodiment of the present invention;
FIG. 6 is a block diagram of an apparatus for configuring process rules according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The configuration method of the process rule provided by the embodiment of the invention is applied to electronic equipment, wherein the electronic equipment comprises but is not limited to a process design terminal, such as a computer, a server, a panel and the like; and processing equipment such as numerically controlled machine tools and the like.
As an optional application scenario, the electronic device is a server, and the server can be connected to at least one processing device at the same time. And the user configures the process rule in the server and sends the configuration result of the process rule to the corresponding processing equipment. Based on this, each processing device can process the product based on the received process rule.
As another optional application scenario, the electronic device is a processing device, and is configured to perform configuration of process rules on the processing device, and after the configuration is completed, the processing device may perform processing on a product based on a configuration result.
As another optional application scenario, the electronic device is a mobile terminal, and the mobile terminal is connected with the processing device in a wireless manner. And configuring the process rule on the mobile terminal, and sending the configuration result of the process rule to the processing equipment through communication connection with the processing equipment. Based on this, the processing equipment can process the product based on the received process rule.
Of course, the application scenario is only used as an example, and does not limit the protection scope of the present invention, and the construction of the specific application scenario is set according to actual requirements.
The method for configuring the process rule provided by the embodiment of the invention configures the target process rule in an interactive mode. Specifically, the electronic device runs with a configuration system, which includes a plurality of module units, each module unit being a packaged program unit for implementing a corresponding function. For a user, in the configuration process, the target process rule can be configured only by modifying and combining the corresponding module units. Based on the method, the target process rule can be configured quickly, the modification of the target process rule is flexible and personalized, the requirements of users can be met, and the configuration efficiency is greatly improved.
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for configuring process rules, it being noted that the steps illustrated in the flowchart of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than presented herein.
In this embodiment, a method for configuring process rules is provided, which can be used in electronic devices, such as computers, servers, numerical control machines, other processing equipment, and the like, and fig. 1 is a flowchart of a method for configuring process rules according to an embodiment of the present invention, as shown in fig. 1, the flowchart includes the following steps:
and S11, responding to the selection operation of the interactive object to display the target interactive object on the process rule configuration interface.
The target interactive object comprises a target characteristic unit, a target rule unit and a target process unit, wherein the target characteristic unit is used for representing characteristics with the same geometric rules, the target rule unit is used for representing rule logics of processes, and the target process unit is used for representing the realization of a target process method corresponding to the rule logics.
Specifically, the target interaction object is a main body of the process rule configuration, i.e., the module unit described above. And subsequently, connecting and modifying the corresponding target interaction objects to obtain the target process rule. The target feature unit includes but is not limited to a hole, a groove, a boss, a plane, and the like, each feature unit has a corresponding parameter attribute, and the modification of the target feature unit is to configure the parameter attribute of the target feature unit so as to meet the requirement of current process rule configuration. For example, when the target feature cell is a hole, the parameter attributes provided by the target feature cell include attribute 1, attribute 2, attribute 3, and attribute 4, but only attribute 1 and attribute 2 are required for the configuration of the current process rule, and therefore, the parameter attributes of the target feature cell are subsequently configured as attribute 1 and attribute 2 when the target feature cell is modified.
The target rule unit is used as a connecting link between the target characteristic unit and the target process unit, and the target rule unit is used for determining the corresponding relation between the attribute configured by the target characteristic unit and the target rule, and if the target rule is met, the target rule unit corresponds to the target process unit 1; if the target rule is not satisfied, the process unit corresponds to the target process unit 2. Of course, the target rule unit is not limited to be used as a judgment unit of the target rule, and may also be configured to perform rule processing on the attribute configured by the target feature unit, and then transmit the processed parameter to the target process unit for processing, and so on. The specific implementation of the target rule unit is not limited at all, and is specifically set according to actual requirements.
The target process unit is used to represent a specific implementation of the target process method corresponding to the rule logic, for example, for a hole with a specific size, the implementation processes include center drilling, face milling 1, face milling 2, and the like, and the processing processes are implemented by the target process unit. The target process unit can be a combination of a plurality of process units or a single process unit. The specific implementation manner of the target process unit is not limited at all, and is specifically set according to actual requirements.
The electronic equipment is provided with a process rule configuration interface, and after a user selects the target interactive object, the target interactive object is correspondingly displayed on the process rule configuration interface. For example, the user may drag the target interaction object to the process rule configuration interface by a dragging manner.
In some optional embodiments, the process rule configuration interface passed by the electronic device includes an interaction object display area and a configuration area, wherein the interaction object display area is used for displaying the interaction object, and the configuration area is used for displaying the target interaction object. For the interactive object display area, each interactive object can be displayed in a list or icon mode, and a search mode can also be provided to obtain a target interactive object; for the configuration area, the user modifies the target interaction object in the area and connects the target interaction object to obtain the target rule.
S12, responding to the property setting of each target interactive object, determining the target property.
As described above, each target interaction object is provided with a plurality of parameter attributes, and the user sets the attributes of each target interaction object based on the configuration requirements of the current process rule, so that the electronic device can determine the target attributes of each target interaction object accordingly. When setting the attributes, the attributes of all target interaction objects are not necessarily set, but are set according to actual requirements.
When a user sets the attributes of a target interactive object, the user can select the target interactive object, all parameter attributes included by the target interactive object are displayed on a process rule configuration interface, and the target attributes can be determined through selection; of course, if all the displayed parameter attributes cannot meet the configuration requirements of the current process rule, the target interaction object is further provided with a new establishment function for establishing new attribute parameters, so that the target attributes are obtained.
Details about this step will be described later.
And S13, responding to the connection operation of each target interactive object to connect the target interactive objects to determine an initial process rule.
The user connects each target interaction object according to the configuration requirement, and accordingly, the electronic equipment responds to the connection operation of each target interaction object, connects the target interaction objects and determines the initial process rule. The initial process rule comprises a target characteristic unit, a target rule unit, a connection relation between target process units and target attributes of the units; i.e. including connection relationships as well as logical relationships.
Details about this step will be described later.
And S14, debugging the initial process rule to determine and display the target process rule on the process rule configuration interface.
After obtaining the initial process rule, the electronic device may automatically trigger debugging of the initial process rule, may also trigger debugging, and so on. When the initial process rule is debugged, the initial process rule may be debugged step by step, or may be debugged in whole, and the specific debugging manner is not limited at all.
If an error occurs in the debugging process, an error point may be prompted on the process rule interface, for example, the error point is highlighted, or the error point is displayed in a text manner, and the like. By displaying the error points on the process rule interface, the user can intuitively know the current error points so as to adjust and configure in time.
And if no error exists after the debugging is finished, determining the initial process rule as a target process rule to indicate that the current process rule configuration is finished. Subsequently, the electronic device can compile the target process rule to obtain a process rule which can be directly used, so that the processing device can directly utilize the compiled result to process the product.
Details about this step will be described later.
The configuration method of the process rule provided by the embodiment performs the configuration of the process rule in an interactive manner, and is intuitive, simple and easy to implement for a user; an attribute setting function is further provided for each target interaction object so as to set target attributes according to actual process requirements, and therefore personalized configuration can be achieved; and meanwhile, debugging is carried out after the initial process rule is obtained so as to facilitate the accuracy of the obtained target process rule. Therefore, the method improves the efficiency of process rule configuration on the basis of ensuring the accuracy.
It should be noted that the sequence between S12 and S13 is not limited to the 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.
In this embodiment, a method for configuring process rules is provided, which can be used in electronic devices, such as computers, servers, numerical control machines, other processing devices, and the like, and fig. 2 is a flowchart of a method for configuring process rules according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
and S21, responding to the selection operation of the interactive object to display the target interactive object on the process rule configuration interface.
The target interactive object comprises a target characteristic unit, a target rule unit and a target process unit, wherein the target characteristic unit is used for representing characteristics with the same geometric rules, the target rule unit is used for representing rule logics of processes, and the target process unit is used for representing the realization of a target process method corresponding to the rule logics.
Specifically, the target process unit includes a target process step unit and a target process resource unit, the target process step unit is used for representing the processing process, and the target process resource unit is used for representing the process resource corresponding to the processing process. For example, the target process step element is used to represent a drill, and the target process resource element represents how to implement a drill process, e.g., the configuration of a drill bit, etc.
The target process unit comprises a plurality of target process step units, each target process step unit comprises at least one target process resource unit, and the connection and logic relationship among the target process resource units are configured according to actual requirements.
For the rest, please refer to S11 in the embodiment shown in fig. 1, which is not described herein again.
S22, responding to the property setting of each target interactive object, determining the target property.
Specifically, S22 includes:
s221, responding to the selection operation of each target interaction object, and determining a property setting interface.
The selection of each target interactive object can be right-clicking on the target interactive object, double-clicking, and the like. After the target interactive object is selected, an attribute setting interface is displayed on the process rule configuration interface, and the attribute setting interface corresponds to the target interactive object. As described above, the property settings interface includes property parameters supported by the target interaction object.
S222, responding to the selection operation of the attribute setting interface, and determining the target attribute.
If the parameter attributes displayed on the attribute setting interface can meet the configuration requirements of the current process rule, a user can directly select on the attribute setting interface to obtain target attributes; if the displayed parameter attributes cannot meet the configuration requirements of the current process rules, the attribute setting interface provides configuration of the newly-built attributes, and a user selects the newly-built attributes to set the target attributes. For example, when the target feature cell is a hole, a float-type variable "precision" is created for the target feature cell, and the electronic device creates a float-type variable in the database named precision and associates it with the hole feature type.
And S23, responding to the connection operation of each target interactive object to connect the target interactive objects to determine an initial process rule.
Specifically, S23 includes:
and S231, responding to the connection between the binding interface of the target process step unit and the binding interface of the corresponding target process resource unit, and determining the binding relationship between the target process step unit and the target process resource unit.
As described above, the target process step unit corresponds to the target process resource unit. In order to distinguish the interfaces, the target interaction objects are distinguished through different interfaces. The binding interface is used to bind the two connected units, for example, when the user connects the binding interface of the target process step unit a with the binding interface of the target process resource unit a1, the electronic device establishes a binding relationship between the target process step unit a and the target process resource unit a1 accordingly.
And S232, responding to the connection of the logic interfaces of the target step units, and determining the logic relationship among the target step units.
S231 is the established binding relationship between the target process step unit and the target process resource, that is, the specific implementation of each target process step unit. In the step, the user determines the logical relationship between the target process step units by connecting the logical interfaces of the target process step units. For example, the logical interfaces connecting the target process step unit A, B and C in turn establish a sequential logical relationship between the target process step units A-C.
And S233, determining the target process unit based on the binding relationship and the logic relationship.
Specifically, after the binding relationship of S231 is processed, each target process step unit a-C corresponds to a target process resource unit; and processing the logical relationship in S232 to obtain the sequential logical relationship of the target step units A-C. And determining the target process unit through the binding relationship and the logic relationship.
And S234, responding to the connection operation of the target rule unit with the target characteristic unit and the target process unit respectively, and determining the initial process rule.
As described above, the target rule unit output connection corresponds to a target process unit and the target feature unit input corresponds to a target feature unit. Therefore, the user connects the target rule unit as the target feature unit and the target process unit, and accordingly, the electronic device responds to the connection operation of the user, and the initial process rule can be obtained.
It should be noted that the execution sequence of S231-S234 is not limited to the above, and may be other sequences, and the specific sequence is not limited herein, and is configured according to the actual requirement.
In some optional embodiments, the S234 includes:
(1) and determining the logical relationship among the target rule unit, the target characteristic unit and the target process unit in response to the connection operation of the logical interface of the target rule unit with the logical interfaces of the target characteristic unit and the target process unit respectively.
As described above, the logical interface is used to represent a connection interface between logical processing sequences. And correspondingly, the electronic equipment responds to the connection operation of the user on the logic interface to determine the logic relationship among the target characteristic unit, the target process unit and the target rule unit.
(2) And in response to the connection operation of the parameter interface of the target rule unit and the parameter interfaces of the target characteristic unit and the target process unit, determining parameter transmission among the target rule unit, the target characteristic unit and the target process unit so as to determine the initial process rule.
The parameter interface is used for realizing a parameter transmission connecting port, parameter transmission of two connected units is realized through the parameter interface of the corresponding unit, and the parameter transmission direction is determined by the connection relation between the logic interfaces. Therefore, the electronic device can obtain the logic processing sequence and the transmission of the parameters by combining the selection results of the logic interface and the parameter interface, thereby determining the initial process rule. The logic interface and the parameter interface are respectively used for connecting corresponding functions, namely, the logic function and the parameter processing function are separately set and then combined, so that the configuration process is simpler and easier to realize.
In some optional embodiments, the target rule unit comprises a target function unit for calculating the value of the input parameter based on the target function and/or a target logic unit for performing logic processing on the input parameter.
The target function units include, but are not limited to, add, subtract, multiply, divide, square, etc., and the target logic units include predicate, logical AND, logical OR, etc. And selecting a corresponding target function unit and/or a target logic unit by a user according to the configuration requirement of the current process rule to form a target rule unit. The target rule unit comprises a target function unit and/or a target logic unit, and various rules can be configured through the combination of functions and logic, so that the application scenes of the configuration method are enriched.
And S24, debugging the initial process rule to determine and display the target process rule on the process rule configuration interface.
Please refer to S14 in fig. 1, which is not described herein again.
According to the configuration method of the process rule, the target interaction object is subjected to attribute setting, personalized configuration can be achieved, operation is performed based on the attribute setting interface during attribute setting, the process is visual, and configuration efficiency is improved. The target process units comprise target process step units and target process resource units, and the target process step units and the target process resource units are divided, so that the process step units and the process resource units are repeatedly utilized, namely, the process units with different functions can be obtained through various combinations, and the application scene of the configuration method can be greatly improved.
As a specific application example of this embodiment, for the configuration rule of the process scheme (center drilling-chamfering-milling-correcting) adopted for the through hole with the magnification ratio (hole depth/diameter) less than 0.25, as shown in fig. 3, the configuration method of the rule includes:
1. first, a target feature cell, such as a "hole feature", is dragged. Wherein each feature cell has corresponding parameter attributes, such as diameter, depth, accuracy, roughness parameters.
2. Accordingly, the electronic device will default to creating two logical units "Start" and "End" representing the logical Start and End points of the rule. In the example, the logic unit of 'branch' needs to be dragged from the logic library again to control the exit of the judgment condition;
3. in response to a selection operation of two functional units "divide by" and "compare" from the function library, this logical unit "divide by" realizes the calculation of the multiplying power ratio (hole depth divided by diameter); the logic unit "compare" is used to compare the multiplying power ratio with 0.25 and control the logic flow of the comparison result. The function library is also provided with a variable unit for defining user variables, for example, the calculation result is stored as a variable of the ratio of the magnification to the diameter, so that the multiplexing is convenient;
4. responding to the selection operation of corresponding four target step units, namely, center drilling, plane milling 1 and plane milling 2, and adjusting the step parameters of each target step unit. Wherein the target process step unit is the smallest set of processes, expressing a processing method. The parameters of the target process step unit can be set through attributes, and the parameters can also be calculated through other variables through a function unit in a connection supporting mode; the right side of the target process step unit is provided with a binding interface of the target process resource, which is respectively connected with the binding interfaces of the cutter, the equipment and the tool in the process resource to express the binding relationship between the process step and the process resource;
5. in response to the selection of the corresponding target process resource unit, i.e. center drill, drill bit, chamfer cutter, end mill, and setting the parameters of the tool. Wherein, the process resource unit generally comprises a cutter, equipment, a tool clamp and the like;
6. responding to the connection of the corresponding interface of each target interaction object in the process rule configuration interface, wherein the interface comprises a logic interface, a parameter interface, a binding interface and the like. For example, the arrows in fig. 3 are logical interfaces, the links of the logical interfaces represent the judgment workflow of the entire logical rule, and the starting nodes of the logical links are "Start" and "End" in general. The circular interfaces of the target characteristic unit and the target rule unit represent parameter interfaces for realizing parameter transmission. And the round interfaces on the right side of the target process step unit and the left side of the target process resource unit are binding interfaces and are used for realizing the binding relationship between the target process step unit and the target process resource.
The initial process rule can be obtained through the treatment of the steps. And debugging is carried out on the basis, so that the target process rule is obtained.
In this embodiment, a method for configuring process rules is provided, which can be used in electronic devices, such as computers, servers, numerical control machines, other processing devices, and the like, and fig. 4 is a flowchart of a method for configuring process rules according to an embodiment of the present invention, as shown in fig. 4, the flowchart includes the following steps:
and S31, responding to the selection operation of the interactive object to display the target interactive object on the process rule configuration interface.
The target interactive object comprises a target characteristic unit, a target rule unit and a target process unit, wherein the target characteristic unit is used for representing characteristics with the same geometric rules, the target rule unit is used for representing rule logics of processes, and the target process unit is used for representing the realization of a target process method corresponding to the rule logics.
Please refer to S21 in fig. 2 for details, which are not described herein.
S32, responding to the property setting of each target interactive object, determining the target property.
Please refer to S22 in fig. 2 for details, which are not described herein.
And S33, responding to the connection operation of each target interactive object to connect the target interactive objects to determine an initial process rule.
Please refer to S23 in fig. 2 for details, which are not described herein.
And S34, debugging the initial process rule to determine and display the target process rule on the process rule configuration interface.
Specifically, S34 includes:
s341, obtaining the current debugging progress.
The current debug progress indicates which step the currently debugged logic runs to, e.g., which unit of the initial process rules to run to, and so on.
And S342, displaying the current debugging progress on the initial process rule of the process rule configuration interface.
For the display of the current debugging progress, a highlight mode can be adopted for displaying the unit corresponding to the current debugging progress, for example, in the debugging process, the logic connecting line can be highlighted, the rule is moved to which step, and the corresponding connecting line can be highlighted; and displaying the unit corresponding to the current debugging progress by adopting other colors, and the like. The display mode is not limited, and is specifically set according to actual requirements.
And S343, when the debugging is passed, displaying the target process rule on the process rule configuration interface.
And when the debugging is passed, the process rule displayed on the process rule configuration interface at the moment is represented as a target process rule, and the target process rule can meet the rule and the user requirement.
In some optional embodiments, the method further comprises: and when the debugging is passed, compiling the target process rule, and compiling a compiling result corresponding to the target process rule. By storing the compiling result of the target process rule, the compiling result can be directly used for processing subsequently without processing the target process rule again.
According to the configuration method of the process rule, the current debugging progress is displayed on the initial process rule, so that the current debugging progress can be visually displayed, if debugging is wrong, the wrong position can be timely determined, and the configuration efficiency is further improved.
The configuration method of the process rule provided in the embodiment of the present invention is implemented based on configuration software running on an electronic device, and from the view point of functional division of the configuration software, as shown in fig. 5, the configuration software mainly includes a functional unit library, a process rule configuration interface, a preview number and an output three main body modules. Specifically, the functional unit libraries are divided into three classes, wherein the first class is an object library which comprises feature units, process step units and process resource units which are interactive object main bodies; the second type is a function library which comprises a function unit and a variable unit and is mainly used for processing the calculation of a variable expression; the third type is a logical library, which includes logical units and event units, and is mainly used for processing logical entries and exits of workflows.
The process rule configuration interface provides a special window for a user to configure process rules, the user needs to drag an object in the functional unit library into the process rule configuration interface, the function library unit is used for judging the variables of the object to design expressions, the logic library unit is used for carrying out logic design on the whole rule flow, and finally all the functional units are connected in series in a connection mode, and the establishment of the matching rules is completed in a workflow mode. The process rule configuration interface mainly comprises a characteristic unit editor, a workflow designer, a unit data communication service, a data processor and a variable manager. The characteristic unit editor realizes the variable exposure and parameter editing of the characteristic object, the process step object and the process resource object; the workflow designer provides a workflow tool to realize matched rule logic; the unit data communication service is used for processing data communication work among the units; the data processor is used for data interaction of a system bottom layer; the variable manager is used for managing variable interfaces and states of all the object units. The debugging preview and output tool provides a final effect preview and debugging function, a user can switch back to the process rule configuration interface to check the realization effect of the matching rule through the event entrance, and the workflow designer can display the logic processing state in real time in a highlight connection mode during debugging; meanwhile, a variable monitoring function is provided to detect the variable changes of the whole different stages, and a user compiles and stores the configuration result through the compiler and the data synchronizer after confirming that the configuration result is correct, and can also send the compilation result to processing equipment for processing the product.
The configuration software modularizes all functions, namely, applies a low-code technology to a process rule configuration link oriented to feature programming, and effectively improves the configuration efficiency of process rules; the technical requirements of configuration work on service personnel are reduced, the service personnel directly face the configuration of the process rules, the implementation period is shortened, and the enterprise cost is saved; the matching logic of the whole process rule is expressed in a mode of inter-unit connection and workflow, so that simplicity and clarity are realized, and the technical threshold of service personnel on the development level is further reduced; furthermore, the dynamic debugging tool expresses the process rule state in a highlight connection line and node mode, so that service personnel can accurately position the current position of the matching logic, and the debugging working efficiency is greatly improved.
The configuration method of the process rule provided by the embodiment of the invention can greatly improve the configuration efficiency of the matching rule between the geometric characteristics of the part and the process scheme, and effectively reduce the workload of personnel; the problem that the characteristic process rules need to be reconfigured in different enterprise environments is solved, the adaptation degree facing different enterprises is improved by improving the convenience of configuration tools, the implementation period of system personalized customization is reduced, and the cost reduction and the efficiency improvement of the enterprises are realized; meanwhile, the technical requirements of configuration work on service personnel can be reduced, the service personnel directly face the configuration of the process rule, the communication cost with the technical personnel is reduced, and rule errors caused by understanding errors are avoided; furthermore, support is provided for the practice landing of the characteristic-oriented programming field, and a basic data platform is provided for the creation of an enterprise process knowledge base.
In this embodiment, a device for configuring process rules is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and the description of the device that has been already made is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware or a combination of software and hardware is also possible and contemplated.
The present embodiment provides a device for configuring process rules, as shown in fig. 6, including:
a first response unit 41, configured to respond to a selection operation of an interactive object, so as to display a target interactive object on a process rule configuration interface, where the target interactive object includes a target feature unit, a target rule unit, and a target process unit, where the target feature unit is used to represent features having the same geometric rules, the target rule unit is used to represent rule logics of a process, and the target process unit is used to represent implementation of a target process method corresponding to the rule logics;
a second response unit 42, configured to determine a target attribute in response to the attribute setting for each target interaction object;
a third responding unit 43, configured to respond to a connection operation on each target interaction object, so as to connect the target interaction objects to determine an initial process rule;
and the debugging unit 44 is configured to debug the initial process rule to determine and display a target process rule on the process rule configuration interface.
The means for configuring the process rules in this embodiment are in the form of functional units, where a unit refers to an ASIC circuit, a processor and memory that execute one or more software or fixed programs, and/or other devices that may provide the above-described functionality.
Further functional descriptions of the modules are the same as those of the corresponding embodiments, and are not repeated herein.
An embodiment of the present invention further provides an electronic device, which has the configuration apparatus for process rules shown in fig. 6.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to an alternative embodiment of the present invention, and as shown in fig. 7, the electronic device may include: at least one processor 51, such as a CPU (Central Processing Unit), at least one communication interface 53, memory 54, at least one communication bus 52. Wherein a communication bus 52 is used to enable the connection communication between these components. The communication interface 53 may include a Display (Display) and a Keyboard (Keyboard), and the optional communication interface 53 may also include a standard wired interface and a standard wireless interface. The Memory 54 may be a high-speed RAM Memory (volatile Random Access Memory) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 54 may alternatively be at least one memory device located remotely from the processor 51. Wherein the processor 51 may be in connection with the apparatus described in fig. 6, the memory 54 stores an application program, and the processor 51 calls the program code stored in the memory 54 for performing any of the above-mentioned method steps.
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, and the like. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
The memory 54 may include a volatile memory (RAM), such as a random-access memory (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 (english: hard disk drive, abbreviated: HDD) or a solid-state drive (english: SSD); the memory 54 may also comprise a combination of the above types of memories.
The processor 51 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP.
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), General Array Logic (GAL), or any combination thereof.
Optionally, the memory 54 is also used to store program instructions. The processor 51 may call program instructions to implement a method of configuring process rules as shown in any of the embodiments of the present application.
The embodiment of the invention also 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 method embodiment. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
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 invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A method for configuring process rules, comprising:
responding to the selection operation of the interactive object, and displaying a target interactive object on a process rule configuration interface, wherein the target interactive object comprises a target characteristic unit, a target rule unit and a target process unit, the target characteristic unit is used for representing characteristics with the same geometric rules, the target rule unit is used for representing rule logics of processes, and the target process unit is used for representing the realization of a target process method corresponding to the rule logics;
responding to the attribute setting of each target interaction object, and determining a target attribute;
responding to the connection operation of each target interaction object to connect the target interaction objects to determine an initial process rule;
and debugging the initial process rule to determine and display a target process rule on the process rule configuration interface.
2. The method according to claim 1, wherein the target process units comprise target process step units and target process resource units, the target process step units are used for representing a processing technology, the target process resource units are used for representing process resources corresponding to the processing technology, and the determining of the initial process rule for connecting the target interaction objects in response to the connecting operation of each target interaction object comprises:
responding to the connection between the binding interface of the target process step unit and the corresponding binding interface of the target process resource unit, and determining the binding relationship between the target process step unit and the target process resource unit;
responding to the connection of the logic interface of each target step unit, and determining the logic relationship among the target step units;
determining the target process unit based on the binding relationship and the logical relationship;
and determining the initial process rule in response to the connection operation of the target rule unit with the target feature unit and the target process unit respectively.
3. The method of claim 2, wherein determining the initial process recipe in response to the target recipe unit operating in conjunction with the target feature unit and the target process unit, respectively, comprises:
responding to the connection operation of the logic interface of the target rule unit and the logic interfaces of the target feature unit and the target process unit respectively, and determining the logic relationship among the target rule unit, the target feature unit and the target process unit;
and 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, determining parameter transmission among the target rule unit, the target feature unit and the target process unit so as to determine the initial process rule.
4. The method of claim 3, wherein the target rule unit comprises a target function unit and/or a target logic unit, the target function unit is used for calculating the value of the input parameter based on a target function, and the target logic unit is used for performing logic processing on the input parameter.
5. The method of claim 1, wherein determining target attributes in response to the attribute settings for each of the target interaction objects comprises:
responding to the selection operation of each target interaction object, and determining a property setting interface;
and determining the target attribute in response to the selection operation of the attribute setting interface.
6. The method of claim 1, wherein the debugging the initial process rule, determining and displaying a target process rule on the process rule configuration interface comprises:
acquiring a current debugging progress;
displaying the current debugging progress on an initial process rule of the process rule configuration interface;
and when the debugging is passed, displaying the target process rule on the process rule configuration interface.
7. The method of claim 6, further comprising:
and when the debugging is passed, compiling the target process rule, and compiling a compiling result corresponding to the target process rule.
8. An apparatus for configuring process rules, comprising:
the system comprises a first response unit, a second response unit and a third response unit, wherein the first response unit is used for responding to selection operation of an interactive object so as to display a target interactive object on a process rule configuration interface, the target interactive object comprises a target characteristic unit, a target rule unit and a target process unit, the target characteristic unit is used for representing characteristics with the same geometric rules, the target rule unit is used for representing rule logic of a process, and the target process unit is used for representing implementation of a target process method corresponding to the rule logic;
the second response unit is used for responding to the attribute setting of each target interaction object and determining a target attribute;
the third response unit is used for responding to the connection operation of each target interaction object so as to connect the target interaction objects to determine an initial process rule;
and the debugging unit is used for debugging the initial process rule so as to determine and display a target process rule on the process rule configuration interface.
9. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of configuring a process rule according to any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions for causing a computer to perform the method of configuring a process rule according to any one of claims 1 to 7.
CN202210501531.3A 2022-05-09 2022-05-09 Method and device for configuring process rules and electronic equipment Pending CN114840123A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210501531.3A CN114840123A (en) 2022-05-09 2022-05-09 Method and device for configuring process rules and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210501531.3A CN114840123A (en) 2022-05-09 2022-05-09 Method and device for configuring process rules and electronic equipment

Publications (1)

Publication Number Publication Date
CN114840123A true CN114840123A (en) 2022-08-02

Family

ID=82569806

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210501531.3A Pending CN114840123A (en) 2022-05-09 2022-05-09 Method and device for configuring process rules and electronic equipment

Country Status (1)

Country Link
CN (1) CN114840123A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170102694A1 (en) * 2013-03-04 2017-04-13 Fisher-Rosemount Systems, Inc. Distributed industrial performance monitoring and analytics platform
CN110387635A (en) * 2019-06-17 2019-10-29 福建海睿达科技有限公司 Hosiery machine and its flower pattern weaving method and storage medium
CN110705823A (en) * 2019-08-28 2020-01-17 紫光云(南京)数字技术有限公司 Production process route configuration method
CN112026246A (en) * 2020-08-20 2020-12-04 成都卡诺普自动化控制技术有限公司 Intelligent configuration method applied to stamping automatic flow operation
CN113923144A (en) * 2021-09-18 2022-01-11 北京奇艺世纪科技有限公司 Service test system, method, electronic device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170102694A1 (en) * 2013-03-04 2017-04-13 Fisher-Rosemount Systems, Inc. Distributed industrial performance monitoring and analytics platform
CN110387635A (en) * 2019-06-17 2019-10-29 福建海睿达科技有限公司 Hosiery machine and its flower pattern weaving method and storage medium
CN110705823A (en) * 2019-08-28 2020-01-17 紫光云(南京)数字技术有限公司 Production process route configuration method
CN112026246A (en) * 2020-08-20 2020-12-04 成都卡诺普自动化控制技术有限公司 Intelligent configuration method applied to stamping automatic flow operation
CN113923144A (en) * 2021-09-18 2022-01-11 北京奇艺世纪科技有限公司 Service test system, method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
NL2010546C2 (en) Method and apparatus for automatically generating a test script for a graphical user interface.
US9477581B2 (en) Integrated system and method for validating the functionality and performance of software applications
CN112988130A (en) Visual modeling method, device, equipment and medium based on big data
EP3413149B1 (en) Field device commissioning system and field device commissioning method
CN111666217B (en) Method and apparatus for testing code
CN110955410A (en) Automatic code generation method, device, equipment and medium
CN112685040B (en) Method, device, equipment and storage medium for generating interface file in android system
CN113741881A (en) RPA visual process design method
CN116301735B (en) Method, device and storage medium for organizing software elements into software data links
CN111090454B (en) Automatic processing method, device and equipment based on ODB
CN117348866A (en) Test case arrangement system and method
JP6097231B2 (en) Program generating apparatus and method
CN114840123A (en) Method and device for configuring process rules and electronic equipment
CN116009847A (en) Code generation method, device, electronic equipment and storage medium
CN114238072A (en) HIL requirement design method, HIL requirement design device, computer equipment and storage medium
CN112836220B (en) Cloud center environment inspection method
CN113672509A (en) Automatic testing method, device, testing platform and storage medium
CN116501386B (en) Automatic calculation program solving method based on data pool and related device
JP7391269B1 (en) FA control program generation support program, FA control program generation support device, FA control program generation support method
CN112130841B (en) SQL development method and device and terminal equipment
CN116361156A (en) Smoking test method, computer device and computer readable storage medium for test case
CN117389610A (en) Operator registration method, device, electronic equipment and storage medium
CN118035096A (en) Satellite test case generation method and device based on flexible configuration
CN118626390A (en) White box component testing method, white box component testing equipment and readable storage medium
CN117472354A (en) Modeling device, method, computer equipment and medium for automatic driving application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination