[go: up one dir, main page]

WO2022061925A1 - Method and apparatus for generating control chart of automatic control system, and computer readable medium - Google Patents

Method and apparatus for generating control chart of automatic control system, and computer readable medium Download PDF

Info

Publication number
WO2022061925A1
WO2022061925A1 PCT/CN2020/118545 CN2020118545W WO2022061925A1 WO 2022061925 A1 WO2022061925 A1 WO 2022061925A1 CN 2020118545 W CN2020118545 W CN 2020118545W WO 2022061925 A1 WO2022061925 A1 WO 2022061925A1
Authority
WO
WIPO (PCT)
Prior art keywords
control
control system
data item
knowledge graph
module
Prior art date
Application number
PCT/CN2020/118545
Other languages
French (fr)
Chinese (zh)
Inventor
王同舟
李冬
王岩
张传雨
彭延斌
熊磊
Original Assignee
西门子股份公司
西门子(中国)有限公司
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 西门子股份公司, 西门子(中国)有限公司 filed Critical 西门子股份公司
Priority to PCT/CN2020/118545 priority Critical patent/WO2022061925A1/en
Publication of WO2022061925A1 publication Critical patent/WO2022061925A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data

Definitions

  • the present invention relates to the technical field of automation control, and in particular, to a method, an apparatus and a computer-readable medium for generating a control diagram of an automation control system.
  • a knowledge graph is a knowledge base represented in the form of a semantic network. It describes the entities, concepts and their relationships in the objective world in the form of graphs.
  • the nodes represent entities or concepts, and the edges represent each entity/concept. It expresses the Internet information into the form of human cognition of the world, and provides a better ability to organize, manage and understand the massive information on the Internet.
  • the knowledge graph-based search engine can intuitively feed back structured knowledge to users in a graphical way. .
  • the existing knowledge graph is mainly a semantic model established for text data objects, which cannot be applied to the control charts widely used in the field of automation, and cannot realize the graph-to-graph search built on the control graphs, especially the control graphs in the control graphs.
  • the control logic relationship can only be obtained by the engineer's reasoning and analysis of the control diagram. The engineer cannot directly obtain the control logic relationship in the control diagram, and cannot intuitively and quickly determine the relationship between various entities and concepts, resulting in the engineer reading the control diagram. The difficulty is high and the degree of sharing is low.
  • the method, device and computer-readable medium for generating a control diagram of an automatic control system provided by the present invention can enable an engineer to quickly and accurately determine the control logic relationship in the automatic control system.
  • an embodiment of the present invention provides a method for generating a control diagram of an automated control system, including:
  • the knowledge graph records at least one component and at least one data item included in the automated control system, and records the relationship between each of the components and at least one of the data items.
  • each of the function blocks is used to implement at least one control strategy included in the automation control system, and different function blocks are used to implement different control strategies, each The control strategy implemented by the function block constitutes the control logic of the automatic control system, and the connection line between any two function blocks is used to represent the data flow between the two function blocks;
  • Each of the functional blocks is added to the knowledge graph, and each of the functional blocks is respectively connected with a target data item associated with it, wherein the target data item is the
  • the control strategy has data items with input and output relationships;
  • each of the target data items is connected in the knowledge graph to which the functional blocks are added to generate a control graph of the automatic control system.
  • the generation of at least two connected functional blocks includes:
  • At least one of the control strategies that can achieve the same control objective is packaged into one of the functional blocks, wherein any one of the control strategies and the other at least two of the functional blocks of the control strategies are included.
  • a data flow relationship exists between the control strategies;
  • each of the target data items is connected in the knowledge graph to which the functional blocks are added to generate a control graph of the automated control system.
  • each of the functional block chains includes at least two of the functional blocks connected in sequence;
  • the first target data item and the second target data item are connected in the knowledge graph to which the functional block is added.
  • the at least one hardware structure diagram is added to the knowledge graph, and each of the components is marked on the hardware structure diagram.
  • control diagram of the automatic control system after generating the control diagram of the automatic control system, it further includes:
  • the element association group includes the element and other elements directly connected to the element;
  • a visualization effect is respectively set for each of the element association groups, wherein the visualization effect is used to highlight each of the elements in the element association group after any one of the elements in the element association group is triggered .
  • control diagram of the automatic control system after generating the control diagram of the automatic control system, it further includes:
  • the modification operation includes at least one of the following: adding an element, deleting an element, adding a connection between elements, deleting a connection between elements, and adding label information, wherein the element includes the component, the data item or the functional block;
  • the modified control diagram is stored.
  • an embodiment of the present invention further provides an apparatus for generating a control diagram of an automated control system, including: a first acquiring module, a first generating module, an adding module, and a second generating module;
  • the first acquisition module is used to acquire the knowledge graph of the automated control system, wherein the knowledge graph records at least one component and at least one data item included in the automated control system, and records each of the a control logic relationship between a component and at least one of the data items;
  • the first generation module is used to generate at least two connected functional blocks, wherein each of the functional blocks is used to implement at least one control strategy included in the automatic control system, and different functional blocks are used to Implement different control strategies, the control strategies implemented by each of the functional blocks constitute the control logic of the automated control system, and the connection line between any two functional blocks is used to represent the relationship between the two functional blocks. data flow;
  • the adding module is configured to add each of the functional blocks generated by the first generation module to the knowledge graph acquired by the first acquisition module, and to associate each of the functional blocks with it respectively
  • the target data items are connected to each other, wherein, the target data items are data items that have an input-output relationship in the control strategy represented by the corresponding functional block;
  • the second generation module is configured to connect each of the target data items in the knowledge graph to which the function blocks are added by the adding module according to the data flow direction between the function blocks, and generate the Control diagram of an automated control system.
  • the first generating module includes: a first determining unit, a second determining unit, a packaging unit and a first connecting unit;
  • the first determination unit configured to determine at least two of the control strategies included in the automatic control system
  • the second determining unit is configured to respectively determine the control objectives that can be achieved by each of the control strategies determined by the first determining unit, and respectively determine the relationship between each of the control strategies and the other control strategies data flow relationship;
  • the packaging unit is configured to package at least one of the control strategies capable of realizing the same control target determined by the second determination unit into one of the functional blocks, wherein at least two of the control strategies are included There is a data flow relationship between any one of the control strategies in the functional blocks of the strategy and at least one of the other control strategies;
  • the first connection unit is configured to connect each of the functional blocks generated by the packaging unit with a data flow relationship.
  • the second generating module includes: a third determining unit, a fourth determining unit, a fifth determining unit, and a second connecting unit;
  • the third determination unit is configured to determine at least one function block chain according to the data flow direction between the function blocks, wherein each of the function block chains includes at least two of the functions connected in sequence Piece;
  • the fourth determining unit is configured to, for each of the functional block chains determined by the third determining unit, determine the first functional block and the second functional block respectively located at both ends of the functional block chain;
  • the fifth determination unit is configured to determine the first target data item connected to the first function block determined by the fourth determination unit, and determine the first target data item connected to the first function block determined by the fourth determination unit.
  • the second connecting unit is configured to connect the first target data item determined by the fifth determining unit with the second target data item in the knowledge graph to which the function block is added.
  • the automatic control system control map generating device further includes: a second acquiring module
  • the second acquisition module is configured to acquire at least one hardware structure diagram included in the automatic control system, add the at least one hardware structure diagram to the knowledge graph, and mark each of the components in the on the hardware structure diagram.
  • the automatic control system control map generating device further includes: a setting module
  • the setting module is configured to, for any element in the control diagram, determine an element association group corresponding to the element, and set a visualization effect for each of the element association groups, wherein the element includes all the elements.
  • the component, the data item or the function block, the element association group corresponding to one of the elements includes the element and other elements directly connected to the element, and the visualization effect is used in one of the described elements. After any one of the elements in the element association group is triggered, each of the elements in the element association group is highlighted.
  • an embodiment of the present invention further provides another apparatus for generating a control diagram of an automated control system, including: at least one memory and at least one processor;
  • the at least one memory for storing a machine-readable program
  • the at least one processor is configured to invoke the machine-readable program to execute the method for generating a control diagram of an automated control system provided by the first aspect or any possible implementation manner of the first aspect.
  • an embodiment of the present invention further provides a computer-readable medium, where computer instructions are stored on the computer-readable medium, and when executed by a processor, the computer instructions cause the processor to execute the above-mentioned first A method for generating a control chart of an automated control system provided by the aspect or any possible implementation manner of the first aspect.
  • the method, device, and computer-readable medium for generating a control graph of an automated control system provided by the embodiments of the present invention, after acquiring the knowledge graph of the automated control system, at least two connected functional blocks are generated to represent the control strategy included in the automated control system , add the connected functional blocks to the acquired knowledge graph, and connect each functional block with the target data item associated with it, so that according to the data flow direction between the functional blocks, add the In the knowledge map of the function block, each target data item is connected to generate the control diagram of the automatic control system. It can be seen that after obtaining the knowledge graph of the automatic control system, the relationship between the components and data items in the automatic control system can be effectively and intuitively expressed in a graphical way with the help of the knowledge graph.
  • the connected functional blocks can realize the visualization of the control strategy, and then reason and analyze the connection relationship between the target data items according to the data flow direction between the functional blocks, so that the connection relationship between the target data items can describe each target data item.
  • the relationship between the target data items, and then the engineer can quickly and accurately determine the control logic relationship of the automatic control system through the generated control diagram.
  • FIG. 1 is a flowchart of a method for generating a control diagram of an automated control system provided by an embodiment of the present invention
  • FIG. 3 is a flowchart of another method for generating a control diagram of an automated control system provided by an embodiment of the present invention.
  • FIG. 4 is a knowledge map of an air conditioning and ventilation monitoring system including functional blocks provided by an embodiment of the present invention
  • FIG. 5 is a flowchart of another method for generating a control diagram of an automated control system provided by an embodiment of the present invention.
  • FIG. 6 is a control diagram of an air conditioning and ventilation monitoring system provided by an embodiment of the present invention.
  • FIG. 7 is a flowchart of yet another method for generating a control diagram of an automated control system provided by an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a device for generating a control diagram of an automated control system provided by an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a first generation module provided by an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a second generation module provided by an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of another automatic control system control diagram generation device provided by an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of yet another apparatus for generating a control diagram of an automated control system according to an embodiment of the present invention.
  • the first program module 211 The second program module 212: The third program module
  • PID control module 214 Structure diagram of temperature adjustment device 215: Structure diagram of ventilation monitoring system
  • the second generation module 805 The second acquisition module 806: The setting module
  • Update Module 901 Memory 902: Processor
  • an embodiment of the present invention provides a method 100 for generating a control diagram of an automated control system, and the method may include the following steps:
  • Step 101 Obtain a knowledge graph of the automated control system, wherein the knowledge graph records at least one component and at least one data item included in the automated control system, and records the control logic relationship between each component and at least one data item;
  • Step 102 Generate at least two connected functional blocks, wherein each functional block is used to implement at least one control strategy included in the automation control system, different functional blocks are used to implement different control strategies, and the control implemented by each functional block
  • the strategy constitutes the control logic of the automation control system, and the connection line between any two function blocks is used to represent the data flow between the two function blocks;
  • Step 103 Add each functional block to the knowledge graph, and connect each functional block with its associated target data item, wherein the target data item is the control strategy represented by the corresponding functional block that has an input-output relationship. data item;
  • Step 104 According to the data flow direction between the function blocks, connect each target data item in the knowledge graph to which the function blocks are added to generate a control diagram of the automatic control system.
  • the method for generating a control graph of an automated control system After acquiring the knowledge graph of the automated control system, at least two connected functional blocks are generated to represent the control strategy included in the automated control system, and each connected functional block is generated. Function blocks are added to the acquired knowledge graph, and each function block is connected to its associated target data item, so that according to the data flow direction between the function blocks, the knowledge graph with the function blocks is added. Each target data item is connected to generate the control chart of the automatic control system. It can be seen that after obtaining the knowledge graph of the automatic control system, the relationship between the components and data items in the automatic control system can be effectively and intuitively expressed in a graphical way with the help of the knowledge graph.
  • the connected functional blocks can realize the visualization of the control strategy, and then reason and analyze the connection relationship between the target data items according to the data flow direction between the functional blocks, so that the connection relationship between the target data items can describe the target.
  • the relationship between data items, and then the engineer can quickly and accurately determine the control logic relationship in the automatic control system through the generated control diagram.
  • the knowledge graph that has been constructed in advance may be directly acquired, or the knowledge graph may be constructed by yourself.
  • the acquired knowledge graph includes each component and data item in the automatic control system, and also includes the control logic relationship between components, between data items, and between components and data items represented by connecting lines, wherein the above-mentioned control logic
  • the relationship includes the control relationship between components and data items, the description relationship between data items and component attributes, the control relationship between components, and the description relationship between data.
  • the control logic relationship between each component, between data items, and between components and data items is a piece of information, so converting text information into structured data can not only help the computer to quickly understand the automatic control system, but also help the computer to quickly understand the automatic control system.
  • the graphical method is also convenient for computer storage. At the same time, engineers no longer need to reason about the control logic relationship in the automatic control system from a large number of texts, which reduces the difficulty of acquisition, so that engineers can intuitively obtain and quickly understand the control logic relationship in the automatic control system. .
  • the function block generated in step 102 may be an organization module, a program module, an arithmetic module, a control module, a logic module, a math module, a selection module, a timer module, or a custom module, etc., each of which All function blocks can implement at least one control strategy in the automation control system, and different function blocks are used to implement different control strategies.
  • the control logic of the automation control system is divided into multiple function blocks, the function blocks that interact with each other are connected according to the data flow relationship between the function blocks.
  • the connection relationship between the function blocks can deduce the control logic of the entire automation control system, so that the control process of the automation control system can be visualized.
  • the input-output relationship between each function block and each data item needs to be determined first. If a data item is output by a function block or will be input to the function block, the data item is determined as the target data item of the function block, and then each function block is connected to its target data item, wherein the same data item may be used as a different function block , and different data items can be used as the target data items of the same function block. In this way, the function blocks are added to the knowledge graph, and the function blocks are connected with their corresponding target data items.
  • the relationship between the components, the relationship between the component and the data item, and the relationship between the data item and the data item can be determined according to the knowledge graph.
  • the relationship between function blocks is still unable to determine the relationship between some data items, so it is still impossible to intuitively determine the entire control logic of the automation control system.
  • the implicit control logic relationship between each target data item can be inferred according to the data flow direction between each functional block, so that each target data item with an implicit control logic relationship can be connected in the knowledge graph.
  • Generate a control diagram at this time the control diagram can reflect all the control logic of the automatic control system. Therefore, the engineer can quickly and accurately determine the control logic in the automatic control system according to the generated control diagram, without the need for reasoning and analysis of the automatic control system.
  • FIG. 2 shows a knowledge graph 200 in an air conditioning and ventilation monitoring system in the field of building automation in one embodiment.
  • components or data items are represented by circles, and the components and the The control logic relationship between the data items is represented by lines with arrows, and the components include the temperature adjustment device 201, the sensor 202 and the ventilation damper 203, and the data items include the set temperature 204, the current temperature 205, the damper opening 206, Temperature 207, temperature value 208, and temperature unit 209, wherein the temperature adjustment device 201 controls the set temperature 204, the sensor 202 detects the current temperature 205, and the ventilation damper 203 has the damper opening 206 parameter, the set temperature
  • the data forms of 204 and the current temperature 205 are both temperature 207, and the temperature 207 consists of the value 208 of the temperature and the unit 209 of the temperature.
  • step 102 on the basis of the method for generating a control diagram of an automated control system shown in FIG. 1 , as shown in FIG. 3 , the generation of at least two connected functional blocks in step 102 can be implemented in the following manner:
  • Step 301 Determine at least two control strategies included in the automated control system
  • Step 302 respectively determine the control objectives that each control strategy can achieve, and respectively determine the data flow relationship between each control strategy and other control strategies;
  • Step 303 Package at least one control strategy that can achieve the same control objective into a functional block, wherein there is a data flow relationship between any control strategy in the functional block including at least two control strategies and at least one other control strategy ;
  • Step 304 Connect each functional block with a data flow relationship.
  • At least two control strategies included in the automatic control system are first determined, then the control objectives that can be achieved by each control strategy are determined respectively, and the data flow between each control strategy and other control strategies is determined. Then, each control strategy that can achieve the same control objective is packaged into a functional block, and there is a data flow relationship between any control strategy in the functional block and at least one other control strategy.
  • the data flow relationship between the function blocks can be determined according to the data flow relationship, and then the function blocks that have the data flow relationship are related to each other. Connections are used to characterize the control logic between functional blocks.
  • each functional block After adding the generated functional blocks to the knowledge graph, it is first necessary to determine the input-output relationship between each functional block and each data item. If a data item is output by a functional block or will be input to the function block, the data item is determined as the target data item of the function block, and then each function block is connected to its target data item respectively.
  • each connected functional block is added to the knowledge graph shown in FIG. 2 , and each functional block is connected with its associated target data item to obtain the knowledge shown in FIG. 4 .
  • Atlas 300 As shown in Figure 4, in the knowledge graph, the function blocks are represented by boxes, the input-output relationship between the function block and its target data item is represented by the line segment with direction, and the data flow relationship between the function blocks is also represented by the line segment with direction. Line segment representation.
  • the function block includes a first program module 210, a second program module 211, a third program module 212, and a PID control module 213. The output data of the first program module 210 is input to the third program module 212 via the PID control module 213.
  • the second program module The output data of the module 211 is input to the third program module 212 via the PID control module 213 . Since the first program module 210 can control the set temperature 204 , the first program module 210 is connected with the set temperature 204 . Since the second program module 211 can control the current temperature 205 , the second program module 211 is connected with the current temperature 205 . Since the third program module 212 can control the damper opening degree 206 , the third program module 212 is connected with the damper opening degree 206 .
  • the generated at least two connected function blocks may be referred to as a function block diagram
  • the function block diagram may be used in a graphic language for programmable logic controller design, which describes the functions between the input and the output and
  • the connecting lines are displayed in the form of blocks, and the control strategies that can be achieved by each control strategy are determined by acquiring each control strategy included in the automatic control system, and the control strategies that can achieve the same control goal are packaged into a functional block.
  • Such different function blocks can achieve different control objectives, and the connection relationship between each function block is determined according to the data flow relationship between each control strategy. Therefore, the programming method of the function block diagram can simply and intuitively represent the automation system. Control applications, and even descriptions of control diagrams containing complex control functions, allow engineers to intuitively understand the control process in an automated system.
  • each target data item is added to the knowledge graph with the function blocks.
  • Connected to generate the control diagram of the automation control system which can be achieved in the following ways:
  • Step 501 Determine at least one function block chain according to the data flow direction between the function blocks, wherein each function block chain includes at least two function blocks connected in sequence;
  • Step 502 For each function block chain, determine the first function block and the second function block respectively located at both ends of the function block chain;
  • Step 503 for each functional block chain, determine the first target data item connected with the first functional block, and determine the second target data item connected with the second functional block;
  • Step 504 For each function block chain, connect the first target data item with the second target data item in the knowledge graph to which the function block is added.
  • each function block chain has multiple function blocks connected in sequence. For each function block chain, first determine the first function block and the second function block located at both ends of the function block chain, and then determine the first target data item connected to the first function block and the second function block. and then connect the first target data item with the second target data item in the knowledge graph with function blocks added to generate the control diagram of the automatic control system.
  • each function block chain has multiple function blocks connected in sequence.
  • Different control targets correspond to different data items in the knowledge graph, so the function blocks corresponding to the target data items can be determined, and then the two function blocks at both ends of the function block chain can be determined.
  • the function block is connected with two different target data items, so according to the data flow direction of the function block chain, it can be inferred that there is an implicit control logic relationship between the two target data items, so as to connect the two target data items , so that the intricate control logic relationship can be displayed intuitively. Therefore, engineers can quickly and accurately determine the control logic in the automatic control system without the need for reasoning and analysis of the automatic control system.
  • the control diagram shown in FIG. 6 is obtained after connecting the target data items in FIG. 4 with implicit control logic relationships respectively.
  • the control diagram of the air conditioning and ventilation monitoring system in the building automation field includes two function block chains, wherein the first function block chain is: the first program module 210--PID control module 213-- The third program module 212, the second function block chain is: the second program module 211--PID control module 213--the third program module 212.
  • the target data item connected to the program module 210 is the set temperature 204
  • the target data item connected to the second program module 211 is the current temperature 205
  • the target data item connected to the third program module 212 is the damper opening 206 , then connect the set temperature 204 and the damper opening 206, and connect the current temperature 205 and the damper opening 206, which means that the set temperature 204 can control the damper opening 206, and the current temperature 205 can control the damper opening 206 .
  • At least one hardware structure diagram is added to the knowledge graph, and each component is marked on the hardware structure diagram.
  • each hardware structure diagram included in the automated control system is acquired, and each hardware structure diagram is added to the knowledge graph , improve the readability and visualization of the knowledge graph, and then mark each component in the knowledge graph on the hardware structure diagram where the component exists, and further associate the knowledge graph with the actual application scenario, so that the knowledge graph It is easier to understand and improves the information sharing degree of the control diagram in the automatic control system.
  • the control diagram in the control diagram of the air conditioning and ventilation monitoring system in the field of building automation, the control diagram also includes a temperature adjustment device structure diagram 214 and a ventilation monitoring system.
  • the method further includes:
  • the element association group corresponding to the element determines the element association group corresponding to the element, wherein the element includes a component, a data item or a function block, and the element association group corresponding to an element includes the element and the element directly related to the element. other elements of the connection;
  • a visualization effect is respectively set for each element association group, wherein the visualization effect is used to highlight each element in an element association group after any element in the element association group is triggered.
  • the element may be a component, a data item, or a function block
  • other elements directly connected to the element are determined, and combined into a Center the element association group that includes the element and other elements directly connected to the element, and then set the visualization for each element association group separately to highlight the target element centered on the element when the element is triggered Associate each element in the group, so that the engineer can quickly and accurately determine the control logic relationship for a certain element in the control diagram, and thus realize the search from diagram to diagram based on the diagram.
  • control chart generation method shown in Fig. 1 after generating the control chart of the automatic control system, further comprises:
  • the modification operation includes at least one of the following: adding an element, deleting an element, adding a connection between elements, deleting a connection between elements, and adding label information, wherein the element includes components, data items or function blocks;
  • the modified control diagram is stored.
  • the modified control chart is updated for storage, which increases the circulation of the control chart in the automation control system, and also improves the work efficiency of engineers, making it easier for engineers to reflect their design ideas in the control chart for display. and cooperation and exchanges.
  • control diagram of the air conditioning and ventilation monitoring system can be modified accordingly. Some sensors are deleted, and intelligent temperature sensors are added, and then the modified control diagram is updated for storage. This increase can improve the work efficiency of engineers, so that engineers can reflect their design ideas in the control diagram for display and cooperation and exchange , which further increases the flow of control charts in the automation control system.
  • FIG. 7 a method 700 for generating a control diagram of an automated control system provided by an embodiment of the present invention is described in detail below, which specifically includes:
  • Step 701 Obtain the knowledge graph of the automatic control system.
  • the knowledge graph records at least one component and at least one data item included in the automatic control system, and records the control logic relationship between each component and at least one data item.
  • Step 702 Determine at least two control strategies included in the automatic control system.
  • Step 703 Determine the control objectives that can be achieved by each control strategy.
  • Step 704 Package at least one control strategy capable of achieving the same control objective into a functional block.
  • a data flow relationship exists between any control strategy in the functional block including at least two control strategies and at least one other control strategy.
  • Step 705 Generate at least two connected function blocks.
  • each functional block with a data flow relationship is connected, each functional block is used to implement at least one control strategy included in the automated control system, different functional blocks are used to implement different control strategies, and the control implemented by each functional block
  • the strategy constitutes the control logic of the automatic control system, and the connection line between any two function blocks is used to represent the data flow between the two function blocks.
  • Step 706 Add each functional block to the knowledge graph.
  • each function block is respectively connected with a target data item associated with it, and the target data item is a data item whose control strategy represented by the corresponding function block has an input-output relationship.
  • Step 707 Add the hardware structure diagram to the knowledge graph.
  • At least one hardware structure diagram included in the automation control system is acquired, the at least one hardware structure diagram is added to the knowledge graph, and each component is marked on the hardware structure diagram.
  • Step 708 Determine at least one functional block chain.
  • At least one functional block chain is determined according to the data flow direction between the functional blocks, wherein each functional block chain includes at least two functional blocks connected in sequence.
  • Step 709 Determine the first function block and the second function block respectively located at both ends of each function block chain.
  • Step 710 Determine two target data items respectively connected to the function blocks at both ends of each function block chain.
  • a first target data item connected with the first function block is determined, and a second target data item connected with the second function block is determined.
  • Step 711 Generate a control diagram of the automatic control system.
  • the first target data item and the second target data item are connected in the knowledge graph to which the function block is added, so as to generate a control graph of the automatic control system.
  • step 707 can be executed at any position between step 701 and step 711 .
  • an embodiment of the present invention provides an automatic control system control diagram generating device 800, including: a first obtaining module 801, a first generating module 802, an adding module 803, and a second generating module 804;
  • the first acquisition module 801 is used to acquire the knowledge graph of the automated control system, wherein the knowledge graph records at least one component and at least one data item included in the automated control system, and records the relationship between each component and at least one data item. control logic relationship;
  • the first generation module 802 is used to generate at least two connected function blocks, wherein each function block is used to implement at least one control strategy included in the automation control system, and different function blocks are used to implement different control strategies, and each function block is used to implement different control strategies.
  • the control strategy implemented by the function block constitutes the control logic of the automatic control system, and the connection line between any two function blocks is used to represent the data flow between the two function blocks;
  • the adding module 803 is configured to add each functional block generated by the first generating module 802 to the knowledge graph acquired by the first acquiring module 801, and respectively connect each functional block with its associated target data item, wherein,
  • the target data item is a data item that has an input-output relationship in the control strategy represented by the corresponding function block;
  • the second generating module 804 is configured to connect each target data item in the knowledge graph to which the functional blocks are added by the adding module 803 according to the data flow direction between the functional blocks to generate a control graph of the automatic control system.
  • the first acquiring module 801 can be used to perform step 101 in the above method embodiments
  • the first generating module 802 can be used to perform step 102 in the above method embodiments
  • the adding module 803 can be used to perform the above method embodiments
  • the second generation module 804 may be configured to execute step 104 in the above method embodiment.
  • the first generating module 802 includes: a first determining unit 8021, a second determining unit 8022, a packaging unit 8023, and a first determining unit 8022. a connection unit 8024;
  • a first determining unit 8021 configured to determine at least two control strategies included in the automated control system
  • the second determining unit 8022 is used to respectively determine the control objectives that can be achieved by each control strategy determined by the first determining unit 8021, and respectively determine the data flow relationship between each control strategy and other control strategies;
  • the packaging unit 8023 is configured to package at least one control strategy capable of realizing the same control target determined by the second determining unit 8022 into a functional block, wherein any control strategy in the functional block including at least two control strategies is included There is a data flow relationship with at least one other control strategy;
  • the first connection unit 8024 is configured to connect the functional blocks generated by the packaging unit 8023 that have a data flow relationship.
  • the first determining unit 8021 may be configured to perform step 301 in the foregoing method embodiments
  • the second determining unit 8022 may be configured to perform step 302 in the foregoing method embodiments
  • the packaging unit 8023 may be configured to perform the foregoing method implementations
  • the first connection unit 8024 may be configured to perform step 304 in the above method embodiments.
  • the second generating module 804 includes: a third determining unit 8041 , a fourth determining unit 8042 , and a fifth determining unit 8043 and the second connection unit 8044;
  • the third determining unit 8041 is configured to determine at least one functional block chain according to the data flow direction between the functional blocks, wherein each functional block chain includes at least two functional blocks connected in sequence;
  • a fourth determining unit 8042 configured to determine, for each functional block chain determined by the third determining unit 8041, the first functional block and the second functional block respectively located at both ends of the functional block chain;
  • the fifth determination unit 8043 is configured to determine the first target data item connected to the first functional block determined by the fourth determination unit 8042, and to determine the first target data item connected to the second functional block determined by the fourth determination unit 8042. Two target data items;
  • the second connecting unit 8044 is configured to connect the first target data item determined by the fifth determining unit 8043 with the second target data item in the knowledge graph to which the function block is added.
  • the third determining unit 8041 may be configured to perform step 501 in the foregoing method embodiments
  • the fourth determining unit 8042 may be configured to perform step 502 in the foregoing method embodiments
  • the fifth determining unit 8043 may be configured to execute the foregoing method embodiments.
  • the second connection unit 8044 may be configured to perform step 504 in the above method embodiment.
  • the device further includes: a second obtaining module 805 ;
  • the second acquiring module 805 is configured to acquire at least one hardware structure diagram included in the automation control system, add the at least one hardware structure diagram to the knowledge graph, and mark each component on the hardware structure diagram.
  • the device further includes: a setting module 806 ;
  • the setting module 806 is used to determine an element association group corresponding to the element for any element in the control diagram, and set a visualization effect for each element association group respectively, wherein the element includes a component, a data item or a function block,
  • the element association group corresponding to an element includes the element and other elements directly connected to the element.
  • the visualization effect is used to highlight each element in the element association group after any element in the element association group is triggered. .
  • the device further includes: an update module 807;
  • the update module 807 is used to detect whether the user has performed a modification operation on the control diagram, and after detecting that the user has performed a modification operation on the control diagram, the modified control diagram is stored, wherein the modification operation includes at least one of the following: Add elements, delete elements, add connections between elements, delete connections between elements, and add label information.
  • Elements include components, data items, or function blocks.
  • an embodiment of the present invention provides an automatic control system control diagram generating apparatus 900, including: at least one memory 901 and at least one processor 902;
  • the at least one memory 901 configured to store executable instructions
  • the at least one processor 902 coupled with the at least one memory 901, executes the method for generating a control diagram of an automated control system in any embodiment of the present invention.
  • the present invention also provides a computer-readable medium storing instructions for causing a machine to perform the method for generating a control diagram for an automated control system as described herein.
  • a system or device equipped with a storage medium on which software program codes for implementing the functions of any of the above-described embodiments are stored, and which enables a computer (or CPU or MPU of the system or device) ) to read and execute the program code stored in the storage medium.
  • the program code itself read from the storage medium can implement the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code form part of the present invention.
  • Examples of storage media for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (eg CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), Magnetic tapes, non-volatile memory cards and ROMs.
  • the program code may be downloaded from a server computer over a communications network.
  • the program code read from the storage medium is written into the memory provided in the expansion board inserted into the computer or into the memory provided in the expansion module connected with the computer, and then based on the program code
  • the instructions cause the CPU or the like installed on the expansion board or expansion module to perform part and all of the actual operations, so as to realize the functions of any one of the above-mentioned embodiments.
  • the method, device, and computer-readable medium for generating a control diagram of an automated control system provided by various embodiments of the present invention have at least the following beneficial effects:
  • At least two connected function blocks are generated to represent the control strategy included in the automated control system, and each connected functional block is added to the acquired and connect each functional block with its associated target data item respectively, so that according to the data flow direction between each functional block, each target data item is added to the knowledge graph with the functional block added. It is connected to generate the control diagram of the automation control system. It can be seen that after obtaining the knowledge graph of the automatic control system, the relationship between the components and data items in the automatic control system can be effectively and intuitively expressed in a graphical way with the help of the knowledge graph.
  • the connected functional blocks can realize the visualization of the control strategy, and then reason and analyze the connection relationship between the target data items according to the data flow direction between the functional blocks, so that the connection relationship between the target data items can describe the target.
  • the relationship between data items, and then the engineer can quickly and accurately determine the control logic relationship in the automatic control system through the generated control diagram.
  • the generated at least two connected function blocks can be called a function block diagram, and the function block diagram can be used in a graphic language for programmable logic controller design, which describes the relationship between input and output.
  • the functions are displayed in the form of blocks through connecting lines.
  • a plurality of functional block chains can be determined, and each functional block chain has a plurality of functional blocks connected in sequence.
  • Blocks correspond to different control targets, and different control targets correspond to different data items in the knowledge graph, so the function block corresponding to the target data item can be determined, and then the two function blocks at both ends of the function block chain can be determined.
  • the two function blocks are connected with two different target data items, so according to the data flow direction of the function block chain, it can be inferred that there is an implicit control logic relationship between the two target data items, so that the two target data items are connected. connected, so that the intricate control logic relationship can be displayed intuitively. Therefore, engineers can quickly and accurately determine the control logic in the automatic control system without the need for reasoning and analysis of the automatic control system.
  • the element can be a component, a data item or a function block
  • other elements directly connected to the element are determined, and combined into a
  • the element as the center includes the element association group of the element and other elements directly connected to the element, and then sets the visualization effect for each element association group separately, so that after the element is triggered, the element centered on the element is highlighted.
  • the target element is associated with each element in the group, so that the engineer can quickly and accurately determine the control logic relationship for a certain element in the control diagram, thus realizing the search from diagram to diagram based on the diagram.
  • the modified control chart is updated for storage, which increases the circulation of the control chart in the automation control system, and also improves the work efficiency of the engineer, making it easier for the engineer to reflect his design ideas in the control chart. Showcase and collaborate.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Programmable Controllers (AREA)

