Docsity

Laboratory 2: Basic Control Actions | ME 460, Lab Reports of Mechanical Engineering

Toggle sidebar
bg1
ME460, LAB 2, BASIC CONTROL ACTIONS
1
ME460: Industrial Control Systems
Basic Control Actions
Last Update: Sep 20, 2005
References:
Ogata, Katsuhiko. Modern Control Engineering, 3rd ed. Prentice Hall, New Jersey: 1997.
Horowitz & Hill. The Art of Electronics 2nd ed. Cambridge University Press, MA: 1989.
Introduction
The proportional, PI, and PID controllers are among the most basic of feedback controllers. They are
implemented easily and quickly, perform effectively in light of plant uncertainties, and widely used in industrial
electronic, pneumatic and hydraulic motion control and power systems. They are valuable as a pedagogical tool
because an intuitive understanding of the feedback mechanism serves as the basis for the material encountered
in a classical controls course.
This laboratory exercise will focus on the hardware implementation and physical effects of basic feedback
controllers. Issues such as calibration and signal interfacing will be encountered and resolved. In addition, the
effects of proportional only, PI, and PID control will be observed through the various exercises and an intuitive
feel for the three types of controllers will be developed. The mathematical background for the three types of
controllers will not be covered here.
Pre-Lab Assignment.
• READ the lab.
• Be able to do the parts that are italicized and underlined prior to arriving at the lab. Don’t worry, there are
only two tasks, and both are simple.
Background.
Read Ogata, pages 255 through 259 for a basic understanding of the inner workings of a hydraulic servo valve.
(Note that valves, in themselves, can have integral and proportional action. These are mechanical control
systems and can surprise the unwary engineer).
Unity Feedback Closed Loop Systems – Theoretical Overview
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Laboratory 2: Basic Control Actions | ME 460 and more Lab Reports Mechanical Engineering in PDF only on Docsity!

ME460: Industrial Control Systems

Basic Control Actions

Last Update: Sep 20, 2005

References:

Ogata, Katsuhiko. Modern Control Engineering, 3rd^ ed. Prentice Hall, New Jersey: 1997.

Horowitz & Hill. The Art of Electronics 2nd^ ed. Cambridge University Press, MA: 1989.

Introduction

The proportional, PI, and PID controllers are among the most basic of feedback controllers. They are implemented easily and quickly, perform effectively in light of plant uncertainties, and widely used in industrial electronic, pneumatic and hydraulic motion control and power systems. They are valuable as a pedagogical tool because an intuitive understanding of the feedback mechanism serves as the basis for the material encountered in a classical controls course.

This laboratory exercise will focus on the hardware implementation and physical effects of basic feedback controllers. Issues such as calibration and signal interfacing will be encountered and resolved. In addition, the effects of proportional only, PI, and PID control will be observed through the various exercises and an intuitive feel for the three types of controllers will be developed. The mathematical background for the three types of controllers will not be covered here.

Pre-Lab Assignment.

  • READ the lab.
  • Be able to do the parts that are italicized and underlined prior to arriving at the lab. Don’t worry, there are only two tasks, and both are simple.

Background.

Read Ogata, pages 255 through 259 for a basic understanding of the inner workings of a hydraulic servo valve. (Note that valves, in themselves, can have integral and proportional action. These are mechanical control systems and can surprise the unwary engineer).

Unity Feedback Closed Loop Systems – Theoretical Overview

Plant Gp(s)

Controller Gc(s)

Error Control Input

Feedback

Reference R(s) Output Y(s)

Figure 1 Theoretical Unity Feedback System

Consider the closed loop system in Figure 1. As always, Gc(s) is the controller, Gp(s) is the plant, the reference value is denoted by R(s) and the system’s output is Y(s). The transfer function H(s) for the closed loop system can be written using basic block diagram algebra as:

G sG s

G sG s R s

Y s H s c p

c p

The mathematics of the system allow the engineer to determine the closed loop response of the controller plus plant system and modify the controller so that the response is one which meets certain design criteria. These calculations are the basis for most academic controls courses. However, for a intuitive understanding of what is going on physically, one must separately look at each of the blocks and connections between the blocks.

The output Y(s) of some system has value and units. It may be position in meters, velocity in m/s, flow rate in cm^3/s, or temperature in Celsius. Controlling the system refers to forcing the output of the system Y(s) to some desired reference value R(s). R(s) is presumed to have the same units as Y(s). This R(s) may vary in time, of course. The output of the system must be measured with a sensor. Typical measurement devices include variable resistors, speedometers, flow meters and thermocouples. In Figure 1, the measurement takes place at a pick-off point – a gross oversimplification!

A controllable system must also have an actuator of some sort. This is the means by which the engineer can manipulate the output Y(s) of the system. For example, in a conventional oven, the actuator may be the valve that opens a gas burner which changes the temperature inside. In modern control systems, these actuators typically receive electronic instructions. A small voltage or current, for example, can drive a servo motor which opens the valve that lets more gas into the burners of the oven. Actuators, however, can also receive mechanical instructions. Either way, the instructions are known as the control inputs. We concentrate on electronically actuated devices and electronic control inputs in this laboratory.

In a closed loop sytem, the difference between the output Y(s), as measured by the sensor, and the desired reference, R(s), as determined by the engineer, serves as the basis for the control inputs. The error signal is not directly used as the control input, in most cases. It is first scaled by some transfer function. This transfer function is the controller. By scaling the error signal with a properly designed controller, the system output Y(s) can be made to match the reference R(s) in many cases. The field of controls engineering is mainly concerned with designing these controllers.

Unity Feedback Closed Loop Systems – Physical Implementation

