MTE 360 Automatic Control Systems University of Waterloo, Department of Mechanical & Mechatronics Engineering

Similar documents
Each individual is to report on the design, simulations, construction, and testing according to the reporting guidelines attached.

SRV02-Series Rotary Experiment # 3. Ball & Beam. Student Handout

EE 370/L Feedback and Control Systems Lab Section Post-Lab Report. EE 370L Feedback and Control Systems Lab

EE 4314 Lab 3 Handout Speed Control of the DC Motor System Using a PID Controller Fall Lab Information

Rotary Motion Servo Plant: SRV02. Rotary Experiment #03: Speed Control. SRV02 Speed Control using QuaRC. Student Manual

Root Locus Design. by Martin Hagan revised by Trevor Eckert 1 OBJECTIVE

GE420 Laboratory Assignment 8 Positioning Control of a Motor Using PD, PID, and Hybrid Control

Laboratory PID Tuning Based On Frequency Response Analysis. 2. be able to evaluate system performance for empirical tuning method;

GE 320: Introduction to Control Systems

CHAPTER 6 INTRODUCTION TO SYSTEM IDENTIFICATION

MEM01: DC-Motor Servomechanism

Lab 1: Simulating Control Systems with Simulink and MATLAB

Frequency Response Analysis and Design Tutorial

Linear Motion Servo Plants: IP01 or IP02. Linear Experiment #0: Integration with WinCon. IP01 and IP02. Student Handout

This manuscript was the basis for the article A Refresher Course in Control Theory printed in Machine Design, September 9, 1999.

Compensation of a position servo

Class #16: Experiment Matlab and Data Analysis

4 Experiment 4: DC Motor Voltage to Speed Transfer Function Estimation by Step Response and Frequency Response (Part 2)

DEGREE: Biomedical Engineering YEAR: TERM: 1

The Discussion of this exercise covers the following points: Angular position control block diagram and fundamentals. Power amplifier 0.

Control Design for Servomechanisms July 2005, Glasgow Detailed Training Course Agenda

Ver. 4/5/2002, 1:11 PM 1

Position Control of AC Servomotor Using Internal Model Control Strategy

Mechatronics. Analog and Digital Electronics: Studio Exercises 1 & 2

Rotary Motion Servo Plant: SRV02. Rotary Experiment #02: Position Control. SRV02 Position Control using QuaRC. Student Manual

sin(wt) y(t) Exciter Vibrating armature ENME599 1

George Mason University Signals and Systems I Spring 2016

Application Note #2442

Lab 2: Introduction to Real Time Workshop

