Control System Architectures

Similar documents
D(s) G(s) A control system design definition

Professional Portfolio Selection Techniques: From Markowitz to Innovative Engineering

CM 3310 Process Control, Spring Lecture 21

Introduction to System Identification and Adaptive Control

PID controllers, part I

Control Lab. Thermal Plant. Chriss Grimholt

Seminar Course 392N Spring2011. ee392n - Spring 2011 Stanford University. Intelligent Energy Systems 1

Process Control & Design

Chapter 7 Control. Part Classical Control. Mobile Robotics - Prof Alonzo Kelly, CMU RI

FAULT-TOLERANT CONTROL OF CHEMICAL PROCESS SYSTEMS USING COMMUNICATION NETWORKS. Nael H. El-Farra, Adiwinata Gani & Panagiotis D.

1 Loop Control. 1.1 Open-loop. ISS0065 Control Instrumentation

Enhanced Single-Loop Control Strategies Chapter 16

Analysis and Design of Control Systems in the Time Domain

Acknowledgements. Control System. Tracking. CS122A: Embedded System Design 4/24/2007. A Simple Introduction to Embedded Control Systems (PID Control)

Gain Scheduling. Bo Bernhardsson and Karl Johan Åström. Department of Automatic Control LTH, Lund University

Black Boxes & White Noise

Feedback Control of Linear SISO systems. Process Dynamics and Control

CDS 101/110a: Lecture 8-1 Frequency Domain Design

Subject: Introduction to Process Control. Week 01, Lectures 01 02, Spring Content

Challenges in Control Education

Lecture 12. Upcoming labs: Final Exam on 12/21/2015 (Monday)10:30-12:30

EECE Adaptive Control

Prashant Mhaskar, Nael H. El-Farra & Panagiotis D. Christofides. Department of Chemical Engineering University of California, Los Angeles

Index Accumulation, 53 Accuracy: numerical integration, sensor, 383, Adaptive tuning: expert system, 528 gain scheduling, 518, 529, 709,

Laboratory Exercise 1 DC servo

YTÜ Mechanical Engineering Department

Control Systems I. Lecture 2: Modeling. Suggested Readings: Åström & Murray Ch. 2-3, Guzzella Ch Emilio Frazzoli

Modeling and Control Overview

Control System Design

CONTROL OF DIGITAL SYSTEMS

Advances in PID Control

Intelligent Systems and Control Prof. Laxmidhar Behera Indian Institute of Technology, Kanpur

Goodwin, Graebe, Salgado, Prentice Hall Chapter 11. Chapter 11. Dealing with Constraints

Analysis and Synthesis of Single-Input Single-Output Control Systems

CHAPTER 5 ROBUSTNESS ANALYSIS OF THE CONTROLLER

CDS 101/110a: Lecture 10-1 Robust Performance

Presentation Topic 1: Feedback Control. Copyright 1998 DLMattern

Hybrid Control and Switched Systems. Lecture #1 Hybrid systems are everywhere: Examples

FUZZY CONTROL CONVENTIONAL CONTROL CONVENTIONAL CONTROL CONVENTIONAL CONTROL CONVENTIONAL CONTROL CONVENTIONAL CONTROL

Overview of the Seminar Topic

Dynamics and PID control. Process dynamics

Lecture 7: Anti-windup and friction compensation

MATH4406 (Control Theory) Unit 1: Introduction Prepared by Yoni Nazarathy, July 21, 2012

Chapter 2 Review of Linear and Nonlinear Controller Designs

CHBE320 LECTURE XI CONTROLLER DESIGN AND PID CONTOLLER TUNING. Professor Dae Ryook Yang

Trajectory Planning, Setpoint Generation and Feedforward for Motion Systems

Index. INDEX_p /15/02 3:08 PM Page 765

Reinforcement Learning, Neural Networks and PI Control Applied to a Heating Coil

EE C128 / ME C134 Feedback Control Systems

Automatic Control 2. Loop shaping. Prof. Alberto Bemporad. University of Trento. Academic year

General procedure for formulation of robot dynamics STEP 1 STEP 3. Module 9 : Robot Dynamics & controls