Proportional Only, PI and PID Control

Read Ogata for an overview of the above three types of controllers. The control input from a proportional only controller is simply the error signal multiplied by some gain. This is a most simple controller and has limited value when used alone. However, it is important to understand the effect of proportional control, as it is used in conjunction with integral and derivative control (PI and PID).

PI control is the sum of the error signal multiplied by a gain plus the error signal multiplied by a gain integrated over time. The PI controller transfer function looks like:

s

K

H (^) c ( PI )( s )= Kp + I (2)

Its effects will be discussed in the lab exercises.

The PID controller’s transfer function appears in (3).

K s s

K

H (^) c ( PID )( s )= Kp + I + d (3)

It is identical to the PI control transfer function except for the addition of a proportional derivative. Again, its effects will be investigated in the lab exercises.

Experimental Objectives.

Completion of the laboratory exercise will have required you to:

  1. Identify the portion of the closed loop control system to which each component of the motor and cylinder control experiments belong.
  2. Observe a calibration of the motor and cylinder and use the information correctly in developing a closed loop system.
  3. Understand the effects of the proportional, integral and derivative terms in a closed loop PID system.

Experimental Procedure.

Experiment 1 Calibration Observation

A lab TA will calibrate the motor tachometer and cylinder’s linear potentiometer. Observe and take note of the resulting scaling parameters, as you will use this information in making your own block diagrams.

Experiment 2 Speed Regulation of Motor: Proportional Only Control

In this experiment, you will develop a proportional only controller and plot RPM versus time for two different step inputs of RPM reference speeds. You will observe the effects of proportional only control. See Figure 3 for a sample block diagram. This template will be available to you in the lab.

  • Recall the usage of the trainer stand and the Wincon software. If you do not remember how to use one or both, refer to the handouts from the first lab and go over them now. Details regarding the setup procedure will henceforth be skipped.
  • Start Matlab 5.2 and Simulink. Open the file V:\HydarulicsLab\me460\motor_template.mdl. Create your own work directory in c:\swork and save the template as your own.
  • Motor_template.mdl is an incomplete block diagram. Complete it so that you have a unity feedback system with a proportional only controller. The proportional gain should have a value of one. Refer to the Background section of this lab if you are unfamiliar with proportional only controllers.
  • The calibration scaling from tachometer voltage to RPM has been left off this block diagram. Include it in the block diagram.
  • Verify that the sampling rate is at least 0.005.
  • Generate the real-time C code using the Build option in the Wincon menu.
  • Wincon Server should start up automatically when the code is done compiling. Open a Wincon plot window. Plot the variable Reference Signal and Output Velocity RPM on the same plot.
  • Set the plot window options. Use a fixed time axis of about 15 seconds and y-axis scale that ranges from 0 to 1500 RPM. There is no need to freeze the plot.
  • Connect hoses for the hydraulic system. Use the BD90 valve as the actuator and the hydraulic motor as the plant.
  • Connect the wiring between the MW2000 signal conditioner, the tachometer feedback signal and the BD valve driver (gray box on the valve plate). Recall that the tachometer feedback signal must be read by the A/D input channel 7.
  • Have a qualified instructor check the wiring, block diagram and hose connections.
  • Set the Reference velocity gain in the block diagram to 1000 RPM.
  • Start the hydraulic system. Set the system pressure at 300 psi. Start the controller.
  • Observe the difference between the Output Velocity and the Reference Signal at steady state. Record the error. (Include the plot in your Lab Report)
  • Without stopping the controller, change the gain from 1.0 to 1.5. Again record the error. Do the same for a gain of 2.0.
  • Change the Reference Velocity from 1000 to 1200. Record the errors for the three gains again at this new speed. Calculate percentage differences.
  • Try different combinations of reference speeds and gains and try to develop a feel for what is going on. Don’t increase gain much above 2.0. The system may go unstable. Try to understand the trends, and the reasons for the trends. (Use a table to track the gain, error, and reference signal and include the table in your report)
  • Stop the controller. Stop the hydraulics.
  • At 5 seconds, the reference will be a step to 4”. Observe the dynamics.
  • Stop the controller. Save the data.
  • Change the P gain to a higher number such as 10.0. Repeat the above.
  • Repeat the above for I gains equal to 1.0 and 2.0.
  • Try to develop a feel for what integral gain does for the system.

Experiment 5 Position Regulation of Cylinder: PID Control.

Finally a PID controller.

  • Set the P gain equal to 10.0. Set the integral gain equal to 0.5. Set the derivative gain to 0.0.
  • Start the controller (step response) and save the data.
  • Now, set the D gain equal to 5.0 leaving the P gain and I gain alone. Start the controller and save the data.
  • Note the differences between this and the comparable PI controller.

Lab Report.

(1) Relate all blocks and connections labeled in Figure 2 to the physical system that was implemented in the Speed Regulation of the Motor using PI control (Experiment 3).

(2) In the proportional only motor speed control, a steady state error between the measured speed and the reference R(s) was observed. Was it possible to decrease the error? Why does this error exist (hint: friction plays only a very minor role). Is it possible to remove this error completely using just proportional control? Why or Why not? Consider how valves, hydraulic motors and the block diagram work together.

(3) If we attempted position regulation of the cylinder using just P control, would it have been possible to get zero steady state error? Why? Use plots along with arguments to explain you answer.

(4) What effect does integral control have? How does increasing I gain affect the step response and steady state error of the two systems? Use plots along with arguments to explain you answer.

(5) What effect does derivative control have? Why would it be necessary to filter the error signal before taking its derivative in Figure 4? When might derivative gain be useful? Use plots along with arguments to explain you answer.