Reverse engineering of modules for modular industrial factories
By extracting equipment state transition conditions from the module's runtime data and using rule-based algorithms to reverse engineer control logic, the problem of control system replacement in modular industrial factories is solved, the automatic creation of engineering information is realized, and the accuracy and accuracy of replacement are improved. efficiency.
Patent Information
- Application Number
- CN202111319986.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-11-11
- Filing Date
- 2021-11-09
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-11-09
AI Technical Summary
In modular industrial plants, especially older or third-party modules, the behavior of the control system is unknown, making control system replacement and reverse engineering difficult to automatically create the necessary engineering information.
By extracting equipment state transition conditions from the module's runtime data and using a rule-based algorithm to infer equipment state transitions, the control logic is reverse engineered to generate control software for the replacement control system.
It realizes the reverse engineering of the modular industrial factory module control logic, can automatically create the engineering information required to replace the control system, simplifies the replacement process, and improves the accuracy and efficiency of the replacement.
Smart Images

Figure CN114545867B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method and a system for reverse engineering the control logic of modules of a modular industrial plant. Background Art
[0002] The Modular Type Package (MTP) standard in the field of modular automation systems creates a framework for interoperability between modules and orchestration systems, allowing industrial process plants to be built and designed in a more modular way, with the goal of simplifying process plant engineering and lifecycle management. These advantages are achieved through prefabricated and well-tested modules called PEA (Process Equipment Assembly), which can be easily put together in different combinations to achieve different recipes.
[0003] Modular plants are gradually becoming more mature and the community agrees that various benefits are provided, not only in terms of development costs, but also in terms of time and material effort. For control system replacement, especially in older and third-party modules where a control system description may not exist, a method is needed to reverse engineer the behavior of the control system and automatically create the necessary engineering information for the replacement. Summary of the invention
[0004] Therefore, there is a need for a method that facilitates reverse engineering of modules of a modular industrial plant. This need is met by the subject matter of the independent claims. Optional features are set out by the dependent claims.
[0005] According to a first aspect, a computer-implemented method for reverse engineering control logic of a module of a modular industrial plant is provided. The method comprises: obtaining module-related data including runtime data related to previous use of the module during a time period when at least one piece of equipment of the module transitions from a first equipment state to a second equipment state, the runtime data including tags indicating equipment states of the equipment at multiple points in time during the time period; and inferring one or more equipment state transition conditions that cause the equipment to transition from the first equipment state to the second equipment state from the module-related data.
[0006] Therefore, the present disclosure provides a method for reverse engineering of a module, such as a PEA, based on module-related data such as an MTP and related operational data. The method and system disclosed herein are particularly useful for brownfield projects and old PEAs that require control system replacement. Since the control logic of the control system from inside the PEA is unknown, the method and system disclosed herein are provided in order to find out what functionality is implemented and how the PEA behaves in the process.
[0007] As used herein, "inference" involves deriving, deducing, determining, or identifying information, conclusions, causes and effects, and logical conclusions from runtime data using algorithms, especially rule-based algorithms, as described herein.
[0008] "Module related data" may include data related to static and / or dynamic aspects of the module and its services, status and equipment, including, for example, data related to inputs and outputs, communication HMI, tags, parameters, alarms, control logic. Module related data may, for example, include MTP.
[0009] "Runtime data" may include any previous or historical data relating to previous use of a module. This data may be stored in the module itself or in the control system.
[0010] "Equipment" includes components of a module that affect or control a manufacturing process (e.g., a chemical process), and any of these may include, for example, actuator-based devices such as valves, or non-actuable devices such as heaters, coolers, etc. Accordingly, equipment can be placed into one or more "equipment states" that can change its effect on the manufacturing process. Equipment states can include actuator states such as position, speed, etc., as well as other states such as on, off, and power settings.
[0011] "Equipment state transition conditions" designate those circumstances, stimuli, or triggers (including but not limited to the action of sensors or actuators plus all commands) that cause or result in a change in the state of the equipment, i.e., they cause the control logic of the module to instruct the equipment to transition from one equipment state to another. Two example forms of equipment state transition conditions are service state entry actions and process conditions (e.g., liquid level>x->valve closed), as described herein. Other examples include other equipment state changes (e.g., actuator state changes, such as valve closed->pump must stop) and safety switches (e.g., gas pressure switch open (true)->release valve open, ignite torch).
[0012] For example, a service state transition may be used as a device state transition condition. The runtime data may also include tags indicating the service state of at least one service performed by the module at multiple time points, and the inference may include: identifying a transition from a first service state to a second service state as the device state transition condition that causes the device to transition from the first device state to the second device state. "Service" in this article means a function or functionality performed by a module. The transition from a first service state to a second service state may cause one or more entry actions, as further described below. In order to discover the entry action, the method may include: identifying a change in the device state after entering the second service state, for example by identifying entries in the runtime data corresponding to time points before and after the transition from the first service state to the second service state, comparing the device states in the identified entries, and identifying the difference between the device states as a device state transition to be implemented after entering the second service state.
[0013] Additionally or alternatively, a process condition may be used as a device state transition condition. "Process condition" means a specific value (i.e., a set point), a trend, or other identifiable characteristic in the measured process values, which, when detected by the control logic, may cause it to indicate a device state transition. Again, in the case where the runtime data also includes one or more process values measured at each of a plurality of time points, the inference may include: from the one or more measured process values, identifying the process condition as the device state transition condition that causes the device to transition from a first device state to a second device state. A rule-based algorithm may be used to identify the process condition. For example, in order to identify the process condition that causes the device state transition, the method may include: identifying an entry in the runtime associated with the final time point at which the first device state is active, checking the process values in the identified entry and in one or more other entries surrounding the identified entry to identify the relevant process parameters, and defining the process condition based on the process values measured for the relevant process parameters in the identified entry. The relevant process parameters may be identified by identifying characteristics such as the trend of the process values in the identified entry and one or more surrounding entries. A rule-based algorithm may be used to identify the relevant parameters. For example, one rule may provide that where the trend of the process value for one parameter deviates from the trend of the process value for other parameters, the process parameter with the deviating trend is identified as a related process parameter. Another rule may provide that where the trend of the process value for one process parameter changes while the trend of the process value for other process parameters remains unchanged, the process parameter with a changing trend is identified as a related process parameter. More generally, related process parameters may be identified by identifying nonlinearities in the process values for the process parameter. More specifically, one rule may provide that where the process value for one process parameter increases or decreases while the process values for other parameters remain unchanged (e.g., within a predetermined variability threshold), the process parameter with a changing process value is identified as a related process parameter. Another rule may provide that where the process value for one parameter stops increasing or decreasing or reaches a turning point while the process values for other parameters remain unchanged or continue to increase or decrease, the process parameter whose process value stops changing (or reaches a turning point) is identified as a related process parameter. Additional rules may identify related process parameters based on deviations between rates of change in process values or based on changes in rates of change in process values. The rule-based algorithm may also include rules for defining process conditions based on process values in identified inlets and rules used to identify related process parameters.For example, where a relevant process parameter is identified on the basis that its process value increases or decreases while process values for other parameters remain unchanged, or where a relevant process parameter is identified on the basis that its process value stops increasing or decreasing while process values for other parameters remain unchanged or continue to increase or decrease, the rule-based algorithm may define the process condition as PP>=PV or PP<=PV for increasing and decreasing process values, respectively, or stopping increasing or decreasing process values, respectively, where PP is the relevant process parameter and PV is the process value in the identified entry. It should be appreciated that additional rules are possible and these may be added to the rule-based algorithm by the engineer.
[0014] A general rule-based algorithm for inferring process conditions may perform one or more of the following steps: 1. The algorithm finds process values that change their behavior by means of going from a continuous increase to a constant state or a decrease (e.g., finding nonlinearity). 2. At or near the point in time when the process value changes its behavior, devices (e.g., actuators) are checked to determine which devices changed their device states at or near the same time. 3. These devices are identified as those most likely to have affected the process value. Those devices may be filtered (re-evaluated), for example, by finding other process values that changed their behavior at or near the same point in time. Additionally, other such points in time where the same behavior change was identified may be identified and compared to identify which devices changed their states at all of these points in time. Other cross-checks may be performed, such as using correlations between process values and device states or using other process values.
[0015] The device state transition condition may be inferred for each service or for a combination of services. For example, the method may include performing inferences separately for each of the plurality of services performed by the module in order to infer the device state transition condition for each service. Additionally or alternatively, the method may include performing inferences with respect to a combination of the plurality of services performed by the module in order to infer the combined service device state transition condition.
[0016] Process conditions may also cause a transition of the service state. For example, where the runtime data also includes one or more process values measured at each of a plurality of time points, the method may further include: inferring from the one or more process values one or more process conditions (as service state transition conditions) that cause the service performed by the module to transition from a first service state to a second service state. A rule-based algorithm may again be used to identify process conditions. For example, in order to identify process conditions that cause a service state transition, the method may further include: identifying an entry in runtime associated with the final time point at which the first service state is active, checking process values in the identified entry and in one or more additional entries surrounding the identified entry to identify relevant process parameters, and defining the service state transition condition on the basis of the process values measured for the relevant process parameters in the identified entry. Relevant process parameters may be identified in the same manner as described above.
[0017] In addition to the device state transition conditions, other conditions, such as alarm conditions, may be inferred from the runtime data. For example, where the runtime data also includes one or more process values measured at each of a plurality of time points, the method may further include inferring one or more process conditions that trigger an alarm from the one or more process values.
[0018] The method may include identifying a default device state. For example, when the runtime data also includes a tag indicating a service state of each of one or more services executed by the module at multiple time points, the method may also include: using the tag to identify one or more idle time points at which each of the one or more services is in an idle state, and identifying the device state at the idle time point as the default device state. For convenience, the method may also include excluding runtime data collected at idle time points from the module-related data when performing inference.
[0019] The method may also include determining a mapping between service states and device states for one or more services of the module. Determining the mapping may include determining which service of the plurality of devices is used in which service state of the plurality of service states of the service performed by the module, and / or identifying possible device states for each of the plurality of devices in each of the plurality of service states.
[0020] The method may also include identifying conflicting device states between multiple services executed by the module and generating interlock rules that prevent the conflicting services from being executed in parallel.
[0021] The inference may be improved to increase accuracy. For example, when the runtime data relates to an additional time period during which a service transitions from a first service state to a second service state, the accuracy may be improved, the method optionally further comprising: improving the inference of one or more service state transition conditions based on the runtime data associated with the additional time period. Additionally or alternatively, where the runtime data relates to an additional time period during which a device of a module transitions from a first device state to a second device state, the method may further comprise: improving the inference of one or more device state transition conditions based on the runtime data associated with the additional time period. The improvement may comprise, for example, by taking a moving average of the process value over a plurality of time periods associated with the same transition.
[0022] The control logic reverse engineered in the described manner can be applied in a variety of ways. In one example, the method may include: obtaining module-related data at least in part from a configuration file defining the configuration of the module, and using the module-related data to create a framework for control software configured to implement the reverse engineering control logic. The method may also include: representing the reverse engineering control logic in an engineering tool used to configure a modular industrial plant, such as using a cause-effect matrix. A "configuration file" may be a description file describing a module, such as a module type package (MTP) defining a module and its configuration (such as a process equipment assembly or PEA). The configuration file may be independent of the target system. The configuration file may also include one or more files taken from an engineering library. An "engineering tool" may be implemented in software to provide a tool for configuring a modular plant. A corresponding software package may be provided. The functionality of the engineering tool may be accessed or provided via one or more views or facilities. The engineering tool may have one or more environments. The engineering tool may provide functionality capable of creating a framework (framework program). A framework is a reusable machine-adaptive building block for manufacturing custom software. As described below, the reverse engineering control logic of the module is added to the framework. This may be performed via a cause-effect matrix or with the help of a cause-effect matrix. When all the reverse-engineered logic has been algorithmically added to the framework, engineers can add further logic related to missing states that were never reached in the runtime data. The framework can then be used to make control software for the control system of the replacement module.
[0023] According to a second aspect, there is provided a computing device comprising a processor configured to perform the method of the first aspect.
[0024] According to a third aspect, there is provided a computer program product comprising instructions which, when executed by a computing device, enable the computing device to perform the method of the first aspect.
[0025] According to a fourth aspect, there is provided a computer readable medium comprising instructions which, when executed by a computing device, enable the computing device to perform the method of the first aspect.
[0026] In the context of the present disclosure, the terms "module", "unit" and "PEA" are used interchangeably.
[0027] The present invention may include one or more aspects, examples or features alone or in combination, whether or not that combination or alone is specifically disclosed.
[0028] These and other aspects of the invention will be apparent from and elucidated with reference to the embodiments described hereinafter. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] A detailed description will now be given, by way of example only, with reference to the accompanying drawings, in which:
[0030] Figure 1 The modular industrial plant is illustrated;
[0031] Figure 2 is a flow chart illustrating a method for reverse engineering the control logic of a module of a modular industrial plant; and
[0032] Figure 3 Illustrated is a computing device that may be used in accordance with the systems and methods disclosed herein. DETAILED DESCRIPTION
[0033] Figure 1A modular industrial plant 100 is shown that includes an orchestration layer 102 and a module layer 104. The orchestration layer 102 includes an operator console 106, which includes a monitoring dashboard and a supervisory control system 108. Although the operator console 106 and the supervisory control system 108 are shown as two separate entities, it should be understood that these entities can be provided by a centralized control system or a distributed control system. The module layer 104 includes a plurality of modules 110, each of which is described by a configuration file in the form of a module type package or MTP 112 further described below. Each module 110 includes a controller (not shown) that executes control logic (automation logic) for the module. Each module 110 provides a set of encapsulated process functions called services, such as mixing, temperature adjustment or heating, which can be orchestrated by the supervisory control system 108. The modules 110 are integrated into the plant 100 via the orchestration layer 102. Communication between entities in orchestration layer 102 and module layer 104 occurs via fabric network 114 using the OPC UA protocol (OPC Unified Architecture, a machine-to-machine communication protocol for industrial automation developed by the OPC Foundation). Each module 110 includes an OPC UA server (not shown) that exposes the module's services and tags to supervisory control system 108. Supervisory control system 108 includes an OPC UA client (not shown) that connects to the module's OPC UA server to communicate commands to module 110. By controlling services in the correct manner, orchestration layer 102 ensures that modules 110 work together to meet the requirements of factory 100.
[0034] The Module Type Package (MTP) is a standard for modular automation systems that creates a framework for interoperability between the orchestration layer 102 and the module layer 104, allowing industrial process plants to be built and designed in a modular manner, with the goal of simplifying process plant engineering and lifecycle management. These advantages are achieved through prefabricated and well-tested modules 110, which can also be called PEA (Process Equipment Assembly), which can be easily put together in different combinations so that different recipes can be implemented. Each MTP 112 provides a module type description. The MTP 112 can define, for example, one or more of the following: (i) communication with the module; (ii) the human machine interface (HMI) of the module; (iii) the definition of tags used by the module; (iv) the definition of service parameters and services provided by the module (e.g., the definition of automation logic using, for example, a state machine); (v) the alarm management program used by the module; (vi) security aspects. The HMI consists of symbols and lines, which visualize equipment and process flows, for example in the form of a P&ID (Piping and Instrumentation Diagram). As known in the art, each symbol, parameter, etc. is labeled and a list of tags is provided. From the MTP 112, control software for the module 110 may be automatically generated and executed by the module's controller.
[0035] As mentioned above, control system replacement is sometimes required, such as in brownfield projects. Since the control logic of the control system from inside the module 110 may be unknown, the present disclosure provides methods and systems for reverse engineering the control logic.
[0036] The preliminary steps for reverse engineering include creating a framework for the control software of the module 110 to be reverse engineered using the module's MTP 112 in the engineering tool. The engineering tool obtains all information from the MTP 112, including the P&ID as well as the HMI, services and service parameters, control devices and tags, and adds them to the engineering tool. The HMI portion of the MTP 112 is used to create a topology similar to the P&ID in the engineering tool. When the MTP 112 contains connection points between symbols, those are used as connection points in the HMI. If optional connection points do not exist in the MTP 112, they can be re-evaluated for the P&ID and added in this step. Services are identified and service parameters are identified. All services are added in the engineering tool and the corresponding parameters are added. Tags belonging to the module are identified and the connection with the HMI is completed. In addition, the default values for the tag parameters are read from the MTP 112 and added to the tag list configuration. The alarms described in the MTP 112 are added to the alarm list. This includes service alarms as well as tag alarms. Furthermore, alarm relationships (previous alarm, connection between alarms, causal chain between alarms) are added in the engineering tool. Vendor dependent information (such as OPC UA nodes, serial numbers, system alarms) can be ignored as they are not needed in the final configuration.
[0037] Since MTP 112 does not include any information about the control system behavior inside the services, interlocks between devices, etc., runtime data from module 110 (which has been used previously) is used to reverse engineer this behavior by inferring tags, actuation states, and dependencies between services and states, as described below. Since the structure of the control logic is already known from the services and tags described in MTP 112, only the internals need to be reverse engineered.
[0038] refer to Figure 2, a method for reverse engineering the control logic of a module 110 of a modular industrial plant 100 will now be described, wherein reverse engineering of the control functionality of the module is performed in a step-by-step manner using runtime data 210. The method is performed by a reverse engineering algorithm, for example, run as part of an engineering tool, which can be implemented using a computing device described below. All information obtained using this method is added to the engineering tool. The method adopts a structured data analysis method in order to create code for service execution and tag connection. For each state of each service, specific time points are taken (for example, when a service is started and executes the service state "STARTING"). For these time points, the runtime data 210 is evaluated for the actions taken by the devices of the module 110, such as valve opening or pump starting. The runtime data 210 that is evaluated includes that part (i.e., a single entry or a group of entries) that is collected when the service is in this state. Based on this part of the runtime data 210, the behavior of the service is reconstructed. For each service state, the actuator state and process value are evaluated and the impact of the service on the module 110 is determined. In addition, which services are executed simultaneously is also considered. Thus, device (e.g., actuator) states can be assigned to specific services and specific service states, the operating mode of the device can be discovered and process values and their impact on module 110 can be reverse engineered. The operating mode of the device defines who or what controls the device, such as by the automation system without user interaction, or directly by the user (e.g., an engineer opening and closing a valve). This information exists in the automation system. A service is allowed to control the device only when the device is in automatic mode. The algorithms described herein can take the operating mode into account when evaluating runtime data. For example, changes in device state that occur in manual operating mode can be discounted by the algorithm.
[0039] The method includes deriving information related to one or more of the following from the runtime data 210: (i) which actuator is used in which service and in which service state; (ii) which actuators are used in multiple services and service states; (iii) the state of the actuator in a specific service and service state; (iv) the process conditions that lead to actuation in a specific service and service state; (v) the influence of service parameters on the state of the actuator; (vi) the process conditions that lead to tags and service alarms; (vii) the process conditions that lead to state changes within the service. The derived information can be used to populate a cause-and-effect table in an engineering tool to describe the control logic executed within the service and its state. The cause-and-effect table (also referred to as a cause-and-effect matrix in this article) can be used to represent the internal implementation of the service within the framework. There may be a cause-and-effect table for one or more states of one or more services (e.g., for each state of each service). In the table, for example, it is shown that a valve is closed if the liquid level is too high, or an entry action performed when entering a service state is described. According to the present disclosure, such a table is automatically generated using knowledge inferred from the runtime data. The cause-and-effect table may or may not be validated by the user before being used to describe a control program.
[0040] In step 201 ("Find Default Device State"), the method includes finding the default actuator state. Default actuator states are those states used when all services of module 110 are in an idle state. At such a point in time, no action is performed inside module 110, which means that all actuators are in the default state. In order to find these states, all entries related to the time point when the services are all in an idle state are searched in the runtime data 210. In order to find these entries, the algorithm checks all services and their states. When the time point when all services are in an idle state is found, the corresponding entry is selected by the algorithm for evaluation. For all the entries found in this way, the algorithm compares the actuator states. When an actuator state is found that appears in all the inlets selected for evaluation (for example, the valve is closed), then this is identified by the algorithm as the default actuator state of module 110. When all actuator states are evaluated and all inlets are evaluated, all default actuator states are known.
[0041] Table 1 below provides an example of runtime data entries used when evaluating default actuator states.
[0042] time Service 1 – Status Service 2 – Status Value 1 Value 2 Value 3 0 Reset idle Open closure closure 1* idle idle closure closure Open 2* idle idle closure closure Open 3* idle idle closure closure Open 4* idle idle closure closure Open 5 idle start up closure Open closure 6 idle implement Open Open closure 7 idle Finish Open closure closure 8* idle idle closure closure Open 9* idle idle closure closure Open 10* idle idle closure closure Open
[0043] The runtime data 210 is shown here over a measurement period including time points 0-10 (these numbers are symbolic and provided for illustration only). Those time points marked with an asterisk (*) are associated with entries where all services are in an idle state. These entries are selected by the algorithm for evaluating the default actuator states. The results show that at all time points where all services are in an idle state, the actuator states are: valve 1->closed, valve 2->closed, valve 3->open. Therefore, these are identified by the algorithm as the default actuator states for the module 110.
[0044] In step 202 ("Evaluate Service"), the service is evaluated. To this end, all entries belonging to the service may be selected by the algorithm for evaluation, or, in order to reduce the data set, only those entries in the runtime data 210 that are related to the time points at which the selected service is not idle may be selected for evaluation.
[0045] Table 2 below shows another example of runtime data 210 used to evaluate a service.
[0046]
[0047] As can be seen, the entries corresponding to time points 2-10 contain runtime data that were measured when the service was not in an idle state and were therefore selected by the algorithm for evaluation. It should be noted that the time points contained in Table 2 are also symbolic and do not necessarily correspond to the time points given in Table 1.
[0048] Steps 203-205 include evaluating the service status of the selected service.
[0049] In step 203 ("Service State Entry Action"), the algorithm identifies the service state entry action. First, all entries in the runtime data 210 that belong to the service state being evaluated are selected. For example, as shown in Table 2, a first set of entries for the startup state of the service is evaluated, followed by another set of entries for the execution state. For each service state, the entry action for the service state is evaluated. Whenever a service changes its state, an entry action can be executed when entering a subsequent service state. Such service state entry operations can be discovered by examining the first entry in the set that belongs to the service state being evaluated. In the example shown in Table 2, the startup state of the service is entered at time point 2. The entry corresponding to time point 2 shows what happens when entering the startup state: in this case, valves 2 and 3 are open and valve 1 is closed. These actuator states are compared with the actuator states in the previous service state (in this example, the idle state). The actuator states that are different from the previous service state are those that must be set in the entry action that is executed when entering the service state. Therefore, the algorithm infers that in the example of the startup state, valve 2 must be opened, while the remaining actuators remain unchanged. The inferred service state entry actions can be entered in a cause-effect matrix to illustrate the reverse engineering configuration of the service state. Since the entry actions result in a change in the actuator state, they form an example of an actuator state transition condition described herein.
[0050] Step 204 ("Process Conditions for Equipment State") includes identifying process conditions that cause actuator state transitions, for reverse engineering actuator state changes within the service state based on process values. When the service is in a particular state, the actuator may change position, velocity, etc. Typically, this occurs because certain process conditions become true. In this step, the algorithm examines these changes and the corresponding process conditions. For example, Table 2 shows that at time point 5 there is an actuator that is changing - here, valve 3 is closed - while the service is in the start-up state. In addition, at time point 4, certain process values are measured: level 1 is 22%, and pressure 1 is 1.5 bar. When comparing time points 4 and 5, it can be seen that the level is constant, while the pressure is increasing. Therefore, the algorithm infers that closing valve 3 has an effect on the level. In addition, the algorithm infers that level 1 has reached a set point that causes valve 3 to close. This allows the algorithm to infer the actuator state transition condition (here in the form of a process condition), namely level 1>=22%, which causes the actuator to change, where valve 3 is closed. The inferred actuator state transition conditions (process conditions) can again be entered into the cause-effect matrix.
[0051] In step 205 ("Service state transition conditions"), the service state transition conditions are evaluated. Service state transition conditions are those conditions applied at the last time point in the set where the service state is active. Therefore, the last entry in the set of entries for the service state is selected for evaluation. The algorithm determines whether an external command for a service state change is given. If the runtime data 210 does not include such a final entry in the set related to the service state for which no command for a service state change is given (or, in other words, if each transition out of the service state is caused by an external command), the algorithm identifies that there is no automatic transition from the current service state to the subsequent service state. For those entries that perform automatic service state transitions, the subsequent service state is identified. In the example shown in Table 2, the subsequent service state is execution, and the transition occurs at time point 7 (at time point 8, the execution state has been reached). This means that the process conditions at time point 7 cause a transition from the startup state to the execution state. In order to find the process conditions that cause the service state to change, the algorithm checks the process values. In Table 2, the liquid level 1 remains constant, while the pressure rises before the service state changes and remains constant afterwards. Therefore, the algorithm infers that pressure is a process condition for this service state change. Therefore, the algorithm infers that when pressure 1>=2.5 bar, a service state change from start transition to execute is made. The inferred service state transition conditions can also be inserted into the cause-effect matrix.
[0052] After step 205, it is determined whether all states of the service being evaluated have been evaluated. If not, the method returns to step 203 to evaluate the next identified state of the service. Otherwise, the method continues to determine whether all services of module 110 have been evaluated. If not, the method returns to step 202 to evaluate the next identified service of module 110. Otherwise, the method proceeds to step 206.
[0053] In step 206 ("Evaluate Interlocks"), the interlocks for the services are evaluated. All generated information about the control code is obtained and conflicting actuator states of different services are evaluated. For example, when service 1 requires valve 1 to be open in the execution state and service 2 requires valve 1 to be closed in the execution state, these two services are not allowed to run in parallel. Therefore, the algorithm generates an interlock that can be added to the engineering tool.
[0054] The algorithm can further evaluate the alarms for module 110 to reverse engineer the alarm logic of module 110. This can be performed in the manner described above, for example based on alarm history data for the service state. The algorithm can thus determine the process conditions that led to the alarm and can further evaluate the connection between the service alarm and the tag alarm. Inferences can again be added to the cause-effect matrix. An alarm configuration for module 110 can then be generated.
[0055] The algorithm may evaluate a combination of services. A change actuator does not necessarily indicate that the change was triggered from within the state: the change may have been triggered by another service running in parallel. If the algorithm identifies that several services are running in parallel in a portion of the runtime data 210, the algorithm may ignore that portion of the runtime data or compare that portion to other portions of the runtime data 210 relating to the individual operation of one or more services to identify differences for use in the evaluation of the service state.
[0056] In the evaluation of the process condition and / or service state transition condition described above, the algorithm can determine a more accurate process and / or service state transition condition by comparing several sets of runtime data 210 for a particular state, where the process value results in a change in the actuator state or service state, respectively. For example, the process value used in determining the process condition can be averaged over multiple data sets. A moving average can be used.
[0057] In addition, the algorithm can discover service parameter conditions by examining service parameter changes and identifying correlations between service parameters and process parameters. Services can have parameters that further specify their behavior. For example, these can relate to set points of controllers in the plant. For example, the service tempering may have a parameter temperature. The temperature parameter is given by the process orchestration layer of the plant to indicate to the service which temperature is required. Depending on the parameter value, the behavior of the process value may be different. When the temperature value increases and then becomes constant at a certain point in time, this may indicate the influence of the parameter value. If the parameter value is 80°C and the temperature measurement is maintained constant when it reaches 80°C during a time period, and the parameter value is 60°C and the temperature is maintained at 60°C thereafter during another time period, the algorithm can identify (again using a rule-based approach) that the temperature set point is set by the service parameter. This information is then used to generate a corresponding causal matrix entry for assigning the temperature set point of the internal measurement value to the parameter temperature of the service (directly related). The present disclosure also contemplates that the algorithm can identify the correlation between the set point of the parameter value and the process value on the basis of one or more intermediate mathematical operations.
[0058] Using the algorithm described in this article, design problems can be discovered. For example, the default actuator (e.g., valve) state cannot be found because the actuator state is different in different data sets.
[0059] The present disclosure also provides for reverse engineering of HMIs, including connection points if they are missing in the MTP 112. This can include reverse engineering of HMI symbols, connections and / or pipes, as well as reverse engineering of connection points of symbols of the HMI and creating the HMI in an engineering tool based on the MTP 112. The MTP 112 describes where symbols are placed on the HMI and how they should appear. There is also an option to describe the connections between symbols, but this is not mandatory. Therefore, the present disclosure provides an algorithm that is configured to generate connection points for HMI symbols from a given MTP 112 that does not contain connection points. The algorithm may include any one or more of the following steps. Step 1: Get the symbol. Step 2: Get the dimensions of the symbol (e.g., height, width, etc.) and create a surrounding rectangle. Step 3: Check if the line (measurement line, pipe also described in the MTP 112) overlaps with the surrounding rectangle of the symbol. Step 4: If there is an overlap, create the connection point and additional information about the connection in the MTP 112.
[0060] Reference now Figure 3 , illustrates a high-level diagram of an exemplary computing device 300 that can be used in accordance with the systems and methods disclosed herein. In particular, the computing device 3000 can be used to implement the engineering tools described above. The computing device 300 includes at least one processor 302 that executes instructions stored in a memory 304. The instructions can be, for example, instructions for implementing the functionality described as being performed by one or more components discussed above or instructions for implementing one or more of the methods described above. The processor 302 can access the memory 304 via a system bus 306. In addition to storing executable instructions, the memory 304 can also store session inputs, scores assigned to session inputs, and the like.
[0061] The computing device 300 further includes a data store 308 accessible by the processor 302 via the system bus 306. The data store 308 may include executable instructions, log data, etc. The computing device 300 also includes an input interface 310 that allows external devices to communicate with the computing device 300. For example, the input interface 310 may be used to receive instructions from an external computer device, from a user, etc. The computing device 300 also includes an output interface 312 that interfaces the computing device 300 with one or more external devices. For example, the computing device 300 may display text, images, etc. via the output interface 312.
[0062] It is contemplated that external devices that communicate with the computing device 300 via the input interface 310 and the output interface 312 may be included in an environment that provides substantially any type of user interface with which a user may interact. Examples of user interface types include graphical user interfaces, natural user interfaces, and the like. For example, a graphical user interface may accept input from a user using (one or more) input devices such as a keyboard, a mouse, a remote control, and provide output on an output device such as a display. In addition, a natural user interface may enable a user to interact with the computing device 300 in a manner that is not constrained by input devices such as a keyboard, a mouse, a remote control, and the like. In contrast, a natural user interface may rely on voice identification, touch and stylus identification, gesture identification, air gestures, head and eye tracking, voice and speech, vision, touch, gestures, machine intelligence, and the like on and near the screen.
[0063] Furthermore, although illustrated as a single system, it should be understood that computing device 300 may be a distributed system. Thus, for example, several devices may communicate via a network connection and may jointly perform the tasks described as being performed by computing device 300.
[0064] The various functions described herein can be implemented in hardware, software or any combination thereof. If implemented in software, the function can be stored on or transmitted by a computer-readable medium as one or more instructions or codes. Computer-readable media include computer-readable storage media. Computer-readable storage media can be any available storage medium that a computer can access. As an example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer. Disks and optical disks as used herein include compact disks (CDs), laser disks, optical disks, digital versatile disks (DVDs), floppy disks and blue-ray disks (BDs), wherein disks usually reproduce data magnetically, and optical disks usually reproduce data optically with lasers. In addition, propagation signals are not included in the scope of computer-readable storage media. Computer-readable media also include communication media, including any media that facilitates the transfer of computer programs from one place to another. For example, a connection can be a communication medium. For example, if the software is transmitted from a website, server or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technologies (such as infrared, radio and microwave), then coaxial cable, fiber optic cable, twisted pair, DSL or infrared, radio and microwave wireless technologies are included in the definition of communication media. Combinations of the above should also be included within the scope of computer-readable media.
[0065] Alternatively or additionally, the functionality described herein may be performed at least in part by one or more hardware logic components. For example, and not limitation, illustrative types of hardware logic components that may be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), program specific standard products (ASSPs), system-on-chip systems (SOCs), complex programmable logic devices (CPLDs), and the like.
[0066] It should be understood that the above-mentioned circuits may have other functions besides the functions mentioned, and these functions may be performed by the same circuit.
[0067] Applicants hereby disclose individually each individual feature described herein and any combination of two or more such features, so that such features or combinations can be implemented according to the common general knowledge of those skilled in the art based on the specification as a whole, regardless of whether such features or combinations of features solve any problem disclosed herein, and without limiting the scope of the claims. Applicants indicate that aspects of the present invention may consist of any such individual features or combinations of features.
[0068] Although the basic novel features of the invention as applied to its preferred embodiments have been shown and described and pointed out, it should be understood that various omissions and substitutions and changes in the form and details of the described apparatus and methods can be made by those skilled in the art without departing from the spirit of the invention. For example, all combinations of those elements and / or method steps that perform substantially the same function in substantially the same manner to achieve the same results are within the scope of the invention. In addition, it should be recognized that the structures and / or elements and / or method steps shown and / or described in conjunction with any disclosed form or embodiment of the invention can be incorporated into any other disclosed or described or suggested form or embodiment as a matter of general design choice. Therefore, it is intended to be limited only by the scope of the appended claims. In addition, in the claims, the parts-plus-function clause is intended to cover the structures described herein as performing the functions described, and not only structural equivalents, but also equivalent structures. Therefore, although nails and screws may not be structurally equivalent because nails use cylindrical surfaces to fasten wooden parts together, while screws use helical surfaces, nails and screws can be equivalent structures in the context of fastening wooden parts.
[0069] While the invention has been illustrated and described in detail in the drawings and foregoing description, such illustration and description are to be considered illustrative and not restrictive. The invention is not limited to the disclosed embodiments.
[0070] By studying the drawings, the disclosure and the appended claims, those skilled in the art can understand and implement other variations of the disclosed embodiments. In the claims, the word "comprising" does not exclude other elements or steps, and the indefinite article "a" or "an" does not exclude pluralities. A single processor or other unit can implement the functions of several items recited in the claims. The sole fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage. The computer program may be stored / distributed on a suitable medium, such as an optical storage medium or solid-state medium provided with or as part of other hardware, but may also be distributed in other forms, such as via the Internet or other wired or wireless communication systems. Any reference numerals in the claims should not be interpreted as limiting the scope.
Claims
1. A computer-implemented method for reverse engineering control logic of a module (110) of a modular industrial plant (100), the method comprising: obtaining module-related data including runtime data (210) associated with a previous use of the module during a time period in which at least one piece of equipment of the module transitions from a first equipment state to a second equipment state, the runtime data including tags indicating equipment states of the equipment at a plurality of points in time during the time period; as well as One or more device state transition conditions are inferred (203, 204) from the module-related data to cause the device to transition from the first device state to the second device state.
2. The method of claim 1, wherein the runtime data (210) further comprises a tag indicating a service state of at least one service executed by the module (110) at the plurality of time points, and wherein the inferring comprises: A transition mark (203) from a first service state to a second service state is identified as the device state transition condition for causing the device to transition from the first device state to the second device state.
3. The method of claim 1 or 2, wherein the runtime data (210) further comprises one or more process values measured at each of the plurality of time points, and wherein the inferring comprises: A process condition is identified (204) from the measured one or more process values as the plant state transition condition that causes the plant to transition from the first plant state to the second plant state.
4. The method according to claim 1 or 2, comprising: The inference is performed separately for each of a plurality of services executed by the module so as to infer each service device state transition condition.
5. The method according to claim 1 or 2, comprising: The inference is performed with respect to a combination of a plurality of services executed by the modules so as to infer a combined service device state transition condition.
6. The method according to claim 1 or 2, wherein the runtime data (210) further comprises a tag indicating a service state of each of the one or more services executed by the module (110) at the plurality of time points, the method further comprising: The tag is used to identify one or more idle time points when each of the one or more services is in an idle state, and the device state at the idle time points is identified (201) as a default device state.
7. The method according to claim 6, further comprising: The runtime data collected at the idle time point is excluded from the module-related data when performing the inference (210).
8. The method according to claim 1 or 2, further comprising: A mapping between service states and device states for one or more services of the module is determined.
9. The method according to claim 1 or 2, wherein the operating time data (210) also includes one or more process values measured at each of the multiple time points, and the method also includes inferring one or more process conditions that trigger an alarm from the one or more process values.
10. A method according to claim 1 or 2, wherein the runtime data (210) also includes one or more process values measured at each of the multiple time points, and the method also includes inferring (205) from the one or more process values one or more service state transition conditions that cause the service performed by the module (110) to transition from a first service state to a second service state.
11. The method according to claim 1 or 2 includes obtaining the module-related data at least in part from a configuration file (112) defining the configuration of the module (110), and using the module-related data to create a framework for control software configured to implement the reverse engineering control logic.
12. The method according to claim 1 or 2, further comprising: Conflicting device states between multiple services executed by the module (110) are identified and interlock rules are generated that prevent the conflicting services from being executed in parallel.
13. The method of claim 1 or 2, wherein the runtime data (210) relates to a further time period during which the at least one piece of equipment of the module transitions from the first equipment state to the second equipment state, the method further comprising: The inference of the one or more device state transition conditions is improved based on the runtime data associated with the further time period.
14. A computing device (300) comprising a processor (302) configured to perform the method according to any one of claims 1-13.
15. A computer-readable medium (304, 308) comprising instructions which, when executed by a computing device (300), enable the computing device to perform the method according to any one of claims 1-13.