Abstract

The present invention provides a method and apparatus for generating a control chart of an automatic control system, and a computer readable medium. The method comprises: acquiring a knowledge graph of the automation control system, the knowledge graph recording at least one component, at least one data item and a control logic relationship between the component and the data item, which are included in the automation control system; generating at least two functional blocks connected with each other, wherein each functional block is used to implement at least one control policy included in the automatic control system, and the control policies implemented by each functional block constitute a control logic of the automatic control system; adding each functional block to the knowledge graph, and respectively connecting each functional block to an associated target data item; and according to the direction of data transfer between the functional blocks, connecting the target data items in the knowledge graph added with the functional blocks, to generate a control chart of the automatic control system. This solution enables engineers to quickly and accurately determine control logic relationships in an automatic control system.

Description

自动化控制系统控制图生成方法、装置和计算机可读介质Automatic control system control diagram generation method, apparatus and computer readable medium 技术领域technical field
本发明涉及自动化控制技术领域,尤其涉及自动化控制系统控制图生成方法、装置和计算机可读介质。The present invention relates to the technical field of automation control, and in particular, to a method, an apparatus and a computer-readable medium for generating a control diagram of an automation control system.
背景技术Background technique
知识图谱是一种以语义网络形式表示的知识库,用图的形式描述客观世界的实体、概念及其相互之间的关系,其中的节点代表实体或者概念,边代表实体/概念之间的各种语义关系,将互联网信息表达成人类认知世界的形式,提供了一种更好地组织、管理和理解互联网海量信息的能力。通过知识图谱,可以实现从网页链接向概念链接转变,支持用户按主题而不是字符串检索,从而真正实现语义检索,基于知识图谱的搜索引擎,能够以图形方式直观地向用户反馈结构化的知识。A knowledge graph is a knowledge base represented in the form of a semantic network. It describes the entities, concepts and their relationships in the objective world in the form of graphs. The nodes represent entities or concepts, and the edges represent each entity/concept. It expresses the Internet information into the form of human cognition of the world, and provides a better ability to organize, manage and understand the massive information on the Internet. Through the knowledge graph, the transition from web links to conceptual links can be realized, and users can search by topic instead of strings, so as to truly realize semantic search. The knowledge graph-based search engine can intuitively feed back structured knowledge to users in a graphical way. .
现有的知识图谱主要是针对文本数据对象建立的语义模型,无法适用于自动化领域中广泛使用的控制图,更无法实现建立在控制图上的由图到图的搜索,尤其是控制图中的控制逻辑关系,只能依靠工程师对控制图的推理分析获得,工程师无法直接获取控制图中的控制逻辑关系,无法直观快速地确定各实体、概念之间的相互关系,致使工程师在读取控制图时难度大、共享程度低。The existing knowledge graph is mainly a semantic model established for text data objects, which cannot be applied to the control charts widely used in the field of automation, and cannot realize the graph-to-graph search built on the control graphs, especially the control graphs in the control graphs. The control logic relationship can only be obtained by the engineer's reasoning and analysis of the control diagram. The engineer cannot directly obtain the control logic relationship in the control diagram, and cannot intuitively and quickly determine the relationship between various entities and concepts, resulting in the engineer reading the control diagram. The difficulty is high and the degree of sharing is low.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明提供的自动化控制系统控制图生成方法、装置和计算机可读介质,能够使工程师快速而准确的确定自动化控制系统中的控制逻辑关系。In view of this, the method, device and computer-readable medium for generating a control diagram of an automatic control system provided by the present invention can enable an engineer to quickly and accurately determine the control logic relationship in the automatic control system.
第一方面,本发明实施例提供了自动化控制系统控制图生成方法,包括:In a first aspect, an embodiment of the present invention provides a method for generating a control diagram of an automated control system, including:
获取所述自动化控制系统的知识图谱,其中,所述知识图谱记录有所述自动化控制系统包括的至少一个组件和至少一个数据项,并记录有每一个所述组件与至少一个所述 数据项之间的控制逻辑关系;Obtain the knowledge graph of the automated control system, wherein the knowledge graph records at least one component and at least one data item included in the automated control system, and records the relationship between each of the components and at least one of the data items. The control logic relationship between them;
生成相连接的至少两个功能块,其中,每一个所述功能块用于实现所述自动化控制系统包括的至少一个控制策略,不同的所述功能块用于实现不同的所述控制策略,各所述功能块实现的所述控制策略组成所述自动化控制系统的控制逻辑,任意两个功能块之间的连接线用于表征该两个功能块之间的数据流;Generate at least two connected function blocks, wherein each of the function blocks is used to implement at least one control strategy included in the automation control system, and different function blocks are used to implement different control strategies, each The control strategy implemented by the function block constitutes the control logic of the automatic control system, and the connection line between any two function blocks is used to represent the data flow between the two function blocks;
将各所述功能块添加到所述知识图谱中,并分别将每一个所述功能块和与其相关联的目标数据项相连接,其中,所述目标数据项为相应功能块所表征的所述控制策略存在输入输出关系的数据项;Each of the functional blocks is added to the knowledge graph, and each of the functional blocks is respectively connected with a target data item associated with it, wherein the target data item is the The control strategy has data items with input and output relationships;
根据所述功能块之间的数据流转方向,在添加有所述功能块的所述知识图谱中将各所述目标数据项相连接,生成所述自动化控制系统的控制图。According to the data flow direction between the functional blocks, each of the target data items is connected in the knowledge graph to which the functional blocks are added to generate a control graph of the automatic control system.
可选地,所述生成相连接的至少两个功能块,包括:Optionally, the generation of at least two connected functional blocks includes:
确定所述自动化控制系统所包括的至少两个所述控制策略;determining at least two of the control strategies included in the automated control system;
分别确定每一个所述控制策略所能够实现的控制目标,并分别确定每一个所述控制策略与其他所述控制策略之间的数据流转关系;Respectively determine the control objectives that can be achieved by each of the control strategies, and determine the data flow relationship between each of the control strategies and the other control strategies;
将能够实现相同所述控制目标的至少一个所述控制策略打包成一个所述功能块,其中,包括有至少两个所述控制策略的所述功能块中的任一所述控制策略与其他至少一个所述控制策略之间存在数据流转关系;At least one of the control strategies that can achieve the same control objective is packaged into one of the functional blocks, wherein any one of the control strategies and the other at least two of the functional blocks of the control strategies are included. A data flow relationship exists between the control strategies;
将存在数据流转关系的各所述功能块相连接。Each of the functional blocks in the data flow relationship is connected.
可选地,所述根据所述功能块之间的数据流转方向,在添加有所述功能块的所述知识图谱中将各所述目标数据项相连接,生成所述自动化控制系统的控制图,包括:Optionally, according to the data flow direction between the functional blocks, each of the target data items is connected in the knowledge graph to which the functional blocks are added to generate a control graph of the automated control system. ,include:
根据所述功能块之间的数据流转方向,确定至少一个功能块链,其中,每一个所述功能块链包括有顺次相连接的至少两个所述功能块;According to the data flow direction between the functional blocks, at least one functional block chain is determined, wherein each of the functional block chains includes at least two of the functional blocks connected in sequence;
针对每一个所述功能块链,均执行:For each of the described function block chains, execute:
确定分别位于该功能块链两端的第一功能块和第二功能块;Determine the first function block and the second function block respectively located at both ends of the function block chain;
确定与所述第一功能块相连接的第一目标数据项,并确定与所述第二功能块相连接的第二目标数据项;determining a first target data item connected to the first functional block, and determining a second target data item connected to the second functional block;
在添加有所述功能块的所述知识图谱中将所述第一目标数据项与所述第二目标数据项相连接。The first target data item and the second target data item are connected in the knowledge graph to which the functional block is added.
可选地,在所述获取所述自动化控制系统的知识图谱之后,且在所述生成所述自动化控制系统的控制图之前,进一步包括:Optionally, after the acquiring the knowledge graph of the automated control system and before the generating the control graph of the automated control system, further comprising:
获取所述自动化控制系统所包括的至少一个硬件结构图;Obtain at least one hardware structure diagram included in the automation control system;
将所述至少一个硬件结构图添加到所述知识图谱中,并将各所述组件标注在所述硬件结构图上。The at least one hardware structure diagram is added to the knowledge graph, and each of the components is marked on the hardware structure diagram.
可选地,在所述生成所述自动化控制系统的控制图之后,进一步包括:Optionally, after generating the control diagram of the automatic control system, it further includes:
针对所述控制图中的任意一个元素,确定与该元素相对应的元素关联组,其中,所述元素包括所述组件、所述数据项或所述功能块,一个所述元素对应的所述元素关联组中包括有该元素以及与该元素直接相连接的其他元素;For any element in the control diagram, determine an element association group corresponding to the element, wherein the element includes the component, the data item or the function block, and the element corresponding to the element The element association group includes the element and other elements directly connected to the element;
分别针对每一个所述元素关联组设置可视化效果,其中,所述可视化效果用于在一个所述元素关联组中的任一所述元素被触发后突出显示该元素关联组中的各个所述元素。A visualization effect is respectively set for each of the element association groups, wherein the visualization effect is used to highlight each of the elements in the element association group after any one of the elements in the element association group is triggered .
可选地,在所述生成所述自动化控制系统的控制图之后,进一步包括:Optionally, after generating the control diagram of the automatic control system, it further includes:
检测用户是否对所述控制图进行了修改操作,其中,所述修改操作包括如下至少一项:新增元素、删除元素、增加元素之间的连接、删除元素之间的连接和增加标注信息,其中,所述元素包括所述组件、所述数据项或所述功能块;Detecting whether the user has performed a modification operation on the control graph, wherein the modification operation includes at least one of the following: adding an element, deleting an element, adding a connection between elements, deleting a connection between elements, and adding label information, wherein the element includes the component, the data item or the functional block;
当检测到用户对所述控制图进行了修改操作后,对被修改后的所述控制图进行存储。After it is detected that the user has performed a modification operation on the control diagram, the modified control diagram is stored.
第二方面,本发明实施例还提供了一种自动化控制系统控制图生成装置,包括:第一获取模块、第一生成模块、添加模块和第二生成模块;In a second aspect, an embodiment of the present invention further provides an apparatus for generating a control diagram of an automated control system, including: a first acquiring module, a first generating module, an adding module, and a second generating module;
所述第一获取模块,用于获取所述自动化控制系统的知识图谱,其中,所述知识图谱记录有所述自动化控制系统包括的至少一个组件和至少一个数据项,并记录有每一个所述组件与至少一个所述数据项之间的控制逻辑关系;The first acquisition module is used to acquire the knowledge graph of the automated control system, wherein the knowledge graph records at least one component and at least one data item included in the automated control system, and records each of the a control logic relationship between a component and at least one of the data items;
所述第一生成模块,用于生成相连接的至少两个功能块,其中,每一个所述功能块 用于实现所述自动化控制系统包括的至少一个控制策略,不同的所述功能块用于实现不同的所述控制策略,各所述功能块实现的所述控制策略组成所述自动化控制系统的控制逻辑,任意两个功能块之间的连接线用于表征该两个功能块之间的数据流;The first generation module is used to generate at least two connected functional blocks, wherein each of the functional blocks is used to implement at least one control strategy included in the automatic control system, and different functional blocks are used to Implement different control strategies, the control strategies implemented by each of the functional blocks constitute the control logic of the automated control system, and the connection line between any two functional blocks is used to represent the relationship between the two functional blocks. data flow;
所述添加模块,用于将所述第一生成模块生成的各所述功能块添加到所述第一获取模块获取的所述知识图谱中,并分别将每一个所述功能块和与其相关联的目标数据项相连接,其中,所述目标数据项为相应功能块所表征的所述控制策略存在输入输出关系的数据项;The adding module is configured to add each of the functional blocks generated by the first generation module to the knowledge graph acquired by the first acquisition module, and to associate each of the functional blocks with it respectively The target data items are connected to each other, wherein, the target data items are data items that have an input-output relationship in the control strategy represented by the corresponding functional block;
所述第二生成模块,用于根据所述功能块之间的数据流转方向,在由添加模块添加有所述功能块的所述知识图谱中将各所述目标数据项相连接,生成所述自动化控制系统的控制图。The second generation module is configured to connect each of the target data items in the knowledge graph to which the function blocks are added by the adding module according to the data flow direction between the function blocks, and generate the Control diagram of an automated control system.
可选地,所述第一生成模块包括:第一确定单元、第二确定单元、打包单元和第一连接单元;Optionally, the first generating module includes: a first determining unit, a second determining unit, a packaging unit and a first connecting unit;
所述第一确定单元,用于确定所述自动化控制系统所包括的至少两个所述控制策略;the first determination unit, configured to determine at least two of the control strategies included in the automatic control system;
所述第二确定单元,用于分别确定由所述第一确定单元确定的每一个所述控制策略所能够实现的控制目标,并分别确定每一个所述控制策略与其他所述控制策略之间的数据流转关系;The second determining unit is configured to respectively determine the control objectives that can be achieved by each of the control strategies determined by the first determining unit, and respectively determine the relationship between each of the control strategies and the other control strategies data flow relationship;
所述打包单元,用于将能够实现相同的由所述第二确定单元确定的所述控制目标的至少一个所述控制策略打包成一个所述功能块,其中,包括有至少两个所述控制策略的所述功能块中的任一所述控制策略与其他至少一个所述控制策略之间存在数据流转关系;The packaging unit is configured to package at least one of the control strategies capable of realizing the same control target determined by the second determination unit into one of the functional blocks, wherein at least two of the control strategies are included There is a data flow relationship between any one of the control strategies in the functional blocks of the strategy and at least one of the other control strategies;
所述第一连接单元,用于将存在数据流转关系的由所述打包单元生成的各所述功能块相连接。The first connection unit is configured to connect each of the functional blocks generated by the packaging unit with a data flow relationship.
可选地,所述第二生成模块包括:第三确定单元、第四确定单元、第五确定单元和第二连接单元;Optionally, the second generating module includes: a third determining unit, a fourth determining unit, a fifth determining unit, and a second connecting unit;
所述第三确定单元,用于根据所述功能块之间的数据流转方向,确定至少一个功能块链,其中,每一个所述功能块链包括有顺次相连接的至少两个所述功能块;The third determination unit is configured to determine at least one function block chain according to the data flow direction between the function blocks, wherein each of the function block chains includes at least two of the functions connected in sequence Piece;
所述第四确定单元,用于针对由第三确定单元确定的每一个所述功能块链,确定分 别位于该功能块链两端的第一功能块和第二功能块;The fourth determining unit is configured to, for each of the functional block chains determined by the third determining unit, determine the first functional block and the second functional block respectively located at both ends of the functional block chain;
所述第五确定单元,用于确定与由所述第四确定单元确定的所述第一功能块相连接的第一目标数据项,并确定与由所述第四确定单元确定的所述第二功能块相连接的第二目标数据项;The fifth determination unit is configured to determine the first target data item connected to the first function block determined by the fourth determination unit, and determine the first target data item connected to the first function block determined by the fourth determination unit. The second target data item to which the two function blocks are connected;
所述第二连接单元,用于在添加有所述功能块的所述知识图谱中将由所述第五确定单元确定的所述第一目标数据项与所述第二目标数据项相连接。The second connecting unit is configured to connect the first target data item determined by the fifth determining unit with the second target data item in the knowledge graph to which the function block is added.
可选地,该自动化控制系统控制图生成装置进一步包括:第二获取模块;Optionally, the automatic control system control map generating device further includes: a second acquiring module;
所述第二获取模块,用于获取所述自动化控制系统所包括的至少一个硬件结构图,并将所述至少一个硬件结构图添加到所述知识图谱中,以及将各所述组件标注在所述硬件结构图上。The second acquisition module is configured to acquire at least one hardware structure diagram included in the automatic control system, add the at least one hardware structure diagram to the knowledge graph, and mark each of the components in the on the hardware structure diagram.
可选地,该自动化控制系统控制图生成装置进一步包括:设置模块;Optionally, the automatic control system control map generating device further includes: a setting module;
所述设置模块,用于针对所述控制图中的任意一个元素,确定与该元素相对应的元素关联组,并分别针对每一个所述元素关联组设置可视化效果,其中,所述元素包括所述组件、所述数据项或所述功能块,一个所述元素对应的所述元素关联组中包括有该元素以及与该元素直接相连接的其他元素,所述可视化效果用于在一个所述元素关联组中的任一所述元素被触发后突出显示该元素关联组中的各个所述元素。The setting module is configured to, for any element in the control diagram, determine an element association group corresponding to the element, and set a visualization effect for each of the element association groups, wherein the element includes all the elements. The component, the data item or the function block, the element association group corresponding to one of the elements includes the element and other elements directly connected to the element, and the visualization effect is used in one of the described elements. After any one of the elements in the element association group is triggered, each of the elements in the element association group is highlighted.
第三方面,本发明实施例还提供了另一种自动化控制系统控制图生成装置,包括:至少一个存储器和至少一个处理器;In a third aspect, an embodiment of the present invention further provides another apparatus for generating a control diagram of an automated control system, including: at least one memory and at least one processor;
所述至少一个存储器,用于存储机器可读程序;the at least one memory for storing a machine-readable program;
所述至少一个处理器,用于调用所述机器可读程序,执行上述第一方面或第一方面的任一可能的实现方式所提供的自动化控制系统控制图生成方法。The at least one processor is configured to invoke the machine-readable program to execute the method for generating a control diagram of an automated control system provided by the first aspect or any possible implementation manner of the first aspect.
第四方面,本发明实施例还提供了一种计算机可读介质,所述计算机可读介质上存储有计算机指令,所述计算机指令在被处理器执行时,使所述处理器执行上述第一方面或第一方面的任一可能的实现方式所提供的自动化控制系统控制图生成方法。In a fourth aspect, an embodiment of the present invention further provides a computer-readable medium, where computer instructions are stored on the computer-readable medium, and when executed by a processor, the computer instructions cause the processor to execute the above-mentioned first A method for generating a control chart of an automated control system provided by the aspect or any possible implementation manner of the first aspect.
本发明实施例提供的自动化控制系统控制图生成方法、装置和计算机可读介质,在获取自动化控制系统的知识图谱后,生成相连接的至少两个功能块以表征该自动化控制系统包括的控制策略,将相连接的各功能块添加到所获取到的知识图谱中,并分别将每一个功能块和与其相关联的目标数据项相连接,从而根据各功能块之间的数据流转方向在添加有功能块的知识图谱中将各目标数据项相连接,生成自动化控制系统的控制图。由此可见,在获取自动化控制系统的知识图谱后,借助知识图谱将自动化控制系统中的组件和数据项之间的关系以图形化的方式有效、直观的表达出来,通过在该知识图谱中添加相连接的各功能块,可以实现控制策略的可视化,然后根据各功能块之间的数据流转方向推理分析出目标数据项之间的连接关系,使得各目标数据项之间的连接关系能够描述各目标数据项之间的关联关系,进而工程师通过所生成的控制图能够快速而准确的确定自动化控制系统的控制逻辑关系。In the method, device, and computer-readable medium for generating a control graph of an automated control system provided by the embodiments of the present invention, after acquiring the knowledge graph of the automated control system, at least two connected functional blocks are generated to represent the control strategy included in the automated control system , add the connected functional blocks to the acquired knowledge graph, and connect each functional block with the target data item associated with it, so that according to the data flow direction between the functional blocks, add the In the knowledge map of the function block, each target data item is connected to generate the control diagram of the automatic control system. It can be seen that after obtaining the knowledge graph of the automatic control system, the relationship between the components and data items in the automatic control system can be effectively and intuitively expressed in a graphical way with the help of the knowledge graph. The connected functional blocks can realize the visualization of the control strategy, and then reason and analyze the connection relationship between the target data items according to the data flow direction between the functional blocks, so that the connection relationship between the target data items can describe each target data item. The relationship between the target data items, and then the engineer can quickly and accurately determine the control logic relationship of the automatic control system through the generated control diagram.
附图说明Description of drawings
本发明的其它特征、特点、优点和益处通过以下结合附图的详细描述将变得更加显而易见。Other features, characteristics, advantages and benefits of the present invention will become more apparent from the following detailed description taken in conjunction with the accompanying drawings.
图1是本发明一个实施例提供的一种自动化控制系统控制图生成方法的流程图;1 is a flowchart of a method for generating a control diagram of an automated control system provided by an embodiment of the present invention;
图2是本发明一个实施例提供的一种空调与通风监控系统的知识图谱;2 is a knowledge map of an air conditioning and ventilation monitoring system provided by an embodiment of the present invention;
图3是本发明一个实施例提供的另一种自动化控制系统控制图生成方法的流程图;3 is a flowchart of another method for generating a control diagram of an automated control system provided by an embodiment of the present invention;
图4是本发明一个实施例提供的一种包括功能块的空调与通风监控系统的知识图谱;4 is a knowledge map of an air conditioning and ventilation monitoring system including functional blocks provided by an embodiment of the present invention;
图5是本发明一个实施例提供的又一种自动化控制系统控制图生成方法的流程图;5 is a flowchart of another method for generating a control diagram of an automated control system provided by an embodiment of the present invention;
图6是本发明一个实施例提供的一种空调与通风监控系统的控制图;6 is a control diagram of an air conditioning and ventilation monitoring system provided by an embodiment of the present invention;
图7是本发明一个实施例提供的再一种自动化控制系统控制图生成方法的流程图;7 is a flowchart of yet another method for generating a control diagram of an automated control system provided by an embodiment of the present invention;
图8是本发明一个实施例提供的一种自动化控制系统控制图生成装置的示意图;8 is a schematic diagram of a device for generating a control diagram of an automated control system provided by an embodiment of the present invention;
图9是本发明一个实施例提供的一种第一生成模块的示意图;9 is a schematic diagram of a first generation module provided by an embodiment of the present invention;
图10是本发明一个实施例提供的一种第二生成模块的示意图;10 is a schematic diagram of a second generation module provided by an embodiment of the present invention;
图11是本发明一个实施例提供的另一种自动化控制系统控制图生成装置的示意图;11 is a schematic diagram of another automatic control system control diagram generation device provided by an embodiment of the present invention;
图12为本发明一个实施例提供的又一种自动化控制系统控制图生成装置的示意图。FIG. 12 is a schematic diagram of yet another apparatus for generating a control diagram of an automated control system according to an embodiment of the present invention.
附图标记列表:List of reference numbers:
100:自动化控制系统控制图生成方法100: Automatic control system control chart generation method
101:获取自动化控制系统的知识图谱101: Obtain the knowledge graph of the automation control system
102:生成相连接的至少两个功能块102: Generate at least two function blocks connected
103:将各功能块添加到知识图谱中103: Add each functional block to the knowledge graph
104:将各目标数据项相连接,生成自动化控制系统的控制图104: Connect each target data item to generate the control chart of the automation control system
201:温度调节装置       202:传感器             203:通风阻尼器201: Thermostat 202: Sensor 203: Ventilation damper
204:设定温度           205:当前温度           206:阻尼器开度204: Set temperature 205: Current temperature 206: Damper opening
207:温度               208:温度的值           209:温度的单位207: temperature 208: temperature value 209: temperature unit
210:第一程序模块       211:第二程序模块       212:第三程序模块210: The first program module 211: The second program module 212: The third program module
213:PID控制模块        214:温度调节装置结构图215:通风监控系统结构图213: PID control module 214: Structure diagram of temperature adjustment device 215: Structure diagram of ventilation monitoring system
301:确定自动化控制系统所包括的至少两个控制策略301: Determine at least two control strategies included in the automated control system
302:分别确定每一个控制策略所能够实现的控制目标302: Determine the control objectives that each control strategy can achieve
303:将能够实现相同控制目标的至少一个控制策略打包成一个功能块303: Package at least one control strategy that can achieve the same control objective into a function block
304:将存在数据流转关系的各功能块相连接304: Connect each functional block with a data flow relationship
501:根据功能块之间的数据流转方向,确定至少一个功能块链501: Determine at least one function block chain according to the data flow direction between the function blocks
502:确定分别位于每一个功能块链两端的第一功能块和第二功能块502: Determine the first function block and the second function block respectively located at both ends of each function block chain
503:确定与每一个功能块链两端的功能块分别相连接的两个目标数据项503: Determine two target data items respectively connected to the function blocks at both ends of each function block chain
504:将每一个功能块链中的两个目标数据项相连接504: Connect the two target data items in each functional block chain
701:获取自动化控制系统的知识图谱701: Obtain the knowledge graph of the automation control system
702:确定自动化控制系统所包括的至少两个控制策略702: Determine at least two control strategies included in the automated control system
703:分别确定每一个控制策略所能够实现的控制目标703: Determine the control objectives that each control strategy can achieve
704:将能够实现相同控制目标的至少一个控制策略打包成一个功能块704: Package at least one control strategy capable of achieving the same control objective into a function block
705:生成相连接的至少两个功能块705: Generate at least two function blocks connected
706:将各功能块添加到知识图谱中706: Add each functional block to the knowledge graph
707:将硬件结构图添加到知识图谱中707: Add the hardware structure diagram to the knowledge graph
708:确定至少一个功能块链708: Determine at least one functional block chain
709:确定分别位于每一个功能块链两端的第一功能块和第二功能块709: Determine the first function block and the second function block respectively located at both ends of each function block chain
710:确定与每一个功能块链两端的功能块分别相连接的两个目标数据项710: Determine two target data items respectively connected to the function blocks at both ends of each function block chain
711:生成自动化控制系统的控制图711: Generate Control Charts for Automated Control Systems
800:自动化控制系统控制图生成装置    900:自动化控制系统控制图生成装置800: Automatic control system control diagram generation device 900: Automatic control system control diagram generation device
801:第一获取模块        802:第一生成模块        803:添加模块801: First acquisition module 802: First generation module 803: Add module
804:第二生成模块        805:第二获取模块        806:设置模块804: The second generation module 805: The second acquisition module 806: The setting module
807:更新模块            901:存储器              902:处理器807: Update Module 901: Memory 902: Processor
8021:第一确定单元       8022:第二确定单元       8023:打包单元8021: First determination unit 8022: Second determination unit 8023: Packing unit
8024:第一连接单元       8041:第三确定单元       8042:第四确定单元8024: The first connection unit 8041: The third determination unit 8042: The fourth determination unit
8043:第五确定单元       8044:第二连接单元8043: Fifth determination unit 8044: Second connection unit
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚,以下举实施例对本发明进一步详细说明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the following examples are used to further describe the present invention in detail.
如图1所示,本发明一个实施例提供了一种自动化控制系统控制图生成方法100,该 方法可以包括如下步骤:As shown in Figure 1, an embodiment of the present invention provides a method 100 for generating a control diagram of an automated control system, and the method may include the following steps:
步骤101:获取自动化控制系统的知识图谱,其中,知识图谱记录有自动化控制系统包括的至少一个组件和至少一个数据项,并记录有每一个组件与至少一个数据项之间的控制逻辑关系;Step 101: Obtain a knowledge graph of the automated control system, wherein the knowledge graph records at least one component and at least one data item included in the automated control system, and records the control logic relationship between each component and at least one data item;
步骤102:生成相连接的至少两个功能块,其中,每一个功能块用于实现自动化控制系统包括的至少一个控制策略,不同的功能块用于实现不同的控制策略,各功能块实现的控制策略组成自动化控制系统的控制逻辑,任意两个功能块之间的连接线用于表征该两个功能块之间的数据流;Step 102: Generate at least two connected functional blocks, wherein each functional block is used to implement at least one control strategy included in the automation control system, different functional blocks are used to implement different control strategies, and the control implemented by each functional block The strategy constitutes the control logic of the automation control system, and the connection line between any two function blocks is used to represent the data flow between the two function blocks;
步骤103:将各功能块添加到知识图谱中,并分别将每一个功能块和与其相关联的目标数据项相连接,其中,目标数据项为相应功能块所表征的控制策略存在输入输出关系的数据项;Step 103: Add each functional block to the knowledge graph, and connect each functional block with its associated target data item, wherein the target data item is the control strategy represented by the corresponding functional block that has an input-output relationship. data item;
步骤104:根据功能块之间的数据流转方向,在添加有功能块的知识图谱中将各目标数据项相连接,生成自动化控制系统的控制图。Step 104: According to the data flow direction between the function blocks, connect each target data item in the knowledge graph to which the function blocks are added to generate a control diagram of the automatic control system.
在本发明实施例提供的自动化控制系统控制图生成方法,在获取自动化控制系统的知识图谱后,生成相连接的至少两个功能块以表征该自动化控制系统包括的控制策略,将相连接的各功能块添加到所获取到的知识图谱中,并分别将每一个功能块和与其相关联的目标数据项相连接,从而根据各功能块之间的数据流转方向,在添加有功能块的知识图谱中将各目标数据项相连接,生成自动化控制系统的控制图。由此可见,在获取自动化控制系统的知识图谱后,借助知识图谱将自动化控制系统中的组件和数据项之间的关系以图形化的方式有效、直观的表达出来,通过在该知识图谱中添加相连接的各功能块,可以实现控制策略的可视化,然后根据各功能块之间的数据流转方向推理分析出目标数据项之间的连接关系,使得各目标数据项之间的连接关系能够描述目标数据项之间的关联关系,进而工程师通过所生成的控制图能够快速而准确的确定自动化控制系统中的控制逻辑关系。In the method for generating a control graph of an automated control system provided by the embodiment of the present invention, after acquiring the knowledge graph of the automated control system, at least two connected functional blocks are generated to represent the control strategy included in the automated control system, and each connected functional block is generated. Function blocks are added to the acquired knowledge graph, and each function block is connected to its associated target data item, so that according to the data flow direction between the function blocks, the knowledge graph with the function blocks is added. Each target data item is connected to generate the control chart of the automatic control system. It can be seen that after obtaining the knowledge graph of the automatic control system, the relationship between the components and data items in the automatic control system can be effectively and intuitively expressed in a graphical way with the help of the knowledge graph. The connected functional blocks can realize the visualization of the control strategy, and then reason and analyze the connection relationship between the target data items according to the data flow direction between the functional blocks, so that the connection relationship between the target data items can describe the target. The relationship between data items, and then the engineer can quickly and accurately determine the control logic relationship in the automatic control system through the generated control diagram.
在本发明实施例中,在步骤101获取自动化控制系统的知识图谱时,可以直接获取预先已经构建好的知识图谱,也可以自行构建知识图谱。所获取到的知识图谱包含自动化控制系统中各组件与数据项,而且还包括通过连接线表征的组件之间、数据项之间以及组件与数据项之间的控制逻辑关系,其中上述的控制逻辑关系包括组件对数据项的控 制关系、数据项对组件属性的描述关系、组件之间的控制关系以及数据之间的描述关系等。每一条组件之间、数据项之间及组件与数据项之间的控制逻辑关系都是一条信息,如此将文本信息转化成结构化数据,不仅能够帮助计算机快速理解该自动化控制系统,知识图谱的图形化方式还便于计算机进行存储,同时工程师无需再从繁多的文本中推理自动化控制系统中的控制逻辑关系,降低了获取难度,使得工程师可以直观获取、快速理解该自动化控制系统中的控制逻辑关系。In the embodiment of the present invention, when acquiring the knowledge graph of the automatic control system in step 101, the knowledge graph that has been constructed in advance may be directly acquired, or the knowledge graph may be constructed by yourself. The acquired knowledge graph includes each component and data item in the automatic control system, and also includes the control logic relationship between components, between data items, and between components and data items represented by connecting lines, wherein the above-mentioned control logic The relationship includes the control relationship between components and data items, the description relationship between data items and component attributes, the control relationship between components, and the description relationship between data. The control logic relationship between each component, between data items, and between components and data items is a piece of information, so converting text information into structured data can not only help the computer to quickly understand the automatic control system, but also help the computer to quickly understand the automatic control system. The graphical method is also convenient for computer storage. At the same time, engineers no longer need to reason about the control logic relationship in the automatic control system from a large number of texts, which reduces the difficulty of acquisition, so that engineers can intuitively obtain and quickly understand the control logic relationship in the automatic control system. .
在本发明实施例中,在步骤102中所生成功能块,可以是组织模块、程序模块、运算模块、控制模块、逻辑模块、数学模块、选择模块、定时器模块或自定义模块等,每一个功能块都可以实现自动化控制系统中的至少一个控制策略,不同的功能块用于实现不同的控制策略。在将自动化控制系统的控制逻辑拆分成多个功能块后,根据各功能块之间的数据流转关系将存在相互作用的功能块相连接,这样根据每一个功能块所对应的控制策略以及各个功能块之间的连接关系便可以推导出整个自动化控制系统的控制逻辑,从而使自动化控制系统的控制过程可视化。In this embodiment of the present invention, the function block generated in step 102 may be an organization module, a program module, an arithmetic module, a control module, a logic module, a math module, a selection module, a timer module, or a custom module, etc., each of which All function blocks can implement at least one control strategy in the automation control system, and different function blocks are used to implement different control strategies. After the control logic of the automation control system is divided into multiple function blocks, the function blocks that interact with each other are connected according to the data flow relationship between the function blocks. The connection relationship between the function blocks can deduce the control logic of the entire automation control system, so that the control process of the automation control system can be visualized.
在本发明实施例中,在步骤103将功能块添加到自动化控制系统的知识图谱中时,首先需要确定各功能块与各数据项之间的输入输出关系,如果一个数据项由一个功能块输出或会被输入到该功能块,则将该数据项确定为该功能块的目标数据项,接着分别将每一个功能块与其目标数据项相连接,其中,同一个数据项可能会作为不同功能块的目标数据项,而且不同的数据项可以作为同一功能块的目标数据项。如此将功能块添加到知识图谱中,并且将功能块与其相对应的目标数据项相连接,工程师根据知识图谱不仅可以直观获取、快速理解该自动化控制系统中组件和数据项的控制逻辑关系,还可以直接获取该自动化控制系统中功能块与数据项之间的输入输出关系,进而可以更加方便、清楚的确定自动化控制系统的控制过程。In this embodiment of the present invention, when adding a function block to the knowledge graph of the automation control system in step 103, the input-output relationship between each function block and each data item needs to be determined first. If a data item is output by a function block or will be input to the function block, the data item is determined as the target data item of the function block, and then each function block is connected to its target data item, wherein the same data item may be used as a different function block , and different data items can be used as the target data items of the same function block. In this way, the function blocks are added to the knowledge graph, and the function blocks are connected with their corresponding target data items. According to the knowledge graph, engineers can not only intuitively obtain and quickly understand the control logic relationship between components and data items in the automation control system, but also The input-output relationship between the function blocks and the data items in the automatic control system can be directly obtained, and the control process of the automatic control system can be determined more conveniently and clearly.
在本发明实施例中,在知识图谱中将功能块与其相关联的目标数据项相连接后,此时根据知识图谱可以确定组件之间的关系、组件与数据项之间的关系以及数据项与功能块之间的关系,但仍无法确定部分数据项之间的关系,因此还无法直观地确定自动化控制系统的全部控制逻辑。为此,可以根据各功能块之间的数据流转方向,推断各目标数据项之间隐含的控制逻辑关系,从而在知识图谱中将存在隐含的控制逻辑关系的各目标数据项相连接而生成控制图,此时控制图能够反映自动化控制系统全部控制逻辑。因此,工程师根据所生成的控制图可以快速而准确的确定自动化控制系统中的控制逻辑,而无 需再对自动化控制系统进行推理分析。In the embodiment of the present invention, after the function block is connected with the target data item associated with it in the knowledge graph, the relationship between the components, the relationship between the component and the data item, and the relationship between the data item and the data item can be determined according to the knowledge graph. The relationship between function blocks is still unable to determine the relationship between some data items, so it is still impossible to intuitively determine the entire control logic of the automation control system. To this end, the implicit control logic relationship between each target data item can be inferred according to the data flow direction between each functional block, so that each target data item with an implicit control logic relationship can be connected in the knowledge graph. Generate a control diagram, at this time the control diagram can reflect all the control logic of the automatic control system. Therefore, the engineer can quickly and accurately determine the control logic in the automatic control system according to the generated control diagram, without the need for reasoning and analysis of the automatic control system.
作为步骤101所获取知识图谱的一个示例,图2示出了一个实施例中楼宇自动化领域的空调与通风监控系统中的知识图谱200,在该知识图谱中组件或数据项通过圆圈表示,组件与数据项之间的控制逻辑关系通过带有箭头的线表示,而组件包括温度调节装置201、传感器202和通风阻尼器203,数据项包括设定温度204、当前温度205、阻尼器开度206、温度207、温度的值208和温度的单位209,其中,温度调节装置201控制设定温度204,传感器202检测当前温度205,通风阻尼器203中具有阻尼器开度206这一参数,设定温度204和当前温度205的数据形式均为温度207,而温度207由温度的值208和温度的单位209组成。As an example of the knowledge graph obtained in step 101, FIG. 2 shows a knowledge graph 200 in an air conditioning and ventilation monitoring system in the field of building automation in one embodiment. In the knowledge graph, components or data items are represented by circles, and the components and the The control logic relationship between the data items is represented by lines with arrows, and the components include the temperature adjustment device 201, the sensor 202 and the ventilation damper 203, and the data items include the set temperature 204, the current temperature 205, the damper opening 206, Temperature 207, temperature value 208, and temperature unit 209, wherein the temperature adjustment device 201 controls the set temperature 204, the sensor 202 detects the current temperature 205, and the ventilation damper 203 has the damper opening 206 parameter, the set temperature The data forms of 204 and the current temperature 205 are both temperature 207, and the temperature 207 consists of the value 208 of the temperature and the unit 209 of the temperature.
可选地,在图1所示自动化控制系统控制图生成方法的基础上,如图3所示,步骤102生成相连接的至少两个功能块可以通过如下方式实现:Optionally, on the basis of the method for generating a control diagram of an automated control system shown in FIG. 1 , as shown in FIG. 3 , the generation of at least two connected functional blocks in step 102 can be implemented in the following manner:
步骤301:确定自动化控制系统所包括的至少两个控制策略;Step 301: Determine at least two control strategies included in the automated control system;
步骤302:分别确定每一个控制策略所能够实现的控制目标,并分别确定每一个控制策略与其他控制策略之间的数据流转关系;Step 302: respectively determine the control objectives that each control strategy can achieve, and respectively determine the data flow relationship between each control strategy and other control strategies;
步骤303:将能够实现相同控制目标的至少一个控制策略打包成一个功能块,其中,包括有至少两个控制策略的功能块中的任一控制策略与其他至少一个控制策略之间存在数据流转关系;Step 303: Package at least one control strategy that can achieve the same control objective into a functional block, wherein there is a data flow relationship between any control strategy in the functional block including at least two control strategies and at least one other control strategy ;
步骤304:将存在数据流转关系的各功能块相连接。Step 304: Connect each functional block with a data flow relationship.
在本发明实施例中,首先确定自动化控制系统所包括的至少两个控制策略,再分别确定每一个控制策略所能够实现的控制目标,并确定每一个控制策略与其他控制策略之间的数据流转关系,然后将能够实现相同控制目标的各控制策略打包成一个功能块,该功能块中的任一控制策略与其他至少一个控制策略之间存在数据流转关系。在生成至少两个功能块之后,由于不同功能块所包括控制策略之间存在数据流转关系,根据该数据流转关系可以确定功能块之间的数据流转关系,进而将存在数据流转关系的功能块相连接,用以表征功能块之间的控制逻辑。In the embodiment of the present invention, at least two control strategies included in the automatic control system are first determined, then the control objectives that can be achieved by each control strategy are determined respectively, and the data flow between each control strategy and other control strategies is determined. Then, each control strategy that can achieve the same control objective is packaged into a functional block, and there is a data flow relationship between any control strategy in the functional block and at least one other control strategy. After at least two function blocks are generated, since there is a data flow relationship between the control strategies included in different function blocks, the data flow relationship between the function blocks can be determined according to the data flow relationship, and then the function blocks that have the data flow relationship are related to each other. Connections are used to characterize the control logic between functional blocks.
在本发明实施例中,将所生成的各功能块添加到知识图谱中之后,首先需要确定各功能块与各数据项之间的输入输出关系,如果一个数据项由一个功能块输出或会被输入 到该功能块,则将该数据项确定为该功能块的目标数据项,接着分别将每一个功能块与其目标数据项相连接。In this embodiment of the present invention, after adding the generated functional blocks to the knowledge graph, it is first necessary to determine the input-output relationship between each functional block and each data item. If a data item is output by a functional block or will be input to the function block, the data item is determined as the target data item of the function block, and then each function block is connected to its target data item respectively.
接续上述图2所示实施例,将相连接的各功能块添加到图2所示的知识图谱,并将每一个功能块与其相关联的目标数据项相连接后,获得图4所示的知识图谱300。如图4所示,在该知识图谱中功能块通过方框表示,功能块与其目标数据项之间的输入输出关系通过具有方向的线段表示,功能块之间的数据流转关系也通过具有方向的线段表示。功能块包括第一程序模块210、第二程序模块211、第三程序模块212和PID控制模块213,第一程序模块210的输出数据经由PID控制模块213输入至第三程序模块212,第二程序模块211的输出数据经由PID控制模块213输入至第三程序模块212。由于第一程序模块210能够实现对设定温度204的控制,因此第一程序模块210与设定温度204相连接。由于第二程序模块211能够实现对当前温度205的控制,因此第二程序模块211与当前温度205相连接。由于第三程序模块212能够实现对阻尼器开度206的控制,因此第三程序模块212与阻尼器开度206相连接。Continuing the above-mentioned embodiment shown in FIG. 2 , each connected functional block is added to the knowledge graph shown in FIG. 2 , and each functional block is connected with its associated target data item to obtain the knowledge shown in FIG. 4 . Atlas 300. As shown in Figure 4, in the knowledge graph, the function blocks are represented by boxes, the input-output relationship between the function block and its target data item is represented by the line segment with direction, and the data flow relationship between the function blocks is also represented by the line segment with direction. Line segment representation. The function block includes a first program module 210, a second program module 211, a third program module 212, and a PID control module 213. The output data of the first program module 210 is input to the third program module 212 via the PID control module 213. The second program module The output data of the module 211 is input to the third program module 212 via the PID control module 213 . Since the first program module 210 can control the set temperature 204 , the first program module 210 is connected with the set temperature 204 . Since the second program module 211 can control the current temperature 205 , the second program module 211 is connected with the current temperature 205 . Since the third program module 212 can control the damper opening degree 206 , the third program module 212 is connected with the damper opening degree 206 .
在本发明实施例中,生成的相连接的至少两个功能块可以称为功能块图,功能块图可用于可编程逻辑控制器设计的图形语言,其描述了输入和输出之间的功能并通过连接线以块的形式展示,通过获取自动化控制系统所包括的各控制策略,确定各个控制策略所能实现的控制目标,将可以实现相同控制目标的控制策略打包成一个功能块。如此不同的功能块可以实现不同的控制目标,各功能块之间根据各控制策略之间的数据流转关系来确定连接关系,因此采用功能块图的编程方式可以简单且直观的表示自动化系统中的控制运用,甚至描述包含复杂控制功能的控制图,使得工程师能够直观地理解自动化系统中的控制过程。In this embodiment of the present invention, the generated at least two connected function blocks may be referred to as a function block diagram, and the function block diagram may be used in a graphic language for programmable logic controller design, which describes the functions between the input and the output and The connecting lines are displayed in the form of blocks, and the control strategies that can be achieved by each control strategy are determined by acquiring each control strategy included in the automatic control system, and the control strategies that can achieve the same control goal are packaged into a functional block. Such different function blocks can achieve different control objectives, and the connection relationship between each function block is determined according to the data flow relationship between each control strategy. Therefore, the programming method of the function block diagram can simply and intuitively represent the automation system. Control applications, and even descriptions of control diagrams containing complex control functions, allow engineers to intuitively understand the control process in an automated system.
可选地,在图1所示自动化控制系统控制图生成方法的基础上,如图5所示,根据功能块之间的数据流转方向,在添加有功能块的知识图谱中将各目标数据项相连接,生成自动化控制系统的控制图,可以通过如下方式实现:Optionally, on the basis of the method for generating the control diagram of the automated control system shown in FIG. 1, as shown in FIG. 5, according to the data flow direction between the function blocks, each target data item is added to the knowledge graph with the function blocks. Connected to generate the control diagram of the automation control system, which can be achieved in the following ways:
步骤501:根据功能块之间的数据流转方向,确定至少一个功能块链,其中,每一个功能块链包括有顺次相连接的至少两个功能块;Step 501: Determine at least one function block chain according to the data flow direction between the function blocks, wherein each function block chain includes at least two function blocks connected in sequence;
步骤502:针对每一个功能块链,确定分别位于该功能块链两端的第一功能块和第二功能块;Step 502: For each function block chain, determine the first function block and the second function block respectively located at both ends of the function block chain;
步骤503:针对每一个功能块链,确定与第一功能块相连接的第一目标数据项,并确定与第二功能块相连接的第二目标数据项;Step 503: for each functional block chain, determine the first target data item connected with the first functional block, and determine the second target data item connected with the second functional block;
步骤504:针对每一个功能块链,在添加有功能块的知识图谱中将第一目标数据项与第二目标数据项相连接。Step 504: For each function block chain, connect the first target data item with the second target data item in the knowledge graph to which the function block is added.
在本方面实施例中,根据功能块制件的数据流转方向,可以确定多个功能块链,每个功能块链上都有顺次相连接的多个功能块。针对每一个功能块链,首先确定分别位于该功能块链两端的第一功能块和第二功能块,接着确定与第一功能块相连接的第一目标数据项以及与第二功能块相连接的第二目标数据项,接着在添加有功能块的知识图谱中将第一目标数据项与第二目标数据项相连接,生成自动化控制系统的控制图。In the embodiment of this aspect, according to the data flow direction of the function block product, multiple function block chains can be determined, and each function block chain has multiple function blocks connected in sequence. For each function block chain, first determine the first function block and the second function block located at both ends of the function block chain, and then determine the first target data item connected to the first function block and the second function block. and then connect the first target data item with the second target data item in the knowledge graph with function blocks added to generate the control diagram of the automatic control system.
在本发明实施例中,根据各功能块之间的数据流转方向,可以确定多个功能块链,每个功能块链上都有顺次相连接的多个功能块,由于不同的功能块对应不同的控制目标,而不同的控制目标对应为知识图谱中不同的数据项,因此可以确定与目标数据项相对应的功能块,然后再确定功能块链两端的两个功能块,而该两个功能块连接有不同的两个目标数据项,如此根据该功能块链的数据流转方向可以推断该两个目标数据项之间存在隐含的控制逻辑关系,从而将该两个目标数据项相连接,以使错综复杂的控制逻辑关系能够直观地展示。因此,工程师无需再对自动化控制系统进行推理分析,便可以快速而准确的确定自动化控制系统中的控制逻辑。In the embodiment of the present invention, according to the data flow direction between the functional blocks, multiple function block chains can be determined, and each function block chain has multiple function blocks connected in sequence. Different control targets correspond to different data items in the knowledge graph, so the function blocks corresponding to the target data items can be determined, and then the two function blocks at both ends of the function block chain can be determined. The function block is connected with two different target data items, so according to the data flow direction of the function block chain, it can be inferred that there is an implicit control logic relationship between the two target data items, so as to connect the two target data items , so that the intricate control logic relationship can be displayed intuitively. Therefore, engineers can quickly and accurately determine the control logic in the automatic control system without the need for reasoning and analysis of the automatic control system.
接续上述图4所示的实施例,分别将图4中存在隐含的控制逻辑关系的目标数据项相连接后,获得图6所示的控制图。如图6所示,在该楼宇自动化领域的空调与通风监控系统的控制图中包括有两个功能块链,其中第一功能块链为:第一程序模块210--PID控制模块213--第三程序模块212,第二功能块链为:第二程序模块211--PID控制模块213--第三程序模块212。确定第一功能块链两端的功能块分别第一程序模块210和第三程序模块212,第二功能块链两端的功能块分别第二程序模块211和第三程序模块212,然后确定与第一程序模块210相连接的目标数据项为设定温度204,与第二程序模块211相连接的目标数据项为当前温度205,与第三程序模块212相连接的目标数据项为阻尼器开度206,然后连接设定温度204与阻尼器开度206,并连接当前温度205与阻尼器开度206,即表示设定温度204可以控制阻尼器开度206,当前温度205可以控制阻尼器开度206。Continuing with the embodiment shown in FIG. 4 , the control diagram shown in FIG. 6 is obtained after connecting the target data items in FIG. 4 with implicit control logic relationships respectively. As shown in Figure 6, the control diagram of the air conditioning and ventilation monitoring system in the building automation field includes two function block chains, wherein the first function block chain is: the first program module 210--PID control module 213-- The third program module 212, the second function block chain is: the second program module 211--PID control module 213--the third program module 212. Determine the first program module 210 and the third program module 212 for the function blocks at both ends of the first function block chain, respectively, and the second program module 211 and the third program module 212 for the function blocks at both ends of the second function block chain. The target data item connected to the program module 210 is the set temperature 204 , the target data item connected to the second program module 211 is the current temperature 205 , and the target data item connected to the third program module 212 is the damper opening 206 , then connect the set temperature 204 and the damper opening 206, and connect the current temperature 205 and the damper opening 206, which means that the set temperature 204 can control the damper opening 206, and the current temperature 205 can control the damper opening 206 .
可选地,在图1所示自动化控制系统控制图生成方法的基础上,在获取自动化控制 系统的知识图谱之后,且在生成自动化控制系统的控制图之前,进一步包括:Optionally, on the basis of the automated control system control diagram generation method shown in Figure 1, after acquiring the knowledge map of the automated control system, and before generating the control diagram of the automated control system, further comprising:
获取自动化控制系统所包括的至少一个硬件结构图;Obtain at least one hardware structure diagram included in the automation control system;
将至少一个硬件结构图添加到知识图谱中,并将各组件标注在硬件结构图上。At least one hardware structure diagram is added to the knowledge graph, and each component is marked on the hardware structure diagram.
在本发明实施例中,在获取自动化控制系统的知识图谱之后,且在生成自动化控制系统的控制图之前,获取自动化控制系统所包括的各个硬件结构图,并将各个硬件结构图添加到知识图谱中,提高了该知识图谱的可读性和可视化,再将知识图谱中的各组件标注在存在有该组件的硬件结构图中,进一步将该知识图谱与实际应用场景相关联,使得该知识图谱更易于理解,提高了自动化控制系统中控制图的信息共享程度。In the embodiment of the present invention, after acquiring the knowledge graph of the automated control system and before generating the control graph of the automated control system, each hardware structure diagram included in the automated control system is acquired, and each hardware structure diagram is added to the knowledge graph , improve the readability and visualization of the knowledge graph, and then mark each component in the knowledge graph on the hardware structure diagram where the component exists, and further associate the knowledge graph with the actual application scenario, so that the knowledge graph It is easier to understand and improves the information sharing degree of the control diagram in the automatic control system.
接续上述图6所示的实施例,如图6所示,在该楼宇自动化领域的空调与通风监控系统中的控制图中,该控制图中还包括有温度调节装置结构图214和通风监控系统结构图215,其中组件温度调节装置201与该温度调节装置结构图214相连接,组件通风阻尼器203与该通风监控系统结构图215上通风阻尼器所在位置相连接,组件传感器202与该通风监控系统结构图215上传感器的位置相连接。Continuing the above-mentioned embodiment shown in FIG. 6 , as shown in FIG. 6 , in the control diagram of the air conditioning and ventilation monitoring system in the field of building automation, the control diagram also includes a temperature adjustment device structure diagram 214 and a ventilation monitoring system. Structural diagram 215, wherein the component temperature adjustment device 201 is connected to the temperature adjustment device structure diagram 214, the component ventilation damper 203 is connected to the location of the ventilation damper on the ventilation monitoring system structure diagram 215, and the component sensor 202 is connected to the ventilation monitoring system. The position of the sensor on the system block diagram 215 is connected.
可选地,在图1所示自动化控制系统控制图生成方法的基础上,在生成自动化控制系统的控制图之后,进一步包括:Optionally, on the basis of the method for generating a control diagram of an automated control system shown in FIG. 1, after generating the control diagram of the automated control system, the method further includes:
针对控制图中的任意一个元素,确定与该元素相对应的元素关联组,其中,元素包括组件、数据项或功能块,一个元素对应的元素关联组中包括有该元素以及与该元素直接相连接的其他元素;For any element in the control diagram, determine the element association group corresponding to the element, wherein the element includes a component, a data item or a function block, and the element association group corresponding to an element includes the element and the element directly related to the element. other elements of the connection;
分别针对每一个元素关联组设置可视化效果,其中,可视化效果用于在一个元素关联组中的任一元素被触发后突出显示该元素关联组中的各个元素。A visualization effect is respectively set for each element association group, wherein the visualization effect is used to highlight each element in an element association group after any element in the element association group is triggered.
在本发明实施例中,针对已生成的控制图中的任意一个元素(该元素可以是组件、数据项或功能块),均确定与该元素直接相连接的其他元素,并组合成以该元素为中心包括有该元素以及与该元素直接相连接的其他元素的元素关联组,然后分别针对每一个元素关联组设置可视化效果,以便在该元素被触发后突出显示以该元素为中心的目标元素关联组中的各个元素,如此以使工程师在该控制图中快速而准确的确定针对某一元素的控制逻辑关系,如此实现建立在图上的,由图到图的搜索。In this embodiment of the present invention, for any element in the generated control diagram (the element may be a component, a data item, or a function block), other elements directly connected to the element are determined, and combined into a Center the element association group that includes the element and other elements directly connected to the element, and then set the visualization for each element association group separately to highlight the target element centered on the element when the element is triggered Associate each element in the group, so that the engineer can quickly and accurately determine the control logic relationship for a certain element in the control diagram, and thus realize the search from diagram to diagram based on the diagram.
可选地,在图1所示自动化控制系统控制图生成方法的基础上,在生成自动化控制 系统的控制图之后,进一步包括:Optionally, on the basis of the automatic control system control chart generation method shown in Fig. 1, after generating the control chart of the automatic control system, further comprises:
检测用户是否对控制图进行了修改操作,其中,修改操作包括如下至少一项:新增元素、删除元素、增加元素之间的连接、删除元素之间的连接和增加标注信息,其中,元素包括组件、数据项或功能块;Detecting whether the user has performed a modification operation on the control chart, wherein the modification operation includes at least one of the following: adding an element, deleting an element, adding a connection between elements, deleting a connection between elements, and adding label information, wherein the element includes components, data items or function blocks;
当检测到用户对控制图进行了修改操作后,对被修改后的控制图进行存储。When it is detected that the user has performed a modification operation on the control diagram, the modified control diagram is stored.
在本发明实施例中,在生成控制图之后,如果检测到用户对该控制图进行了新增元素、删除元素、增加元素之间的连接、删除元素之间的连接或增加标注信息等修改操作,则对修改后的控制图进行更新以存储,如此增加了自动化控制系统中控制图的流通性,同时也可以提高工程师的工作效率,更便于工程师将其设计想法体现在该控制图中进行展示以及合作交流。In this embodiment of the present invention, after the control diagram is generated, if it is detected that the user has performed modification operations such as adding elements, deleting elements, adding connections between elements, deleting connections between elements, or adding label information, etc. , then the modified control chart is updated for storage, which increases the circulation of the control chart in the automation control system, and also improves the work efficiency of engineers, making it easier for engineers to reflect their design ideas in the control chart for display. and cooperation and exchanges.
接续上述图6所示的实施例,如图6所示,在楼宇自动化领域的空调与通风监控系统中的控制图中,如果用户想要更换通风阻尼器203,则需事先知道更换通风阻尼器203可能会影响到的其他元素(元素为组件或数据项),以便在阻尼器更换后及时对相关的组件和数据项做出调整,基于该控制图,用户可以点击通风阻尼器,触发以通风阻尼器为中心的目标元素关联组中的各个元素突出显示,使用户直观地确定与该风阻尼器相关联的元素包括:阻尼器开度206,如此实现建立在图上的,由图到图的搜索。如果用户对该空调与通风监控系统中的传感器202进行了改进,将原有的热电偶传感器替换为智能温度传感器,则可以在该空调与通风监控系统的控制图上进行相应的修改,将原有传感器删除,并新增智能温度传感器,然后对修改后的控制图进行更新以存储,如此增加可以提高工程师的工作效率,以便于工程师将其设计想法体现在该控制图中进行展示以及合作交流,进一步增加了自动化控制系统中控制图的流通性。Continuing with the embodiment shown in FIG. 6, as shown in FIG. 6, in the control diagram of the air conditioning and ventilation monitoring system in the field of building automation, if the user wants to replace the ventilation damper 203, he needs to know in advance to replace the ventilation damper. 203 Other elements that may be affected (elements are components or data items), so that the relevant components and data items can be adjusted in time after the damper is replaced. Based on the control chart, the user can click the ventilation damper to trigger the ventilation Each element in the damper-centered target element association group is highlighted, allowing the user to intuitively determine the elements associated with the wind damper, including: the damper opening 206 , which is achieved based on the graph, from graph to graph search. If the user improves the sensor 202 in the air conditioning and ventilation monitoring system, and replaces the original thermocouple sensor with an intelligent temperature sensor, the control diagram of the air conditioning and ventilation monitoring system can be modified accordingly. Some sensors are deleted, and intelligent temperature sensors are added, and then the modified control diagram is updated for storage. This increase can improve the work efficiency of engineers, so that engineers can reflect their design ideas in the control diagram for display and cooperation and exchange , which further increases the flow of control charts in the automation control system.
为了更加清楚地说明本发明的技术方案及优点,如图7所示,下面对本发明实施例提供的自动化控制系统控制图生成方法700进行详细的说明,具体包括:In order to more clearly illustrate the technical solutions and advantages of the present invention, as shown in FIG. 7 , a method 700 for generating a control diagram of an automated control system provided by an embodiment of the present invention is described in detail below, which specifically includes:
步骤701:获取自动化控制系统的知识图谱。Step 701: Obtain the knowledge graph of the automatic control system.
具体地,知识图谱记录有自动化控制系统包括的至少一个组件和至少一个数据项,并记录有每一个组件与至少一个数据项之间的控制逻辑关系。Specifically, the knowledge graph records at least one component and at least one data item included in the automatic control system, and records the control logic relationship between each component and at least one data item.
步骤702:确定自动化控制系统所包括的至少两个控制策略。Step 702: Determine at least two control strategies included in the automatic control system.
步骤703:分别确定每一个控制策略所能够实现的控制目标。Step 703: Determine the control objectives that can be achieved by each control strategy.
具体地,分别确定每一个控制策略与其他控制策略之间的数据流转关系。Specifically, the data flow relationship between each control strategy and other control strategies is determined respectively.
步骤704:将能够实现相同控制目标的至少一个控制策略打包成一个功能块。Step 704: Package at least one control strategy capable of achieving the same control objective into a functional block.
具体地,包括有至少两个控制策略的功能块中的任一控制策略与其他至少一个控制策略之间存在数据流转关系。Specifically, a data flow relationship exists between any control strategy in the functional block including at least two control strategies and at least one other control strategy.
步骤705:生成相连接的至少两个功能块。Step 705: Generate at least two connected function blocks.
具体地,将存在数据流转关系的各功能块相连接,每一个功能块用于实现自动化控制系统包括的至少一个控制策略,不同的功能块用于实现不同的控制策略,各功能块实现的控制策略组成自动化控制系统的控制逻辑,任意两个功能块之间的连接线用于表征该两个功能块之间的数据流。Specifically, each functional block with a data flow relationship is connected, each functional block is used to implement at least one control strategy included in the automated control system, different functional blocks are used to implement different control strategies, and the control implemented by each functional block The strategy constitutes the control logic of the automatic control system, and the connection line between any two function blocks is used to represent the data flow between the two function blocks.
步骤706:将各功能块添加到知识图谱中。Step 706: Add each functional block to the knowledge graph.
具体地,分别将每一个功能块和与其相关联的目标数据项相连接,目标数据项为相应功能块所表征的控制策略存在输入输出关系的数据项。Specifically, each function block is respectively connected with a target data item associated with it, and the target data item is a data item whose control strategy represented by the corresponding function block has an input-output relationship.
步骤707:将硬件结构图添加到知识图谱中。Step 707: Add the hardware structure diagram to the knowledge graph.
具体地,获取自动化控制系统所包括的至少一个硬件结构图,并将至少一个硬件结构图添加到知识图谱中,并将各组件标注在硬件结构图上。Specifically, at least one hardware structure diagram included in the automation control system is acquired, the at least one hardware structure diagram is added to the knowledge graph, and each component is marked on the hardware structure diagram.
步骤708:确定至少一个功能块链。Step 708: Determine at least one functional block chain.
具体地,根据功能块之间的数据流转方向,确定至少一个功能块链,其中,每一个功能块链包括有顺次相连接的至少两个功能块。Specifically, at least one functional block chain is determined according to the data flow direction between the functional blocks, wherein each functional block chain includes at least two functional blocks connected in sequence.
步骤709:确定分别位于每一个功能块链两端的第一功能块和第二功能块。Step 709: Determine the first function block and the second function block respectively located at both ends of each function block chain.
步骤710:确定与每一个功能块链两端的功能块分别相连接的两个目标数据项。Step 710: Determine two target data items respectively connected to the function blocks at both ends of each function block chain.
具体地,针对每一个功能块链,确定与第一功能块相连接的第一目标数据项,并确定与第二功能块相连接的第二目标数据项。Specifically, for each function block chain, a first target data item connected with the first function block is determined, and a second target data item connected with the second function block is determined.
步骤711:生成自动化控制系统的控制图。Step 711: Generate a control diagram of the automatic control system.
具体地,在添加有功能块的知识图谱中将第一目标数据项与第二目标数据项相连接,以生成自动化控制系统的控制图。Specifically, the first target data item and the second target data item are connected in the knowledge graph to which the function block is added, so as to generate a control graph of the automatic control system.
需要说明的是,上述实施例所包括的各个步骤是为了更加清楚的对本发明实施例所提供的自动化控制系统控制图生成方法进行说明拆分而获得,在实际业务实现过程中各个步骤之间没有严格的前后顺序,比如步骤707可以在步骤701与步骤711之间的任意一个位置执行。It should be noted that, the steps included in the above embodiments are obtained for the purpose of more clearly describing and splitting the method for generating a control diagram of an automated control system provided by the embodiments of the present invention, and there is no difference between the steps in the actual service implementation process. Strict sequential order, for example, step 707 can be executed at any position between step 701 and step 711 .
如图8所示,本发明实施例提供了自动化控制系统控制图生成装置800,包括:第一获取模块801、第一生成模块802、添加模块803和第二生成模块804;As shown in FIG. 8 , an embodiment of the present invention provides an automatic control system control diagram generating device 800, including: a first obtaining module 801, a first generating module 802, an adding module 803, and a second generating module 804;
第一获取模块801,用于获取自动化控制系统的知识图谱,其中,知识图谱记录有自动化控制系统包括的至少一个组件和至少一个数据项,并记录有每一个组件与至少一个数据项之间的控制逻辑关系;The first acquisition module 801 is used to acquire the knowledge graph of the automated control system, wherein the knowledge graph records at least one component and at least one data item included in the automated control system, and records the relationship between each component and at least one data item. control logic relationship;
第一生成模块802,用于生成相连接的至少两个功能块,其中,每一个功能块用于实现自动化控制系统包括的至少一个控制策略,不同的功能块用于实现不同的控制策略,各功能块实现的控制策略组成自动化控制系统的控制逻辑,任意两个功能块之间的连接线用于表征该两个功能块之间的数据流;The first generation module 802 is used to generate at least two connected function blocks, wherein each function block is used to implement at least one control strategy included in the automation control system, and different function blocks are used to implement different control strategies, and each function block is used to implement different control strategies. The control strategy implemented by the function block constitutes the control logic of the automatic control system, and the connection line between any two function blocks is used to represent the data flow between the two function blocks;
添加模块803,用于将第一生成模块802生成的各功能块添加到第一获取模块801获取的知识图谱中,并分别将每一个功能块和与其相关联的目标数据项相连接,其中,目标数据项为相应功能块所表征的控制策略存在输入输出关系的数据项;The adding module 803 is configured to add each functional block generated by the first generating module 802 to the knowledge graph acquired by the first acquiring module 801, and respectively connect each functional block with its associated target data item, wherein, The target data item is a data item that has an input-output relationship in the control strategy represented by the corresponding function block;
第二生成模块804,用于根据功能块之间的数据流转方向,在由添加模块803添加有功能块的知识图谱中将各目标数据项相连接,生成自动化控制系统的控制图。The second generating module 804 is configured to connect each target data item in the knowledge graph to which the functional blocks are added by the adding module 803 according to the data flow direction between the functional blocks to generate a control graph of the automatic control system.
在本发明的实施例中,第一获取模块801可用于执行上述方法实施例中的步骤101,第一生成模块802可用于执行上述方法实施例中的步骤102,添加模块803可用于执行上述方法实施例中的步骤103,第二生成模块804可用于执行上述方法实施例中的步骤104。In this embodiment of the present invention, the first acquiring module 801 can be used to perform step 101 in the above method embodiments, the first generating module 802 can be used to perform step 102 in the above method embodiments, and the adding module 803 can be used to perform the above method embodiments In step 103 in the embodiment, the second generation module 804 may be configured to execute step 104 in the above method embodiment.
可选地,在图8所示自动化控制系统控制图生成装置的基础上,如图9所示,第一生成模块802包括:第一确定单元8021、第二确定单元8022、打包单元8023和第一连接单元8024;Optionally, based on the automatic control system control diagram generating device shown in FIG. 8, as shown in FIG. 9, the first generating module 802 includes: a first determining unit 8021, a second determining unit 8022, a packaging unit 8023, and a first determining unit 8022. a connection unit 8024;
第一确定单元8021,用于确定自动化控制系统所包括的至少两个控制策略;a first determining unit 8021, configured to determine at least two control strategies included in the automated control system;
第二确定单元8022,用于分别确定由第一确定单元8021确定的每一个控制策略所能够实现的控制目标,并分别确定每一个控制策略与其他控制策略之间的数据流转关系;The second determining unit 8022 is used to respectively determine the control objectives that can be achieved by each control strategy determined by the first determining unit 8021, and respectively determine the data flow relationship between each control strategy and other control strategies;
打包单元8023,用于将能够实现相同的由第二确定单元8022确定的控制目标的至少一个控制策略打包成一个功能块,其中,包括有至少两个控制策略的功能块中的任一控制策略与其他至少一个控制策略之间存在数据流转关系;The packaging unit 8023 is configured to package at least one control strategy capable of realizing the same control target determined by the second determining unit 8022 into a functional block, wherein any control strategy in the functional block including at least two control strategies is included There is a data flow relationship with at least one other control strategy;
第一连接单元8024,用于将存在数据流转关系的由打包单元8023生成的各功能块相连接。The first connection unit 8024 is configured to connect the functional blocks generated by the packaging unit 8023 that have a data flow relationship.
在本发明实施例中,第一确定单元8021可用于执行上述方法实施例中的步骤301,第二确定单元8022可用于执行上述方法实施例中的步骤302,打包单元8023可用于执行上述方法实施例中的步骤303,第一连接单元8024可用于执行上述方法实施例中的步骤304。In this embodiment of the present invention, the first determining unit 8021 may be configured to perform step 301 in the foregoing method embodiments, the second determining unit 8022 may be configured to perform step 302 in the foregoing method embodiments, and the packaging unit 8023 may be configured to perform the foregoing method implementations For example, in step 303, the first connection unit 8024 may be configured to perform step 304 in the above method embodiments.
可选地,在图8所示自动化控制系统控制图生成装置的基础上,如图10所示,第二生成模块804包括:第三确定单元8041、第四确定单元8042、第五确定单元8043和第二连接单元8044;Optionally, based on the automatic control system control diagram generating device shown in FIG. 8 , as shown in FIG. 10 , the second generating module 804 includes: a third determining unit 8041 , a fourth determining unit 8042 , and a fifth determining unit 8043 and the second connection unit 8044;
第三确定单元8041,用于根据功能块之间的数据流转方向,确定至少一个功能块链,其中,每一个功能块链包括有顺次相连接的至少两个功能块;The third determining unit 8041 is configured to determine at least one functional block chain according to the data flow direction between the functional blocks, wherein each functional block chain includes at least two functional blocks connected in sequence;
第四确定单元8042,用于针对由第三确定单元8041确定的每一个功能块链,确定分别位于该功能块链两端的第一功能块和第二功能块;a fourth determining unit 8042, configured to determine, for each functional block chain determined by the third determining unit 8041, the first functional block and the second functional block respectively located at both ends of the functional block chain;
第五确定单元8043,用于确定与由第四确定单元8042确定的第一功能块相连接的第一目标数据项,并确定与由第四确定单元8042确定的第二功能块相连接的第二目标数据项;The fifth determination unit 8043 is configured to determine the first target data item connected to the first functional block determined by the fourth determination unit 8042, and to determine the first target data item connected to the second functional block determined by the fourth determination unit 8042. Two target data items;
第二连接单元8044,用于在添加有功能块的知识图谱中将由第五确定单元8043确定的第一目标数据项与第二目标数据项相连接。The second connecting unit 8044 is configured to connect the first target data item determined by the fifth determining unit 8043 with the second target data item in the knowledge graph to which the function block is added.
在本发明实施例中,第三确定单元8041可用于执行上述方法实施例中的步骤501,第四确定单元8042可用于执行上述方法实施例中的步骤502,第五确定单元8043可用于执行上述方法实施例中的步骤503,第二连接单元8044可用于执行上述方法实施例中的 步骤504。In this embodiment of the present invention, the third determining unit 8041 may be configured to perform step 501 in the foregoing method embodiments, the fourth determining unit 8042 may be configured to perform step 502 in the foregoing method embodiments, and the fifth determining unit 8043 may be configured to execute the foregoing method embodiments. In step 503 in the method embodiment, the second connection unit 8044 may be configured to perform step 504 in the above method embodiment.
可选地,在图8所示自动化控制系统控制图生成装置的基础上,如图11所示,该装置进一步包括:第二获取模块805;Optionally, on the basis of the automatic control system control diagram generating device shown in FIG. 8 , as shown in FIG. 11 , the device further includes: a second obtaining module 805 ;
第二获取模块805,用于获取自动化控制系统所包括的至少一个硬件结构图,并将至少一个硬件结构图添加到知识图谱中,以及将各组件标注在硬件结构图上。The second acquiring module 805 is configured to acquire at least one hardware structure diagram included in the automation control system, add the at least one hardware structure diagram to the knowledge graph, and mark each component on the hardware structure diagram.
可选地,在图8所示自动化控制系统控制图生成装置的基础上,如图11所示,该装置进一步包括:设置模块806;Optionally, on the basis of the automatic control system control diagram generating device shown in FIG. 8 , as shown in FIG. 11 , the device further includes: a setting module 806 ;
设置模块806,用于针对控制图中的任意一个元素,确定与该元素相对应的元素关联组,并分别针对每一个元素关联组设置可视化效果,其中,元素包括组件、数据项或功能块,一个元素对应的元素关联组中包括有该元素以及与该元素直接相连接的其他元素,可视化效果用于在一个元素关联组中的任一元素被触发后突出显示该元素关联组中的各个元素。The setting module 806 is used to determine an element association group corresponding to the element for any element in the control diagram, and set a visualization effect for each element association group respectively, wherein the element includes a component, a data item or a function block, The element association group corresponding to an element includes the element and other elements directly connected to the element. The visualization effect is used to highlight each element in the element association group after any element in the element association group is triggered. .
可选地,在图8所示自动化控制系统控制图生成装置的基础上,如图11所示,该装置进一步包括:更新模块807;Optionally, on the basis of the automatic control system control diagram generating device shown in FIG. 8, as shown in FIG. 11, the device further includes: an update module 807;
更新模块807,用于检测用户是否对控制图进行了修改操作,当检测到用户对控制图进行了修改操作后,对被修改后的控制图进行存储,其中,修改操作包括如下至少一项:新增元素、删除元素、增加元素之间的连接、删除元素之间的连接和增加标注信息,元素包括组件、数据项或功能块。The update module 807 is used to detect whether the user has performed a modification operation on the control diagram, and after detecting that the user has performed a modification operation on the control diagram, the modified control diagram is stored, wherein the modification operation includes at least one of the following: Add elements, delete elements, add connections between elements, delete connections between elements, and add label information. Elements include components, data items, or function blocks.
如图12所示,本发明一个实施例提供了自动化控制系统控制图生成装置900,包括:包括:至少一个存储器901和至少一个处理器902;As shown in FIG. 12 , an embodiment of the present invention provides an automatic control system control diagram generating apparatus 900, including: at least one memory 901 and at least one processor 902;
所述至少一个存储器901,被配置为存储可执行指令;the at least one memory 901 configured to store executable instructions;
所述至少一个处理器902,与所述至少一个存储器901耦合,执行本发明任一实施例中的自动化控制系统控制图生成方法。The at least one processor 902, coupled with the at least one memory 901, executes the method for generating a control diagram of an automated control system in any embodiment of the present invention.
需要说明的是,上述装置内的各模块、单元之间的信息交互、执行过程等内容,由于与本发明方法实施例基于同一构思,具体内容可参见本发明方法实施例中的叙述,此处不再赘述。It should be noted that the information exchange and execution process among the modules and units in the above-mentioned device are based on the same concept as the method embodiments of the present invention. For details, please refer to the descriptions in the method embodiments of the present invention. No longer.
本发明还提供了一种计算机可读介质,存储用于使一机器执行如本文所述的自动化控制系统控制图生成方法的指令。具体地,可以提供配有存储介质的系统或者装置,在该存储介质上存储着实现上述实施例中任一实施例的功能的软件程序代码,且使该系统或者装置的计算机(或CPU或MPU)读出并执行存储在存储介质中的程序代码。The present invention also provides a computer-readable medium storing instructions for causing a machine to perform the method for generating a control diagram for an automated control system as described herein. Specifically, it is possible to provide a system or device equipped with a storage medium on which software program codes for implementing the functions of any of the above-described embodiments are stored, and which enables a computer (or CPU or MPU of the system or device) ) to read and execute the program code stored in the storage medium.
在这种情况下,从存储介质读取的程序代码本身可实现上述实施例中任何一项实施例的功能,因此程序代码和存储程序代码的存储介质构成了本发明的一部分。In this case, the program code itself read from the storage medium can implement the functions of any of the above-described embodiments, and thus the program code and the storage medium storing the program code form part of the present invention.
用于提供程序代码的存储介质实施例包括软盘、硬盘、磁光盘、光盘(如CD-ROM、CD-R、CD-RW、DVD-ROM、DVD-RAM、DVD-RW、DVD+RW)、磁带、非易失性存储卡和ROM。可选择地,可以由通信网络从服务器计算机上下载程序代码。Examples of storage media for providing program code include floppy disks, hard disks, magneto-optical disks, optical disks (eg CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), Magnetic tapes, non-volatile memory cards and ROMs. Alternatively, the program code may be downloaded from a server computer over a communications network.
此外,应该清楚的是,不仅可以通过执行计算机所读出的程序代码,而且可以通过基于程序代码的指令使计算机上操作的操作系统等来完成部分或者全部的实际操作,从而实现上述实施例中任意一项实施例的功能。In addition, it should be clear that part or all of the actual operations can be implemented not only by executing the program code read out by the computer, but also by the operating system or the like operating on the computer based on the instructions of the program code, so as to realize the above-mentioned embodiments. Function of any one of the embodiments.
此外,可以理解的是,将由存储介质读出的程序代码写到插入计算机内的扩展板中所设置的存储器中或者写到与计算机相连接的扩展模块中设置的存储器中,随后基于程序代码的指令使安装在扩展板或者扩展模块上的CPU等来执行部分和全部实际操作,从而实现上述实施例中任一实施例的功能。In addition, it can be understood that the program code read from the storage medium is written into the memory provided in the expansion board inserted into the computer or into the memory provided in the expansion module connected with the computer, and then based on the program code The instructions cause the CPU or the like installed on the expansion board or expansion module to perform part and all of the actual operations, so as to realize the functions of any one of the above-mentioned embodiments.
综上所述,本发明各个实施例所提供的自动化控制系统控制图生成方法、装置和计算机可读介质,至少具有如下有益效果:To sum up, the method, device, and computer-readable medium for generating a control diagram of an automated control system provided by various embodiments of the present invention have at least the following beneficial effects:
1.在本发明实施例中,在获取自动化控制系统的知识图谱后,生成相连接的至少两个功能块以表征该自动化控制系统包括的控制策略,将相连接的各功能块添加到所获取到的知识图谱中,并分别将每一个功能块和与其相关联的目标数据项相连接,从而根据各功能块之间的数据流转方向,在添加有功能块的知识图谱中将各目标数据项相连接,生成自动化控制系统的控制图。由此可见,在获取自动化控制系统的知识图谱后,借助知识图谱将自动化控制系统中的组件和数据项之间的关系以图形化的方式有效、直观的表达出来,通过在该知识图谱中添加相连接的各功能块,可以实现控制策略的可视化, 然后根据各功能块之间的数据流转方向推理分析出目标数据项之间的连接关系,使得各目标数据项之间的连接关系能够描述目标数据项之间的关联关系,进而工程师通过所生成的控制图能够快速而准确的确定自动化控制系统中的控制逻辑关系。1. In the embodiment of the present invention, after acquiring the knowledge graph of the automated control system, at least two connected function blocks are generated to represent the control strategy included in the automated control system, and each connected functional block is added to the acquired and connect each functional block with its associated target data item respectively, so that according to the data flow direction between each functional block, each target data item is added to the knowledge graph with the functional block added. It is connected to generate the control diagram of the automation control system. It can be seen that after obtaining the knowledge graph of the automatic control system, the relationship between the components and data items in the automatic control system can be effectively and intuitively expressed in a graphical way with the help of the knowledge graph. The connected functional blocks can realize the visualization of the control strategy, and then reason and analyze the connection relationship between the target data items according to the data flow direction between the functional blocks, so that the connection relationship between the target data items can describe the target. The relationship between data items, and then the engineer can quickly and accurately determine the control logic relationship in the automatic control system through the generated control diagram.
2.在本发明实施例中,生成的相连接的至少两个功能块可以称为功能块图,功能块图可用于可编程逻辑控制器设计的图形语言,其描述了输入和输出之间的功能并通过连接线以块的形式展示,通过获取自动化控制系统所包括的各控制策略,确定各个控制策略所能实现的控制目标,将可以实现相同控制目标的控制策略打包成一个功能块。如此不同的功能块可以实现不同的控制目标,各功能块之间根据各控制策略之间的数据流转关系来确定连接关系,因此采用功能块图的编程方式可以简单且直观的表示自动化系统中的控制运用,甚至描述包含复杂控制功能的控制图,使得工程师能够直观地理解自动化系统中的控制过程。2. In this embodiment of the present invention, the generated at least two connected function blocks can be called a function block diagram, and the function block diagram can be used in a graphic language for programmable logic controller design, which describes the relationship between input and output. The functions are displayed in the form of blocks through connecting lines. By obtaining the control strategies included in the automatic control system, the control objectives that can be achieved by each control strategy are determined, and the control strategies that can achieve the same control objectives are packaged into a function block. Such different function blocks can achieve different control objectives, and the connection relationship between each function block is determined according to the data flow relationship between each control strategy. Therefore, the programming method of the function block diagram can simply and intuitively represent the automation system. Control applications, and even descriptions of control diagrams containing complex control functions, allow engineers to intuitively understand the control process in an automated system.
3.在本发明实施例中,根据各功能块之间的数据流转方向,可以确定多个功能块链,每个功能块链上都有顺次相连接的多个功能块,由于不同的功能块对应不同的控制目标,而不同的控制目标对应为知识图谱中不同的数据项,因此可以确定与目标数据项相对应的功能块,然后再确定功能块链两端的两个功能块,而该两个功能块连接有不同的两个目标数据项,如此根据该功能块链的数据流转方向可以推断该两个目标数据项之间存在隐含的控制逻辑关系,从而将该两个目标数据项相连接,以使错综复杂的控制逻辑关系能够直观地展示。因此,工程师无需再对自动化控制系统进行推理分析,便可以快速而准确的确定自动化控制系统中的控制逻辑。3. In the embodiment of the present invention, according to the data flow direction between the functional blocks, a plurality of functional block chains can be determined, and each functional block chain has a plurality of functional blocks connected in sequence. Blocks correspond to different control targets, and different control targets correspond to different data items in the knowledge graph, so the function block corresponding to the target data item can be determined, and then the two function blocks at both ends of the function block chain can be determined. The two function blocks are connected with two different target data items, so according to the data flow direction of the function block chain, it can be inferred that there is an implicit control logic relationship between the two target data items, so that the two target data items are connected. connected, so that the intricate control logic relationship can be displayed intuitively. Therefore, engineers can quickly and accurately determine the control logic in the automatic control system without the need for reasoning and analysis of the automatic control system.
4.在本发明实施例中,在获取自动化控制系统的知识图谱之后,且在生成自动化控制系统的控制图之前,获取自动化控制系统所包括的各个硬件结构图,并将各个硬件结构图添加到知识图谱中,提高了该知识图谱的可读性和可视化,再将知识图谱中的各组件标注在存在有该组件的硬件结构图中,进一步将该知识图谱与实际应用场景相关联,使得该知识图谱更易于理解,提高了自动化控制系统中控制图的信息共享程度。4. In the embodiment of the present invention, after acquiring the knowledge map of the automated control system, and before generating the control diagram of the automated control system, acquire each hardware structure diagram included in the automated control system, and add each hardware structure diagram to the In the knowledge graph, the readability and visualization of the knowledge graph are improved, and each component in the knowledge graph is marked on the hardware structure diagram where the component exists, and the knowledge graph is further associated with the actual application scenario, so that the The knowledge graph is easier to understand and improves the information sharing degree of the control graph in the automatic control system.
5.在本发明实施例中,针对已生成的控制图中的任意一个元素(该元素可以是组件、数据项或功能块),均确定与该元素直接相连接的其他元素,并组合成以该元素为中心包括有该元素以及与该元素直接相连接的其他元素的元素关联组,然后分别针对每一个元素关联组设置可视化效果,以便在该元素被触发后突出显示以该元素为中心的目标元素关联组中的各个元素,如此以使工程师在该控制图中快速而准确的确定针对某一元素 的控制逻辑关系,如此实现建立在图上的,由图到图的搜索。5. In this embodiment of the present invention, for any element in the generated control diagram (the element can be a component, a data item or a function block), other elements directly connected to the element are determined, and combined into a The element as the center includes the element association group of the element and other elements directly connected to the element, and then sets the visualization effect for each element association group separately, so that after the element is triggered, the element centered on the element is highlighted. The target element is associated with each element in the group, so that the engineer can quickly and accurately determine the control logic relationship for a certain element in the control diagram, thus realizing the search from diagram to diagram based on the diagram.
6.在本发明实施例中,在生成控制图之后,如果检测到用户对该控制图进行了新增元素、删除元素、增加元素之间的连接、删除元素之间的连接或增加标注信息等修改操作,则对修改后的控制图进行更新以存储,如此增加了自动化控制系统中控制图的流通性,同时也可以提高工程师的工作效率,更便于工程师将其设计想法体现在该控制图中进行展示以及合作交流。6. In this embodiment of the present invention, after the control diagram is generated, if it is detected that the user has added elements, deleted elements, added connections between elements, deleted connections between elements, or added label information to the control diagram, etc. If the modification operation is performed, the modified control chart is updated for storage, which increases the circulation of the control chart in the automation control system, and also improves the work efficiency of the engineer, making it easier for the engineer to reflect his design ideas in the control chart. Showcase and collaborate.
需要说明的是,在本文中,诸如第一和第二之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个······”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同因素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply a relationship between these entities or operations. There is no such actual relationship or sequence. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, the inclusion of an element by the phrase "comprising a..." does not preclude the presence of additional such elements in the process, method, article or apparatus that includes the element.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储在计算机可读取的存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质中。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by program instructions related to hardware, the aforementioned program can be stored in a computer-readable storage medium, and when the program is executed, execute It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other mediums that can store program codes.
最后需要说明的是:以上所述仅为本发明的较佳实施例,仅用于说明本发明的技术方案,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所做的任何修改、等同替换、改进等,均包含在本发明的保护范围内。Finally, it should be noted that the above descriptions are only preferred embodiments of the present invention, and are only used to illustrate the technical solutions of the present invention, but not to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (14)

  1. 自动化控制系统控制图生成方法(100),包括:A method (100) for generating a control chart of an automated control system, comprising:
    获取所述自动化控制系统的知识图谱,其中,所述知识图谱记录有所述自动化控制系统包括的至少一个组件和至少一个数据项,并记录有每一个所述组件与至少一个所述数据项之间的控制逻辑关系;Obtain the knowledge graph of the automated control system, wherein the knowledge graph records at least one component and at least one data item included in the automated control system, and records the relationship between each of the components and at least one of the data items. The control logic relationship between them;
    生成相连接的至少两个功能块,其中,每一个所述功能块用于实现所述自动化控制系统包括的至少一个控制策略,不同的所述功能块用于实现不同的所述控制策略,各所述功能块实现的所述控制策略组成所述自动化控制系统的控制逻辑,任意两个功能块之间的连接线用于表征该两个功能块之间的数据流;Generate at least two connected function blocks, wherein each of the function blocks is used to implement at least one control strategy included in the automation control system, and different function blocks are used to implement different control strategies, each The control strategy implemented by the function block constitutes the control logic of the automatic control system, and the connection line between any two function blocks is used to represent the data flow between the two function blocks;
    将各所述功能块添加到所述知识图谱中,并分别将每一个所述功能块和与其相关联的目标数据项相连接,其中,所述目标数据项为相应功能块所表征的所述控制策略存在输入输出关系的数据项;Each of the functional blocks is added to the knowledge graph, and each of the functional blocks is respectively connected with a target data item associated with it, wherein the target data item is the The control strategy has data items with input and output relationships;
    根据所述功能块之间的数据流转方向,在添加有所述功能块的所述知识图谱中将各所述目标数据项相连接,生成所述自动化控制系统的控制图。According to the data flow direction between the functional blocks, each of the target data items is connected in the knowledge graph to which the functional blocks are added to generate a control graph of the automatic control system.
  2. 根据权利要求1所述的方法,其中,所述生成相连接的至少两个功能块,包括:The method according to claim 1, wherein said generating at least two connected functional blocks comprises:
    确定所述自动化控制系统所包括的至少两个所述控制策略;determining at least two of the control strategies included in the automated control system;
    分别确定每一个所述控制策略所能够实现的控制目标,并分别确定每一个所述控制策略与其他所述控制策略之间的数据流转关系;Respectively determine the control objectives that can be achieved by each of the control strategies, and determine the data flow relationship between each of the control strategies and the other control strategies;
    将能够实现相同所述控制目标的至少一个所述控制策略打包成一个所述功能块,其中,包括有至少两个所述控制策略的所述功能块中的任一所述控制策略与其他至少一个所述控制策略之间存在数据流转关系;At least one of the control strategies that can achieve the same control objective is packaged into one of the functional blocks, wherein any one of the control strategies and the other at least two of the functional blocks of the control strategies are included. A data flow relationship exists between the control strategies;
    将存在数据流转关系的各所述功能块相连接。Each of the functional blocks in the data flow relationship is connected.
  3. 根据权利要求1所述的方法,其中,所述根据所述功能块之间的数据流转方向,在添加有所述功能块的所述知识图谱中将各所述目标数据项相连接,生成所述自动化控制系统的控制图,包括:The method according to claim 1, wherein, according to the data flow direction between the functional blocks, the target data items are connected in the knowledge graph to which the functional blocks are added to generate all the target data items. The control diagram of the automatic control system, including:
    根据所述功能块之间的数据流转方向,确定至少一个功能块链,其中,每一个所述 功能块链包括有顺次相连接的至少两个所述功能块;According to the data flow direction between the functional blocks, at least one functional block chain is determined, wherein each of the functional block chains includes at least two of the functional blocks connected in sequence;
    针对每一个所述功能块链,均执行:For each of the described function block chains, execute:
    确定分别位于该功能块链两端的第一功能块和第二功能块;Determine the first function block and the second function block respectively located at both ends of the function block chain;
    确定与所述第一功能块相连接的第一目标数据项,并确定与所述第二功能块相连接的第二目标数据项;determining a first target data item connected to the first functional block, and determining a second target data item connected to the second functional block;
    在添加有所述功能块的所述知识图谱中将所述第一目标数据项与所述第二目标数据项相连接。The first target data item and the second target data item are connected in the knowledge graph to which the functional block is added.
  4. 根据权利要求1所述的方法,其中,在所述获取所述自动化控制系统的知识图谱之后,且在所述生成所述自动化控制系统的控制图之前,进一步包括:The method according to claim 1, wherein after the acquiring the knowledge graph of the automatic control system and before the generating the control graph of the automatic control system, further comprising:
    获取所述自动化控制系统所包括的至少一个硬件结构图;Obtain at least one hardware structure diagram included in the automation control system;
    将所述至少一个硬件结构图添加到所述知识图谱中,并将各所述组件标注在所述硬件结构图上。The at least one hardware structure diagram is added to the knowledge graph, and each of the components is marked on the hardware structure diagram.
  5. 根据权利要求1所述的方法,其中,在所述生成所述自动化控制系统的控制图之后,进一步包括:The method according to claim 1, wherein, after the generating the control diagram of the automatic control system, further comprising:
    针对所述控制图中的任意一个元素,确定与该元素相对应的元素关联组,其中,所述元素包括所述组件、所述数据项或所述功能块,一个所述元素对应的所述元素关联组中包括有该元素以及与该元素直接相连接的其他元素;For any element in the control diagram, determine an element association group corresponding to the element, wherein the element includes the component, the data item or the function block, and the element corresponding to the element The element association group includes the element and other elements directly connected to the element;
    分别针对每一个所述元素关联组设置可视化效果,其中,所述可视化效果用于在一个所述元素关联组中的任一所述元素被触发后突出显示该元素关联组中的各个所述元素。A visualization effect is respectively set for each of the element association groups, wherein the visualization effect is used to highlight each of the elements in the element association group after any one of the elements in the element association group is triggered .
  6. 根据权利要求1至5中任一所述的方法,其中,在所述生成所述自动化控制系统的控制图之后,进一步包括:The method according to any one of claims 1 to 5, wherein after the generating the control diagram of the automatic control system, further comprising:
    检测用户是否对所述控制图进行了修改操作,其中,所述修改操作包括如下至少一项:新增元素、删除元素、增加元素之间的连接、删除元素之间的连接和增加标注信息,其中,所述元素包括所述组件、所述数据项或所述功能块;Detecting whether the user has performed a modification operation on the control graph, wherein the modification operation includes at least one of the following: adding an element, deleting an element, adding a connection between elements, deleting a connection between elements, and adding label information, wherein the element includes the component, the data item or the functional block;
    当检测到用户对所述控制图进行了修改操作后,对被修改后的所述控制图进行存储。After it is detected that the user has performed a modification operation on the control diagram, the modified control diagram is stored.
  7. 自动化控制系统控制图生成装置(800),包括:第一获取模块(801)、第一生成模块(802)、添加模块(803)和第二生成模块(804),其中,A device (800) for generating a control diagram of an automated control system, comprising: a first acquiring module (801), a first generating module (802), an adding module (803) and a second generating module (804), wherein,
    所述第一获取模块(801),用于获取所述自动化控制系统的知识图谱,其中,所述知识图谱记录有所述自动化控制系统包括的至少一个组件和至少一个数据项,并记录有每一个所述组件与至少一个所述数据项之间的控制逻辑关系;The first obtaining module (801) is configured to obtain a knowledge graph of the automatic control system, wherein the knowledge graph records at least one component and at least one data item included in the automatic control system, and records each a control logic relationship between one of the components and at least one of the data items;
    所述第一生成模块(802),用于生成相连接的至少两个功能块,其中,每一个所述功能块用于实现所述自动化控制系统包括的至少一个控制策略,不同的所述功能块用于实现不同的所述控制策略,各所述功能块实现的所述控制策略组成所述自动化控制系统的控制逻辑,任意两个功能块之间的连接线用于表征该两个功能块之间的数据流;The first generation module (802) is configured to generate at least two connected function blocks, wherein each of the function blocks is used to implement at least one control strategy included in the automatic control system, and different functions The blocks are used to implement different control strategies, the control strategies implemented by each of the functional blocks constitute the control logic of the automated control system, and the connection line between any two functional blocks is used to represent the two functional blocks data flow between;
    所述添加模块(803),用于将所述第一生成模块(802)生成的各所述功能块添加到所述第一获取模块(801)获取的所述知识图谱中,并分别将每一个所述功能块和与其相关联的目标数据项相连接,其中,所述目标数据项为相应功能块所表征的所述控制策略存在输入输出关系的数据项;The adding module (803) is configured to add each of the functional blocks generated by the first generating module (802) to the knowledge graph acquired by the first acquiring module (801), and add each function block separately to the knowledge graph acquired by the first acquiring module (801). One of the functional blocks is connected to a target data item associated with it, wherein the target data item is a data item that has an input-output relationship in the control strategy represented by the corresponding functional block;
    所述第二生成模块(804),用于根据所述功能块之间的数据流转方向,在由添加模块(803)添加有所述功能块的所述知识图谱中将各所述目标数据项相连接,生成所述自动化控制系统的控制图。The second generation module (804) is configured to, according to the data flow direction between the functional blocks, add each of the target data items in the knowledge graph to which the functional blocks are added by the adding module (803). connected to generate a control diagram of the automated control system.
  8. 根据权利要求7所述的装置,其中,所述第一生成模块(802)包括:第一确定单元(8021)、第二确定单元(8022)、打包单元(8023)和第一连接单元(8024);The apparatus according to claim 7, wherein the first generating module (802) comprises: a first determining unit (8021), a second determining unit (8022), a packing unit (8023) and a first connecting unit (8024) );
    所述第一确定单元(8021),用于确定所述自动化控制系统所包括的至少两个所述控制策略;the first determining unit (8021), configured to determine at least two of the control strategies included in the automatic control system;
    所述第二确定单元(8022),用于分别确定由所述第一确定单元(8021)确定的每一个所述控制策略所能够实现的控制目标,并分别确定每一个所述控制策略与其他所述控制策略之间的数据流转关系;The second determining unit (8022) is configured to separately determine the control objectives that can be achieved by each of the control strategies determined by the first determining unit (8021), and to determine, respectively, each of the control strategies and other the data flow relationship between the control strategies;
    所述打包单元(8023),用于将能够实现相同的由所述第二确定单元(8022)确定的所述控制目标的至少一个所述控制策略打包成一个所述功能块,其中,包括有至少两个所述控制策略的所述功能块中的任一所述控制策略与其他至少一个所述控制策略之间存在数据流转关系;The packaging unit (8023) is configured to package at least one of the control strategies capable of realizing the same control target determined by the second determination unit (8022) into one of the function blocks, wherein the function block includes: There is a data flow relationship between any one of the control strategies in the functional blocks of at least two of the control strategies and at least one of the other control strategies;
    所述第一连接单元(8024),用于将存在数据流转关系的由所述打包单元(8023)生成的各所述功能块相连接。The first connection unit (8024) is configured to connect each of the functional blocks generated by the packaging unit (8023) with a data flow relationship.
  9. 根据权利要求7所述的装置,其中,所述第二生成模块(804)包括:第三确定单元(8041)、第四确定单元(8042)、第五确定单元(8043)和第二连接单元(8044);The apparatus according to claim 7, wherein the second generating module (804) comprises: a third determining unit (8041), a fourth determining unit (8042), a fifth determining unit (8043) and a second connecting unit (8044);
    所述第三确定单元(8041),用于根据所述功能块之间的数据流转方向,确定至少一个功能块链,其中,每一个所述功能块链包括有顺次相连接的至少两个所述功能块;The third determining unit (8041) is configured to determine at least one functional block chain according to the data flow direction between the functional blocks, wherein each of the functional block chains includes at least two functional block chains connected in sequence. the functional block;
    所述第四确定单元(8042),用于针对由第三确定单元(8041)确定的每一个所述功能块链,确定分别位于该功能块链两端的第一功能块和第二功能块;The fourth determining unit (8042) is configured to, for each of the functional block chains determined by the third determining unit (8041), determine the first functional block and the second functional block respectively located at both ends of the functional block chain;
    所述第五确定单元(8043),用于确定与由所述第四确定单元(8042)确定的所述第一功能块相连接的第一目标数据项,并确定与由所述第四确定单元(8042)确定的所述第二功能块相连接的第二目标数据项;The fifth determination unit (8043) is configured to determine the first target data item connected to the first function block determined by the fourth determination unit (8042), and determine the first target data item connected to the first function block determined by the fourth determination unit (8042) a second target data item connected to the second functional block determined by the unit (8042);
    所述第二连接单元(8044),用于在添加有所述功能块的所述知识图谱中将由所述第五确定单元(8043)确定的所述第一目标数据项与所述第二目标数据项相连接。The second connection unit (8044) is configured to connect the first target data item determined by the fifth determination unit (8043) with the second target in the knowledge graph to which the function block is added data items are linked.
  10. 根据权利要求7所述的装置,其中,进一步包括:第二获取模块(805);The apparatus according to claim 7, further comprising: a second obtaining module (805);
    所述第二获取模块(805),用于获取所述自动化控制系统所包括的至少一个硬件结构图,并将所述至少一个硬件结构图添加到所述知识图谱中,以及将各所述组件标注在所述硬件结构图上。The second acquiring module (805) is configured to acquire at least one hardware structure diagram included in the automation control system, add the at least one hardware structure diagram to the knowledge graph, and add each of the components marked on the hardware structure diagram.
  11. 根据权利要求7所述的装置,其中,进一步包括:设置模块(806);The apparatus of claim 7, further comprising: a setting module (806);
    所述设置模块(806),用于针对所述控制图中的任意一个元素,确定与该元素相对应的元素关联组,并分别针对每一个所述元素关联组设置可视化效果,其中,所述元素包括所述组件、所述数据项或所述功能块,一个所述元素对应的所述元素关联组中包括有该元素以及与该元素直接相连接的其他元素,所述可视化效果用于在一个所述元素关联组中的任一所述元素被触发后突出显示该元素关联组中的各个所述元素。The setting module (806) is configured to, for any element in the control diagram, determine an element association group corresponding to the element, and set a visualization effect for each element association group respectively, wherein the The element includes the component, the data item or the function block, the element association group corresponding to the element includes the element and other elements directly connected to the element, and the visualization effect is used in the Each of the elements in an element association group is highlighted after being triggered by any of the elements in the element association group.
  12. 根据权利要求7至11中任一所述的装置,其中,进一步包括:更新模块(807);The apparatus according to any one of claims 7 to 11, further comprising: an update module (807);
    所述更新模块(807),用于检测用户是否对所述控制图进行了修改操作,当检测到用户对所述控制图进行了修改操作后,对被修改后的所述控制图进行存储,其中,所述修改操作包括如下至少一项:新增元素、删除元素、增加元素之间的连接、删除元素之 间的连接和增加标注信息,所述元素包括所述组件、所述数据项或所述功能块。The updating module (807) is used to detect whether the user has performed a modification operation on the control diagram, and after detecting that the user has performed a modification operation on the control diagram, the modified control diagram is stored, The modification operation includes at least one of the following: adding an element, deleting an element, adding a connection between elements, deleting a connection between elements, and adding label information, and the element includes the component, the data item or the the functional block.
  13. 自动化控制系统控制图生成装置(900),其中,包括:至少一个存储器(901)和至少一个处理器(902);A device (900) for generating a control map of an automated control system, comprising: at least one memory (901) and at least one processor (902);
    所述至少一个存储器(901),用于存储机器可读程序;the at least one memory (901) for storing a machine-readable program;
    所述至少一个处理器(902),用于调用所述机器可读程序,执行权利要求1至6中任一所述的方法。The at least one processor (902) is configured to invoke the machine-readable program to execute the method of any one of claims 1 to 6.
  14. 计算机可读介质,其中,所述计算机可读介质上存储有计算机指令,所述计算机指令在被处理器执行时,使所述处理器执行权利要求1至6中任一所述的方法。A computer-readable medium, wherein computer instructions are stored on the computer-readable medium, and when executed by a processor, the computer instructions cause the processor to perform the method of any one of claims 1 to 6.
