Control system for distributed sensors and actuators

Abstract: Conventional Boolean Logic Control is augmented to provide enhanced diagnostics, monitoring, and fail safe operation for dynamic systems having distributed discrete-valued sensors and actuators. A decentralized model of a controlled system defines behavior and timing models for both sensors and actuators, termed Control Elements (CEs). Each CE has a first model for transition from state 0 to 1, and a second model for transition from state 1 to 0. Each behavioral model is defined by an Event Signature comprising a sequence of state changes in neighboring CEs. A continuous evaluation of event signatures is performed to compute a probability that a given CE will change state. An Expectation Function is used to check and enforce the correct behavior of a CE. A statistical temporal model predicts delays in the states of a CE as a function of its previous and current delays. The distributed behavior and on-line timing models are used to detect and diagnose incorrect behavior and failures of decentralized sensors and actuators.

Description: TECHNICAL FIELD The present invention relates to control systems for dynamic processes and, in particular, to control systems for dynamic processes that utilize multiple decentralized sensors and actuators. BACKGROUND OF THE INVENTION Automated control of dynamic processes, such as in manufacturing plants, generally involves use of a multiplicity of discrete-valued sensors and actuators. In conventional control systems, Boolean logic is normally used for controlling actuators as a function of the state of one or more sensors. The control logic can be encoded into a Relay Ladder Diagram in a Programmable Logic Controller (PLC). In a Boolean Logic Control (BLC) system, the PLC scans the state of the sensors, evaluates predetermined Boolean equations based on the sensor states, and drives the actuators accordingly. Boolean Logic Control, however, does not contain any process state information. As a result, there is no explicit information on the sequential behavior of the process or the timing between state transitions of sensors and actuators. Therefore, Boolean logic controllers cannot detect and diagnose incorrect operation of the sensors and actuators, which frequently malfunction due to transient errors and failures. An example of a typical BLC system is- illustrated by the following Boolean equation: A 1 = S 1 • S 2 • S 3 where"•" is the logical AND operator and A 1 is an actuator whose state is a logical function of the states of sensor S 1 , S 2 , and S 3 . If S 1 = 1, S 2 = 0, and S 3 = 1, then the state of A 1 is 0. If S2 incorrectly changes state from 0 to 1, then actuator A 1 also changes state from 0 to 1 (erroneously). Because BLC does not contain an explicit model of the process, such erroneous state transitions are difficult to detect, and they propagate through the logic causing incorrect operation of the actuators. This problem can be serious in a decentralized or distributed control system that has a large number of processing nodes. Control methods based on state-machine models of a factory are also known in the prior art. These methods include process and logic description by Sequential Functions Charts, State Diagrams, or Function Blocks. Although these methods are superior to Relay Ladder Logic with respect to fail-safe control and diagnosis, they are only able to detect certain hard failures. They cannot detect transient errors and erroneous events within a state, and diagnostic routines must be explicitly programmed. Because these control systems contain their own state machines, they may not contain sufficient information about the process state or its relationship to other state machines for effective monitoring and diagnosis of distributed control systems. Therefore, an efficient method of on-line monitoring, diagnosis, and fail-safe operation has been sought for decentralized factory control systems that require multiple discrete sensors and actuators. SUMMARY OF THE INVENTION The present invention comprises a control system and method as defined in claims 1 and 3 respectively which augment Boolean Logic Control to provide enhanced diagnostics, monitoring, and fail safe operation for dynamic systems that have discrete-valued sensors and actuators. The method of the present invention is based on a decentralized model of the system to be controlled. Unlike conventional Boolean logic controllers, where logic is associated only with the actuators, the present method defines behavior and timing models for both sensors and actuators. In the method of the present invention, each sensor and actuator, also referred to as Control Elements (CEs), has two models: a first model for transition from state 0 to 1, and a second model for transition from state 1 to 0. The behavior model is defined by a sequence of events in a CE's neighborhood. This sequence of events, called an Event Signature, comprises a sequence of state changes in neighboring CEs and encodes a subset of the process state into each CE. The method of the present invention performs a continuous evaluation of the event signatures to compute a measure of the likelihood that a CE will change state. This measure of likelihood, called an Expectation Function (EF), is used to check and enforce the correct behavior of a CE. Each CE also learns a statistical temporal model in real-time. The temporal model predicts delays in the states of the CE, as a function of its previous and current delays, in the evaluation of its event signature. The distributed behavior model and the on-line estimated timing model are used to detect and diagnose incorrect behavior and failures of sensors and actuators. A principal object of the invention is the fail-safe operation and control of dynamic systems having discrete-valued sensors and actuators. A feature of the invention is the computation of a behavioral expectation function and a temporal model for each sensor and actuator. An advantage of the invention is the detection and diagnosis of incorrect behavior due to transient and hard failures of sensors and actuators in a distributed control system. BRIEF DESCRIPTION OF THE DRAWINGS For a more complete understanding of the present invention and for further advantages thereof, the following Detailed Description of the Preferred Embodiment makes reference to the accompanying Drawings, in which: FIGURE 1 is a block diagram illustrating the two possible state changes for a binary Control Element (CE); FIGURE 2 is a block diagram of a sequence function that comprises a Control Element signature utilized by the present invention; and FIGURE 3 is a schematic diagram of a bottle filling line using a control system of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Centralized process control is effective in checking and enforcing the correct evolution of a process because it includes a central repository of the system state. In contrast, a decentralized or distributed control system (DCS) is composed of multiple stand-alone controllers that autonomously control various subsystems of a larger process. A typical example of distributed control is a system in which a microprocessor is dedicated to each sensor and actuator, and in which the microprocessors are interconnected by a communication link. Although distributed control has the desirable characteristics of high performance and substantial fault-tolerance (because there is no single point of failure), a DCS can lose significant robustness because of the lack of a central repository of the system state. Since each Control Element (CE) of a DCS may have only limited knowledge of the states of other DCS elements, a decentralized scheme is needed to validate the actions of the CEs. For autonomous operation, each DCS element must be able to relate its actions or changes of state to a subset of the process state. If individual sensors and actuators comprise Control Elements of the DCS, then each sensor and actuator must autonomously determine whether its current state is in agreement with a subset of the preceding states and actuations of the system. The present invention comprises a control system that augments traditional Boolean Logic Control (BLC). The system can be incorporated into existing Programmable Logic Controllers (PLCs) to provide fail-safe control with enhanced diagnostics. The control method is especially suited for monitoring and controlling dynamic systems that have distributed discrete-value sensors and actuators. There are two types of CEs in a discrete-event manufacturing system: those that change state randomly (e.g., operator controlled actions such as E-stop and Halt commands) and those that are deterministic with a sequential (and sometimes temporal) model relating their state changes. The latter, referred to as Constrained Events, may change state randomly in time, but they occur in a deterministic sequence. The state changes of most sensors and actuators in a discrete manufacturing line, for example, are usually Constrained Events produced by a predictable flow of materials or parts. In the present invention, the sequential relationships of Constrained DCS events are encoded into the system as control element signatures. Figure 1 illustrates a simple two state model of a Control Element, CE i . Given the current state of a DCS, the present invention generates a model that predicts the occurrence of an event that causes a state change. The expectation of state X i = 0 to change to state X i = 1 may be written as E (X i ↑), and expectation of state X i = 1 to change to state X i = 0 may be written as E (X i ↓). The expectation function E can have a continuum of values between 0 and 1, although the evolution of E over time may not be continuous. Γ (Σ 1 , Σ 2 , ... Σ m ) defines a sequence function that represents the occurrence of events Σ in the strict sequence Σ 1 , Σ 2 , ... Σ m . The sequence function Γ can be modeled by a state machine as illustrated schematically in Figure 2. As each event Σ i in the sequence arrives, the machine transitions to a new state T i . A reset event labeled Σ ri can be defined in any state to reset the sequence function Γ. Each transitional state T i in the sequence function has a value α i such as α 1 , α 2 , ... α m (where α m generally equals 1). Typically, these state values α i are defined by the operator of the controlled system. When all the transitional states have changed in sequence without being reset, the expectation that CE i will change from state X i = 0 to state X i = 1 is essentially 1. The sequence function associated with each control element thus defines a "signature" for that CE. Φ (Σ 1 , Σ 2 , ... Σ m ) defines a random function that represents the random occurrence of events Σ 1 , Σ 2 , ... Σ m . This function returns a value of 1 when all the events Σ 1 , Σ 2 , ... Σ m have occurred. When the first event Σ i arrives, the random function Φ returns a value of 1/m. When the second event arrives, it returns the value 2/m, and so on. A reset event Σ r can also be defined for the random function Φ. The expectation function E of a control element to change state, from 0 to 1 for example, may be defined as a function of Γ and Φ as follows: E (X i ↑) = f(Γ, Φ), where f is defined as any combination of sequences and random events. An example of f is: f = Γ (Σ 1 , Σ 2 , Φ (Σ 3 , Σ 4 , ... Σ r ), Σ j , Σ k , ...). Sequence function Γ can be represented as a vector of sequence functions. The expectation function E for n states of X is defined as the product of an ordered set of events and predefined weights: E (X) = [α 1 • Γ 1 , α 2 • Γ 2 , ... α n • Γ n ] T , where "α i " is an n-dimensional vector of weighting constants, "•" denotes the vector dot product, and " T " denotes vector transpose. Each element of the vector expectation function E represents one path of evolution of the events. If the process has a single unique path, then E is a scalar rather than a vector. To illustrate operation of the expectation functions of the present invention, Figure 3 depicts an example of a bottle filling line 30. In Figure 3, N1, N2, ... N7 denote distributed processing nodes. Each node comprises a control element (either a sensor or an actuator), and each control element generally includes a dedicated microprocessor. The microprocessor for each control element functions to time-stamp state changes; encode the sequence function, random function, and temporal model; compute the expectation function and the state delay estimate; and predict and evaluate control element state changes. In the example of Figure 3, N1 is a sensor for detecting empty bottles on an input conveyor 32; N2 is a load sensor at a filling station; N3 is a solenoid actuator for a fluid injector 34; N4 is a fill level photodetector; N5 is an actuator for an input drive motor 35; N6 is an actuator for an output drive motor 36; and N7 is a sensor for detecting filled bottles on an output conveyor 38. The microprocessor of each control element is connected by a communication link 40 to at least the other control elements in its "neighborhood" (i.e., those other elements that define the signature for that control element). Communication link 40 may comprise hard wiring between nodes N1-N7, for example, or a radio transceiver as illustrated. The expectation function for sensor N4 to change state from off (0) to on (1), for example, may be stated as follows. E (N4↑) = Γ (N2↑, N5↓, N3↑) where the up arrows denote a transition from 0 to 1 and the down arrows denote a transition from 1 to 0. The expectation function E (N4↑) goes from 0 to 1 in three discrete steps as the three elements of sequence function Γ (i.e., the signature for N4) occur in sequence and return a value of 1. Thus, the microprocessor of photodetector N4 is connected to at least nodes N2, N3, and N5, which define the signature for detector N4. A large number of elements in sequence function Γ yields a smooth expectation function. The expectation function E (X i ↑), defined by a sequence function Γ, is evaluated as follows: E(X i ↑) = Γ(Σ 1 , Σ 2 , ... Σ m ) = α 1 E(Σ 1 ) + α 2 E(Σ 2 ) | Σ1 + ... + α m E(Σ m ) | Σ1, Σ2, ... Σm-1 where α i is a coefficient that represents the probability (p) of X i changing state from 0 to 1, that is: α i = p (X i ↑) | Γ(Σ1, Σ2, ... Σi) for i ≤ m, and where E(Σ i ) | Σi-1 = 0 before Σ i-1 occurs, and = E(Σ i ) after Σ i-1 occurs. The coefficients α 1 , α 2 , ... α m generally form an ascending sequence with α m = 1. The expectation function E (X i ↑) becomes zero when X i = 1. To further illustrate evaluation of expectation functions, the expectation function defined above in conjunction with bottle filling line 30 illustrated in Figure 3 can be rewritten as follows: E(N4↑) = 0.2 E(N2↑) + 0.5 E(N5↓)| N2↑ + 1.0 E(N3↑) | N2↑,N5↓ where 0.2, 0.5, and 1.0 are qualitatively determined weights corresponding to α i above. The present invention also utilizes a temporal model for the decentralized control method. The model assumes that state transitions are instantaneous but that a pure delay time D occurs within states. Delay time D is a random variable that is related to perturbations caused by delays and buffers in workstations and transport devices of a manufacturing line, for example. The objective of the temporal model is to generate an estimate Dn '(X i0 ) of the delay D n in state X i0 before transitioning to state X i1 , where n denotes the sampling instant. The delay estimate can be modeled as a function of the preceding delay and the delays in the states associated with events in the signature of the control element as follows: D n '(X i0 ) = D n-1 (X i0 ) + G [ΔD n '(Σ 1 , Σ 2 , ... Σ m )] T where G is a vector of unknown constants to be determined, Δ D n '(Σ 1 , Σ 2 , ... Z m ) is a vector of dimension m containing estimation errors in the time delays of states corresponding to events Σ 1 , Σ 2 , ... Σ m , T denotes vector transpose, and n denotes the sampling instant. In the estimation process, the following quadratic function is minimized: minimize: [D n (X i0 ) - D n '(X i0 )] 2 . Substitution of D n '(X i0 ) from the equation above yields: minimize: [D n (X i0 ) - D n-1 (X i0 ) + G [ΔD n '(Σ 1 , Σ 2 , ... Σ m )] T ] 2 . And since ΔD n (X i0 ) = D n (X i0 ) - D n-1 (X i0 ), the minimum for the above expression is obtained when: G [ΔD n '(Σ 1 , Σ 2 , ... Σ m )] T = ΔD n (X i0 ), which can be solved by a standard least squares method following on-line data collection of m samples. An alternative, preferred solution utilizes a priori knowledge of the behavior of the discrete event system being controlled. In this solution, ρ ik (n) denotes the autocorrelation coefficient between Δ D n (X i0 ) and Δ D n (Σ 1 , Σ 2 , ... Σ m ) at the sampling instant n , and is defined as: ρ ik (n) = cov [ΔD n (X i0 ), ΔD n (Σ k )] / (σ i σ k ), where σ i and σ k are standard deviations of Δ D n (X i0 ) and Δ D n (Σ k ), respectively, and " cov " denotes the covariance. Therefore, vector G may be factored as: G = K ρ, where K is a constant and ρ is the vector of autocorrelation functions defined above. At each sampling instant, K n is determined by the following equation: K n = ρ i1 ΔD Σ1 + ρ i2 ΔD Σ2 + ... + ρ im ΔD Σm ΔD n X i0 The equation for the delay estimate can then be written as: D n '(X i0 ) = D n-1 (X i0 ) + K n-1 ρ n [ΔD n (Σ 1 , Σ 2 , ... Σ m )] T . To illustrate application of the foregoing timing model, consider the bottle filling example of Figure 3. As previously stated, the expectation function for sensor N4 to change state from off (0) to on (1) may be defined as: E (N4↑) = Γ(N2↑, N5↓, N3↑). The equation expressing the timing model for the time delay in state N4 = 0 can be written as: D n '(N4 0 ) = D n-1 (N4 0 ) + K 1 ρ 1 ΔD(N2 0 ) + K 2 ρ 2 ΔD(N5 1 ) + K 3 ρ 3 ΔD(N3 0 ), The value of the autocorrelation coefficients K i ρ i ranges between 0 and 1 as a function of the degree of linear correlation between the delay in state N4 = 0 and the delays in the states N2 = 0, N5 = 1, and N3 = 0. In this example, the delay in N4 = 0 may correlate linearly to the delay N3 = 0. If the fill speed reduces due to partial blockage of the fill valve, the timing model will identify this additional delay. The delay can be automatically identified and reported to the operator if the fill speed goes below a prespecified threshold. In addition, the failure of N4 can be identified by a combination of the sequential behavior model (i.e., the event signature) and the timing model by checking if the event signature of N4 to change state from 0 to 1 is satisfied and the time delay in N4 = 0 exceeds the estimated delay. As described for the example of Figure 3, the combination of a behavior model and a temporal model gives the control system of the present invention the capability of diagnosing failures and malfunctions in the sensors and actuators. Furthermore, the system can identify transient errors such as N4 changing state out of sequence due to reflected light or changes in environmental lighting conditions, for example. The identification of transient errors such as these is extremely difficult, if not impossible, using conventional control methods. As described above, the present invention comprises a control system that augments conventional Boolean Logic Control (BLC) to provide fail-safe control with enhanced diagnostics. The method can be incorporated into present Programmable Logic Controllers and is particularly applicable to distributed or decentralized control systems, which are the current trend in automated factory control. The primary differences between the present invention and conventional BLC or state-machine logic systems may be summarized as follows: 1. The present invention models each sensor and actuator as an independent Control Element (CE) and assigns a simple behavioral model to each CE. In prior art BLC systems, logic is associated only with actuators. 2. The present system is based on a distributed model of the logical and temporal behavior of the controlled process. The behavioral model for each sensor and actuator comprises a "signature" of events in its immediate environment. The signature encodes a subset of the process state into each CE and is used to check the behavior of each CE against that subset of the process state. Each binary CE has two states: 0 and 1. The signature of each CE is specified by a sequence of state changes, which may be ordered and/or random. 3. The present invention provides a time-stamp of events in order to construct the sequence of events. 4. The invention utilizes Expectation Functions (EFs) to quantitatively evaluate and predict the change of state of any CE in the controlled system. 5. Each CE generates an internal statistical timing model of the state transitions in its neighborhood. As confidence develops in these statistics, they may be used for monitoring and diagnosis of the controlled system. The statistical timing model may also be used to change the timing between states for on-line scheduling of the controlled system. Although the present invention has been described with respect to specific embodiments thereof, various changes and modifications can be carried out by those skilled in the art. Therefore, it is intended that the present invention encompass such changes and modifications as fall within the scope of the appended claims.

Claims: A decentralized system for monitoring and controlling a plurality of distributed processing nodes (N1-N7) comprising discrete control elements for a dynamic process, the system characterized by: (a) each of said plurality of distributed processing nodes (N1-N7) comprising one control element having at least two states and a dedicated microprocessor connected to said one control element; (b) each one of said dedicated microprocessors functioning for said one control element connected to said one microprocessor for: (i) time-stamping state changes of said one control element for constructing a sequence of state change events; (ii) storing an event signature necessary for said one control element to change state, said event signature defined by a sequence function (Γ) consisting of a sequence of state change events comprising at least one state change of a control element of at least one other of said processing nodes (N1-N7); (iii) defining an expectation function ( E ) for said one control element to change state based on said event signature for said one control element; (iv) computing a likelihood of said one control element changing state by evaluating said expectation function ( E ) based on actual state change events in said sequence function (Γ) defining said event signature for said one control element; (v) estimating a time delay before each state change event in said sequence of control element state changes comprising said event signature for said one control element; (vi) evaluating state change events to identify malfunctions of said one control element based on said estimated time delays for control element state changes comprising said event signature and said state change likelihoods computed from said expectation function ( E ); and (c) a communication link (40) connecting at least selected ones of said microprocessors of said plurality of distributed processing nodes (N1-N7) for communicating said time-stamped state changes of said control elements to said selected microprocessors. The control system of Claim 1, wherein said discrete control elements comprise sensors and actuators. A method of monitoring and controlling a decentralized system having a plurality of distributed processing nodes (N1-N7) comprising discrete control elements for a dynamic process, characterized by the steps of: (a) providing each of said control elements with a corresponding dedicated microprocessor, each of said control elements having at least two states; (b) time-stamping state changes of each of said plurality of control elements for constructing a sequence of state change events; (c) connecting selected ones of said dedicated microprocessors with a communication link (40) for communicating said time-stamped state changes of each of said control elements to selected others of said dedicated microprocessors connected by said communication link (40); (d) storing, in said corresponding microprocessors, an event signature for each of said control elements to change state, each of said event signatures defined by a sequence function (Γ) consisting of a sequence of state change events comprising at least one state change of a control element of at least one other of said processing nodes (N1-N7); (e) defining an expectation function ( E ) for each of said control elements to change state based on said event signature stored in said corresponding microprocessor; (f) computing a likelihood of each of said control elements changing state by evaluating said expectation functions ( E ) based on actual state change events in said sequence functions (Γ) defining said event signatures for said control elements; (g) estimating a time delay before each state change event in said sequence of control element state changes comprising said event signatures for said control elements; and (h) evaluating state change events to identify malfunctions of said control elements based on said estimated time delays for control element state changes comprising said event signatures and said state change likelihoods computed from said expectation functions ( E ).

Inventors: CHAND SUJEET, CHAND, SUJEET
Applicants: ROCKWELL INTERNATIONAL CORP, ROCKWELL INTERNATIONAL CORPORATION
Application year: 1992
Main classification: G05B19
IPC codes: G05B19, G05B23, G05B13, G01M19