Feedback Control CONTROL THEORY FUNDAMENTALS. Feedback Control: A History. Feedback Control: A History (contd.) Anuradha Annaswamy

Wind Turbine Control

Overview of Control System Design

State Regulator. Advanced Control. design of controllers using pole placement and LQ design rules

Design and Comparative Analysis of Controller for Non Linear Tank System

Chapter 8. Feedback Controllers. Figure 8.1 Schematic diagram for a stirred-tank blending system.

EE 474 Lab Part 2: Open-Loop and Closed-Loop Control (Velocity Servo)

Event-Triggered Decentralized Dynamic Output Feedback Control for LTI Systems

Control System Design

IMPROVED CONSTRAINED CASCADE CONTROL FOR PARALLEL PROCESSES. Richard Lestage, André Pomerleau and André Desbiens

Control Systems II. ETH, MAVT, IDSC, Lecture 4 17/03/2017. G. Ducard

CDS 101/110a: Lecture 10-2 Control Systems Implementation

inputs. The velocity form is used in the digital implementation to avoid wind-up [7]. The unified LQR scheme has been developed due to several reasons

CBE495 LECTURE IV MODEL PREDICTIVE CONTROL

Advanced Adaptive Control for Unintended System Behavior

Introduction. 1.1 Historical Overview. Chapter 1

Solid foundations has been a hallmark of the control community

Control Introduction. Gustaf Olsson IEA Lund University.

Intermediate Process Control CHE576 Lecture Notes # 2

NonlinearControlofpHSystemforChangeOverTitrationCurve

Design Artificial Nonlinear Controller Based on Computed Torque like Controller with Tunable Gain

Loop-Shaping Controller Design from Input-Output Data

PROPORTIONAL-Integral-Derivative (PID) controllers

Video 5.1 Vijay Kumar and Ani Hsieh

MEAM 510 Fall 2012 Bruce D. Kothmann

Course Summary. The course cannot be summarized in one lecture.

Enhanced Single-Loop Control Strategies (Advanced Control) Cascade Control Time-Delay Compensation Inferential Control Selective and Override Control

MOST control systems are designed under the assumption

16.400/453J Human Factors Engineering. Manual Control I

ELEC4631 s Lecture 2: Dynamic Control Systems 7 March Overview of dynamic control systems

Linear State Feedback Controller Design

Lecture 4. Applications

Gramians based model reduction for hybrid switched systems

Reglerteknik, TNG028. Lecture 1. Anna Lombardi

Optimizing Economic Performance using Model Predictive Control

Control Systems I. Lecture 6: Poles and Zeros. Readings: Emilio Frazzoli. Institute for Dynamic Systems and Control D-MAVT ETH Zürich

Open Loop Tuning Rules

MECH 6091 Flight Control Systems Final Course Project

Principles and Practice of Automatic Process Control

ANALYZING REAL TIME LINEAR CONTROL SYSTEMS USING SOFTWARE VERIFICATION. Parasara Sridhar Duggirala UConn Mahesh Viswanathan UIUC

Analyzing Control Problems and Improving Control Loop Performance

EEE 241: Linear Systems

Determination of Dynamic Model of Natural Gas Cooler in CPS Molve III Using Computer

Nonlinear Identification of Backlash in Robot Transmissions

Event-Driven Control as an Opportunity in the Multidisciplinary Development of Embedded Controllers 1

ABB PSPG-E7 SteamTMax Precise control of main and reheat ST. ABB Group May 8, 2014 Slide 1 ABB

QUANTIZED SYSTEMS AND CONTROL. Daniel Liberzon. DISC HS, June Dept. of Electrical & Computer Eng., Univ. of Illinois at Urbana-Champaign

Adaptive Dual Control

Design of Decentralised PI Controller using Model Reference Adaptive Control for Quadruple Tank Process

Transcription:

Control System Architectures K. J. Åström Department of Automatic Control LTH Lund University

Control System Architectures 1 Introduction 2 Examples 3 Control Paradigms 4 Three issues 5 Representations 6 Summary Theme: A meeting place of control and computer science.

