This disclosure relates generally to process control systems and, more particularly, to methods and apparatus for executing rules.
Process control systems are used in manufacturing and/or industrial settings to control processes (e.g., manufacturing processes). During such processes, machines are operated to produce an output. Operators of such process control systems desire to know when particular elements in the process control system are operating out of tolerance and/or malfunctioning. Such operation out of tolerance and/or malfunctioning might require operator intervention to correct an error in the process control system.
In general, the same reference numbers will be used throughout the drawing(s) and accompanying written description to refer to the same or like parts. The figures are not to scale.
Unless specifically stated otherwise, descriptors such as “first,” “second,” “third,” etc., are used herein without imputing or otherwise indicating any meaning of priority, physical order, arrangement in a list, and/or ordering in any way, but are merely used as labels and/or arbitrary names to distinguish elements for ease of understanding the disclosed examples. In some examples, the descriptor “first” may be used to refer to an element in the detailed description, while the same element may be referred to in a claim with a different descriptor such as “second” or “third.” In such instances, it should be understood that such descriptors are used merely for identifying those elements distinctly that might, for example, otherwise share a same name.
As used herein, “approximately” and “about” modify their subjects/values to recognize the potential presence of variations that occur in real world applications. For example, “approximately” and “about” may modify dimensions that may not be exact due to manufacturing tolerances and/or other real world imperfections as will be understood by persons of ordinary skill in the art. For example, “approximately” and “about” may indicate such dimensions may be within a tolerance range of +/−10% unless otherwise specified in the below description. As used herein “substantially real time” refers to occurrence in a near instantaneous manner recognizing there may be real world delays for computing time, transmission, etc. Thus, unless otherwise specified, “substantially real time” refers to real time+/−1 second.
As used herein, the phrase “in communication,” including variations thereof, encompasses direct communication and/or indirect communication through one or more intermediary components, and does not require direct physical (e.g., wired) communication and/or constant communication, but rather additionally includes selective communication at periodic intervals, scheduled intervals, aperiodic intervals, and/or one-time events.
As used herein, “processor circuitry” is defined to include (i) one or more special purpose electrical circuits structured to perform specific operation(s) and including one or more semiconductor-based logic devices (e.g., electrical hardware implemented by one or more transistors), and/or (ii) one or more general purpose semiconductor-based electrical circuits programmable with instructions to perform specific operations and including one or more semiconductor-based logic devices (e.g., electrical hardware implemented by one or more transistors). Examples of processor circuitry include programmable microprocessors, Field Programmable Gate Arrays (FPGAs) that may instantiate instructions, Central Processor Units (CPUs), Graphics Processor Units (GPUs), Digital Signal Processors (DSPs), XPUs, or microcontrollers and integrated circuits such as Application Specific Integrated Circuits (ASICs). For example, an XPU may be implemented by a heterogeneous computing system including multiple types of processor circuitry (e.g., one or more FPGAs, one or more CPUs, one or more GPUs, one or more DSPs, etc., and/or a combination thereof) and application programming interface(s) (API(s)) that may assign computing task(s) to whichever one(s) of the multiple types of processor circuitry is/are best suited to execute the computing task(s).
To effectively operate processes within a process control system, components (e.g., workstations) of the process control system must be functional and/or operating within normal operational limits. In existing process control systems, workstations within the process control system each execute their own logic for determining whether the workstation is functional and/or operating within normal operational limits. If a workstation is not operating within its operational limits, an operator can be notified so the operator can intervene and resolve the problem before it becomes catastrophic to the system.
In existing implementations, rules for evaluating the operational status of a workstation are executed within each respective workstation, individually. Some of those rules for evaluating the operational status of a workstation might be the same for multiple workstations within the process control system. If, for example, a rule common to multiple workstations is to be updated, potential errors in updating each workstation individually may occur and, thus, the likelihood of an error occurring increases due to the number of potential sources of error.
For example, a workstation may execute a rule on a defined list of parameters to determine if any of the parameters has exceeded a defined threshold. The output of the execution of the rule is an indication (e.g., a report) indicating a pass (the parameter was within an operational range) or a fail (the parameter was not within the operational range) for each parameter. In this example, the list of parameters as well as the logic for checking the parameters against the thresholds are embedded in the workstation itself. If the rule logic needs to be changed on this workstation, such as updating threshold values or changing parameters, an operator would have to make those changes on that individual workstation, and no other workstation within the system of workstations would receive that change. Thus, it is not possible to leverage the work done for one product (e.g., a workstation) and use it in another and the products are costly to maintain.
To further exacerbate error risks, existing rules are deployed as executable constructs. In other words, the rules are stored at each workstation as a compiled executable that is to be executed at the workstation. Because the rules are compiled, changes to the rules requires re-compilation. Process control system operators typically employ strict quality control measures that require full validation testing of executables before they are deployed to a workstation. For example, before a provider of a process control system installs an executable at a workstation, that executable must undergo a number of tests to validate that it operates correctly under different potential conditions that might occur at the workstation (e.g., the workstation executes a particular operating system and/or has particular updates and/or other configurations applied). Such testing may cause delays in deployment of updated rules, even when changes to such rules are minor (e.g., adjusting an expected temperature range).
Therefore, there exists a need for a process control system in which the rules to be executed are stored and/or executed in a common location. A need also exists for a process control system in which a common rule executor is implemented where the logic for executing a series of rules does not need to be modified after modifying a rule. Implementing such a system greatly reduced maintenance costs and the probability of errors in updating individual rules. Examples disclosed herein execute one or more rules by a rule executor that is used by one or more workstations.
The network 115 can be any one of or combination of a public network, a Virtual Private Network (VPN), a private network, or any other similar communication platform to enable two or more computing devices to communicate.
The example rule engine circuitry host 120 includes example rule engine circuitry 130 and example storage 135. The rule engine circuitry 130 controls the management and execution of the rule(s) within process control system 100. The rule engine circuitry 130 creates a workstation instance (e.g., a data model instance) for each of the plurality of workstations 110, determines which rules need to be executed, where the rules are stored, whether the rule is executable, executes the rule, and reports the result of the rule execution to a web-based interface and/or a graphical user interface (GUI). In some examples, the rule engine circuitry 130 stores the results of the rule execution in the storage 135.
The storage 135 of the illustrated example of
The rule engine circuitry 130 identifies the plurality of workstations 110 through data communicated over the network 115 from data collector circuitry 150. The data collector circuitry 150 stores information relative to the workstation(s) 110 that the rule engine circuitry 130 requests to execute a rule. In some examples, the information (e.g., property values) retrieved by the rule engine circuitry 130 from the data collector circuitry 150 may include parameters such as CPU utilization, storage utilization, temperature readings, or any other information related to workstation system health and performance. In some examples, the property values may include parameters defining the data model instance (e.g., Internet Protocol (IP) Address, workstation identification information, etc.).
As used herein, a rule includes one or more instructions the rule engine circuitry 130 is to perform during execution. The rule defines which parameters the rule engine circuitry 130 retrieves from the data collector circuitry 150 as property values, and then analyze those retrieved property values against thresholds also defined in the rule. The output of the rule contains information that includes the health of the system and/or any other combination of information necessary to analyze the health of the system. An example rule is further discussed below in connection with
The rule engine circuitry 130 processes rules to create an executable construct(s) representing the rule that can be executed against data provided by the data collector circuitry 150 of the workstation(s) 110. Responsive to an evaluation of the rule (e.g., by executing the executable construct(s) representing the rule) the rule engine circuitry 130 may present an alert and/or other notification to an operator of the process control system 100. An example implementation of the rule engine circuitry 130 is further disclosed below in connection with
The workstation 112 processes rule execution instructions passed from the rule engine circuitry 130 to read property values from one or more I/O devices 165 and create outputs that are sent back to the rule engine circuitry 130. The communication to/from the rule engine circuitry 130 is handled through communication circuitry 155. For example, the rule engine circuitry 130 may request property values of the workstation 112 storage utilization. In this example, the rule engine circuitry 130 sends a command to the data collector circuitry 150 to access the workstation 112 storage utilization and pass the result back to the rule engine circuitry 130 to analyze the property values against the threshold defined in the rule. As another example, the rule engine circuitry 130 may request actuator health information from the workstation 112. In this example, the data collector circuitry 150 receives a command from the rule engine circuitry 130 to activate the actuator, which causes the data collector circuitry 150 to send a command to the actuator to activate. The resulting response from the actuator is then sent to the rule engine circuitry 130 for an analysis of the health of the actuator.
The data collector circuitry 150 of the illustrated example of
The communication circuitry 155 of the illustrated example of
The I/O controller 160 of the illustrated example of
The I/O devices 165 of the illustrated example of
The remote device 140 of the illustrated example of
The storage 135 of the illustrated example of
The rule engine circuitry 130 of the illustrated example of
The data interface circuitry 320 of the illustrated example of
In some examples, the process control system 100 includes means for identifying a plurality of workstations 110, accessing property values from the workstation 112 stored within data collector circuitry 150 through the I/O Interface 310, and record those property values. For example, the means for identifying a plurality of workstations 110, accessing property values from the workstation 112 stored within data collector circuitry 150 through the I/O Interface 310, and record the property values may be implemented by the data interface circuitry 320. In some examples, the data interface circuitry 320 may be instantiated by processor circuitry such as the processor circuitry 912 of
The rule management circuitry 330 of the illustrated example of
In some examples, the process control system 100 includes means for managing a database of rules and executing the machine readable instructions contained in the rule(s). For example, the means for managing a database of rules and executing the machine readable instructions contained in the rule(s) may be implemented by the rule management circuitry 330. In some examples, the rule management circuitry 330 may be instantiated by processor circuitry such as the processor circuitry 912 of
The model instance circuitry 340 of the illustrated example of
In some examples, the process control system 100 includes means for creating a data model instance of an workstation 112 based on the identification of the plurality of workstations 110. For example, the means for creating a data model instance of the workstation 112 based on the identification of the plurality of workstations 110 may be implemented by the model instance circuitry 340. In some examples, the model instance circuitry 340 may be instantiated by processor circuitry such as the processor circuitry 912 of
The script generator circuitry 350 of the illustrated example of
In some examples, the process control system 100 includes means for generating a machine readable instructions script from the rule configuration file 400. For example, the means for generating a machine readable instructions script from the rule configuration file 400 may be implemented by the script generator circuitry 350. In some examples, the script generator circuitry 350 may be instantiated by processor circuitry such as the processor circuitry 912 of
The rule compilation circuitry 355 of the illustrated example of
In some examples, the process control system 100 includes means for creating an executable package from a machine readable instructions file generated from the script generator circuitry 350. For example, the means for creating an executable package from a machine readable instructions file generated from the script generator circuitry 350 may be implemented by the rule compilation circuitry 355. In some examples, the rule compilation circuitry 355 may be instantiated by processor circuitry such as the processor circuitry 912 of
The rule results circuitry 360 of the illustrated example of
In some examples, the process control system 100 includes means for reporting the result of a rule execution. For example, the means for reporting the result of a rule execution may be implemented by the rule results circuitry 360. In some examples, the rule results circuitry 360 may be instantiated by processor circuitry such as the processor circuitry 912 of
The rule editor circuitry 370 of the illustrated example of
In some examples, the process control system 100 includes means for applying edits to the rule parameter file 400. For example, the means for applying edits to the rule parameter file 400 may be implemented by the rule editor circuitry 370. In some examples, the rule editor circuitry 370 may be instantiated by processor circuitry such as the processor circuitry 912 of
While an example manner of implementing the rule engine circuitry 130 is illustrated in
Flowcharts representative of example machine readable instructions, which may be executed to configure processor circuitry to implement the rule engine circuitry 130 of
The machine readable instructions described herein may be stored in one or more of a compressed format, an encrypted format, a fragmented format, a compiled format, an executable format, a packaged format, etc. Machine readable instructions as described herein may be stored as data or a data structure (e.g., as portions of instructions, code, representations of code, etc.) that may be utilized to create, manufacture, and/or produce machine executable instructions. For example, the machine readable instructions may be fragmented and stored on one or more storage devices and/or computing devices (e.g., servers) located at the same or different locations of a network or collection of networks (e.g., in the cloud, in edge devices, etc.). The machine readable instructions may require one or more of installation, modification, adaptation, updating, combining, supplementing, configuring, decryption, decompression, unpacking, distribution, reassignment, compilation, etc., in order to make them directly readable, interpretable, and/or executable by a computing device and/or other machine. For example, the machine readable instructions may be stored in multiple parts, which are individually compressed, encrypted, and/or stored on separate computing devices, wherein the parts when decrypted, decompressed, and/or combined form a set of machine executable instructions that implement one or more operations that may together form a program such as that described herein.
In another example, the machine readable instructions may be stored in a state in which they may be read by processor circuitry, but require addition of a library (e.g., a dynamic link library (DLL)), a software development kit (SDK), an application programming interface (API), etc., in order to execute the machine readable instructions on a particular computing device or other device. In another example, the machine readable instructions may need to be configured (e.g., settings stored, data input, network addresses recorded, etc.) before the machine readable instructions and/or the corresponding program(s) can be executed in whole or in part. Thus, machine readable media, as used herein, may include machine readable instructions and/or program(s) regardless of the particular format or state of the machine readable instructions and/or program(s) when stored or otherwise at rest or in transit.
The machine readable instructions described herein can be represented by any past, present, or future instruction language, scripting language, programming language, etc. For example, the machine readable instructions may be represented using any of the following languages: C, C++, Java, C#, Perl, Python, JavaScript, HyperText Markup Language (HTML), Structured Query Language (SQL), Swift, etc.
As mentioned above, the example operations of
“Including” and “comprising” (and all forms and tenses thereof) are used herein to be open ended terms. Thus, whenever a claim employs any form of “include” or “comprise” (e.g., comprises, includes, comprising, including, having, etc.) as a preamble or within a claim recitation of any kind, it is to be understood that additional elements, terms, etc., may be present without falling outside the scope of the corresponding claim or recitation. As used herein, when the phrase “at least” is used as the transition term in, for example, a preamble of a claim, it is open-ended in the same manner as the term “comprising” and “including” are open ended. The term “and/or” when used, for example, in a form such as A, B, and/or C refers to any combination or subset of A, B, C such as (1) A alone, (2) B alone, (3) C alone, (4) A with B, (5) A with C, (6) B with C, or (7) A with B and with C. As used herein in the context of describing structures, components, items, objects and/or things, the phrase “at least one of A and B” is intended to refer to implementations including any of (1) at least one A, (2) at least one B, or (3) at least one A and at least one B. Similarly, as used herein in the context of describing structures, components, items, objects and/or things, the phrase “at least one of A or B” is intended to refer to implementations including any of (1) at least one A, (2) at least one B, or (3) at least one A and at least one B. As used herein in the context of describing the performance or execution of processes, instructions, actions, activities and/or steps, the phrase “at least one of A and B” is intended to refer to implementations including any of (1) at least one A, (2) at least one B, or (3) at least one A and at least one B. Similarly, as used herein in the context of describing the performance or execution of processes, instructions, actions, activities and/or steps, the phrase “at least one of A or B” is intended to refer to implementations including any of (1) at least one A, (2) at least one B, or (3) at least one A and at least one B.
As used herein, singular references (e.g., “a”, “an”, “first”, “second”, etc.) do not exclude a plurality. The term “a” or “an” object, as used herein, refers to one or more of that object. The terms “a” (or “an”), “one or more”, and “at least one” are used interchangeably herein. Furthermore, although individually listed, a plurality of means, elements or method actions may be implemented by, e.g., the same entity or object. Additionally, although individual features may be included in different examples or claims, these may possibly be combined, and the inclusion in different examples or claims does not imply that a combination of features is not feasible and/or advantageous.
The rule file execution properties 410 of the rule configuration file 400 of the illustrated example of
The rule execution commands 420 of the rule configuration file 400 of the illustrated example of
The inputs 430 of the rule configuration file 400 of
The outputs 440 of the rule configuration file 400 of
Any one of or combination of the rule file execution properties 410, the rule execution commands 420, the inputs 430, and/or the outputs 440 may be separated and/or combined in any number of ways that maintain the core functionality of the rule configuration file 400. In some examples, each of the rule file execution properties 410, the rule execution commands 420, the inputs 430, and the outputs 440 may be a separate file and the combination of each of these files may create the example rule configuration file 400. The rule configuration file 400 is not limited to a single file, nor is it limited to a single file type (e.g., text file, JavaScript Object Notation (JSON), etc.).
The script generator circuitry 350 generates a machine readable instructions script from the rule configuration file 400. (Block 520). An example approach to generating the machine readable instructions script is to utilize a Roslyn .NET compiler platform for dynamic script generation. In some examples, the script generator circuitry 350 (e.g., the Roslyn .NET compiler platform) reads a JavaScript Object Notation (JSON) rule configuration file 400 and generates a machine readable instructions script. In some examples, the machine readable instructions script is a C #file. However any other programming language and/or programming syntax may additionally or alternatively be used. In some examples, the generation of the machine readable instructions script is known as refactoring, in which the JSON rule configuration file 400 is refactored into the machine readable instructions script.
The rule compilation circuitry 355 compiles the machine readable instructions script generated from the rule configuration file 400 into an executable package. (Block 530). The executable package may be a single executable program file (e.g., a .exe file) or any combination of executable package files necessary to instruct a machine to execute the rule execution commands 420 in the rule configuration file 400. An example approach to compiling a machine readable instructions script into an executable package is to utilize a Roslyn .NET compiler platform to compile the generated machine readable instructions script into an executable package.
In some examples, the rule compilation circuitry 355 stores/saves the executable package for the rule engine circuitry 130 to execute the instructions stored therein. (Block 540). The executable package may be stored on the rule engine circuitry host 120 stored within the storage 135 and may be retrieved by the rule engine circuitry 130 for execution. In some examples, the executable package may be stored on the workstation 212 within the storage 135 and may be retrieved by the rule engine circuitry 130 for execution. In some examples, the rule management circuitry 330 may also store the executable package for the rule engine circuitry 130 to execute the instructions stored therein.
In some examples, the data interface circuitry 320 identifies the workstation 112 on which the example rule configuration file 400 may be executed. (Block 620). In some examples, the rule management circuitry 330 may also identify the workstation 112 on which the example rule configuration file 400 may be executed.
The model instance circuitry 340 creates an instance (e.g., a virtual representation of properties) of the workstation 112 (e.g., a data model instance) based on the identification of the workstation 112 from block 620. (Block 630). The creation of an instance allows the rule management circuitry 330 to execute rules, either in parallel or in series.
The data interface circuitry 320 then records property values collected from the data collector circuitry 150 through the I/O Interface 310 to each data model instance created by the model instance circuitry 340. (Block 640). As described above, in some examples, the property values include parameters such as CPU utilization, storage utilization, temperature readings, or any other information related to workstation system operation, health, and/or performance. In some examples, the property values may include parameters defining the data model instance (e.g., Internet Protocol (IP) Address, workstation identification information, etc.).
The rule management circuitry 330 identifies the rule(s) associated with each data model instance created by the model instance circuitry 340. (Block 650). In some examples, the rule management circuitry 330 retrieves the rule(s) stored on the rule engine circuitry host 120 within the storage 135. In some examples, the rule management circuitry 330 may also retrieve the rule(s) stored on the workstation 212 within the storage 135.
The rule management circuitry 330 then selects the rule(s) to execute based on the identification of the rule(s) from block 650. (Block 660). As described above, the rule management circuitry 330 may execute rules, either in parallel or in series.
The rule management circuitry 330 then determines if an executable package exists for the rule. (Block 670). For example, the rule management circuitry 330 may determine if an executable package exists by querying the storage 135 for one or more identifiers for the rule (e.g., a file name, a file extension, a file location, a file content, etc.).
When the rule management circuitry 330 determines that an executable package for the rule does not exist (e.g., block 670 returns a result of NO), the rule management circuitry 330 generates an executable package for the rule. (Block 672). In some examples, the example instructions of block 672 are implemented according to the script generation and rule compilation process 500 of
When the executable package is created by the script generation and rule compilation process 500 from block 672 or when the rule management circuitry 330 determines that an executable package for the rule already exists (e.g., block 670 return a result of YES), the rule management circuitry 330 then causes the execution of the rule. (Block 674).
When the rule management circuitry 330 completes execution of the rule, the rule results circuitry 360 communicates the results of the rule execution commands 420. (Block 680). The results may include a pass or fail indication, property values, or any other information collected during the execution of the rule. In some examples, the rule results circuitry 360 may report the results to a web-based interface or the graphical user interface (GUI) 700 through the I/O Interface 310.
In some examples, the rule results circuitry 360 may store the results of the rule execution commands 420 on the storage 135, or any form of internal or external storage medium, to maintain a history of the results by communicating with the storage 135 through the I/O Interface 310. The storage of the results allows for the analysis of historical trend data that may be pertinent to system health and performance analysis.
The rule management circuitry 330 then determines if there are any more rules that need to be executed. (Block 690). In some examples, the rule management circuitry 330 may determine if there are any more rules that need to be run by accessing the list of rule(s) identified by block 650. When the rule management circuitry 330 determines that there are additional rules that need to be executed (e.g., block 690 returns a result of YES), the rule management circuitry 330 returns to block 660 to select the next rule for execution. The rule engine execution process 600 of blocks 660 through 690 is repeated until the rule management circuitry 330 determines that there are no additional rules to execute.
The core logic field 710 of the GUI 700 of
The editable parameters field 720 of the GUI 700 of
The editable thresholds field 730 of the GUI 700 of
The rule editor circuitry 370 then identifies the rule execution commands 420 (e.g., core logic). (Block 820). The rule execution commands 420 include the instructions that the rule engine circuitry 130 executes. In some examples, the rule editor circuitry 370 may identify the rule execution commands 420 by analyzing the format of the rule parameter file 400 and extracting information identifying the rule execution commands 420. One identification method may include searching for patterns such as a string phrase and/or a sub-classification of file identification information (e.g., breaking the rule configuration file 400 into its individual components such as the rule execution commands 420, the inputs 430, the outputs 440, etc.).
The rule editor circuitry 370 then determines if the rule execution commands 420 have been edited. (Block 822). The rule editor circuitry 370 may determine if the rule execution commands 420 have been edited, for example, by determining if the rule configuration file 400 has been modified, either through file save information, version control history, or any other way of determining whether a file or a specific portion of a file has been modified.
When the rule editor circuitry 370 determines that the rule execution commands 420 have been edited (e.g., block 822 returns a result of YES), the rule editor circuitry 370 then determines if editing of the rule execution commands 420 is permitted (e.g., by accessing the administrative rules associated with the rule configuration file 400). (Block 824). In some examples, the administrative rules for the rule configuration file 400 may prohibit the editing of the rule execution commands 420. In prohibiting the editing of the rule execution commands 420, the validation process for the rule can be reduced or even eliminated because recompilation is not required, which reduces maintenance cost. In some examples, the rule execution commands 420 can be edited to change the rule being performed and/or to optimize the execution of the rule.
When the rule editor circuitry 370 determines that editing of the rule execution commands 420 is permitted (e.g., block 824 returns a result of YES), then the rule editor circuitry 370 applies the changes of the rule execution commands 420 to the rule configuration file 400 and saves the resulting rule configuration file 400. (Block 826).
When the rule editor circuitry 370 determines that either the rule execution commands 420 have not been edited (e.g., block 822 returns a result of NO), the editing of the rule execution commands 420 is not permitted (e.g., block 824 returns a result of NO), or the rule editor 370 has applied the changes of the rule execution commands 420 to the rule configuration file 400, the rule editor circuitry 370 then identifies the inputs 430 and/or the outputs 430 (e.g., parameters) to be collected during execution of the rule. (Block 830). In some examples, the rule editor circuitry 370 may identify the inputs 430 and/or the outputs 430 by analyzing the format of the rule parameter file 400 and extracting information identifying the inputs 430 and/or the outputs 440. One identification method may include searching for patterns such as a string phrase and/or a sub-classification of file identification information (e.g., breaking the rule configuration file 400 into its individual components such as rule execution commands 420, the inputs 430, the outputs 440, etc.).
The rule editor circuitry 370 then determines if the inputs 430 and/or the outputs 430 have been edited. (Block 832). The rule editor circuitry 370 may determine if the inputs 430 and/or the outputs 430 have been edited, for example, by determining if the rule configuration file 400 has been modified, either through file save information, version control history, or any other way of determining whether a file or a specific portion of a file has been modified.
When the rule editor circuitry 370 determines that the inputs 430 and/or the outputs 430 have been edited (e.g., block 832 returns a result of YES), then the rule editor circuitry 370 applies the changes of the inputs 430 and/or the outputs 440 to the rule configuration file 400 and saves the resulting rule configuration file 400. (Block 834).
When the rule editor circuitry 370 determines that either the inputs 430 and/or the outputs 430 have not been edited (e.g., block 832 returns a result of NO) or the rule editor circuitry 370 has applied the changes of the inputs 430 and/or the outputs 430 to the rule configuration file 400, the rule editor circuitry 370 then identifies the thresholds the inputs 430 may be evaluated against during execution of the rule. (Block 840). In some examples, the rule editor circuitry 370 may identify the thresholds by analyzing the format of the rule parameter file 400 and extracting information identifying the thresholds from the inputs 430. One identification method may include searching for patterns such as a string phrase and/or a sub-classification of file identification information (e.g., breaking the rule configuration file 400 into its individual components such as rule execution commands 420, the inputs 430, the outputs 440, etc.).
In this example, the thresholds are included within the inputs 430 of the rule parameter file 400. In some examples, the thresholds may be stored in a thresholds file separate from the rule configuration file 400. The thresholds file may be in the form of, but is not limited to, a database (db) file, a JSON file, and/or a CSV file. Keeping the thresholds file separate from the rule configuration file 400 may greatly reduce maintenance cost as well as validation costs for the rule engine circuitry 130.
The rule editor circuitry 370 then determines if the thresholds have been edited. (Block 842). In some examples, the rule editor circuitry 370 may determine if the thresholds have been edited by determining if the rule configuration file 400 has been modified, either through file save information, version control history, or any other way of determining whether a file or a specific portion of a file has been modified. In some examples, the rule editor circuitry 370 may read the thresholds file that is separate from the rule configuration file 400 and determine if any of the thresholds have been edited.
When the rule editor circuitry 370 determines that the thresholds have been edited (e.g., block 842 returns a result of YES), then the rule editor circuitry 370 applies the changes of the thresholds to the inputs 430 of the rule configuration file 400 and saves the resulting rule configuration file 400. (Block 844). In some examples, the rule editor circuitry 370 may instead apply the changes of the thresholds to the thresholds file separate from the rule configuration file 400.
When the rule editor circuitry 370 determines that either the thresholds have not been edited (e.g., block 842 returns a result of NO) or the rule editor circuitry 370 has applied the changes of the thresholds to the file containing the threshold information (either the rule configuration file 400 or the thresholds file), the rule editor circuitry 370 saves the final updated rule configuration file 400. (Block 850). In some examples the rule configuration file 400 may be saved on the rule engine circuitry host 120 stored within the storage 135. In some examples, the rule configuration file 400 may be saved on the workstation 212 stored within the storage 135. In some examples, the rule configuration file 400 may alternatively be saved to a remote location (e.g., a remote server) over network 115.
In some examples, the rule editor circuitry 370 allows for the creation and modification of a rule through the GUI 700. In some examples, the rule editor circuitry 370 allows for the import of an external file containing rule parameter information to be applied to a rule or to batch create a plurality of rule configuration files 400.
The processor platform 900 of the illustrated example includes processor circuitry 912. The processor circuitry 912 of the illustrated example is hardware. For example, the processor circuitry 912 can be implemented by one or more integrated circuits, logic circuits, FPGAs, microprocessors, CPUs, GPUs, DSPs, and/or microcontrollers from any desired family or manufacturer. The processor circuitry 912 may be implemented by one or more semiconductor based (e.g., silicon based) devices. In this example, the processor circuitry 912 implements the data interface circuitry 320, rule management circuitry 330, model instance circuitry 340, script generator circuitry 350, rule compilation circuitry 355, rule results circuitry 360, and rule editor circuitry 370.
The processor circuitry 912 of the illustrated example includes a local memory 913 (e.g., a cache, registers, etc.). The processor circuitry 912 of the illustrated example is in communication with a main memory including a volatile memory 914 and a non-volatile memory 916 by a bus 918. The volatile memory 914 may be implemented by Synchronous Dynamic Random Access Memory (SDRAM), Dynamic Random Access Memory (DRAM), RAMBUS® Dynamic Random Access Memory (RDRAM®), and/or any other type of RAM device. The non-volatile memory 916 may be implemented by flash memory and/or any other desired type of memory device. Access to the main memory 914, 916 of the illustrated example is controlled by a memory controller 917.
The processor platform 900 of the illustrated example also includes interface circuitry 920. The interface circuitry 920 may be implemented by hardware in accordance with any type of interface standard, such as an Ethernet interface, a universal serial bus (USB) interface, a Bluetooth® interface, a near field communication (NFC) interface, a Peripheral Component Interconnect (PCI) interface, and/or a Peripheral Component Interconnect Express (PCIe) interface.
In the illustrated example, one or more input devices 922 are connected to the interface circuitry 920. The input device(s) 922 permit(s) a user to enter data and/or commands into the processor circuitry 912. The input device(s) 922 can be implemented by, for example, a keyboard, a button, a mouse, a touchscreen, a track-pad, a trackball, and/or an isopoint device.
One or more output devices 924 are also connected to the interface circuitry 920 of the illustrated example. The output device(s) 924 can be implemented, for example, by display devices (e.g., a light emitting diode (LED), an organic light emitting diode (OLED), a liquid crystal display (LCD), a cathode ray tube (CRT) display, an in-place switching (IPS) display, a touchscreen, etc.), a tactile output device, a printer, and/or speaker. The interface circuitry 920 of the illustrated example, thus, typically includes a graphics driver card, a graphics driver chip, and/or graphics processor circuitry such as a GPU.
The interface circuitry 920 of the illustrated example also includes a communication device such as a transmitter, a receiver, a transceiver, a modem, a residential gateway, a wireless access point, and/or a network interface to facilitate exchange of data with external machines (e.g., computing devices of any kind) by a network 926. The communication can be by, for example, an Ethernet connection, a digital subscriber line (DSL) connection, a telephone line connection, a coaxial cable system, a satellite system, a line-of-site wireless system, a cellular telephone system, an optical connection, etc.
The processor platform 900 of the illustrated example also includes one or more mass storage devices 928 to store software and/or data. Examples of such mass storage devices 928 include magnetic storage devices, optical storage devices, floppy disk drives, HDDs, CDs, Blu-ray disk drives, redundant array of independent disks (RAID) systems, solid state storage devices such as flash memory devices and/or SSDs, and DVD drives.
The machine readable instructions 932, which may be implemented by the machine readable instructions of
The cores 1002 may communicate by a first example bus 1004. In some examples, the first bus 1004 may be implemented by a communication bus to effectuate communication associated with one(s) of the cores 1002. For example, the first bus 1004 may be implemented by at least one of an Inter-Integrated Circuit (I2C) bus, a Serial Peripheral Interface (SPI) bus, a PCI bus, or a PCIe bus. Additionally or alternatively, the first bus 1004 may be implemented by any other type of computing or electrical bus. The cores 1002 may obtain data, instructions, and/or signals from one or more external devices by example interface circuitry 1006. The cores 1002 may output data, instructions, and/or signals to the one or more external devices by the interface circuitry 1006. Although the cores 1002 of this example include example local memory 1020 (e.g., Level 1 (L1) cache that may be split into an L1 data cache and an L1 instruction cache), the microprocessor 1000 also includes example shared memory 1010 that may be shared by the cores (e.g., Level 2 (L2 cache)) for high-speed access to data and/or instructions. Data and/or instructions may be transferred (e.g., shared) by writing to and/or reading from the shared memory 1010. The local memory 1020 of each of the cores 1002 and the shared memory 1010 may be part of a hierarchy of storage devices including multiple levels of cache memory and the main memory (e.g., the main memory 914, 916 of
Each core 1002 may be referred to as a CPU, DSP, GPU, etc., or any other type of hardware circuitry. Each core 1002 includes control unit circuitry 1014, arithmetic and logic (AL) circuitry (sometimes referred to as an ALU) 1016, a plurality of registers 1018, the local memory 1020, and a second example bus 1022. Other structures may be present. For example, each core 1002 may include vector unit circuitry, single instruction multiple data (SIMD) unit circuitry, load/store unit (LSU) circuitry, branch/jump unit circuitry, floating-point unit (FPU) circuitry, etc. The control unit circuitry 1014 includes semiconductor-based circuits structured to control (e.g., coordinate) data movement within the corresponding core 1002. The AL circuitry 1016 includes semiconductor-based circuits structured to perform one or more mathematic and/or logic operations on the data within the corresponding core 1002. The AL circuitry 1016 of some examples performs integer based operations. In other examples, the AL circuitry 1016 also performs floating point operations. In yet other examples, the AL circuitry 1016 may include first AL circuitry that performs integer based operations and second AL circuitry that performs floating point operations. In some examples, the AL circuitry 1016 may be referred to as an Arithmetic Logic Unit (ALU). The registers 1018 are semiconductor-based structures to store data and/or instructions such as results of one or more of the operations performed by the AL circuitry 1016 of the corresponding core 1002. For example, the registers 1018 may include vector register(s), SIMD register(s), general purpose register(s), flag register(s), segment register(s), machine specific register(s), instruction pointer register(s), control register(s), debug register(s), memory management register(s), machine check register(s), etc. The registers 1018 may be arranged in a bank as shown in
Each core 1002 and/or, more generally, the microprocessor 1000 may include additional and/or alternate structures to those shown and described above. For example, one or more clock circuits, one or more power supplies, one or more power gates, one or more cache home agents (CHAs), one or more converged/common mesh stops (CMSs), one or more shifters (e.g., barrel shifter(s)) and/or other circuitry may be present. The microprocessor 1000 is a semiconductor device fabricated to include many transistors interconnected to implement the structures described above in one or more integrated circuits (ICs) contained in one or more packages. The processor circuitry may include and/or cooperate with one or more accelerators. In some examples, accelerators are implemented by logic circuitry to perform certain tasks more quickly and/or efficiently than can be done by a general purpose processor. Examples of accelerators include ASICs and FPGAs such as those discussed herein. A GPU or other programmable device can also be an accelerator. Accelerators may be on-board the processor circuitry, in the same chip package as the processor circuitry and/or in one or more separate packages from the processor circuitry.
More specifically, in contrast to the microprocessor 1000 of
In the example of
The configurable interconnections 1110 of the illustrated example are conductive pathways, traces, vias, or the like that may include electrically controllable switches (e.g., transistors) whose state can be changed by programming (e.g., using an HDL instruction language) to activate or deactivate one or more connections between one or more of the logic gate circuitry 1108 to program desired logic circuits.
The storage circuitry 1112 of the illustrated example is structured to store result(s) of the one or more of the operations performed by corresponding logic gates. The storage circuitry 1112 may be implemented by registers or the like. In the illustrated example, the storage circuitry 1112 is distributed amongst the logic gate circuitry 1108 to facilitate access and increase execution speed.
The example FPGA circuitry 1100 of
Although
In some examples, the processor circuitry 912 of
A block diagram illustrating an example software distribution platform 1205 to distribute software such as the machine readable instructions 932 of
From the foregoing, it will be appreciated that example systems, methods, apparatus, and articles of manufacture have been disclosed that implements one or more checks and a checks executor that is used by one or more workstations to reduce maintenance costs associated with system health and performance validation checks Disclosed systems, methods, apparatus, and articles of manufacture improve the efficiency of using a computing device by implementing the rule engine circuitry 130 that can be independent of any individual workstation, which enables common or shared usage of the rule engine circuitry 130 on any of the plurality of workstations 110 across the process control system 100. Such an implementation allows for reduced maintenance costs and reduces the risk of errors due to the validation of system health and performance checks. Disclosed systems, methods, apparatus, and articles of manufacture are accordingly directed to one or more improvement(s) in the operation of a machine such as a computer or other electronic and/or mechanical device.
Example methods, apparatus, systems, and articles of manufacture to implement one or more checks and a checks executor that is used by one or more workstations to reduce maintenance costs associated with system health and performance validation checks is disclosed herein. Further examples and combinations thereof include the following:
Example 1 includes an apparatus for executing a rule comprising at least one memory, machine readable instructions, and processor circuitry to at least one of instantiate or execute the machine readable instructions to access a property value from a data collector, the property value including an operational value of a workstation within a process control system, create a data model instance representing the workstation, apply the property value to the data model instance, identify a rule associated with the data model instance, cause execution of an executable package associated with the rule using the data model instance, and record a result of the execution of the executable package.
Example 2 includes the apparatus of example 1, wherein the processor circuitry further at least one of instantiates or executes the machine readable instructions to access a rule configuration file defining a rule execution instruction, generate a computer readable script based on the rule configuration file, compile the computer readable script into the executable package, and store the executable package to a storage device.
Example 3 includes the apparatus of example 1, wherein the processor circuitry further at least one of instantiates or executes the machine readable instructions to apply an update to at least one of core logic of the rule, a parameter to be utilized during execution of the rule, or a threshold to be utilized during execution of the rule, and store a rule configuration file.
Example 4 includes the apparatus of example 3, wherein the threshold is in a file separate from the rule.
Example 5 includes the apparatus of example 1, wherein the data collector is to receive instructions to retrieve the property value via a network connection.
Example 6 includes the apparatus of example 1, wherein the result of the rule execution is presented using a web-based interface.
Example 7 includes the apparatus of example 1, wherein the result of the rule execution is stored to a storage device.
Example 8 includes the apparatus of example 1, wherein a remote device is to instruct the processor circuitry to at least one of instantiate or execute the machine readable instructions.
Example 9 includes a non-transitory machine readable storage medium comprising instructions that, when executed, cause processor circuitry to at least access a property value from a data collector, the property value including an operational value of a workstation within a process control system, create a data model instance representing the workstation, apply the property value to the data model instance, identify a rule associated with the data model instance, cause execution of an executable package associated with the rule using the data model instance, and record a result of the execution of the executable package.
Example 10 includes the non-transitory machine readable storage medium of example 9, wherein the instructions, when executed, cause the processor circuitry to at least access a rule configuration file defining a rule execution instruction, generate a computer readable script based on the rule configuration file, compile the computer readable script into the executable package, and store the executable package to a storage device.
Example 11 includes the non-transitory machine readable storage medium of example 9, wherein the instructions, when executed, cause the processor circuitry to at least apply an update to at least one of core logic of the rule, a parameter to be utilized during execution of the rule, or a threshold to be utilized during execution of the rule, and store a rule configuration file.
Example 12 includes the non-transitory machine readable storage medium of example 11, wherein the threshold is edited in a file separate from the rule.
Example 13 includes the non-transitory machine readable storage medium of example 9, wherein the instructions, when executed, cause the processor circuitry to at receive instructions to retrieve the property value via a network connection.
Example 14 includes the non-transitory machine readable storage medium of example 9, wherein the instructions, when executed, display the result of the rule execution via a graphical user interface.
Example 15 includes a method for executing a rule, the method comprising accessing a property value from a data collector, the property value including an operational value of a workstation within a process control system, creating a data model instance representing the workstation, applying the property value to the data model instance, identifying a rule associated with the data model instance, causing execution of an executable package associated with the rule using the data model instance, and recording a result of the execution of the executable package.
Example 16 includes the method of example 15, further including accessing a rule configuration file defining a rule execution instruction, generating a computer readable script based on the rule configuration file, compiling the computer readable script into the executable package, and storing the executable package to a storage device.
Example 17 includes the method of example 15, further including applying an update to at least one of core logic of the rule, a parameter to be utilized during execution of the rule, or a threshold to be utilized during execution of the rule, and storing a rule configuration file.
Example 18 includes the method of example 17, wherein the thresholds are edited in a file separate from the rule.
Example 19 includes the method of example 15, wherein the data collector receives instructions to retrieve the property value via a network connection.
Example 20 includes the method of example 15, wherein the result of the rule execution is displayed to at least one of a web-based interface or a graphical user interface.
Example 21 includes the method of example 15, wherein the result of the rule execution is stored to a storage device.
Example 22 includes the method of example 21, further including querying the stored result, and analyzing the result to identify trend information.
Example 23 includes an apparatus for executing a rule comprising means for accessing a property value from a data collector, the property value including an operational value of a workstation within a process control system, means for creating a data model instance representing the workstation, means for applying the property value to the data model instance, means for identifying a rule associated with the data model instance, means for causing execution of an executable package associated with a rule using the data model instance, and means for recording a result of the execution of the executable package.
Example 24 includes the apparatus of example 23, wherein the means for accessing is a first means for accessing, and further including second means for accessing a rule configuration file defining a rule execution instruction, means for generating a computer readable script based on the rule configuration file, means for compiling the computer readable script into the executable package, and means for storing the executable package to a storage device.
Example 25 includes the apparatus of example 23, wherein the means for applying is a first means for applying, and further including second means for applying an update to at least one of core logic of the rule, a parameter to be utilized during execution of the rule, or a threshold to be utilized during execution of the rule, and means for storing a rule configuration file.
Example 26 includes the apparatus of example 23, further including means for receiving instructions to retrieve the property values via a network connection.
Example 27 includes the apparatus of example 23, further including means for reporting the result of the rule execution to a graphical user interface.
The following claims are hereby incorporated into this Detailed Description by this reference. Although certain example systems, methods, apparatus, and articles of manufacture have been disclosed herein, the scope of coverage of this patent is not limited thereto. On the contrary, this patent covers all systems, methods, apparatus, and articles of manufacture fairly falling within the scope of the claims of this patent.