A concurrent execution method for distributed industrial control driven by event and time hybrid
Through a hybrid event- and time-driven method, combined with concurrent execution semantics and control function blocks, the problem of deterministic and real-time performance of concurrent execution semantics in industrial distributed control systems is solved, achieving system stability and compatibility, and improving application flexibility and portability.
Patent Information
- Application Number
- CN202210457889.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-27
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-04-27
AI Technical Summary
Existing technologies lack the certainty and real-time nature of concurrent execution semantics in industrial distributed control systems, resulting in limited computing capabilities of edge devices and affecting application portability and compatibility.
A distributed industrial control concurrent execution method driven by event and time hybridization is adopted. By introducing deterministic concurrent execution semantics and concurrency control functional blocks of timestamps, combined with general concurrency semantics, splitting and merging semantic rules, the stability and real-time performance of concurrent execution are achieved. sex and compatible with the IEC 61499 standard.
While supporting concurrency, it ensures the determinism and stability of discrete-time systems, provides flexibility and compatibility for industrial applications, and improves the execution efficiency and portability of distributed control systems.
Smart Images

Figure CN114911203B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of distributed industrial control, and in particular to a distributed industrial control concurrent execution method driven by event and time hybrid. Background Art
[0002] In the era of industrial Internet, as the computing power and storage capacity of production equipment continue to increase, the manufacturing industry has an increasingly urgent need for industrial control software that can give full play to the multi-core computing power of equipment and is portable and reconfigurable. The new generation of industrial distributed control systems needs to provide a design model of hardware and software decoupling and an event-driven execution method at the system level to break down the incompatibility barriers between products of different application suppliers.
[0003] Existing methods have proposed an event-time hybrid driven execution mechanism, but they have not achieved concurrent compatibility and performance improvement based on this mechanism. Although it can ensure the stability of execution, it limits the computing power of edge devices in the context of the development of multi-core controllers. The applications implemented by runtime vendors based on their own different semantic interpretations do not have concurrent execution determinism and real-time performance, which in turn affects the portability of industrial distributed runtimes.
[0004] Existing concurrent execution semantics methods lack determinism. In existing execution methods, two events triggered at the same time can be executed simultaneously, but the concepts of determinism and real-time are not introduced, nor are the isolation and synchronization mechanisms of concurrent processes explained.
[0005] Existing concurrent execution semantics methods lack functional blocks for concurrency control. Existing methods do not specify functional blocks dedicated to concurrency control, and functional blocks are often abbreviated as connecting lines, resulting in incomplete logic, which is not conducive to the implementation of concurrency control in industrial concurrent applications.
[0006] The existing execution semantics methods that introduce timestamps have poor concurrency compatibility and are difficult to ensure the portability and compatibility of distributed industrial control applications.
[0007] Therefore, technicians in this field are committed to developing a distributed industrial control concurrent execution method driven by events and time. The semantic method and implementation of concurrent execution of distributed systems are fully provided; it can ensure the determinism and stability of discrete time system execution while supporting concurrency; it can be convenient for program developers to use, bringing flexibility to the construction of industrial applications. Summary of the invention
[0008] In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is to design a deterministic concurrent execution semantics method that introduces timestamps to ensure the determinism of concurrent execution of distributed industrial control; to propose a function block dedicated to concurrent control to maintain the determinism, real-time performance, scalability and flexibility of concurrent execution semantics; and to be compatible with the existing IEC 61499 standard syntax and concurrent execution semantics to ensure forward compatibility of industrial concurrent applications.
[0009] To achieve the above objectives, the present invention provides a distributed industrial control concurrent execution method driven by a hybrid of events and time, including proposing semantic rules for concurrent splitting and merging processes based on the combination of event triggering and time triggering, and using concurrent control function blocks to implement control.
[0010] Furthermore, the semantic rules include concurrent general semantics, concurrent split semantics and concurrent merge semantics.
[0011] Furthermore, the semantic rules include eight concurrent semantic rules.
[0012] Furthermore, the semantic rules are compatible with the original IEC 61499 semantic rules.
[0013] Furthermore, the general concurrency semantics include event source concurrency rules, concurrency fault scopes, event constantization rules and concurrent process isolation.
[0014] Furthermore, the concurrent splitting semantics include splitting output synchronization rules and splitting cascade expansion rules.
[0015] Furthermore, the concurrent merge semantics include concurrent merge synchronization rules and merge cascade expansion rules.
[0016] Furthermore, the concurrency control functional block includes a concurrency splitting control functional block and a concurrency merging control functional block.
[0017] Furthermore, the concurrency control function block includes a basic function block and a composite function block.
[0018] Furthermore, the concurrency control function block supports cascading expansion.
[0019] In a preferred embodiment of the present invention, in order to solve the above-mentioned problem, the present invention provides a concurrent execution method for a distributed industrial control system based on a hybrid drive of time and events. On the basis of combining event triggering with time triggering, semantic rules are proposed for the concurrent splitting and merging processes, and concurrent splitting and merging control functional blocks are given to achieve flexible control, so as to ensure the stability and real-time performance of concurrent execution in the distributed control system.
[0020] like Figure 1As shown, under the support of the event-time mechanism, the present invention proposes eight concurrent semantic rules in three aspects: concurrent general semantics, concurrent splitting and merging semantics, and is compatible with the original semantic rules, and regulates and constrains the isolation, synchronization and cascading of concurrent processes. First, the present invention takes into account the hard real-time requirements of industrial applications, and introduces the definition of discrete events (TDE) with timestamps. On this basis, the IEC 61499 concurrent execution semantics is proposed to be universal for splitting, merging and concurrent execution processes, which are:
[0021] 1) Event source concurrency rules. That is, multiple event source function blocks that are triggered independently are concurrent.
[0022] 2) Concurrent fault impact domain: Any fault in a concurrent process will affect the execution of other concurrent processes, and fault handling must be targeted at all concurrent processes.
[0023] 3) Event constantization rules: Discrete events in the system cannot be modified during their life cycle from generation to extinction, and accidental modifications will lead to unexpected errors.
[0024] 4) Concurrent process isolation. Concurrent processes should maintain the independence of events and data that trigger execution to avoid loss of modifications and deadlock during execution, that is, concurrent processes are isolated from each other.
[0025] Secondly, the present invention respectively discusses the concurrent splitting process (such as Figure 2 ) and concurrent merge processes (as shown Figure 3 As shown in Figure 1, four semantic rules are proposed:
[0026] 1) Split output is generated simultaneously. The output events of event concurrent splitting are logically created at the same time, and there is no order of precedence.
[0027] 2) Concurrent splitting and cascading expansion. Concurrent splitting of events can expand the scale of the split events through cascading on the same resource, and the output events are still concurrent.
[0028] 3) Concurrent merge synchronization rules. Concurrent merge requires synchronization of the merge logic of asynchronous input events. Output events can only be obtained after the merge logic is satisfied.
[0029] 4) Concurrent merge cascade expansion. Concurrent merge can expand the scale of input TDEs to be merged through cascading within the same resource. Any concurrent merged input TDE in the cascade structure is still concurrent.
[0030] like Figure 4As shown, based on the concurrent semantic rules, the present invention provides the concurrency control function blocks that match the concurrency semantic rules, corresponding to the concurrent splitting and merging processes respectively. According to the splitting and merging processes, the basic function blocks and the composite function blocks are included. As the carrier of concurrent execution semantics, the function blocks can support cascade expansion and are compatible with the existing function blocks, meeting the flexibility requirements of concurrent control. Figure 5 It is the basic concurrent splitting functional block; Figure 6 It is a composite concurrent splitting functional block; Figure 7 It is the basic concurrent merging function block; Figure 8 It is a composite concurrent merge function block.
[0031] In another preferred embodiment of the present invention, the internal event-driven execution diagram of the concurrent control function block can be modified. Although the functions are consistent, other methods such as service sequence diagrams can be used to express the internal state jump. The internal function block network structure of the composite function block can be adjusted. The functions are consistent, but the internal topology network can be modified. The number of output interfaces of the concurrent split function block or the number of input interfaces of the concurrent merge function block can be increased. Although different from the above-mentioned embodiments, the internal cascade logic and semantic basis can be the same.
[0032] Compared with the prior art, the present invention has the following obvious substantial features and significant advantages:
[0033] 1. The present invention provides a concurrent execution semantics method for a distributed industrial control system, which can ensure the determinism and stability of discrete time system execution while supporting concurrency.
[0034] 2. Provide a concurrency control function block that is compatible with deterministic concurrent execution semantics, which is convenient for program developers to use and brings flexibility to the construction of industrial applications.
[0035] 3. The deterministic concurrent execution semantic method and concurrency control function block proposed in the present invention are compatible with the existing IEC61499 standard, and fully provide the semantic method and implementation of concurrent execution of distributed systems.
[0036] The concept, specific structure and technical effects of the present invention will be further described below in conjunction with the accompanying drawings to fully understand the purpose, characteristics and effects of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a concurrent execution semantic rule of a preferred embodiment of the present invention;
[0038] Figure 2 It is a concurrent splitting process of a preferred embodiment of the present invention;
[0039] Figure 3It is a concurrent merging process of a preferred embodiment of the present invention;
[0040] Figure 4 It is a concurrency control functional block of a preferred embodiment of the present invention;
[0041] Figure 5 It is a basic concurrent splitting functional block of a preferred embodiment of the present invention;
[0042] Figure 6 It is a composite concurrent splitting functional block of a preferred embodiment of the present invention;
[0043] Figure 7 It is a basic concurrent merging functional block of a preferred embodiment of the present invention;
[0044] Figure 8 It is a composite concurrent merging functional block of a preferred embodiment of the present invention;
[0045] Fig. 9 is a basic concurrent split function block execution control diagram of a preferred embodiment of the present invention;
[0046] Fig.10 It is a basic concurrent merge function block execution control diagram of a preferred embodiment of the present invention;
[0047] Fig.11 It is an IEC 61499 function block model of a preferred embodiment of the present invention;
[0048] Fig.12 It is the internal logic of the IEC 61499 function block of a preferred embodiment of the present invention;
[0049] Fig.13 The present invention is an IEC 61499 function block execution triggering process of a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0050] The following describes several preferred embodiments of the present invention with reference to the drawings in the specification, so that the technical content is clearer and easier to understand. The present invention can be embodied in many different forms of embodiments, and the protection scope of the present invention is not limited to the embodiments mentioned in the text.
[0051] In the drawings, components with the same structure are indicated by the same numerical reference numerals, and components with similar structures or functions are indicated by similar numerical reference numerals. The size and thickness of each component shown in the drawings are arbitrarily shown, and the present invention does not limit the size and thickness of each component. In order to make the illustration clearer, the thickness of the components is appropriately exaggerated in some places in the drawings.
[0052] The invention relates to a distributed industrial control system, in particular to a deterministic concurrent execution method of an IEC61499 function block model in an industrial distributed control system.
[0053] The present invention provides a complete semantic method for concurrent execution of distributed industrial control applications, including splitting, merging and general processes; provides a complete set of concurrent control function blocks that are compatible with the semantic method to achieve flexible control; and isolates concurrent processes from each other, which can greatly improve the execution efficiency of the application. This is the first time that the semantics of concurrent execution of function blocks in industrial distributed control systems is proposed and deterministic, and there is no related work before.
[0054] Based on the graphical programming method familiar to industrial application developers, the IEC 61499 standard extends the subroutine structure of IEC 61131-3 to the function block (FB) in the distributed system and uses it as the basic functional unit. The function block encapsulates the abstract logic code and provides a unified interface, which is interconnected with other function blocks to exchange events and data information. The IEC 61499 standard can be used as a system-level executable modeling language to develop industrial applications. Its core is the event triggering mechanism executed by the function block network. The application development method of decoupling software and hardware is also the main innovation of IEC 61499. Developers build the automation system model through the function block network at the software level, and then flexibly deploy it to a variety of hardware device resources through system configuration, mapping mechanism and management instructions.
[0055] Event-driven function blocks are the core of the IEC 61499 standard. Function blocks encapsulate control logic, data acquisition, and data analysis modules written in different programming languages. IEC61131-3 standard programming languages such as Graph and Structured Text (ST) as well as high-level programming languages such as C++, Java, and Python can all build the internal logic of function blocks. Unified interfaces, abstract logic, and programming languages with high degrees of freedom bring high reusability to IEC 61499 function blocks.
[0056] IEC 61499 standard function blocks all use the XML file format defined by the IEC 61499-2 standard, which improves the compatibility between open source software and commercial software and ensures that industrial applications created by the IEC 61499 integrated development environment can run on devices on different platforms.
[0057] The IEC 61499 management model and XML-based management instructions can dynamically create, delete and modify function block types, instances, events and data connections. The runtime environment that supports the IEC 61499 standard can dynamically reconstruct applications without affecting the normal operation of the system. This also points the way for plug-and-play of device hardware and load balancing of tasks.
[0058] The IEC 61499 deployment model maps function block instances to device resources to achieve distributed agile deployment. Device resources communicate through a publish-subscribe mechanism, and software and hardware products from different manufacturers can also collaborate to complete production tasks with the help of the bus and publish-subscribe mechanism.
[0059] IEC 61499 function blocks are the basic units and syntax formats of the IEC 61499 standard that reflect robustness and reusability. They can encapsulate abstract control logic or industrial algorithms to lower the programming threshold. Heterogeneous and complex distributed control system engineering problems can be abstracted and simplified into the selection, configuration and deployment process of function block applications through function blocks.
[0060] Function blocks have a custom data structure and can encapsulate a variety of control logic or algorithms to operate device resources. Structurally, function blocks include two parts: external interface and internal function:
[0061] · External interface. The external interface of the function block includes event input / output and data input / output. Event input and output are generally of EVENT type, while data input / output can be flexibly selected from BOOL, INT, REAL and STRING types according to the function. The function block uses the association between time and data to update data input when event input occurs and update data output when event output occurs, which is consistent with the event-driven execution mechanism of IEC61499.
[0062] Internal functions. The internal part of a function block can be divided into two parts: execution control and built-in functions. Execution control can be provided by the developer's design or by device resources. The specific implementation of built-in functions can be flexibly determined by the developer according to needs and application scenarios. It can be implemented through programming languages such as ST or ladder diagrams, or through the form of function block network compound.
[0063] exist Fig.11Two INT type data adders are implemented in the function block. The external interface on the left corresponds to the event / data input port, and the one on the right corresponds to the event / data output port. The head of the function block processes and transmits the event stream, and the body processes the data. The head determines the update timing of the tail through the association between events and data. For example, when the input event REQ arrives, the data inputs IN_1 and IN_2 are updated. Before that, even if the data input connected to the data input is updated, the values of IN_1 and IN_2 will not change. Under the same external interface rules, the function block can be divided into different forms according to the organizational structure and representation of the internal functions, mainly including:
[0064] 1) Basic Function Block: The internal functions of the Basic Function Block (BFB) are mainly represented by the control algorithm and the Execution Control Chart (ECC).
[0065] 2) Composite Function Block: The internal functions of a Composite Function Block (CFB) are determined by the organizational structure of the internal function block network. Function blocks are the built-in functional programming language of CFB.
[0066] 3) Service Interface Function Block: The Service Interface Function Block (SIFB) describes the interaction process between the external interface and internal resources through the Service Sequence Diagram.
[0067] Developers can flexibly select the function block type to develop and implement the logic function according to the design requirements. Fig.11 There are two implementation forms of the adder in Fig.12 As shown in the figure. The ECC diagram of the basic function block mainly includes the control execution state (Execution Control State), control execution action (Execution ControlAction) and execution control transition (Execution Control Transition). ECC starts from the initial state, goes through a series of control execution transitions and executes the algorithm logic and event output in the control execution action, and finally returns to the initial state to complete a basic function block triggering process. The service interface function block uses a series of service primitives in the service sequence diagram to control the interaction between applications and device resources. Fig.10The basic function block in (a) updates the data input after receiving the event input. According to the implementation of the basic function block in the execution control diagram of the basic function block implementation, when the event REQ arrives, the input event is converted to S_ADD through the execution control transition condition, and then the ADD algorithm is executed and the CNF event is output, and finally the initial state START is returned. According to the implementation of the service interface function block in the service series diagram of (b) the service interface function block implementation, when the event REQ arrives, the ADD algorithm is executed, and then the CNF event is output through the external event output interface. It should be noted here that the OUT calculated in the ADD algorithm is saved in the output variable before the output event updates the data output, and the data output is not written.
[0068] The function block network is constructed by connecting function blocks through events and data, and the basic unit of its execution logic is the execution of the function block. When an input event arrives, the function block is triggered, executes the internal logic, and outputs data or events according to the internal function and trigger status. The internal function of the function block is only visible to the function block. For the external function block, the execution of the function block is only based on the received event input, executes the internal logic, obtains the event output, and triggers the execution of subsequent function blocks through the event trigger mechanism. The present invention mainly focuses on the event flow, and the data update is passive. Even if the source of the data is not updated, event-triggered data sampling is required. Fig.13 It is the IEC 61499 function block execution trigger process.
[0069] like Fig. 9 As shown, the concurrent splitting function block accepts the trigger of a single input event and outputs multiple output events at the same time. After receiving the input event EI trigger, the E_SPLITB function block changes from the initial state START to the S_SPLITB control execution state. There is no corresponding algorithm logic here. The EO_1 and EO_2 events are output at the same time, and then the function block returns to the START initial state, which is consistent with the concurrent splitting semantic rules.
[0070] Too many cascades of basic concurrent split function blocks will make the IEC 61499 application network large and poorly readable, which will make development and maintenance difficult. Figure 6 The function block network cascade method shown splits a single input event into multiple output events concurrently, and the output of the events is concurrent. The internal logic of the E_SPLITC function block is composed of the cascade of E_SPLITB_1 and E_SPLIT_2 function blocks. There is no difference in the execution time between the cascade of the E_SPLITC function block and the E_SPLITB function block, and both can be ignored. The output events EO_1, EO_2, and EO_3 are concurrent, and the execution logic corresponding to their trigger event chains is also consistent.
[0071] like Fig.10As shown in the figure, in the concurrent merged event-driven execution graph, there are two internal variables and ACODE. The internal variable ACODE identifies the current trigger state and is a static variable with an initial value of 0. Each input event trigger will modify the value and keep the value unchanged at the next trigger. The internal variable T identifies the threshold. When ACODE reaches the threshold, the event output can be obtained, and ACODE is restored to the default value, with an initial value of 3. The state transition process of event-driven execution can be described as converting from the START initial state to the control execution state S_MERGE_O_1 or S_MERGE_O_2 every time the time comes, and increasing the ACODE variable by 1 or 2 through the ADD_1 and ADD_2 algorithms. Then determine whether the current ACODE exceeds the threshold T. If it exceeds, it will enter the S_READY state, execute the RESET algorithm to reset ACODE to the default value 0, and output the event EO, and finally restore the initial state; if it does not exceed, it will directly restore the initial state START and wait for the next trigger.
[0072] Similarly, when multiple input events need to be merged, multiple basic concurrent merging function blocks need to be cascaded to complete the merging operation, which leads to an increase in the scale of the function blocks and is not easy for developers to maintain. Figure 8 The function block network cascade method shown merges multiple concurrent input events into a single output event. Here, the output event can only be obtained after all input events are triggered, which is consistent with the semantics of concurrent merging. One thing to note in the concurrent merging function block is that no two input events can reach the event merging function block at the same time during execution. If the developer's concurrent scheduling logic has a function block that is triggered by multiple input events at the same time, it will cause execution errors, which is inconsistent with deterministic concurrency.
[0073] The basic concurrent split and merge function blocks correspond to single split and merge in concurrent execution semantics, while the composite concurrent merge and split function blocks correspond to multiple merges and splits.
[0074] The preferred specific embodiments of the present invention are described in detail above. It should be understood that ordinary technicians in the field can make many modifications and changes based on the concept of the present invention without creative work. Therefore, all technical solutions that can be obtained by technicians in the technical field based on the concept of the present invention through logical analysis, reasoning or limited experiments on the basis of the prior art should be within the scope of protection determined by the claims.
Claims
1. A method for concurrent execution of distributed industrial control driven by event and time, characterized in that: It includes proposing semantic rules for concurrent splitting and merging processes based on the combination of event triggering and time triggering, and using concurrent control function blocks to achieve control; IEC 61499 concurrent execution semantics is common to the rules for splitting, merging, and concurrent execution processes, which are: 1) Event source concurrency rules: Multiple event source function blocks that are triggered independently are concurrent; 2) Concurrent fault impact domain: Failures in any concurrent process will affect the execution of other concurrent processes, and fault handling is for all concurrent processes; 3) Event constantization rule: Discrete events in the system cannot be modified during their life cycle from generation to extinction. Unexpected modifications will lead to unexpected errors. 4) Concurrent process isolation: Concurrent processes maintain the independence of events and data that trigger execution, avoiding loss of modifications and deadlock during execution. Concurrent processes are isolated from each other. The four semantic rules of the concurrent split process and concurrent merge process are: 1) Split output is generated simultaneously: The output events of event concurrent splitting are logically created at the same time, and there is no order of precedence; 2) Concurrent splitting and cascading expansion: Concurrent splitting of events expands the scale of the split events through cascading on the same resource, and the output events are still concurrent; 3) Concurrent merge synchronization rules: Concurrent merge requires synchronization of the merge logic of asynchronous input events. Output events can only be obtained after the merge logic is satisfied. 4) Concurrent merge cascade expansion: Concurrent merge can expand the scale of input TDEs to be merged through cascading within the same resource. Any concurrent merged input TDE in the cascade structure is still concurrent.
2. The event- and time-mixed-driven distributed industrial control concurrent execution method according to claim 1, characterized in that: The semantic rules include concurrent general semantics, concurrent split semantics and concurrent merge semantics.
3. The event- and time-mixed-driven distributed industrial control concurrent execution method according to claim 1, characterized in that: The semantic rules include eight concurrent semantic rules.
4. The event- and time-mixed-driven distributed industrial control concurrent execution method according to claim 1, characterized in that: The semantic rules are compatible with the original IEC 61499 semantic rules.
5. The event- and time-mixed-driven distributed industrial control concurrent execution method according to claim 1, characterized in that: The concurrency control functional block includes a concurrency splitting control functional block and a concurrency merging control functional block.
6. The event- and time-mixed-driven distributed industrial control concurrent execution method according to claim 1, characterized in that: The concurrency control function block includes a basic function block and a composite function block.
7. The event- and time-mixed-driven distributed industrial control concurrent execution method according to claim 1, characterized in that: The concurrency control function block supports cascading expansion.