Embedded Systems and Control The fact that traditional control engineers were skilled in analog computing was essential when control emerged Today there is a strong need to integrate knowledge about embedded systems and control Many embedded systems implement feedback control Feedback is useful in embedded systems - to provide flexibility, safety and efficiency (resource allocation) Adaptive scheduling and resource management Control of networks Many of the computing and scheduling models used in real-time computing are inspired by control applications Cluster in Artist2 on Control for Embedded Systems

Examples of Products using Embedded Systems

Control is a Rich Field Essential to have an holistic systems view of process to be controlled, sensors, actuators, computers, software and theory Requirements and specifications Modeling Analysis and simulation Control design and simulation Implementation Validation verification Commissioning Operation Upgrading

Typical Tasks Regulation Servoing High level control tasks Shape dynamics: ex stabilize and swing-up Collision avoidance Target tracking Optimization, goal-seeking Tuning Adaptation Learning

The Power of Feedback Create good systems from bad components Reduce effects of disturbances and component variations Follow command with High Fidelity Regulate, stabilize and shape dynamics Risk for instability Measurement noise is fed into the system PI(D) control the simplest way to use feedback u = k p e + k i t 0 e(τ )dτ + T d de dt

The Amazing Property of Integral Action Consider a PI controller u = ke + k i t 0 e(τ )dτ Assume that there is an equilibrium with constant e(t) =e 0 and constant u(t) =u 0. The error e 0 then must be zero. Proof: Assume e 0 = 0, then t t u = ke 0 + k i e(τ )dτ = ke 0 + k i e 0 dτ = ke 0 + k i e 0 t 0 The right hand side is different from zero. Hence a contradiction unless e 0 = 0. A controller with integral action will always give the correct steady state provided that a steady state exists (sometimes called adaptation). 0

PID versus More Advanced Controllers Error Past Present Future t t+ T d Time A PID controller predicts by linear extrapolation Advanced controllers predict using mathematical models of the process and its environment

Model Based Control - State Feedback Structure r Trajectory Generator x m Σ State Feedback u fb Σ u ff u Process y - ˆx Observer Kalman F Feedforward action by trajectory generation Observer (Kalman Filter) is based on a model of the process and its environment Feedback is based on the estimate the full state Many modeling and design theories available

Fundamental Limitations Process and system dynamics imposes fundamental limitations to what can be done by control. Some systems cannot be controlled robustlty. Process instabilities: An unstable mode p RHP requires a high bandwith controller. ω B > 2p RHP. Think about stabilizing a pendulum! Time delays give an upper limit to the achievable bandwidth ω B T delay < 1. Unstable systems cannot be controlled if the time delay is too large: Stability bound p RHP T delay < 2, robust control requires a smaller value. Stabilization of a pendulum with time delay. Unstable transmission zeros are similar to time delays z 0.5/T delay gives ω B < z RHP /2

Computer Control noise external disturbances noise Σ Actuators System Sensors Σ Output Process Clock D/A Computer A/D Filter Controller operator input

Some Issues in Computer Control AD and DA converters are needed to connect sensors and actuators to the computer. A clock is also needed to synchronize the operations. Some important issues Sampling, aliasing and intersample behavior Control algorithms (converting differential equations to difference equations direct derivation of control law as a difference equation) Wordlength issues Bumpless parameter changes Variations in sampling rate Latency

Sampling, Aliasing and Antialiasing Filters 1 0!1 0 1 2 3 4 5 Samples of signals of different frequencies may be identical Nyquist frequency = (Sampling frequency)/2 To represent a continuous signal uniquely from its samples the continuous signal cannot have frequencies above the Nyqyist frequency which which is half the Nyquist frequency Antialiasing filters that reduce the frequency content above the Nyquist frequency are essential but they introduce time delays.

Intersample Behavior Sample data theory is elegant because it abstracts a difficult problem (periodic systems) to a simple problem (time invariant system). Since the theory does not deal with what happens between the samples there may be problems. Can be dealt with in many ways. Some key issues are Proper antialias filters ensures that measured signal is smooth over the sampling period. Choise of sampling period important. Analyse the equations x(t k + τ )=e Aτ x(t k )+ tk +τ t k e A(t k+τ s) Bu(t k )ds Lifting: Consider the behavior of signals over the whole sampling interval as states. Sampling the whole problem (the system and the loss function)

