Disclosure of Invention
In order to improve industrial production efficiency, the application provides an intelligent instruction set construction method and system for industrial control.
In a first aspect, the present application provides an industrial control intelligent instruction set construction method, which adopts the following technical scheme:
An intelligent instruction set construction method for industrial control, comprising the following steps:
acquiring a production scene service;
Analyzing the production scene business to determine a production structure flow;
analyzing the production structure flow to determine corresponding node production actions;
Determining a node action instruction according to the node production action and a preset action instruction library;
Reconstructing the node action instructions to generate a production instruction set.
By adopting the technical scheme, the production scene service is analyzed into the production structure flow, each step in the production structure flow is deconstructed into the node production action, the corresponding node action instruction is searched in the action instruction library according to the node production action, the node action instruction is reconstructed into the production instruction set, and the instruction of the production equipment is not required to be rewritten, so that the preparation time before mass production is saved, and the industrial production efficiency is improved.
Optionally, the step of analyzing the production structure flow to determine the corresponding node production action includes:
acquiring historical scene service;
judging whether the production scene service meets the requirements of the historical scene service or not;
if yes, analyzing the production scene service and the historical scene service to determine the same scene service;
Determining node production actions according to the same scene service and a preset scene action library;
if not, acquiring a history structure flow;
The production structure flow and the historical structure flow are analyzed to determine node production actions.
By adopting the technical scheme, when the production scene service and the historical scene service are determined to be consistent, the production task is indicated to be repeated production, so that the corresponding node action is directly searched in the scene action library according to the same scene service, the node production action can be determined, and the efficiency of determining the node production action is further improved.
Optionally, the step of analyzing the production structure flow and the historical structure flow to determine the node production action includes:
Analyzing the production structure flow and the history structure flow to determine the same structure flow and different structure flows;
Determining the same structural action according to the same structural flow and a preset historical structural action library;
determining different structure actions according to different structure flows and a preset structure flow action library;
the same structure action and the different structure actions are associated to generate a node production action.
By adopting the technical scheme, the same structural flow and different structural flows are searched in the production structural flow, so that the same structural actions are searched in the historical structural action library according to the same structural flow, and different structural actions are searched in the structural flow action library according to different structural flows, so that the action searching range of part of the structural flows is reduced, and the efficiency of determining the node production actions is improved.
Optionally, the step of determining the node action instruction according to the node production action and the preset action instruction library includes:
analyzing the production structure flow and the corresponding node production action to determine a synchronous selection instruction action;
acquiring an action determination form of a synchronous selection instruction action;
Judging whether the action determining form meets the requirement of a preset action direct matching form or not;
if yes, obtaining a scene matching service;
determining a node action instruction according to the matched scene service and a preset scene instruction library;
If the instruction is not matched with the instruction, analyzing the action instruction library according to the synchronous selection instruction action to determine an adaptive flow instruction library;
And determining the node action instruction according to the synchronous selection instruction action and the adaptive flow instruction library.
By adopting the technical scheme, when the action determination form of the synchronous selection instruction action is determined to meet the requirement of the action direct matching form, the matching scene service is invoked, and the node action instruction is searched in the scene Jing Zhiling library according to the matching scene service, and when the node action instruction is not met, the action instruction library is analyzed according to the synchronous selection instruction action to determine the adaptation flow instruction library, so that the range of the search instruction is reduced, and the efficiency of determining the node action instruction is improved.
Optionally, the step of analyzing the action instruction library according to the synchronous selection instruction action to determine the adaptive flow instruction library includes:
Analyzing the synchronous selection instruction action to determine an analysis production action and a matching production action;
Analyzing the analysis production actions and the matching production actions to determine the number of analysis actions and the number of matching actions;
judging whether the number of analysis actions meets the requirement of the number of matching actions;
if not, acquiring motion related equipment based on the matched production motion;
Determining an adaptive flow instruction library according to the motion related equipment and the motion instruction library;
if yes, obtaining available production equipment based on the production structure flow;
And determining an adaptive flow instruction library according to the available production equipment and the action instruction library.
By adopting the technical scheme, when the number of analysis actions is determined not to exceed the number of the matching actions, the fact that more determinable instructions are directly searched according to the matching production actions is indicated, so that action related equipment is obtained, an adaptive flow instruction library is determined according to the action related equipment and the action instruction library, and when the number of analysis actions exceeds the number of the matching actions, available production equipment is obtained based on the production structure flow, and the adaptive flow instruction library is determined according to the available production equipment and the action instruction library, so that the usability of the adaptive flow instruction library is ensured, and the efficiency and the accuracy of determining the adaptive flow instruction library are improved.
Optionally, the step of determining the node action instruction according to the synchronous selection instruction action and the adaptive flow instruction library includes:
Judging whether the synchronous selection instruction action meets the requirement of the adaptive flow instruction library or not;
if not, outputting synchronous selection instruction action to prompt an add node action instruction;
If yes, determining a basic node instruction according to the synchronous selection instruction action and the adaptive flow instruction library;
acquiring a previous node instruction;
The base node instructions and the previous node instructions are analyzed to determine node action instructions.
By adopting the technical scheme, when the synchronous selection instruction action is determined to exist in the adaptive flow instruction library, the basic node instruction is obtained by searching in the adaptive flow instruction library according to the synchronous selection instruction action, and the node action instruction is determined in the basic node instruction according to the previous node instruction, so that the accuracy of the node action instruction is improved.
Optionally, the step of analyzing the base node instruction and the previous node instruction to determine the node action instruction includes:
judging whether the previous node instruction exists or not;
if the equipment production score does not exist, acquiring the equipment production score based on the basic node instruction;
Sequencing the equipment production score and the basic node instruction to determine an optimal node instruction, and defining the optimal node instruction as a node action instruction;
if yes, acquiring the last production equipment based on the last node instruction;
determining an associatable device according to the association relation between the last production device and a preset device, and acquiring an association device instruction of the associatable device;
the associated device instructions and the base node instructions are analyzed to determine node action instructions.
By adopting the technical scheme, the associatable equipment is determined according to the last production equipment, and the associatable equipment instruction of the associatable equipment is matched with the basic node instruction, so that the node action instruction is obtained, the equipment implemented by the node action instruction and the equipment implemented by the last instruction are mutually matched, and the accuracy of determining the node action instruction is improved.
Optionally, the step of reconstructing the node action instructions to generate a production instruction set includes:
analyzing the node action instruction to determine whether a preset instruction variable parameter exists or not;
if not, defining the node action instruction as a reconfigurable instruction;
if the actual production variable exists, analyzing the production structure flow to determine the actual production variable;
correcting the node action instruction according to the actual generated variable to generate a reconfigurable instruction;
the reconfigurable instruction is reconfigured to generate a production instruction set.
By adopting the technical scheme, when the existence of the instruction variable parameters in the node action instruction is determined, the actual production variable is determined by analyzing the production structure flow, so that the node action instruction is corrected according to the actual generation variable to obtain the reconfigurable instruction, the matching of the production instruction set and the actual production task is ensured, and the accuracy of the production instruction set is further improved.
In a second aspect, the present application provides an industrial control intelligent instruction set construction system, which adopts the following technical scheme:
an industrial control intelligent instruction set building system, comprising:
the acquisition module is used for acquiring the production scene service;
a memory for storing a program of an industrial control intelligent instruction set construction method according to any one of the above;
A processor, a program in the memory capable of being loaded by the processor for execution and implementing an industrial control intelligent instruction set construction method as described in any one of the above.
By adopting the technical scheme, the processor loads and executes the program of the intelligent instruction set construction method of the industrial control stored in the memory, and the control acquisition module acquires a series of data related to the construction of the intelligent instruction set of the industrial control, so that the production scene service is analyzed into a production structure flow, each step in the production structure flow is deconstructed into a node production action, then a corresponding node action instruction is searched in the action instruction library according to the node production action, and the node action instruction is restructured into a production instruction set, and the instruction of the production equipment is not required to be rewritten, thereby saving a large amount of preparation time before production and further improving the industrial production efficiency.
In summary, the present application includes at least one of the following beneficial technical effects:
1. Resolving the production scene business into a production structure flow, resolving each step in the production structure flow into a node production action, searching a corresponding node action instruction in an action instruction library according to the node production action, and reconstructing the node action instruction into a production instruction set without re-writing instructions of production equipment, so that a large amount of preparation time before production is saved, and further the industrial production efficiency is improved;
2. When the production scene service and the historical scene service are determined to be consistent, the production task is indicated to be repeated production, so that the corresponding node action is directly searched in the scene action library according to the same scene service, the node production action can be determined, and the efficiency of determining the node production action is further improved;
3. the method has the advantages that the associatable equipment is determined according to the previous production equipment, and the associatable equipment instruction of the associatable equipment is matched with the basic node instruction, so that the node action instruction is obtained, the fact that equipment for implementing the node action instruction is matched with equipment for implementing the previous instruction is guaranteed, and the accuracy of determining the node action instruction is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to fig. 1 to 8 and the embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The embodiment of the application discloses an intelligent instruction set construction method for industrial control, in particular discloses a processing terminal, when the processing terminal receives a production scene service, the processing terminal converts the production scene service into a production structure flow, then deconstructs the production structure flow into node production actions, so that corresponding node action instructions are searched in an action instruction library according to the node production actions, finally, the node action pointing is reconstructed into a production instruction set, and a technician is not required to rewrite the instruction set of production equipment before production, so that the preparation time before production is reduced, and the industrial production efficiency is improved.
Referring to fig. 1, an embodiment of the application discloses an intelligent instruction set construction method for industrial control, which comprises the following steps:
And step S100, acquiring a production scene service.
The production scene service refers to the description of the production service scene, including the type, quantity, quality and other requirements of the products, and is obtained by an operator writing a production plan according to the customer requirements and uploading the production plan to a processing terminal.
And step S101, analyzing the production scene business to determine the production structure flow.
The production structure flow is a flow of a production scene business, for example, a production scene business person is a flow of producing an electronic product, the corresponding production structure flow is a flow of transporting raw materials to production equipment, processing raw materials by the production equipment to form components, assembling the components to form the electronic product, testing the electronic product, packaging the electronic product, carrying out logistics transportation of the electronic product, understanding the production scene business by a processing terminal through a BERT model which is completed through pre-training, identifying a specific flow in a preset knowledge graph, and finally drawing a flow chart through a BPMN tool.
Step S102, analyzing the production structure flow to determine corresponding node production actions.
The node production action refers to a minimum action that different processes can decompose in the production structure process, for example, a component formed by processing raw materials by production equipment can decompose into actions such as planning for issuing, dispatching and dispatching, acquiring tasks, pulling and carrying, working and dispatching a work module, starting and checking, equipment production and the like, and a processing terminal analyzes a specific process in the production structure process to obtain the node production action, wherein the specific method refers to the step of fig. 2.
Step S103, determining a node action instruction according to the node production action and a preset action instruction library.
The action instruction library is a database storing different actions and corresponding instructions, the action instruction library is classified according to different scenes, for example, a production instruction library is stored with the actions and corresponding instructions in the production process, and further, the action and corresponding instructions in the logistics process are stored in a logistics instruction library, subdivided in the instruction library corresponding to a specific scene, and the instructions are corresponding to specific equipment.
The node action instruction is an instruction required for completing the node production action, is actually a packaged script, and is obtained by the processing terminal selecting an instruction corresponding to the same action from the action instruction library according to the node production action, and the specific method refers to the steps of fig. 4.
Step S104, reconstructing the node action instruction to generate a production instruction set.
The production instruction set refers to an instruction set required for completing the production scene service, and is formed by reconstructing node action instructions by the processing terminal according to the dependency relation driving ordering principle, and the specific method refers to the steps of fig. 8.
Referring to fig. 2, the step of analyzing the production structure flow to determine corresponding node production actions includes:
step 200, acquiring a history scene service.
The historical scene service refers to a traditional production scene service, and the processing terminal performs backup and call.
Step S201, judging whether the production scene service meets the requirement of the history scene service.
Wherein, the requirement of the history scene service refers to existence in the history scene service. And judging whether the production scene service exists in the historical scene service or not through the processing terminal, so as to determine whether the node action is required to be determined according to specific flow analysis.
And step 2011, if the service is in accordance with the production scene service and the historical scene service, analyzing the production scene service and the historical scene service to determine the same scene service.
If the processing terminal determines that the production scene service exists in the historical scene service, the processing terminal indicates that the scene service which is the same as the production scene service exists in the past, so that the corresponding node action exists in the same way, the node action is not required to be determined according to specific flow analysis, the same scene service is determined according to the production scene service and the historical scene service, and data support is provided for the follow-up determination of the node action.
The same scene service refers to the same scene service as the production scene service in the historical scene service, and the processing terminal carries out semantic understanding on the historical scene service, so that the historical scene service with consistent semantic understanding with the semantic understanding of the production scene service is selected as the same scene service.
And step 20111, determining node production actions according to the same scene service and a preset scene action library.
The scene action library is a database storing different production scenes and corresponding actions, and an operator corresponds the historical scene service and the actions one by one to form a mapping table.
The node production action in the step is consistent with the node production action in the step S102, and the processing terminal searches the action corresponding to the same scene service in the scene Jing Dongzuo library according to the same scene service.
Step 2012, if not, obtaining a history structure flow.
If the processing terminal determines that the production scene service does not exist in the historical scene service, the processing terminal indicates that the scene service which is the same as the production scene service does not exist in the past, so that the corresponding node actions do not exist all, and therefore the historical structure flow is called, and data support is provided for the follow-up determination of the node production action.
The historical structure flow is a flow of converting the former scene business, and the processing terminal converts the former scene business into the flow and then performs backup to be called.
And S20121, analyzing the production structure flow and the historical structure flow to determine node production actions.
The node production action in the step is consistent with the node production action in the step S102, and is determined after the processing terminal analyzes the production structure flow and the history structure flow, and the specific method refers to the step of fig. 3.
Referring to FIG. 3, the step of analyzing the production structure flow and the historical structure flow to determine node production actions includes:
And step S300, analyzing the production structure flow and the historical structure flow to determine the same structure flow and different structure flows.
The same structural flow is the same flow as the historical structural flow in the production structural flow, the different structural flows are different flows from the historical structural flow in the production structural flow, and the processing terminal carries out semantic understanding on the production structural flow and the historical structural flow, so that the production structural flow with the same semantic understanding is determined to be the same structural flow, and the production structural flow without the same semantic understanding is determined to be the different structural flow. The production structure flow is divided into the same structure flow and different structure flows, so that the searching range is reduced as much as possible in the subsequent process of determining the action according to the flow, and the efficiency of determining the node action is improved.
Step S301, determining the same structural action according to the same structural flow and a preset historical structural action library.
The historical structure action library is a database storing the historical structure flow and the corresponding node actions, and an operator corresponds the historical structure flow and the node actions one by one to form a mapping table.
The same structure action refers to a node action corresponding to the same structure flow, and the node action is obtained by searching in a historical structure action library by the processing terminal according to the same structure flow.
Step S302, determining different structure actions according to different structure flows and a preset structure flow action library.
The structure flow action library is a database storing all structure flows and corresponding node actions, and an operator corresponds the structure flows and the node actions one by one to form a mapping table.
The different structure actions refer to node actions corresponding to different structure flows, and the node actions are obtained by searching in a structure flow action library by the processing terminal according to the different structure flows.
Step S303, associating the same structure action and different structure actions to generate a node production action.
The node production action in this step is identical to the node production action in step S20121, and the processing terminal stores the same structure action and different structure actions in the same database.
Referring to fig. 4, the step of determining a node action instruction according to a node production action and a preset action instruction library includes:
and step 400, analyzing the production structure flow and the corresponding node production action to determine a synchronous selection instruction action.
The synchronous instruction selection action refers to an action of simultaneously performing instruction selection, and the processing terminal uses the node production action of a single production structure flow as the synchronous instruction selection action according to the sequence of the production structure flow.
Step S401, an action determination form of the synchronous selection instruction action is obtained.
The action determining form refers to a determining mode of synchronously selecting the instruction action, and the determining mode comprises obtaining according to structural flow analysis and obtaining according to scene matching, and marking and waiting for calling the mode of determining the action when the processing terminal determines the action.
Step S402, judging whether the action determination form meets the requirement of a preset action direct matching form.
The action direct matching form refers to a mode that node actions are obtained according to scene service direct matching, and requirements of the action direct matching form are consistent with the action direct matching form.
And judging whether the action determining form is consistent with the action direct matching form or not through the processing terminal, thereby determining whether the same scene service exists or not and providing data support for the subsequent selection instruction.
And step S4021, if the service is in accordance with the service, acquiring a scene matching service.
If the processing terminal determines that the action determining form is consistent with the action direct matching form, the action is obtained by directly matching according to the scene service, so that the scene service with the same production scene service exists, the matching scene service is called, and data support is provided for the subsequent selection instruction.
The matching scene service is the same scene service as the production scene service, and when the processing terminal determines the same scene service in step S2011, the same scene service is backed up to be called.
Step S40211, determining a node action instruction according to the matched scene service and a preset scene instruction library.
The scene instruction library is a database storing the past scene service and corresponding instructions, and an operator corresponds the scene service and the instructions one by one to form a mapping table.
The node action instruction in the step is consistent with the node action instruction in the step S103, and the processing terminal searches all instructions corresponding to the matching scene service in the scene Jing Zhiling library according to the matching scene service.
If not, the step S4022 is to analyze the action instruction library according to the synchronous selection instruction action to determine the adaptive flow instruction library.
If the processing terminal determines that the action determining form is inconsistent with the action direct matching form, the action is obtained according to structural flow matching, so that no identical instruction exists, the action instruction library is subdivided according to synchronous instruction selection action, the adaptive flow instruction library is obtained, the selection range of the instruction is shortened, and the instruction selection efficiency is improved.
The adaptive flow instruction library refers to an instruction library which can select more instructions and is more suitable for production from the action instruction library, the processing terminal analyzes the action instruction library according to the synchronous selection instruction and determines the action instruction library, and the specific method refers to the steps of fig. 5.
And step S40221, determining a node action instruction according to the synchronous selection instruction action and the adaptive flow instruction library.
After determining the adaptive flow instruction library, selecting an instruction in the adaptive flow instruction library according to the synchronous instruction selection action, thereby obtaining a node action instruction, and referring to the steps of fig. 6 for a specific method.
Referring to fig. 5, the step of analyzing the action instruction library according to the synchronous selection instruction action to determine the adaptive flow instruction library includes:
and S500, analyzing the synchronous selection instruction action to determine an analysis production action and a matching production action.
The analysis production action refers to node actions determined according to different structural flows, the matching production action refers to node actions determined according to the same structural flow, and when the processing terminal determines the node actions, the determining mode of the node actions is marked, so that when classification is needed, the processing terminal identifies the determining mode of the synchronous selection instruction actions, and the actions are classified according to the identifying mode.
Step S501, analyzing the analysis production action and the matching production action to determine the number of analysis actions and the number of matching actions.
Wherein the number of analysis actions refers to the number of analysis production actions, the number of matching actions refers to the number of matching production actions, and the processing terminal counts the analysis production action and the matching production action respectively.
Step S502, judging whether the analysis action number meets the requirement of the matching action number.
Wherein, the requirement of the number of the matching actions is larger than the number of the matching actions. And judging whether the number of the analysis actions is larger than the number of the matching actions by the processing terminal, so as to provide data support for the follow-up determination of which action is used as the basis for determining the instruction library.
Step S5021, if the operation is not matched, the operation related equipment is acquired based on the matched production operation.
If the processing terminal determines that the number of analysis actions is not greater than the number of matching actions, the processing terminal indicates that the number of matching production actions is greater, so that the number of instructions which can be selected by the instruction library determined according to the matching production actions is also greater, and accordingly, the relevant equipment of the actions is called according to the matching production actions, and data support is provided for the follow-up determining instruction library.
The action related equipment is equipment for completing the matched production action, and the processing terminal is obtained by calling the equipment for performing the action according to the equipment operation record and the matched production action.
Step S50211, determining an adaptive flow instruction library according to the action related equipment and the action instruction library.
The adaptive flow instruction library in the step is consistent with the adaptive flow instruction library in the step S4022, and is obtained by the processing terminal searching an instruction library corresponding to the motion related device in the motion instruction library according to the motion instruction library. In this step, the adaptive flow instruction library determined by the motion related device may pick up a greater number of instructions than the adaptive flow instruction library determined by analyzing the production motion.
And step S5022, if the production structure flow is met, available production equipment is obtained based on the production structure flow.
If the processing terminal determines that the number of analysis actions is greater than the number of matching actions, the processing terminal indicates that the number of analysis production actions is greater, so that an angle determination instruction library for ensuring that the analysis production actions select corresponding instructions as far as possible is needed, and therefore available production equipment is called according to the production structure flow, and data support is provided for the instruction library for the follow-up determination adaptation flow.
The available production equipment refers to related equipment capable of completing the production structure flow, and the processing terminal calls the equipment meeting the production structure flow in the functions according to the equipment functional map and the production structure flow.
And step S50221, determining an adaptive flow instruction library according to the available production equipment and the action instruction library.
The adaptive flow instruction library in the step is consistent with the adaptive flow instruction library in the step S4022, and the processing terminal searches an instruction library corresponding to the equipment in the action instruction library according to the available production equipment. In this step, the number of the adaptive flow instruction libraries determined by the available production equipment is greater than the number of the adaptive flow instruction libraries determined by the action related equipment, but the number requirement of the instructions corresponding to the selected and analyzed production actions can be met, so that more instructions capable of completing scene services can be selected.
Referring to fig. 6, the step of determining a node action instruction from a synchronous selection instruction action and adaptation flow instruction library includes:
Step S600, judging whether the synchronous selection instruction action meets the requirement of the adaptive flow instruction library.
The requirement of the adaptive flow instruction library refers to existence in the instruction action corresponding to the adaptive flow instruction library. And judging whether the synchronous selection instruction action exists in the instruction action corresponding to the adaptive flow instruction library or not through the processing terminal, so as to determine whether the instruction corresponding to the synchronous selection instruction action can be selected in the adaptive flow instruction library or not.
If not, step S601 outputs synchronous selection instruction action to prompt adding node action instruction.
If the processing terminal determines that the synchronous selection instruction action does not exist in the instruction actions corresponding to the adaptive flow instruction library, the processing terminal indicates that the instruction corresponding to the action does not exist in the adaptive flow instruction library, so that the synchronous selection instruction action is output to prompt personnel to manually write the node action instruction corresponding to the action.
Step S602, if yes, determining a basic node instruction according to the synchronous selection instruction action and the adaptive flow instruction library.
If the processing terminal determines that the synchronous selection instruction action exists in the instruction actions corresponding to the adaptive flow instruction library, the processing terminal indicates that the instruction corresponding to the synchronous selection instruction action can be selected from the adaptive flow instruction library, so that a basic node instruction is determined according to the synchronous selection instruction action and the adaptive flow instruction library, and data support is provided for the final node action instruction determined subsequently.
The basic node instruction refers to all selected instructions corresponding to the synchronous selection instruction action, and the processing terminal searches in the adaptive flow instruction library according to the synchronous selection instruction action.
Step S6021, obtain the last node instruction.
The previous node instruction refers to an instruction corresponding to a previous node action of the synchronous selection instruction action, when the instruction exists, the instruction is directly called by the processing terminal, and when the instruction does not exist, the instruction returns to be null.
Step S6022, analyzing the basic node instruction and the previous node instruction to determine the node action instruction.
The node action instruction in the step is consistent with the node action instruction in the step S40221, and the processing terminal selects the mutually matched instruction in the basic node instruction according to the previous node instruction, namely the node action instruction.
Referring to fig. 7, the step of analyzing the base node instruction and the previous node instruction to determine the node action instruction includes:
step S700, judging whether the previous node instruction exists.
The processing terminal is used for identifying the fetched content, so that whether the previous node instruction exists or not is determined, and data support is provided for the follow-up node action instruction determination.
And step 701, if the equipment production score does not exist, acquiring the equipment production score based on the basic node instruction.
If the processing terminal determines that the previous node instruction does not exist, the processing terminal indicates that the instruction corresponding to the synchronous selection instruction action does not need to be matched with the previous node instruction, so that the equipment production score is called according to the basic node instruction, and data support is provided for the subsequent node action determining instruction.
The equipment production score refers to equipment scores obtained by integrating indexes such as equipment production efficiency and profit, the equipment scores are determined by operators according to actual equipment, the processing terminal identifies equipment to which an instruction belongs according to a basic node instruction, and the equipment scores corresponding to the equipment are called to obtain the equipment production score.
Step S7011, ordering the device production score and the base node instruction to determine the best node instruction, and defining the best node instruction as a node action instruction.
The optimal node instruction is an optimal instruction for realizing synchronous instruction selection, and the processing terminal sequences the equipment production score and the corresponding basic node instruction, so that the maximum equipment production score is determined, and the basic node instruction corresponding to the maximum equipment production score is identified, namely the optimal node instruction. After the processing terminal determines the optimal node instruction, the optimal node instruction is defined as a node action instruction, so that synchronous instruction selection action can be better realized.
Step S702, if yes, obtaining the last production equipment based on the last node instruction.
If the processing terminal determines that the previous node instruction exists, the node action instruction needs to be selected to be matched with the previous node instruction, so that smooth production is ensured, and therefore, the previous production equipment is called according to the previous node instruction, and data support is provided for the subsequent determined node action instruction.
The last production equipment refers to equipment for executing the last node instruction, and the processing terminal identifies the equipment to which the last node instruction belongs to obtain the last node instruction.
Step S7021, determining associatable equipment according to the association relation between the previous production equipment and the preset equipment, and acquiring an association equipment instruction of the associatable equipment.
The device association relationship refers to an association relationship between different devices, and an operator corresponds the different devices to the associable devices one by one to form a mapping table.
The associatable equipment refers to equipment associated with the last production equipment, and the processing terminal searches and determines in the equipment association relation according to the last production equipment.
The associated equipment instruction refers to an instruction which can be associated with equipment, and the processing terminal searches for the associated equipment instruction according to the corresponding relation between the equipment and the instruction.
Step S7022, analyzing the associated device instruction and the base node instruction to determine a node action instruction.
After determining the associated equipment instructions, sorting the associated equipment instructions according to the associated order of the associatable equipment, and comparing the sorted associated equipment instructions with the basic node instructions, thereby selecting the associated equipment instruction with the highest priority, namely the node action instruction.
Referring to fig. 8, the step of reconstructing node action instructions to generate a production instruction set includes:
And step S800, analyzing the node action instruction to determine whether a preset instruction variable parameter exists.
The instruction variable parameter refers to a variable parameter such as speed, size, etc. existing in the action instruction. The processing terminal is used for identifying the node action instruction and determining whether the node action instruction has an instruction variable parameter, so that whether the node action instruction needs to be corrected is determined.
Step S801, if not, defining the node action instruction as a reconfigurable instruction.
If the processing terminal determines that the node action instruction does not have the instruction variable parameter, the processing terminal indicates that the node action instruction does not need to be corrected, so that the node action instruction is directly defined as a reconfigurable instruction.
The reconfigurable instruction is an instruction capable of being reconfigured into an instruction set, and in this step, the processing terminal directly defines the node action instruction.
Step S802, if the production structure flow exists, analysis is carried out on the production structure flow to determine actual production variables.
If the processing terminal determines that the node action instruction has the instruction variable parameter, the processing terminal indicates that the node action instruction may not meet the variable requirement of the current production scene service, so that the actual production variable is determined after the production structure flow is analyzed, and data support is provided for the follow-up correction of the node action instruction.
The actual production variable refers to an actual variable required in the production structure flow corresponding to the node action instruction, and the processing terminal carries out semantic understanding on the production structure flow to obtain the actual production variable.
And step S8021, correcting the node action instruction according to the actual generated variable to generate a reconfigurable instruction.
The reconfigurable instruction in the step is identical to the definition of the reconfigurable instruction in the step S801, and is different in that the reconfigurable instruction in the step is obtained by replacing the variable correspondence in the node action instruction with the actual generated variable by the processing terminal.
Step 803, reconstruct the reconfigurable instruction to generate the production instruction set.
After the reconfigurable instruction is determined, the processing terminal reconfigures the reconfigurable instruction into a production instruction set according to the dependency relation driving ordering principle.
Based on the same inventive concept, an embodiment of the present application provides an intelligent instruction set construction system for industrial control, including:
The acquisition module is used for acquiring production scene service, historical structure flow, action determination form, matching scene service, action related equipment, available production equipment, last node instruction, equipment production score, last production equipment and related equipment instruction;
A memory for storing a program of an intelligent instruction set construction method of industrial control;
And the processor, the program in the memory can be loaded and executed by the processor, and an intelligent instruction set construction method for industrial control is realized.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
Embodiments of the present application provide a computer-readable storage medium storing a computer program capable of being loaded by a processor and executing an intelligent instruction set construction method of industrial control.
The computer storage medium includes, for example, a U disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RandomAccess Memory, RAM), a magnetic disk, or an optical disk, etc., which can store program codes.
Based on the same inventive concept, the embodiment of the application provides an intelligent terminal, which comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and execute an intelligent instruction set construction method of industrial control.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
The foregoing description of the preferred embodiments of the application is not intended to limit the scope of the application in any way, including the abstract and drawings, in which case any feature disclosed in this specification (including abstract and drawings) may be replaced by alternative features serving the same, equivalent purpose, unless expressly stated otherwise. That is, each feature is one example only of a generic series of equivalent or similar features, unless expressly stated otherwise.