PCT/CN2020/118545 2020-09-28 2020-09-28 Method and apparatus for generating control chart of automatic control system, and computer readable medium WO2022061925A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/118545 WO2022061925A1 (en) 2020-09-28 2020-09-28 Method and apparatus for generating control chart of automatic control system, and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/118545 WO2022061925A1 (en) 2020-09-28 2020-09-28 Method and apparatus for generating control chart of automatic control system, and computer readable medium

Publications (1)

Publication Number Publication Date
WO2022061925A1 true WO2022061925A1 (en) 2022-03-31

Family

ID=80846153

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/118545 WO2022061925A1 (en) 2020-09-28 2020-09-28 Method and apparatus for generating control chart of automatic control system, and computer readable medium

Country Status (1)

Country Link
WO (1) WO2022061925A1 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090150356A1 (en) * 2007-12-02 2009-06-11 Leviton Manufacturing Company, Inc. Method For Discovering Network of Home or Building Control Devices
CN102608934A (en) * 2012-02-08 2012-07-25 浙江中控技术股份有限公司 Function block ordering method on basis of information flow
CN105446200A (en) * 2015-12-31 2016-03-30 浙江中控软件技术有限公司 Automatic control method and device
CN105589439A (en) * 2014-11-12 2016-05-18 横河电机株式会社 Process control system and configuration system
CN106713083A (en) * 2016-11-24 2017-05-24 海信集团有限公司 Intelligent home appliance control method and device based on knowledge map, and system
CN108595449A (en) * 2017-11-23 2018-09-28 北京科东电力控制系统有限责任公司 The structure and application process of dispatch automated system knowledge mapping
CN108919669A (en) * 2018-09-11 2018-11-30 深圳和而泰数据资源与云技术有限公司 A kind of smart home dynamic decision method, apparatus and service terminal
CN109754804A (en) * 2019-02-21 2019-05-14 珠海格力电器股份有限公司 Voice control method and device, storage medium and intelligent home system
CN110377648A (en) * 2018-04-11 2019-10-25 西安邮电大学 A kind of multi-source heterogeneous Data Analysis Platform towards intelligence manufacture

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090150356A1 (en) * 2007-12-02 2009-06-11 Leviton Manufacturing Company, Inc. Method For Discovering Network of Home or Building Control Devices
CN102608934A (en) * 2012-02-08 2012-07-25 浙江中控技术股份有限公司 Function block ordering method on basis of information flow
CN105589439A (en) * 2014-11-12 2016-05-18 横河电机株式会社 Process control system and configuration system
CN105446200A (en) * 2015-12-31 2016-03-30 浙江中控软件技术有限公司 Automatic control method and device
CN106713083A (en) * 2016-11-24 2017-05-24 海信集团有限公司 Intelligent home appliance control method and device based on knowledge map, and system
CN108595449A (en) * 2017-11-23 2018-09-28 北京科东电力控制系统有限责任公司 The structure and application process of dispatch automated system knowledge mapping
CN110377648A (en) * 2018-04-11 2019-10-25 西安邮电大学 A kind of multi-source heterogeneous Data Analysis Platform towards intelligence manufacture
CN108919669A (en) * 2018-09-11 2018-11-30 深圳和而泰数据资源与云技术有限公司 A kind of smart home dynamic decision method, apparatus and service terminal
CN109754804A (en) * 2019-02-21 2019-05-14 珠海格力电器股份有限公司 Voice control method and device, storage medium and intelligent home system