Control System Architectures 1 Introduction 2 Examples Process Control and Distributed Control Systems (DCS) Cruise Control Industrial PID Controller 3 Control Paradigms 4 Three issues 5 Representations 6 Summary Theme: A missing link between control and computer science.

Distributed Control Systems for Process Control

Distributed Control Systems for Process Control Computer control of industrial processes 1960-2010 Early custom built systems TRW, IBM 1710 supervisory control Direct digital control Products based on special hardware, software and interfaces. Example IBM 1800, Honeywell, Foxboro,... Standard software and semiproprietory busses Microcontrollers, wireless? Migration of control functions to sensor and actuators

Distributed Control System (DCS) Plant manager Order handler Production manager Financial manager Purchaser Lab assistant Plant network Process operator Lab computer Admin. computer Information station Operator station Control network Process station Process station Field bus Process station Process

Block Diagram Programming

Cruise Control - A Common Embedded System The block diagram view F d Throttle & Engine T Gears & Wheels F Body v Actuator u Controller v r Driver Interface on/off set/decel resume/accel cancel

Cruise Control - CC, FSM, HMI off on set cancel Cruise Off Standby brake resume off Hold off

An Industrial PID Controller Some issues Operation modes: Manual, Automatic Parameter Changes Integrator windup Auto-tuning Auto-scheduling Adaptation HMI

Mode Switches: Manual/Automatic Hand/automatic Increase/decrease buttons Parameter changes t k i e(s)ds, 0 t 0 k i e(s)ds Integration and mutliplication with a time function dont commute! Tune/Estimate/Schedule/Adapt How to handle states in mode and parameter changes

Relay Auto-tuning y sp " u Process y PID!1 What happens when relay feedback is applied to a system with dynamics? Think about a thermostat? 1 0.5 y 0 0.5 1 0 5 10 15 20 25 30 t

Practical Details Basic controller Bring process to equilibrium Measure noise level Compute hysteresis width Initiate relay Monitor each half period Change relay amplitude automatically Check for steady state Compute controller parameters

Automatic Tuning of a Level Controller

Temperature Control of Distillation Column

Fitting Better Models 1.5 1 0.5 0 0.5 1 1.5 0 2 4 6 8 10 12 0.6 0.4 0.2 0 0.2 0.4 0.6 0.8 0 1 2 3 4 5 6 7 8 9

Summary of Relay Auto-tuning A mixture of continuous algorithms, finite state machines Easy to use: One-button tuning Robust Automatic generation of test signal Automatically injects much energy at ω 180 without for knowing ω 180 apriori Many versions Stand alone DCS systems Estimation methods Control design Large numbers Excellent industrial experience for more than 25 years. Many patents are running out.

A View of Auto-tuning Increasing the automation level

Control System Architectures 1 Introduction 2 Examples 3 Control Paradigms 4 Three issues 5 Representations 6 Summary Theme: A missing link between control and computer science.

State Feedback - Top Down r Trajectory Generator x m Σ State Feedback u fb Σ u ff u Process y - ˆx Observer Kalman F Centralize all current information in the state State feedback often made hierarchical

Control Paradigms - Bottom Up Useful to structure a control problem in several subtasks. Many schemes have emerged over the years. Feedback Feedforward Model following Cascade control Split range Ratio control Disturbance attenuation Selector control State feedback Gain scheduling Adaptive control Neural networks Fuzzy control Intelligent control

Feedback and Feedforward Feedforward can be used to improve setpoint response and to reduce the effect of measured disturbances. Feedforward is more sensitive to modeling errors than feedback.

Cascade Control Process y sp C p C s u ys P 1 P 2 y Inner loop Outer loop How to use several sensors? State feedback is the ultimate case!!

Midranging u m C s u c P c r C p u f P f Σ y Several actuators with different dynamics Fine adjustments - keep fine control in range Course adjustments Control the course range so that the fine system is in range

Selectors Scheme used to achieve several control objectives, e.g. control temperature unless pressure is too high. A way to constrain process variables during operation. z max PV SP C max u h y sp z min SP PV C C min u n!! u l M A X M I N u G 1 z G 2 Process y