+ + G c (s G p (s. a) What is overall transfer closed-loop transfer function θ(s)

Optimal Control System Design

Basic Tuning for the SERVOSTAR 400/600

EE 482 : CONTROL SYSTEMS Lab Manual

ME 5281 Fall Homework 8 Due: Wed. Nov. 4th; start of class.

Lecture 9. Lab 16 System Identification (2 nd or 2 sessions) Lab 17 Proportional Control

Experiment 2: Transients and Oscillations in RLC Circuits

Laboratory 6. Lab 6. Operational Amplifier Circuits. Required Components: op amp 2 1k resistor 4 10k resistors 1 100k resistor 1 0.

EE 560 Electric Machines and Drives. Autumn 2014 Final Project. Contents

PURPOSE: NOTE: Be sure to record ALL results in your laboratory notebook.

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

The Air Bearing Throughput Edge By Kevin McCarthy, Chief Technology Officer

Open Loop Frequency Response

EECS 100/43 Lab 6 Frequency Response

UNIVERSITY OF NORTH CAROLINA AT CHARLOTTE Department of Electrical and Computer Engineering

ELEC 351L Electronics II Laboratory Spring 2014

BSNL TTA Question Paper Control Systems Specialization 2007

ENSC 220 Lab #2: Op Amps Vers 1.2 Oct. 20, 2005: Due Oct. 24, 2004

Lab 2: Quanser Hardware and Proportional Control

Experiment 3 Topic: Dynamic System Response Week A Procedure

EE 461 Experiment #1 Digital Control of DC Servomotor

Active Vibration Isolation of an Unbalanced Machine Tool Spindle

Rotary Motion Servo Plant: SRV02. Rotary Experiment #17: 2D Ball Balancer. 2D Ball Balancer Control using QUARC. Instructor Manual

A Machine Tool Controller using Cascaded Servo Loops and Multiple Feedback Sensors per Axis

Position Control of DC Motor by Compensating Strategies

Department of Electrical & Computer Engineering Technology. EET 3086C Circuit Analysis Laboratory Experiments. Masood Ejaz

Application of Gain Scheduling Technique to a 6-Axis Articulated Robot using LabVIEW R

Laboratory Assignment 5 Digital Velocity and Position control of a D.C. motor

Operational Amplifier

Use of the LTI Viewer and MUX Block in Simulink

Classical Control Design Guidelines & Tools (L10.2) Transfer Functions

Experiment 1 Introduction to Simulink

PYKC 13 Feb 2017 EA2.3 Electronics 2 Lecture 8-1

Experiment 9. PID Controller

Part 2: Second order systems: cantilever response

Class #7: Experiment L & C Circuits: Filters and Energy Revisited

AC CURRENTS, VOLTAGES, FILTERS, and RESONANCE

Fundamentals of Servo Motion Control

RLC Frequency Response

5 Lab 5: Position Control Systems - Week 2

Teaching Mechanical Students to Build and Analyze Motor Controllers

Servo Closed Loop Speed Control Transient Characteristics and Disturbances

Knowledge Integration Module 2 Fall 2016

UTC. Engineering 329. Frequency Response for the Flow System. Gold Team. By: Blake Nida. Partners: Roger Lemond and Stuart Rymer

Bode plot, named after Hendrik Wade Bode, is usually a combination of a Bode magnitude plot and Bode phase plot:

Automatic Control Systems 2017 Spring Semester

Modeling and Control of Mold Oscillation

MAE106 Laboratory Exercises Lab # 5 - PD Control of DC motor position

(A) Based on the second-order FRF provided, determine appropriate values for ω n, ζ, and K. ω n =500 rad/s; ζ=0.1; K=0.

ECE ECE285. Electric Circuit Analysis I. Spring Nathalia Peixoto. Rev.2.0: Rev Electric Circuits I

Filter Design, Active Filters & Review. EGR 220, Chapter 14.7, December 14, 2017

ECE 5671/6671 LAB 6. Wound-Field Synchronous Generators

Ball and Beam. Workbook BB01. Student Version

Integrators, differentiators, and simple filters

Penn State Erie, The Behrend College School of Engineering

Laboratory 9. Required Components: Objectives. Optional Components: Operational Amplifier Circuits (modified from lab text by Alciatore)

Cleveland State University MCE441: Intr. Linear Control Systems. Lecture 12: Frequency Response Concepts Bode Diagrams. Prof.

MTHE 332/393 Lab Manual

EE 3TP4: Signals and Systems Lab 5: Control of a Servomechanism

EEL 4350 Principles of Communication Project 2 Due Tuesday, February 10 at the Beginning of Class

Tracking Position Control of AC Servo Motor Using Enhanced Iterative Learning Control Strategy

Motor Modeling and Position Control Lab 3 MAE 334

Lecture 2 Exercise 1a. Lecture 2 Exercise 1b

Scalar control synthesis 1

A Case Study of Rotating Sonar Sensor Application in Unmanned Automated Guided Vehicle

of harmonic cancellation algorithms The internal model principle enable precision motion control Dynamic control

Lecture 7:Examples using compensators

Lab 4. Crystal Oscillator

Motomatic Servo Control

University of Tennessee at Chattanooga. Step Response Modeling. Control Systems Laboratory

Lab 4. Crystal Oscillator

Transcription:

MTE 36 Automatic Control Systems University of Waterloo, Department of Mechanical & Mechatronics Engineering Laboratory #1: Introduction to Control Engineering In this laboratory, you will become familiar with the basic principles of control engineering. You will also become acquainted with the experimental setup, which you will use in proceeding laboratories. The setup is a Quanser linear motion cart with incremental encoder feedback (IP2 model), shown in Figure 1. Please read the relevant documentation (IP1/2 User Manual) in order to familiarize yourself with the setup before coming to the lab. Figure 1: Linear cart setup. Control engineering practice typically consists of 3 main tasks: 1) Identifying a model for the system to be controlled, 2) Designing and/or tuning an appropriate controller, 3) Evaluating the dynamic performance of the achieved design. In many cases, the above tasks are executed in iteration one after another until the desired performance, stability, and robustness characteristics are realized. This laboratory is designed to give a flavor of these tasks, which are frequently used in real-life controller design for applications such as robots, CNC machine tools, disk-drives, or autopilot systems. The necessary real-time code and data collection files have been prepared for the students. They will be explained in context in this manual. It is the students responsibility to conduct the experiments using these files and save their own data after each test. It is assumed that the students already have a basic knowledge of MATLAB and Simulink. Laboratories will be conducted in groups of three students. Each group will hand in one project report, prepared collectively by the members of that group. Communication with other groups is not allowed. The following timeline is recommended for completing this laboratory: Before coming to the lab: Read this manual and review relevant theory from the textbook. Lab session: Collect data from velocity step response and P-control tests. Measure the frequency response of the P-controlled system by applying sinusoidal inputs at different frequencies, and collect the data. Calculations and write-up: Compute natural frequency and damping ratio of the closed-loop system. Simulate and compare the closed-loop frequency response. Prepare lab report. MTE 36 Laboratory 1 / p. 1

1 Parameter Identification through Step Response Measurement: The velocity response of most servo-drive systems can be approximated with the following first order model, as will be derived in class: Kv v( u( s 1 v Above, u ( [V] is the input signal, v ( is the axis velocity, K v [(mm/sec)/v] is the velocity gain and τ v [sec] is the time constant. When a unit step voltage is applied to the input, the following response would be observed in the ideal case: (1) v( t) K v (1- exp( t / v )) A plot of this theoretical response is shown in Figure 2. (2) K v Velocity (v) [mm/sec] 63.21% 86.47% 95.2% 98.17% Input (u) [V] 1 Time (t) [sec] Figure 2: First order system response to a unit step input with zero initial conditions. 1a. Measure the velocity step response of the drive system by applying a square wave input with 1.5 [V] amplitude and 1 Hz frequency. You will use the Simulink file vel_step.mdl (shown in Figure 3) to run this experiment. Notice that the position measurements obtained from the encoder on the cart are numerically differentiated with respect to time, in order to obtain the measured velocity. After data collection, save the contents of the real-time oscilloscopes to the workspace, following instructions provided by the TA. You may use the MATLAB script plot_velocity_step_response.m to transfer the data into the arrays of time (t), input (u), and velocity (v). This script will also plot the recorded response on the screen. You may not copy and paste this figure directly into your report. You must save the measured data arrays into a file which you will work with. Each group will be responsible for saving their data after each experiment. Hint: It is a good idea to check the correctness of the data files by retrieving and plotting them either in another program, like Excel, or in MATLAB after clearing the workspace. 1b. Using the measured data, determine the values of velocity gain K v and time constant τ v. 1c. Construct a Simulink model of the velocity response, using identified gain and time constant parameters. Simulate the theoretical velocity response by applying the input signal profile (u) you had captured during the experiment. Overlay the measured and simulated step response graphs on top of each other (i.e. v meas vs. t and v sim vs. t). Comment on the similarities and/or discrepancies between the two. Your comments should reflect your engineering judgment. Also plot the input profile (u vs. t) underneath the velocity response graph. The time axes should be identical. MTE 36 Laboratory 1 / p. 2

Figure 3: Simulink file for measuring velocity step response. 2 Proportional (P-type) Position Control: You will now implement your first servo-controller experimentally! A block diagram depicting the proportional position control technique is shown in Figure 4. In the figure, x r ( [mm] is the commanded position and x ( [mm] is the actual cart position. e( xr ( x( [mm] is the position error, commonly referred to as the tracking error. K p [V/mm] is the proportional feedback gain which generates the input voltage (i.e. control signal) u ( [V] applied to the amplifier s input based on how large the position error is. In reality, there is also an equivalent disturbance d ( [V] which originates from the friction in the cart mechanism. The friction disturbance opposes the cart motion, hence it has a negative sign. The effect of the disturbances on the servo performance will be studied later in class. The velocity of the cart v ( is integrated once ( 1 / s ) to produce the position x (, which is measured and fed back into the control loop. ḏ x r e u K v v 1 x K + p - + s Position Feedback Figure 4: Proportional (P-type) position control. 2a. Implement the proportional position controller using the Simulink file p_control.mdl. The Simulink file is shown in Figure 5. Apply a position command consisting of a 1. [mm] square wave with 1 Hz frequency. Try out values of.3,.6, and 2.1 [V/mm] for K p. Capture the response from the real-time oscilloscopes in each case. You may use the MATLAB script plot_p_control_result.m to transfer the saved scope data to the variables t (time), xr (commanded position), u (control signal), and x (measured position) in the workspace. Be sure to save your data after each experiment, rather than copying the MATLAB plot figures. Make sure you never use negative values for K p! This will cause the control system to become unstable, resulting in the cart to run-away and crash towards one end. Also, make sure that you do not try out gains which exceed 3. [V/mm]. This may cause damage to the drive mechanism. To avoid damage when trying high feedback gains (e.g. for longer than 1 seconds at a time! K p =2.1 [V/mm]), do not run the setup MTE 36 Laboratory 1 / p. 3

Figure 5: Simulink file for proportional position control. Closed-Loop System x r e u K v v 1 x K + p - s Equivalent Model x 2 r 2 x Figure 6: Equivalent 2 nd order model for P-controlled servo system. Position [mm] Command Measured Control [V] Time [sec] Figure 7: Sample step response for P-control. 2b. The p-controlled system can be represented with an equivalent 2 nd order model, as shown in Figure 6. In the simplified model, n [rad/sec] represents natural frequency and [ ] represents damping ratio of the closed-loop poles. Derive the expressions for n and, and compute their values for K p =.3,.6, and 2.1 [V/mm]. 2c. Plot the closed-loop position step response for different values of p K (i.e..3,.6, and 2.1 [V/mm]) in the format shown in Figure 7. As the proportional gain is varied, comment how the rise time, overshoot, steady state error, and control signal in the step response change. Refer to control theory from your textbook (or additional reference in coming up with appropriate explanations that account for your experimental observations. MTE 36 Laboratory 1 / p. 4

3 Measurement of Closed-loop Frequency Response: In this section, you will measure the frequency response of the closed-loop position control system. Frequency response of linear dynamic systems can be measured by applying sinusoidal excitations at different frequencies and measuring the relative amplitude and phase shift between the input and the output. If a linear transfer function G ( has the input u ( and the output y ( such that, y( G( u( when a sinusoidal signal is applied to the input, the steady state response will be as shown in Figure 8. In the figure, u is the peak-to-peak amplitude of the excitation and y is the peak-to-peak amplitude of the output. T [sec] is the period of the excitation and t [sec] is the time lag between the input and the output. The gain and phase of the transfer function at the frequency f 1/ T [Hz] can be computed as: G y / u and G 36 t / T. y (3) Input Output u Time t t Figure 8: Sinusoidal response of a linear dynamic system. It is also possible to evaluate the frequency response of transfer functions analytically, if their mathematical expression is known. In this case, any occurrence of the Laplace operator s is replaced by 2 j. j is the imaginary number ( j 1) and 2 f [rad/sec] is the frequency of interest. The gain and phase is determined by computing the magnitude and angle of G ( j ). In either measurement or analytical calculation, by trying out different values for f (or ), it is possible to determine the response of a dynamic system for a wide frequency range. Frequency response analysis provides important insight into issues like tracking performance, disturbance rejection, stability and robustness margins etc., as will be discussed later in class. 3a. Set K p to.6 [V/mm]. Measure the frequency response of the closed-loop position control system by applying sine wave position commands with 1. [mm] amplitude. Use the following frequencies: Frequency [Hz].5 1. 2.5 5. 1 25 5 Use the Simulink file sine_resp.mdl to conduct the experiments and the MATLAB script file plot_sine_resp.m to plot the measurements and record the data into arrays t, xr, u, and x in the workspace. Be sure to save your data after each experiment. In testing frequencies over 5 Hz, do not run the setup for longer than 1 seconds at a time! MTE 36 Laboratory 1 / p. 5 T

3b. Summarize your measurements in a table with the columns containing: Frequency f Input xr Output x Time Lag t Gain G Phase G [Hz] [mm] [mm] [sec] [mm/mm] [deg] Hint: You may find the MATLAB command ginput() useful in eyeballing magnitude and time lag values from your measurements, using mouse clicks directly from the plots. For more information, type help ginput in the MATLAB command prompt. Once the table is complete, plot the gain and phase values versus frequency, in the format shown in Figure 9. This graph is frequently referred to as a Bode Plot, or a Frequency Response Function (FRF). Use logarithmic scales for gain ( G [mm/mm]) and frequency ( [rad/sec]), and a linear scale for the phase shift ( G [deg]). 3c. Compute the theoretical frequency response for the range, 1, 2,, 5 [Hz]. Overlay the theoretical magnitude and phase values on top of the measured ones, as shown in Figure 9. Comment on the similarities and/or discrepancies between the two. Explain various features you observe in the two graphs (d.c. gain, resonance magnitude, gain attenuation (roll-off), and change in phase angle), and how some of these features relate to the closed-loop servo performance. Use your engineering judgment, and research from your textbook and/or additional references, in preparing your comments. Gain [mm/mm] Measured Theoretical Phase [deg] Frequency [rad/sec] Figure 9: Closed-loop frequency response. Report format and submission: Every group will submit one report, both in electronic and hard-copy formats. The electronic report will be submitted as instructed on the course website, no later than by 5 pm on the designated due date. Hard copies of the reports must also be submitted by the same deadline. There should be no discrepancy between the electronic and printed reports. Equations, figures, and tables should be presented neatly and clearly. They should either be prepared using appropriate software, or neatly written (or drawn) by hand and scanned into the report. To keep the report length short, your comments should be in bullet form, when possible. The reports should only present the requested data and comments. They should be brief; no longer than 4 pages (excluding appendice, written in Arial 1 pt. fonts. Matlab code and Simulink block diagrams can be presented in the appendix. TOC, LOT, LOF, Introduction, and Conclusions sections are not necessary. It is important that you follow the same heading numbers with the lab handout, when presenting your results. The lab reports will be marked based on correctness of the experimental procedure, calculations, presentation of data, and correct engineering comments. While the write-ups need to be brief, spelling and grammar rules still need to be followed. Late submissions will receive 1% penalty per day. MTE 36 Laboratory 1 / p. 6