Similar Documents

Publication Publication Date Title
US20220237189A1 (en) Building management system with eventseries processing
US10579927B2 (en) Automated creation of semantically-enriched diagnosis models
CN107003651B (en) Control device for automation system
US7600234B2 (en) Method for launching applications
Suri et al. Semantic framework for internet of things-aware business process development
JP6065008B2 (en) Control device
US20180088566A1 (en) Selective online and offline access to searchable industrial automation data
Schmetz et al. Evaluation of industry 4.0 data formats for digital twin of optical components
Moretti et al. Federated data modeling for built environment digital twins
JP6900946B2 (en) Engineering support system and engineering support method
JP2015502620A (en) Detecting cases with conflicting rules
Zietsch et al. Enabling smart manufacturing through a systematic planning framework for edge computing
US20220171633A1 (en) Device for managing digital twins
Kerrouchi et al. Production digital twin: a systematic literature review of challenges
Nguyen et al. Translating universal scene descriptions into knowledge graphs for robotic environment
WO2022061925A1 (en) Method and apparatus for generating control chart of automatic control system, and computer readable medium
CN108845799B (en) A visual program verification method, device and computer-readable storage medium
US20180025277A1 (en) Automated acquisition of a logical deduction path in a mivar knowledge base
Shao et al. Digital Twins for Advanced Manufacturing: The Standardized Approach
Alelaimat et al. Abductive design of BDI agent-based digital twins of organizations
CN114460907B (en) Configuration modular industrial plant
Haubeck et al. A Knowledge Carrying Service-Component Architecture for Smart Cyber Physical Systems: An Example based on self-documenting production systems
US20230124678A1 (en) Storage medium to store transmission data setting support program, gateway device, and transmission data setting supporting method
Mathot et al. Design modelling with next generation parametric system packhunt. io
JP2006114033A (en) System for smoothly organizing data

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20954773

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20954773

Country of ref document: EP

Kind code of ref document: A1