Gain Scheduling Controller parameters Gain schedule Operating condition Command signal Controller Control signal Process Output Example of scheduling variables Production rate Machine speed Mach number and dynamic pressure Room occupancy

Gain Scheduling Many uses Linearization of actuators Surge tank control Control over wide operating regions Important issues Choice of scheduling variables Granularity of scheduling table Interpolation schemes Bump-less parameter changes Man machine interfaces Importance of auto-tuning

Model Reference Adaptive Control MRAS Model y m Controller parameters Adjustment mechanism u c Controller u Plant y Linear feedback from e = y y m does not work! The MIT rule dθ e = γ e dt θ

Self-Tuning Regulator STR Specification Self-tuning regulator Process parameters Controller design Estimation Reference Controller Controller parameters Input Process Output Certainty Equivalence Many control and estimation schemes Dual control Control should be directing as well as investigating!

Fuzzy Control Rule based control Linguistic variables high, low, medium Membership functions If temperature high then increase flow a little Courtesy of Karl-Erik Årzen

Neural Networks Representation of functions of many variables y(t) = f ( ai u i (t) ) Real and artificial neurons Feedforward neural network u 1 w 1 u 2 w 2 y u 1 u n w n u 2 y 1 u 3 1 u 4 y 2 0 u 5!1 A nonlinear function with a learning mechanism!!4!2 0 2 4

Intelligent Control Operator Knowledgebased system Supervision algorithms Identification algorithms Control algorithms " Process A knowledge bases system is used for monitoring, process supervision and switching of control and estimation algorithms.

Control System Architectures 1 Introduction 2 Examples 3 Control Paradigms 4 Three issues Timing and Latency Saturation and Windup Safety 5 Representations 6 Summary Theme: A missing link between control and computer science.

Timing and Latency Essential in early computer control because computers were so slow Became less important later as computing power increased and focus was diverted to HMI and graphics Analog inspired dataflow design poorly mapped on digital systems using the block diagram paradigm gave surprisingly long delays SattLine (Hilding Elmqvist) and ABB Rebirth of interest in connection with embedded systems

Latency Control Variable Measured Variable Case A y y(t k!1 ) u y(t k ) u(t k ) y(t k+1 ) t k!1 t k t k+1 Time u(t k+ 1 ) Computational lag # = h Time Control Variable Measured Variable Case B y y(t k!1 ) u u(t k! 1 ) y(t k ) u(t k ) y(t k+1 ) t k!1 t k t k+1 Time Computational lag # Time

A Drawback with Blockdiagram Programming

Reducing Latency Rewrite code to minimize time between reading input signals and outputting control action % Compute controll er output r = adin(ch1) y = adin(ch2) [u f f, xm] = ff(r) u = K (xm xhat)+u f f daout(ch1, u) % U pdate controll er state xhat = A xhat + B u + L(y ŷ) xm = f (xm, r) Connected loops require knowledge of system structure (graph)

The State Feedback - A Natural Structure r Trajectory Generator x m Σ State Feedback u fb Σ u ff u Process y - ˆx Observer Kalman F Calculate output is done in the the Trajectory Generator and the State Feedback block Updating the Observer can be done when the output has been set

Sampling Jitter and Lost Data Consider a normal digital controller that is closed over a wireless link. Almost like an ordinary digital control loop but with significant sampling jitter and lost data How to deal with sampling jitter? Build hold function in actuator Incremental algorithms Other data holds, exponential decay instead of piecewise constant How to deal with lost packages? Exploit the Kalman filter Exploit receding horizon control Eventbased control

Event Based State Feedback Between observations integrate d ˆx = A ˆx + Bu dt dp dt = AP + PA + R 1 Initialized with ˆx(t k 1 )= ˆx(t k 1 t k 1 ) and P + (t k 1 ), at an observation update as follows ˆx(t k )= ˆx(t k t k 1 )+K ( y i (t k ) C i ˆx(t k t k 1 ) ) K = P(t k )C[R 2 + CP(t)C T ] 1 P + (t k )=P(t k ) P(t k )C[R 2 + CP(t)C T ] 1 C T P(t k ) Update for each individual measurement Base control on estimates?

Event Based Receding Horizion Control Receding horizon control Compute u(t k ), u(t k+1 ), u(t k+2 ),... Apply u(t k ) Repeat Use u(t k+1 ) if no new measurement are obtained

