Disclosure of Invention
The application provides a management system of programmable controller configuration data, which is used for solving the technical problems that the high availability, accuracy, safety and change traceability of the programmable controller configuration data are difficult to be ensured in the prior art.
In order to achieve the above purpose, the present application adopts the following technical scheme:
the application provides a management system of programmable controller configuration data, which comprises a alliance chain layer and an application layer;
the alliance chain layer is used for storing configuration data; the application layer is used for providing management service of the configuration data;
the alliance chain layer comprises an alliance chain link point sub-layer and a storage sub-layer which are connected; the application layer comprises a field control network and a configuration data editing network;
the alliance chain link point sublayer is used for providing consensus, account book and intelligent contract execution functions; the storage sub-layer includes at least one edge configuration data storage device; the edge configuration data storage device is correspondingly connected with the field control network and is used for storing configuration data of the editable controllers in the field control network which are correspondingly connected and performing configuration data chain access of the editable controllers in the field control network which are correspondingly connected; the configuration data editing network is connected with the alliance link point sub-layer and is used for providing editing service for the configuration data.
Optionally, the federation link point sub-layer includes a first federation link node and a second federation link node in communication with each other;
the first alliance chain node is connected with the configuration data editing network;
the second federation node is connected to the edge configuration data store.
Optionally, the first federation link node is deployed with a configuration data uplink smart contract and a read configuration data smart contract.
Optionally, the second federation node is deployed with a configuration data uplink smart contract and a read configuration data smart contract.
Optionally, the application layer further includes a security audit network; the alliance link point sublayer also comprises a third alliance link node;
and the security audit network is connected with the third alliance link node and is used for reading corresponding configuration data through the third alliance link node according to audit requirements and auditing.
Optionally, the audit requirements include periodic routine audit requirements and specific change audit requirements.
Optionally, the third federation link node is deployed with a security audit configuration data intelligent contract.
Optionally, the application layer further includes a production management application network, and the federation link point sub-layer further includes a fourth federation link node;
the production management application network is connected with the fourth alliance chain node and is used for providing production plan information and writing the production plan information into the alliance chain layer so as to realize production management service.
Optionally, the production plan information carries identification information of the editable controller.
Optionally, the fourth federation chain is deployed with a production plan smart contract.
The technical scheme that this application provided can include following beneficial effect:
in the scheme of the application, a programmable controller configuration data management system is formed by utilizing a alliance chain layer and an application layer, the configuration data is stored by utilizing the alliance chain layer, and management services of the configuration data are provided by utilizing the application layer. The alliance chain layer comprises an alliance chain link point sub-layer and a storage sub-layer, wherein the alliance chain link point sub-layer is used as a blockchain network and can provide consensus, account book and intelligent contract execution functions, the storage sub-layer is provided with edge configuration data storage equipment, the edge configuration data storage equipment is correspondingly connected with a field control network and is used for storing configuration data of an editable controller in the field control network which is correspondingly connected and performing configuration data chain access of the editable controller in the field control network which is correspondingly connected, a guarantee is provided for nearby access of the programmable controller, the configuration data editing network is connected with the alliance chain link point sub-layer and is used for providing editing service for the configuration data and ensuring writing and updating of the data in the blockchain. Therefore, the management system is built through the two-layer network of the alliance chain layer and the application layer, the operation efficiency of the blockchain is improved, the high availability, the accuracy, the safety and the change traceability of the configuration data of the programmable controller are effectively guaranteed, the edge configuration data storage equipment is introduced, the information isolation is realized, the management efficiency is improved, and the powerful guarantee is provided for the safety of the management work of the configuration data of the programmable controller by utilizing the locality of the configuration data and the high efficiency of the nearby access.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail below. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, based on the examples herein, which are within the scope of the protection sought by those of ordinary skill in the art without undue effort, are intended to be encompassed by the present application.
Referring to fig. 1, a schematic structural diagram of a management system for configuration data of a programmable controller according to an embodiment of the present application is provided. Embodiments of the present application provide a management system for programmable controller configuration data, as shown in fig. 1, where the management system for programmable controller configuration data may include a federation chain layer 101 and an application layer 102; the federation chain layer 101 is used for storing configuration data; the application layer 102 is used to provide management services for configuration data.
Wherein, the coalition chain layer 101 can comprise a coalition chain link point sub-layer and a storage sub-layer which are connected; the application layer 102 may include a field control network and a configuration data editing network. The alliance chain link point sub-layer is used for providing consensus, account book and intelligent contract executing functions; the storage sub-layer includes at least one edge configuration data storage device; the edge configuration data storage device is correspondingly connected with the field control network and is used for storing configuration data of the editable controllers in the field control network which are correspondingly connected and accessing configuration data chains of the editable controllers in the field control network which are correspondingly connected; the configuration data editing network is connected with the alliance link point sub-layer and is used for providing editing service for the configuration data.
In this embodiment, a management system for configuration data of a programmable controller is formed by using a federation chain layer and an application layer, the configuration data is stored by using the federation chain layer, and a management service for the configuration data is provided by using the application layer. The alliance chain layer comprises an alliance chain link point sub-layer and a storage sub-layer, wherein the alliance chain link point sub-layer is used as a blockchain network and can provide consensus, account book and intelligent contract execution functions, the storage sub-layer is provided with edge configuration data storage equipment, the edge configuration data storage equipment is correspondingly connected with a field control network and is used for storing configuration data of an editable controller in the field control network which is correspondingly connected and performing configuration data chain access of the editable controller in the field control network which is correspondingly connected, a guarantee is provided for nearby access of the programmable controller, the configuration data editing network is connected with the alliance chain link point sub-layer and is used for providing editing service for the configuration data and ensuring writing and updating of the data in the blockchain. Therefore, the management system is built through the two-layer network of the alliance chain layer and the application layer, the operation efficiency of the blockchain is improved, the high availability, the accuracy, the safety and the change traceability of the configuration data of the programmable controller are effectively guaranteed, the edge configuration data storage equipment is introduced, the information isolation is realized, the management efficiency is improved, and the powerful guarantee is provided for the safety of the management work of the configuration data of the programmable controller by utilizing the locality of the configuration data and the high efficiency of the nearby access.
In some embodiments, as shown in FIG. 2, the federation link point sublayer may include a first federation link node and a second federation link node in communication with each other. The first alliance chain node is connected with a configuration data editing network; the second federation node is connected to an edge configuration data store.
In practice, the first federated chain node is the federated chain node to which an application editing configuration data in the blockchain network is connected, on which intelligent contracts for configuration data uplink and configuration data reading are deployed. An application program for editing configuration data in the blockchain network is arranged in the configuration data editing network, and a user can change and update the configuration data in the blockchain network in an editing mode. For example, an industrial engineer may modify recipe data stored in a blockchain network by an application in a configuration data editing network, and record information of user operations to facilitate traceability of configuration data changes.
The second federation chain node is the federation chain node to which each edge configuration data storage device is connected, on which are also deployed intelligent contracts for configuration data uplinking and reading configuration data.
The number of the second federation chain nodes can be consistent with the number of the edge configuration data storage devices, so that the guarantee is provided for the nearby access. Likewise, the number of field control networks may be consistent with the number of edge configuration data storage devices, and the number of programmable controllers in the field control networks may be set according to actual requirements, which is not limited herein. As shown in fig. 2, there are two second federation nodes, namely, a second federation node 1 and a second federation node 2, and accordingly, the second federation node 1 is connected to the edge configuration data storage device 1, the second federation node 2 is connected to the edge configuration data storage device 2, and three programmable controllers, namely, the programmable controller 1, the programmable controller 2 and the programmable controller 3, are in the field control network connected to the edge configuration data storage device 2.
When the method is implemented, the edge configuration data storage device is downwards connected with the field control network, and configuration data of a programmable controller in the network are saved, so that spatial locality and temporal locality of the configuration data can be provided, a user can acquire the configuration data in near real time through the programmable controller, and meanwhile, the space occupation rate of the edge configuration data storage device is reduced. In practice, each field control network may use real-time industrial Ethernet communication. The edge configuration data storage device is connected with the second alliance link node upwards and is used for accessing the programmable controller configuration data chain, and the edge configuration data storage device reads required configuration data through the second alliance link node or updates the configuration data stored by the edge configuration data storage device after the configuration data in the blockchain is updated.
In practical applications, the editing of configuration data in the blockchain network based on the configuration data uplink contract and the read configuration data contract may be performed locally in the programmable controller or at an application program in a dedicated configuration data editing network. When the stored data is edited, the stored data can be read by using a read configuration data contract, and the stored data is edited and then is uplink by using the configuration data uplink contract.
In some embodiments, as shown in FIG. 2, the application layer may also include a security audit network; the federation link point sublayer may also include a third federation link node; the security audit network is connected with the third alliance link node and is used for reading corresponding configuration data through the third alliance link node according to audit requirements and auditing.
In implementation, an application program in the security audit network can read the configuration data through the third federation link node to meet audit requirements and cannot change the configuration data. The third alliance chain node is deployed with a security audit configuration data intelligent contract, and can establish a complete change history record of certain configuration data, and the change history record provides a highly trusted evidence due to the non-falsification of the blocks of the blockchain.
In particular implementations, the audit requirements may include periodic routine audit requirements and specific altered audit requirements. The periodic routine audit needs are in turn divided into audit needs for configuration data changes and audit needs for the attached data referenced in the production plan. The audit for the change of the configuration data is the same as the audit for the attached data quoted in the production plan, and the configuration data is read, and the authorization of a change person and the digital signature thereof are compared to ensure that unauthorized change audit does not occur. The specific change audit is an audit which traces back the history of the specific change after a problem occurs.
In some embodiments, as shown in fig. 2, the application layer may further include a production management application network, and the federation link point sub-layer may further include a fourth federation link node; the production management application network is connected with the fourth alliance chain node and is used for providing production plan information and writing the production plan information into the alliance chain layer so as to realize production management service.
The production plan information carries identification information of the editable controller.
In particular implementations, the fourth federation chain is deployed with a production plan smart contract. The production management application network provides production planning information, specifies configuration data that a particular programmable controller should use, such as production process and configuration data required to produce a certain product for a particular production line, and writes the production planning information into the blockchain.
It is to be understood that the same or similar parts in the above embodiments may be referred to each other, and that in some embodiments, the same or similar parts in other embodiments may be referred to.
It should be noted that in the description of the present application, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Furthermore, in the description of the present application, unless otherwise indicated, the meaning of "plurality" means at least two.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and further implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present application.
It is to be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
Those of ordinary skill in the art will appreciate that all or a portion of the steps carried out in the method of the above-described embodiments may be implemented by a program to instruct related hardware, where the program may be stored in a computer readable storage medium, and where the program, when executed, includes one or a combination of the steps of the method embodiments.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing module, or each unit may exist alone physically, or two or more units may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules. The integrated modules may also be stored in a computer readable storage medium if implemented in the form of software functional modules and sold or used as a stand-alone product.
The above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, or the like.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present application. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the application, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the application.