Verification of design of functional module for modular industrial plant
By verifying input/output channels and rule sets during the functional module design stage, identifying and correcting design errors, the problem of difficulty in early detection of design errors in modular industrial factories is solved, and the cost of later discovery of errors is reduced.
Patent Information
- Application Number
- CN202410327724.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-29
- Filing Date
- 2024-03-21
- Publication Date
- 2024-10-01
AI Technical Summary
During the engineering design phase of modular industrial plants, design errors in functional modules are difficult to detect early, resulting in significant increases in costs when errors are discovered later.
Identify and correct design errors by using computer-implemented methods to verify that input/output channels and their connections satisfy specific rule sets during the functional module design phase, including checking parameter unit consistency, threshold ordering, type compatibility, and dependencies , use symbolic model verification tools to verify state transitions to ensure the correctness of functional modules.
Identifying and correcting design errors at an early stage significantly reduces the cost of fault discovery for functional modules during factory acceptance testing and field acceptance testing, and reduces the cost increase caused by delayed error discovery.
Smart Images

Figure CN118732644A_ABST
Abstract
Description
Field of the Invention
[0001] The invention relates to an aid in the design of functional modules for modular industrial plants, the purpose of which is to detect any design errors at an early stage. Background Art
[0002] Modular process plants allow plant operators to switch between producing different products. For example, it may only take a few weeks to produce a year's supply of each specific product. In this case, it is not economical to have a fixed plant for each product in terms of hardware and space. Instead, when switching to manufacturing a new product, the correct process modules are picked from the pool of available modules to form a plant to produce that product. This means that some process modules from the pool of available modules may be reused in multiple different plants.
[0003] During the engineering phase of modular plant design, an important activity is function module engineering. A function module is designed using a graphical module engineering tool. The tool allows developers to define HMI, IO tags, define services, and configure the state machine corresponding to each service. Once the module is designed, it must be verified and validated before it is released to plant-level engineering and integrated with other modules. From a business perspective, faults found earlier in engineering are cheaper than those found later. As a rule of thumb, there is a factor of 10 in the cost of finding faults in various stages. That is, it is 10 times cheaper to find a bug already during control engineering than to find it during factory acceptance testing (FAT). It is 10 times cheaper to find a bug in the FAT than to find it in the field acceptance test, and so on. Therefore, the later a bug is found, the more likely it is that the cost will increase by 100 times. Summary of the invention
[0004] It is therefore an object of the present invention to facilitate the detection of design errors in functional modules at an early stage, thereby minimizing their adverse effects.
[0005] This object is achieved by a method according to the independent claim. Further advantageous embodiments are specified in the dependent claims.
[0006] The present invention provides a computer-implemented method for verifying the design of a functional module used in a modular industrial plant. The functional module is software that is built to run on the physical process modules of the modular industrial plant. The software can be designed for an already existing physical process module. However, it is also possible to design the functional module first, when the corresponding physical process module does not yet exist. That is, after the software has been engineered and tested, the corresponding physical process module can be built. This means that errors in the design of the functional module can be corrected without changing the hardware.
[0007] The functional module includes control logic configured to receive sensor data and to stimulate the physical process module so that at least one process quantity and / or state quantity of the process module can be maintained near a desired set point value. The functional module also includes logic for receiving commands from a superior management system. Communication between the logics, and between the functional modules and the rest of the modular industrial plant, is by means of input / output channels representing parameters and / or variables.
[0008] During the process of the method, a rule set is obtained. The rule set includes at least requirements for I / O channels and connections of the I / O channels, which are necessary conditions for the functional module to perform the intended function of the functional module in the modular industrial plant. Then, it is checked whether the input / output channels and their connections in the functional module satisfy the rules in the rule set. In response to determining that at least one rule in the rule set is not satisfied, it is determined that the design of the functional module has an error. The use of the functional module in the modular industrial plant is then blocked. For example, if it is determined that the functional module has an error, the system implementing the method may refuse to upload the functional module software to the hardware of the physical process module; instead, an error message may alert the designer of the functional module to the specifically identified error. Therefore, the designer has to correct the error.
[0009] Research has found that inconsistencies in the input / output channel list are one of the most common reasons why function blocks do not work as expected. At the same time, many consistency checks on this input / output channel list can be performed offline without actually executing the function block. Previous block design tools did not perform any consistency checks and conflict checks. That is, the design tool would allow the block designer to make arbitrary connections between input / output channels of different entities without complaining that a particular connection did not make sense. The design tool would not complain if a connection that should be there was missing.
[0010] Of course, using a finite set of rules to identify errors cannot be exhaustive. There are an almost infinite number of ways in which errors can occur. However, a few well-known errors account for a very large share of the total number of errors in a functional module. By identifying and eliminating these errors in the early stages of design, the probability of undetected errors in a functional module can be greatly reduced. Every error found in the early stages represents a significant cost savings that would otherwise have cost a lot if that particular error had been discovered later, for example, during the factory acceptance test (FAT) or site acceptance test (SAT).
[0011] Examples of possible rules for detecting common errors in input / output channel lists are given below.
[0012] In an example, a rule may specify that all parameters and / or variables must have an accompanying unit of measure. Without such a unit of measure, the physical size of the parameter and / or variable is unclear. In particular, it is unclear how to reasonably group the affected parameter and / or variable with other parameters and / or variables.
[0013] In another example, a rule may specify that when a parameter and / or variable is passed from one logic or entity to another, the unit of measurement associated with the parameter and / or variable on the sending end must match the unit of measurement associated with the parameter and / or variable on the receiving end. In this way, it is avoided that the receiving end obtains and processes something completely different than expected, thereby producing unpredictable results. For example, if the receiving end expects a pressure reading measured in bars, and the sending end sends "5 volts" to the receiving end, the receiving end may interpret this as "5 bars", even though the voltage is not in any way connected to the pressure being sought. Furthermore, connecting an output in volts to an input that expects bars may be a mistake made by the functional module designer when manually drawing the connection in the design tool.
[0014] In another example, the rule may specify that the nested ranges for parameters and / or variables must be consistent. In particular, different thresholds are often defined to determine whether an alarm should be issued regarding a process variable. For example, if the variable drops below a first "low" threshold, a "low" alarm may be issued, and if the variable further drops below a second "low-low" threshold, a "low-low" alarm may be issued. Similarly, if the variable rises above a first "high" threshold, a "high" alarm may be issued, and if the variable further rises above a second "high-high" threshold, a "high-high" alarm may be issued. That is, the normal range is between the "low" threshold and the "high" threshold, and this is the area nested between the "low-low" threshold and the "high-high" threshold, which is at least not too far away from the normal range. In order for the alarm system to work as expected, the thresholds must be in the order of "low-low", "low", "high", "high-high" on the scale of the variable. If the order is incorrect, a malfunction may occur. For example, a functional module designer may accidentally confuse two thresholds by ignoring that one of them has a negative sign.
[0015] In another example, a rule may specify that set points for parameters and / or variables must be within an allowed range for those parameters and / or variables. It is illogical to actively move parameters and / or variables to values outside of the allowed range.
[0016] In another example, a rule may specify that the value written to a parameter and / or variable must be compatible with the type of the parameter and / or variable. For example, it does not make sense to assign a numeric value to a Boolean variable, which can only have two values, "True" and "False". In addition, writing a large integer value to a variable that is too small to hold the large value may cause an "integer overflow", causing the value to be truncated at the maximum possible value, or to "wrap around" from zero. Any subsequent calculations performed after such an "integer overflow" will produce an erroneous final result.
[0017] In another example, a rule may specify that all connections between entities are between an output channel of one entity and an input channel of another entity. If two input channels are connected to each other, one of the input channels may wait for an input that never arrives. If two output channels are connected to each other, the sender may pass a value that never actually reaches the intended receiver. Either way, information is not flowing in the way it is supposed to, and the functionality of the physical process module that operates with this faulty logic is hampered.
[0018] In another example, the rule may specify that all input channels required for the operation of a function module and / or a logic of a function module are connected. Without values for one or more required inputs, the module will not be able to operate, so this is likely to be missing.
[0019] In a particularly advantageous embodiment, dependencies of at least one of the function modules and / or the logic of the function modules can be checked over the input / output channels of the function modules. For this purpose, a topology of the function modules is determined. This topology may correspond at least partially to the layout of a human-machine interface (HMI). However, this is not necessary. The topology may also contain variables and functions that are not visible in the HMI.
[0020] From the topology, a dependency graph involving the functional modules and / or at least one logic of the functional modules is determined. The nodes in this graph may include, for example, functional modules, logic of the functional modules, or process elements such as motors, valves and other actuators.
[0021] The graph is then traversed using any suitable method, and during the traversal, nodes encountered in the graph are recorded. Based on at least one predetermined criterion, it is determined from the encountered nodes whether the design of the functional module has errors. In particular, if some prompt signatures appear in the encountered nodes, it will indicate that the design of the functional module has errors.
[0022] In an example, in response to determining that there is a circular dependency of nodes from the encountered nodes, the design of the functional module is determined to have an error. Such a circular dependency cannot be satisfied and therefore cannot correspond to the actual requirements of the industrial process to be executed.
[0023] In another example, it is determined whether all encountered nodes have a set of required properties, and / or whether all of these properties meet predetermined specifications. If the result of any of these determinations is negative, it is determined that the design of the functional module has errors. For example, without the knowledge of the designer of the functional module, another module reused in the functional module may also utilize other functional modules that require certain inputs. If these inputs are not provided, the other module and the functional module that is ultimately tested may not work. For example, the required specification may be the specification VDI 2658 describing the standard interface for modular industrial equipment.
[0024] In another particularly advantageous embodiment, the functional module has a set of services. Each such service can be in one of a set of states at any one time. The method further comprises determining, based at least in part on the set of states and / or transitions between states, whether the design of the functional module has an error according to at least one predetermined criterion.
[0025] In this context, the services provided by the functional modules can be viewed as similar to the services provided by a computer operating system. Each such service provides some of the functionality of the functional module. The difference is that during the execution of the industrial process in the modular industrial plant, the service may also reach a "completed" state for a specific batch of products. In an operating system, there is no such "completed" state because there is no production of batches of products in an operating system.
[0026] In particular, it may be checked whether a particular desired state, such as "running" or "completed", is actually reachable. Thus, in response to determining that the reachability of at least one state depends on at least one condition that cannot be satisfied and / or depends on at least two mutually exclusive conditions, it is determined that the design of the functional module has an error because the desired state is not actually reachable. By way of example, consider a cell phone provider that ostensibly offers a heavily discounted plan, but in the fine print limits its availability to "orders made at the seventh quarter of every hour". In principle, the discounted plan exists, but since there are only four quarters of an hour, in practice the discounted plan is not available.
[0027] Likewise, other program code in a functional module that is not actually reachable and executable may be identified as an error in the design of the functional module. Although such code does not cause immediate harm, its presence indicates that something is not operating as the functional module's designer intended.
[0028] In a particularly advantageous embodiment, in response to determining that at least one dependency for reachability of at least one state is a circular dependency, it is determined that the design of the functional module has an error. In this way, a common source of deadlock for functional modules can be avoided: with circular dependencies, the service runs into a "chicken or egg" situation: without the eggs there is no chicken, and the eggs need to come from the chicken.
[0029] In another advantageous embodiment, the set of states and / or the transitions between states are evaluated at least partially based on a causal matrix of states and transitions between states.In such a presentation of transitions, more situations are clearly distinguished as obvious errors.
[0030] In particular, in response to determining that at least one cause is associated with multiple effects, and / or multiple causes are associated with the same effect, it is determined that the design of the functional module has an error.
[0031] In another particularly advantageous embodiment, in response to determining that two services that are mutually exclusive according to predetermined safety conditions can be in operation at the same time, it is determined that the design of the functional module has an error. In this way, violations of safety conditions during operation of the functional modules of the modular industrial plant can be avoided or such violations of safety conditions can be prevented by the main safety mechanisms within the plant. Such safety mechanisms are intended to stop unsafe situations as quickly as possible without taking into account negative side effects on the subsequent operation of the plant. For example, an industrial process may be stopped immediately and / or the energy supply to the physical process module or even the entire plant may be cut off immediately, even if this means that the material currently being processed will cool and solidify in the physical process module and require hours of manual cleaning in the future to clear it out.
[0032] For example, verification of services and transitions between their states may be performed using a symbolic model verification tool such as nuSMV or SPIN.
[0033] NUSMV is a symbolic model validator tool jointly developed by CMU and IRST. NUSMV is available at the following URL http: / / sra.itc.it / tools / nusmv Available. NUSMV provides a specification language with which the properties of the model (described using the language) can be verified. NUSMV is a language for specifying finite state transition systems (FSMs). Therefore, this language is well suited for modeling services of functional modules. In addition, NUSMV allows concurrency; therefore, multiple service executions can be modeled in one functional module.
[0034] NuSMV (and NuXMV) specifications consist of module declarations, and each module may include variable declarations and constraints. System transformations are modeled by assignment constraints or transition constraints, which define the next values of the variables declared in the module. Assignments explicitly provide the values of the variables in the next step, while transition constraints, given by Boolean formulas, restrict the set of possible values after the transformation. Each module can be instantiated by another module, for example, by the main module from local variables.
[0035] The main purpose of a model checker is to verify that a model satisfies a set of expected properties specified by the user. In NUSMV, the specifications to be checked can be expressed in two different temporal logics: Computation Tree Logic (CTL) and Linear Temporal Logic (LTL) extended with past operators. CTL and LTL specifications are evaluated by NUSMV in order to determine their truth or falsity in the Finite State Machine (FSM) of a functional module and / or one of its services. When a specification is found to be false, NUSMV constructs and prints a counterexample, i.e., a trace of the falsified property of the FSM.
[0036] There is a special type of CTL property, called an invariant, which must be true for every reachable state of every execution.
[0037] In CTL-based property evaluation, the FSM is expanded into an infinite tree, where each node represents a state of the FSM and the edges from one state to another are possible state transitions. The paths in the tree represent the evolutionary sequence of the FSM starting from a state and going through a series of state transitions. Therefore, the paths simulate the possible executions of the system modeled by the FSM.
[0038] In CTL, we can write a formula AF p to represent the state that the system must eventually reach when condition p is true in all possible executions. Similarly, the formula EF p means that there are some executions when p is eventually confirmed. The formula AG p means that p is globally true in all possible execution states. Likewise, EG p means that in some execution, p is continuously true in all states of the execution.
[0039] Services can be modeled in various ways. One approach we propose to model services using NuSMV is as follows:
[0040] This model template represents the generic service state transitions defined in VDI 2658. This NuSMV model template can be modified to represent specific function module services by adding conditions under which the state transitions should occur. For example, an IO signal can be declared, which determines the transition from the starting state to the execute state. For example, consider the Fill and Disc services of the BPXX module. Assume that when Y0001.CloseFbk is true, then according to the causal logic associated with the run state of this service, Fill should enter the Finished state. This can be modeled as:
[0041] Likewise, state transition conditions can be associated with each state based on a cause-effect matrix.
[0042] Examples of safety conditions that can also be defined using the CTL property:
[0043] CTLSPEC AG!(fill.srv_state=execute&disc.srv_state=execute);}. This property means that for all execution states (G), all execution paths (A), fill and disc should not be in the "execute" state together.
[0044] In this example, this safety condition does not always satisfy all possible scenarios. A counterexample is shown below.
[0045] Intuitively, when both the filling and discharge services are in the active state, they can enter their respective execute states, as there is no direct control preventing them from being in the execute state at the same time. Therefore, according to the current model, this safety condition is violated.
[0046] Liveness conditions (ie, conditions under which a functional model is considered alive and functioning) can also be modeled.
[0047] A possible activity condition could be that for all possible cases, each service should eventually reach the execution state. The CTL property can check this condition for disc services: CTLSPEC AG (disc.srv_state=idle->AFdisc.srv_state= execute);
[0048] This property indicates that: If the current state of the disc is idle, for all execution paths (A), its state in the future (F) will be execute. The condition is true for all execution states (G) and all execution paths (A).
[0049] Intuitively, according to the current model shown in the example, this condition will be true, i.e. once the service is in the idle state, it will eventually reach the execute state for all possible scenarios. Therefore, the activity condition is satisfied.
[0050] Deadlock conditions can also be modeled. A serious deadlock situation could be that a particular service will never reach the completed state from the idle state under any circumstances. The following LTL properties can be used to check if the following deadlock properties are true: LTLSPEC! (fill.srv_state=idle->F fill.srv_state=completed) and LTLSPEC! (disc.srv_state=idle->F disc.srv_state=completed).
[0051] The above formula for the fill service shows that: The condition “If the current state is idle, then the service will eventually reach its completed state in the future” Never true for all execution paths.
[0052] According to the current model, there is no way to enable the fill or disc services to reach their respective completion states. Therefore, this deadlock property will always be satisfied. Developers need to do the following: 1. Modify the causal relationship and state transition logic for each service; 2. Generate the model shown in the above list; and 3. Check the deadlock LTL property. If the property is no longer satisfied, there will be no deadlock.
[0053] By using property verification methods (especially in combination with properties of nodes in the dependency graph), more complex property verification can be performed. Here are some of the properties: Does service A always trigger the activation of service B? Will the service be in a state where it cannot be completed? In terms of execution status, will the service be completed within a “certain time”? Is it possible for a service to trigger another service while it is stopped or paused?
[0054] Similar to NuSMV, SPIN is another explicit state model checker that supports LTL-based verification ( http: / / spinroot.com / spin / Man / ). Similar to NuSMV, it allows the user to first define an initial state init, which is executed at the beginning. PROMELA language is a model specification language of SPIN, which allows multiple processes to run asynchronously and communicate through reading and writing on channels. If the channel length is set to 0, the process will become synchronous.
[0055] The service validator module performs the following tasks to generate the SMV model of the functional module: 1. The service validator maintains templates for standard state transitions. 2. The service validator reads the list of tags and causal logic associated with each state of the service. To do this, it uses the existing API of the Module Design Workbench. 3. Once it reads the causal logic, it checks the conditions for the state transition, which is called the “Effect.” The “Cause” part becomes the input condition. 4. It extends the state transition template to attach the cause as the condition of the state transition. It also attaches the result of changing the output value as the state transition output. 5. The service validator completes the state transition for each service of the functional module. 6. The service validator creates a {\tt main} module to call these services. A sample {\tt main} module is shown above. 7. The Service Validator creates a set of CTL specifications from the dictionary of CTL property templates. 8. The service verifier generates a complete SMV file and runs the verifier on this generated SMV. 9. The service validator parses the output and reports the results to the user.
[0056] The following steps describe the user actions and internal tasks performed by the module validator: 1. The FM compiler generates the intermediate form of the functional module, including IO tag description, HMI description, and service description. 2. Perform validation on the intermediate representation a. The IO label verification module uses a set of rules to verify the correctness of labels. The rule base can be fine-tuned and modified externally. b. The structure verifier performs structural correctness checks, such as using properties according to the VDI specification, and correctly using existing library modules. It also checks for circular dependencies. c. The service correctness verifier reads these service descriptions and generates verification code using code templates and a property verification database. The code is then run through a formal verifier (such as NuSMV) to check for various semantic errors. 3. Errors are consolidated and reported in a user-friendly manner through the FM Design Workbench GUI. 4. The designer corrects the error and recompiles the FM. 5. Repeat step 1 to step 4 until all errors are fixed.
[0057] In another particularly advantageous embodiment, the function module is executed in a virtual environment. During the execution of the function module, at least one input / output channel, the properties of a node in the function module topology and / or the state of at least one service are monitored. In this way, errors in the design of the function module can be discovered, even if these errors only occur under certain conditions. For example, an integer overflow may only occur in cases where the value of an integer climbs too high for the type of variable to which it is to be written.
[0058] If it is determined that the design of the functional module is error-free, the functional module can be approved for use in the modular industrial plant. Then, with the participation of the functional module, the industrial process can be executed on the modular industrial plant. The effect of formal verification according to this method is that during the execution of the industrial process, the possibility of failure of the functional module and thus the failure of the entire process will be much smaller. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In the following, the present invention is described using the accompanying drawings without limiting the scope of the present invention. Each figure shows:
[0060] Figure 1 : An exemplary embodiment of a method 100 for verifying a design of a functional module 2;
[0061] Figure 2 : An exemplary module checker system 50 for performing method 100;
[0062] Figure 3 :like Figure 2 An exemplary process flow 300 in the module checker system 50 is shown. DETAILED DESCRIPTION
[0063] Figure 1is a schematic flow chart of an embodiment of a method 100 for verifying the design of a functional module 2 used in a modular industrial plant 1. The functional module 2 includes control logic configured to receive sensor data and to stimulate a physical process module so that at least one process quantity and / or state quantity of the process module can be maintained near a desired set point value. It also includes logic for receiving commands from a superior management system. Communication between the logics, and between the functional module 2 and the rest of the modular industrial plant 1, is by means of input / output channels 31-35 representing parameters and / or variables.
[0064] In step 110 , a rule set 4 is obtained. The rule set 4 at least includes requirements for the I / O channels 31 - 35 and the connections of the I / O channels 31 - 35 , which are necessary conditions for the function module 2 to perform its intended function in the modular industrial plant 1 .
[0065] In step 120 , it is checked whether the input / output channels 31 - 35 of the functional module 2 and the connections of the input / output channels 31 - 35 satisfy the rules in the rule set 4 .
[0066] If this is not the case, ie if at least one rule of the rule set 4 is not satisfied (true value 0), then it is determined in step 130 that the design of the functional module 2 has an error. In step 190, the use of the functional module 2 in the modular industrial plant 1 is then prevented.
[0067] In principle, after it has been determined that the design of the functional module 2 has errors based on the I / O channels 31-35, further checks described below can still be performed in order to provide the designer of the functional module with a complete list of design errors. However, it also makes sense to first force the designer to correct the basics regarding the I / O channels 31-35 before performing a more complex evaluation of the functional module 2. Which is better depends on the specific application at hand.
[0068] exist Figure 1 In the example shown, if no design errors are found by checking the input / output channels 31 - 35 according to the rule set 4 , a further evaluation of the functional module 2 is performed to detect potential design errors elsewhere.
[0069] In step 140, the topology of the functional module 5 is determined. In step 150, a dependency graph 6 is determined from the topology 5. In each of these dependencies, a functional module 2 and / or at least one logic of the functional module 2 is involved. In step 160, the dependency graph 6 is traversed and the encountered nodes 6a of the dependency graph 6 are recorded. In step 170, based on at least one predetermined criterion, it is determined from these encountered nodes 6a whether the design of the functional module 2 has an error.
[0070] According to block 171 , it can be checked whether there is a circular dependency between the nodes. If this is the case (true value 1), according to block 172 , it is determined that the design of the functional module 2 has an error.
[0071] According to box 173, it can be checked whether all encountered nodes 6a have a set of required properties and / or whether all these properties meet the predetermined specification. If this is not the case (true value 0), according to box 174, it is determined that the design of the functional module 2 has an error.
[0072] For example, if the encountered nodes 6 a are OPC UA entities, it can be checked whether these entities have all mandatory OPC UA properties that they should have according to VDI 2658 .
[0073] In step 180, the services 7 of the functional module 2 and the states 7a-7c in which each service 7 can be evaluated can be used alternatively or in combination to check the dependency graph. In particular, each service 7 can be in one of a set of states 7a-7c at any one time. According to at least one predetermined criterion, at least partly based on the set of states 7a-7c and / or the transitions between the states 7a-7c, it is determined whether the design of the functional module 2 has errors.
[0074] According to box 181, it can be checked whether the reachability of at least one state 7a-7c depends on at least one unsatisfiable condition and / or depends on at least two mutually exclusive conditions. If this is the case (true value 1), according to box 182, it is determined that the design of the functional module 2 has an error.
[0075] According to block 183 , it can be checked whether at least one dependency for reachability of at least one state 7 a - 7 c is a circular dependency. If this is the case, according to block 184 , it is determined that the design of the functional module 2 has an error.
[0076] According to block 185 , the set of states 7a - 7c and / or the transitions between states 7a - 7c may be evaluated based at least in part on a causal matrix of the states 7a - 7c and the transitions between states 7a - 7c.
[0077] In particular, according to block 185a, it can be checked whether at least one cause is associated with multiple results, and / or whether multiple causes are associated with the same result. If this is the case, according to block 185b, it is determined that the design of the functional module 2 has an error.
[0078] According to block 186, it is determined whether two services 7 which are mutually exclusive according to the predetermined safety condition can be in the operating state 7a-7c at the same time. If this is the case (true value 1), according to block 187, it is determined that the design of the functional module 2 has an error.
[0079] Regardless of where the design of a functional module 2 is determined to have an error, if this occurs, the consequence is always the same: In step 190 , the defective functional module 2 is prevented from being used in the modular industrial plant 1 .
[0080] However, if no errors are found anywhere in step 200 (indicated by "&"), the functional module 2 can be approved for use in the modular industrial plant 1. In step 210, the industrial process can then be executed on the modular industrial plant with the participation of this functional module 2.
[0081] Figure 2 An exemplary module checker system 50 is illustrated for performing the method 100. In this figure, the relationships between different entities are marked with dashed lines, with U for "use", or with C for "create".
[0082] The verification engine 51 instructs the module loader 54 to read the intermediate form 2b of the functional module 2. This intermediate form 2b is previously created by the functional module design workbench 70 operated by the module designer. The intermediate form 2b includes the functional module 2, its human-machine interface 2a, a list of its input / output channels 31-35 and its services 7. The verification engine 51 is operated through the verification engine user interface 51a.
[0083] The validation engine 51 instructs the label and parameter validator 58 to validate the input / output channels 31-35 of the functional module 2. The label and parameter validator 58 calls the expert system 60 with the rule engine 61, which in turn uses the rule set 4. The rule engine 61 loads the rule set 4, loads the fact base of the facts that the rules in the rule set 4 rely on, and decides which rules to apply ("fires").
[0084] The verification engine 51 instructs the structure verifier 52 to check the structure of the functional module 2 and the dependencies involved in the functional module 2. The structure verifier 52 uses the specification 56, here: VDI 2658 metamodel, which stipulates the properties that each node 6a in the dependency graph 6 should have. The structure verifier 52 also uses the expert system 60.
[0085] The verification engine 51 also instructs the service verifier 53 to check the service provided by the functional module 2. The service verifier 53 uses a verification tool such as NuSMV, NuXMV, SPIN or Promela.
[0086] The results of the verification and in particular any errors found are passed to the logging platform 57 .
[0087] Figure 3 Picture shows Figure 2An exemplary process flow 300 in the module checker system 50 is shown in FIG. Relationships between entities are marked with solid lines, where R represents "read", G represents "generate", or M represents "modify".
[0088] In step 310, the designer of functional module 2 uses Figure 2 The module design workbench 70 shown creates the functional module. An intermediate form 2b of the functional module 2 is generated.
[0089] This intermediate form 2b is read in step 320a, where a semantic check of the input / output channels and tags is performed. This check makes use of the target controller specification database 81, and also of the rule set 4.
[0090] The intermediate form 2b is also read in step 320b, where a structural check of the functional module 2 is performed. In particular, this step verifies the correctness of the nested functional modules, as well as the proper integration of third-party modules. For this purpose, a reference module library 83 is required. The module library 83 includes the functional modules 2 of the industrial plant 1, as well as the third-party module type package MTP.
[0091] The intermediate form 2b is also read in step 320c, where the correct operation of the service 7 provided by the functional module 2 is checked. In particular, it is checked that: Whether security requirements are met (e.g., for specific services that are not active at the same time); whether the service is "live", that is, will eventually reach the "running" state (or the "completed" state, if any); and There are no deadlocks that permanently prevent a service from reaching the "Running" or "Completed" state or moving out of the "Idle" state.
[0092] This step 320c utilizes the service verification code template 84 and the service verification property database 85.
[0093] All three steps 320a, 320b and 320c contribute to the generation of the error report 86. In step 330, any identified errors in the design of the functional model 2 are shown in the GUI of the functional module design workbench 70.
[0094] In response to the error shown, in step 340 , the designer of the functional module 2 uses the functional module design workbench 70 to modify the functional module 2 to correct the error. Reference numerals list 1 Modular Industrial Factory 2 Functional modules for modular industrial plants 1 2a Human-machine interface of functional module 2 2b Intermediate state of functional module 2 31-35 Input / output channels of function module 2 4 Rulesets 5 Topology of Functional Module 2 6 Dependency Graph 6a Depends on the nodes in Figure 6 7 Services provided by functional module 2 7a-7c Status of service 7 50 Module Verifier System 51 Verification Engine 51a User interface of verification engine 51 52 Module Verifier System 50 Structure Verifier 53 Module Verifier Service Validator in System 50 54 Module loader in module checker system 50 55 Validation tools for service validation 56 Specifications for structural verification 57 Log Platform 58 Label and parameter validators in the module validator system 60 Expert System 61 Rules Engine in Expert System 60 70 Functional module design workbench 81 Target Controller Specification Database 83 Module Library 84 Service verification code template 85 Service Verification Nature Database 86 Error Reports 100 Method for verifying the design of functional module 2 110 Get rule set 120 Check input / output channels 31-35 according to rule set 4 130 It is determined that the design of functional module 2 has errors 140 Determine the topology of functional module 2 150 Determine dependency graph 6 160 Traverse the dependency relationship of Figure 6 and record node 6a 170 Based on node 6a, determine potential errors 180 Based on service 7, status 7a-7c, determine potential errors 181 Checking state for unreachability 182 It is determined that there is an error in the design of functional module 2 183 Checking for Circular Dependencies 184 It is determined that the design of functional module 2 has errors 185 Evaluating states 7a-7c based on the cause-effect matrix 185a Determine one-to-many and many-to-one relationships 185b Determine that there is an error in the design of functional module 2 186 Check if service 7 is running at the same time 187 It is determined that the design of functional module 2 has errors 190 Prevent the use of incorrect function module 2 in plant 1 200 Approval for use of function module 2 in factory 1 210 Executing industrial processes on modular factories 1 300 Process flow in module checker system 50 310 Use workbench 70 to create function module 2 320a Perform I / O channel semantic check 320b Perform structural verification 320c Verify the correctness of the service 330 shows an error in the module design workbench 70 GUI 340 Modify function module 2 to correct the error
Claims
1. A computer-implemented method (100) for verifying the design of a functional module (2) used in a modular industrial plant (1), wherein the functional module (2) comprises: a control logic configured to receive sensor data and to stimulate a physical process module so that at least one process variable and / or state variable of the process module can be maintained near a desired set point value; and logic for receiving commands from a superior management system; and the communication between the logics, and the communication between the functional modules (2) and the rest of the modular industrial plant (1), is by means of input / output channels (31-35) representing parameters and / or variables, the method comprising the following steps: Acquiring (110) a rule set (4), the rule set (4) comprising at least requirements for input / output channels (31-35) and connections of the input / output channels, the requirements being necessary conditions for the function module (2) to perform the intended function of the function module (2) in the modular industrial plant (1); Checking (120) whether the input / output channels (31-35) of the functional module (2) and their connections satisfy the rules in the rule set (4); as well as In response to determining that at least one rule in the rule set (4) is not satisfied, it is determined (130) that the design of the functional module (2) has an error, and the functional module (2) is prevented (190) from being used in the modular industrial plant (1).
2. The method (100) according to claim 1, wherein at least one rule in the rule set (4) stipulates: All parameters and / or variables must have an accompanying unit of measure; and / or Whenever a parameter and / or variable is passed from one logic or entity to another, the unit of measure associated with the parameter and / or variable on the sending end must match the unit of measure associated with the parameter and / or variable on the receiving end; and / or Nested scopes for parameters and / or variables must be consistent; and / or The set point for a parameter and / or variable must be within the allowed range for that parameter and / or variable; and / or The value written to a parameter and / or variable must be compatible with the type of the parameter and / or variable; and / or The connections between entities are between an output channel of one entity and an input channel of another entity; and / or All input channels required for the operation of the functional module (2) and / or one of the logics of the functional module (2) are connected.
3. The method (100) according to any one of claims 1 to 2, further comprising: determining (140) a topology (5) of the functional module (2); Determining (150) a dependency graph (6) from the topology (5), in which the functional module (2) and / or at least one logic of the functional module (2) is involved; Traversing (160) the dependency graph (6) and recording the nodes (6a) encountered in the graph (6); Based on at least one predetermined criterion, it is determined (170) from the encountered node (6a) whether the design of the functional module (2) has an error.
4. The method (100) of claim 3, wherein in response to determining (171) from the encountered nodes that there is a circular dependency of nodes, the design of the functional module (2) is determined (172) to have an error.
5. The method (100) according to any one of claims 3 to 4, further comprising: determining (173) whether all encountered nodes (6a) have a required set of properties, and / or whether all said properties meet a predetermined specification; as well as If the result of the determination is negative, it is determined ( 174 ) that the design of the functional module ( 2 ) has an error.
6. The method (100) according to any one of claims 1 to 5, wherein the functional module (2) has a set of services (7), each service (7) being capable of being in one of a set of states (7a-7c) at any one time, and the method further comprises: According to at least one predetermined criterion, it is determined (180) whether the design of the functional module (2) has an error based at least in part on the set of states (7a-7c) and / or transitions between states (7a-7c).
7. A method (100) according to claim 6, wherein in response to determining (181) that the reachability of at least one state (7a-7c) depends on at least one condition that cannot be satisfied and / or depends on at least two mutually exclusive conditions, it is determined (182) that the design of the functional module (2) has an error.
8. The method (100) according to any one of claims 6 to 7, wherein in response to determining (183) that at least one dependency for reachability of at least one state (7a-7c) is a circular dependency, determining (184) that the design of the functional module (2) has an error.
9. A method (100) according to any one of claims 6 to 8, wherein the group of states (7a-7c) and / or the transitions between states (7a-7c) are evaluated (185) at least in part based on a causal matrix of the states (7a-7c) and the transitions between the states (7a-7c).
10. The method (100) of claim 9, wherein in response to determining (185a) that at least one cause is associated with multiple effects and / or multiple causes are associated with the same effect, determining (185b) that the design of the functional module (2) has an error.
11. A method (100) according to any one of claims 6 to 10, wherein in response to determining (186) that two services (7) that are mutually exclusive according to predetermined safety conditions can be in operation at the same time (7a-7c), it is determined (187) that the design of the functional module (2) has an error.
12. The method (100) according to any one of claims 1 to 11, further comprising: Executing the functional module (2) in a virtual execution environment; as well as During the execution of the functional module (2), at least one input / output channel, a property of a node in the topology of the functional module, and / or a status of at least one service is monitored.
13. The method (100) according to any one of claims 1 to 12, further comprising: In response to determining that the design of the functional module (2) does not have errors, Approving (200) the use of the functional module (2) in the modular industrial plant (1); as well as An industrial process is performed (210) on the modular industrial plant (1) with the participation of the functional modules (2).
14. A computer program comprising computer readable instructions, which, when executed by one or more computers and / or computing instances, cause the one or more computers and / or computing instances to perform the method (100) according to any one of claims 1 to 13.
15. A non-transitory machine-readable data carrier and / or a download product having a computer program according to claim 14.
16. One or more computers and / or computing instances having a computer program according to claim 14 and / or having a machine-readable data carrier and / or a download product according to claim 15.