Saturation and Windup r Controller u Process y Saturations may occur in the process and in the controller Practically all systems have saturations in actuators The feedback loop is broken when saturation occurs Unstable modes in process and controller will grow An integrator is an unstable and it will wind up All controllers with integral action require windup protection Instabilities are essential difficulties!

Integrator Windup in Cruise Control velocity (m/s) 21 20 19 18 0 20 40 60 throttle 2 1 Commanded Applied 0 0 20 40 60 time (sec)

One Way to Avoid Windup y k d s e = r y k p Σ ν Actuator u P(s) y 1 k i Σ s Σ + e s k t A local feedback loop keeps integrator output close to the actuator limits. The gain k t or the time constant T t = 1/k t determines the response time.

Cruise Control with Anti-Windup Windup and anti-windup in a cruise controller Velocity [m/s] 21 20 19 18 0 20 40 60 Velocity [m/s] 21 20 19 18 0 20 40 60 Throttle 2 1 Commanded Applied Throttle 2 1 Commanded Applied 0 0 20 40 60 Time t [s] 0 0 20 40 60 Time t [s]

Avoiding Windup in State Based Controller r Model and Feedforward Generator x m Σ State Feedback u fb Σ u ff v Process y - ˆx Observer Actuator Model Dont fool the observer! Model predictive control MPC Model predictive control (optimization with constraints) Easy to obtain tracking mode d ˆx dt = A ˆx+ Bu+ L(y C ˆx), u = sat(v), v = u ff+ K(x m ˆx)

Safety A key issue Requirements-Design-Validation-Verification Difficult to guarantee against wrong assumptions Extensive hardware in the loop simulation Safety by design Safe upgrading (on-line?)

The Simplex Architecture - Lui Sha Safe simple controller Process High performance controller Diagnostics Use feedback to reduce effect of software errors Demonstator permits on-line test of control algorithm Has been applied successfully to real systems

Implementation Both observers track the state continuously Windup is easily accomodated by modeling actuator saturation before feeding it to the observers

Control System Architectures 1 Introduction 2 Examples 3 Control Paradigms 4 Three issues 5 Representations 6 Summary Theme: A missing link between control and computer science.

Requirements Representations to express Signal flow Logic and sequencing System structure and loops Timing Representations should permit Should permit aggregation and refinement Should have an associated theory for analysis, design and verification

Block Diagrams - Blessing or Curse Very useful information hiding and abstraction Aggregation, refinement Theory: transfer functions, state models Dataflow - analog computing More issues to consider in computer control Logic and sequencing Timing and latency Block diagrams not well suited for physical modeling Control engineers are brainwashed by block diagrams. Dont implement old ideas in new technology.

Inputs, Outputs, States and Parameters The block diagrams focus on inputs and outputs which is sufficient for regulation. To deal with mode changes we must also have a way to deal with states and parameters. One possibility is to augment blocks to have At least two modes: tracking and controlling Facilities of parameter changes Ways of handling states in mode and parameter changes Facilites for handling time: latency

Logic and Sequencing Relays (Traditional systems had two cabinets one with controllers the other one with relays) PLCs IEEE 6.1131-3 (Ladder diagrams, logic,...) Finite State Machines Petri Nets Statecharts, UML, Stateflow Grafcet (Sequential Function Charts) Grafchart

Logic and Sequencing Reasons: For formal analysis To achieve well-structured implementations Theoretical basis Finite state machines Petri nets Additions Hierarchy Concurrency History Sequences Abstractions

System Structure - Graphs Organize compute output in relevant blocks Allows partial compilation Handle windup protection in connected loops Much theory available Structuring at the system (problem) level not at the software level gives a natural partition of the problem

Control System Architectures 1 Introduction 2 Examples 3 Control Paradigms 4 Three issues 5 Representations 6 Summary Theme: A missing link between control and computer science.

Summary Important to develop architecture for control Clean up and structure the common control paradigms Some issues Windup Low latency Switching Diagnostics At least three elements Dataflow Logic and sequencing Structure Desirable properties Aggregate and refine Theory based A natural meeting place for control and computer science