Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf ·...

23
Linear Motion Servo Plant: AMD-2 Linear Experiment #10: Vibration Control Active Mass Damper - Two Floors (AMD-2) All of Quanser’s systems have an inherent open architecture design. It should be noted that the following experimental setup, accompanying files, and configuration are merely one of the many possible uses of this product. Instructor Manual

Transcript of Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf ·...

Page 1: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Linear Motion Servo Plant: AMD-2

Linear Experiment #10:Vibration Control

Active Mass Damper - Two Floors(AMD-2)

All of Quanser’s systems have an inherent open architecture design.It should be noted that the following experimental setup, accompanyingfiles, and configuration are merely one of the many possible uses of this

product.

Instructor Manual

Page 2: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory – Instructor Manual

Table of Contents1. Laboratory Objectives..........................................................................................................12. Purpose of the Instructor Manual.........................................................................................13. Contents...............................................................................................................................14. References............................................................................................................................15. Laboratory Configuration....................................................................................................2

5.1. Wiring and Hardware Setup.........................................................................................25.2. Experiment Design Files..............................................................................................25.3. Matlab File Configuration: setup_lab_amd2.m...........................................................5

5.3.1. File Configuration to Reflect your Hardware Setup.............................................55.3.2. File Configuration to Reflect your Controller Implementation............................6

6. Solutions to the Pre-Lab Assignments.................................................................................96.1. Solution to Assignment #1: Proportional-Velocity (PV) Controller Design...............96.2. Solution to Assignment #2: Linear Equations Of Motion (EOM).............................106.3. Solution to Assignment #3: State-Space Representation...........................................10

7. Typical In-Lab Results.......................................................................................................167.1. Checking the Actual Controller Gains.......................................................................16

7.1.1. Checking the PV Position Controller Gains: Kp and Kv...................................167.1.2. Checking the State-Feedback Gain Vector: K....................................................177.1.3. Checking the Observer Gain Matrix: G.............................................................18

7.2. Real-Time Implementation Of The AMD-2 Switching-Mode Controller.................198. Possible Lab Extensions....................................................................................................219. Lab Report.........................................................................................................................21

Document Number: 572 ! Revision: 02 ! Page: i

Page 3: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

1. Laboratory ObjectivesThe purpose of the AMD-2 experiment is to design and implement an observer-based state-feedback controller that dampens out the vibrations in the AMD-2 flexible structure bydriving the active mass (i.e. linear cart). Moreover, this laboratory also requires the studentto design and implement a Proportional-Velocity (PV) position controller, used for thestructure self-excitation of both of its modes of vibration.

2. Purpose of the Instructor ManualThe present manual is an instructor's manual which provides additional informationto the person running the Active Mass Damper – Two-Floor (AMD-2) - LinearExperiment #10: Vibration Control student laboratory. It comes as a complement ofReference [7]. Therefore, the instructor is assumed fully aware of the content of Reference[7] prior to starting reading this manual. The laboratory instructor is also expected to becompletely familiar with at least References [1] and [2].

This document is not intended for the students as it provides solutions to the pre-labassignments and contains typical experimental results from the laboratory procedure.

3. ContentsThis document contains the following:

A list and description of all the computer files accompanying the experiment.How to customize the laboratory design files to your particular configuration.The solutions to the pre-lab assignments questions.Some typical experimental results expected from the laboratory procedure.

4. References[1] Active Mass Damper – Two-Floor (AMD-2) User Manual.[2] IP01 and IP02 - Linear Experiment #0: Integration with WinCon – Student Handout.[3] IP01 and IP02 User Manual.[4] Data Acquisition Card User Manual.[5] Universal Power Module User Manual.[6] WinCon User Manual.[7] Active Mass Damper – Two-Floor (AMD-2) - Linear Experiment #10: Vibration

Control – Student Handout.[8] IP01 and IP02 - Linear Experiment #1: PV Position Control – Student Handout.[9] IP01 and IP02 - Linear Experiment #1: PV Position Control – Instructor Manual.

Document Number: 572 ! Revision: 02 ! Page: 1

Page 4: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

[10] Shake Table II Experiment Manual.

5. Laboratory Configuration

5.1. Wiring and Hardware SetupAs also mentioned in Reference [7], please refer to Reference [1] for the setup informationrequired to carry out the present control laboratory. Reference [1] provides thespecifications and a description of the main components composing your system, as well asthe wiring conventions used for the Active Mass Damper � Two-Floor (AMD-2) plant.

5.2. Experiment Design FilesTable 1, below, lists and describes the various computer files coming with experiment.

File Name DescriptionAMD-2_Student_571.pdf The student handout for the Active Mass Damper

– Two-Floor (AMD-2) - Linear Experiment #10:Vibration Position Control laboratory. It containspre-lab assignment questions, as well as in-labexperimental procedure and questions.

AMD-2_Instructor_572.pdf The instructor manual for the Active MassDamper – Two-Floor (AMD-2) - LinearExperiment #10: Vibration Control laboratory. Itcontains information to setup and run the lab, thesolutions to the pre-lab assignment questions, andsome typical experimental results expected fromthe experimental procedure.

AMD-2 Equations.mws Maple worksheet used to analytically derive theEquations of Motion as well as the State-Spacemodel corresponding to the experiment's systemsand controllers design equations. The WaterlooMaple's Maple 8, or later release, is required toopen, modify, and execute this file.

Document Number: 572 ! Revision: 02 ! Page: 2

Page 5: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

File Name DescriptionAMD-2 Equations.html HTML presentation of the AMD-2 Equations.mws

file. It allows to view the content of the Maple filewithout having Maple 8 installed. Of course inthis case, no modification to the equations can bedone.

AMD2_ABCD_eqns.m Matlab file automatically generated by executingthe AMD-2 Equations.mws Maple worksheet. Itcontains a symbolic representation of the state-space matrices (A, B, C, and D) of the QuanserAMD-2 system.

quanser_tools.mws Executing this worksheet generates the quanserrepository containing the Quanser_Tools package.The two package files are named: quanser.ind andquanser.lib. The Quanser_Tools module definesgeneric procedures used in Lagrangian mechanics.It also contains data processing routines to savethe obtained state-space matrices into a Matlab-readable file.

quanser_tools.rtf Rich Text Format presentation of thequanser_tools.mws file. It allows to view thecontent of the Maple worksheet without havingMaple 8 installed. Of course in this case, nomodification to the described Maple procedurescan be done.

setup_lab_amd2.m Matlab file. It contains the configuration flagsdescribing the user's system. It is the only designfile to execute. It calls the other design files,namely: setup_amd2_parameters.m, andd_amd2.m.

setup_amd2_parameters.m Matlab file. It returns the AMD-2 modelparameters accordingly to the user-configurationset in setup_lab_amd2.m.

Document Number: 572 ! Revision: 02 ! Page: 3

Page 6: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

File Name Descriptiond_amd2.m Matlab controller design file for the AMD-2

system. It automatically calculates the cart PVcontroller gains satisfying the designspecifications. It also designs, given a desiredpole-placement, the AMD-2's full-state observerand state-feedback law. It can also carry out somesystem analysis.

q_amd2_ZZ.mdl Simulink controller file for the AMD-2 system. Itimplements the real-time observer-based state-feedback closed loop to dampen the vibration ofthe AMD-2's flexible structure. The hardware isconnected to the 'ZZ' data acquisition board. Thename substitutions stood for by 'ZZ' are listed anddescribed in Table 2, below. This file interfaceswith an IP01-based linear cart (i.e. with apotentiometer). The real-time code can begenerated from this controller file and run withWinCon.

q_amd2_e_ZZ.mdl Same file as q_amd2_ZZ.mdl but interfacing to anIP02-based linear cart (i.e. with an encoder).

Table 1 Laboratory Design Files

The possible substitution names stood for by 'ZZ' in the controller design files described inTable 1 are listed below:

'ZZ' Substitution Name Descriptionq8 The corresponding controller file interfaces to the Quanser's Q8

board.mqp The corresponding controller file interfaces to the Quanser's

MultiQ-PCI board.mq3 The corresponding controller file interfaces to the Quanser's

MultiQ-3 board.

nie The corresponding controller file interfaces to the NationalInstruments' E-Series boards.

Table 2 'ZZ' Substitution Names

Document Number: 572 ! Revision: 02 ! Page: 4

Page 7: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

All the calculations and equations derived in Reference [7] (i.e. the student handout for thislab) and the present manual (i.e. the instructor manual) are entirely carried out in the Mapleworksheet called AMD-2 Equations.mws and provided with this laboratory. Using Maple 8,the worksheet equations can be edited and re-calculated by executing the worksheet.

5.3. Matlab File Configuration: setup_lab_amd2.mPrior to the starting the laboratory with the students, the Matlab filesetup_lab_amd2.m should be manually edited (i.e. configured) to reflect your actual ex-perimental equipment and setup that you have, and the controller design that youwish to implement.

The Matlab script setup_lab_amd2.m initializes all the Matlab workspace variables andsystem parameters required by the Simulink diagrams and for further analysis.Open setup_lab_amd2.m in order to edit it.

5.3.1. File Configuration to Reflect your Hardware SetupIn the setup_lab_amd2.m file, there is a section that must be set according to your labequipment and its hardware configuration. This section is reproduced below:

% ############### USER-DEFINED AMD-2 CONFIGURATION ###############% Type of motorized cart: set to 'IP01', 'IP02'%CART_TYPE = 'IP01';CART_TYPE = 'IP02';% Type of Cart Load: set to 'NO_WEIGHT', 'ONE_WEIGHT', 'TWO_WEIGHT'%CART_LOAD_TYPE = 'NO_WEIGHT';%CART_LOAD_TYPE = 'ONE_WEIGHT';CART_LOAD_TYPE = 'TWO_WEIGHT';% Turn on or off the safety watchdog on the cart position: set it to 1 , or 0 XC_LIM_ENABLE = 1; % safety watchdog turned ON%XC_LIM_ENABLE = 0; % safety watchdog turned OFF% Safety Limits on the cart displacement (m)XC_MAX = 0.08; % cart displacement maximum safety positionXC_MIN = - XC_MAX; % cart displacement minimum safety position% Cable Gain used: set to 1K_CABLE = 1;% Universal Power Module (UPM) Type: set to 'UPM_1503', 'UPM_2405', or 'UPM_1503x2'UPM_TYPE = 'UPM_1503';%UPM_TYPE = 'UPM_2405';%UPM_TYPE = 'UPM_1503x2';% Digital-to-Analog Maximum Voltage (V); for MultiQ cards set to 10

Document Number: 572 ! Revision: 02 ! Page: 5

Page 8: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

VMAX_DAC = 10;% ############### END OF USER-DEFINED AMD-2 CONFIGURATION ###############

The settings seen above are the default configuration parameters of this experiment. It is upto you, the instructor, to ensure that these settings match the configuration of your actualexperimental setup, as you present it to your students. If you are unsure about yourconfiguration, please refer to References [1], [3], [4], and [5].

Additionally, the two flags XC_MAX and XC_MIN set the safety limits (in meters) of thelinear cart maximum and minimum, respectively, displacements allowed. To enable thissafety watchdog, make sure that the flag XC_LIM_ENABLE is set to 1 (or to 0 to disable it).This utility causes the real-time controller to stop if the cart position exceeds the alloweddisplacement. In case of a design error or an unstable controller, the use of this functionshould prevent your linear cart from running into one of the track's ends and/or creating anydamage.

5.3.2. File Configuration to Reflect your Controller ImplementationFurther in the Matlab script setup_lab_amd2.m, there is a section where the controllerdesign is defined by the user, i.e. the instructor. This section is reproduced below:

% ############### USER-DEFINED CONTROLLER DESIGN ###############% Type of Controller: set it to 'AUTO', 'MANUAL' CONTROLLER_TYPE = 'AUTO'; % PV + observer + state-feedback controller design: automatic mode%CONTROLLER_TYPE = 'MANUAL'; % controller design: manual mode% first mode excitation% excitation sine wave frequency (Hz)fe1 = 1.3;Te1 = 1 / fe1; % = 0.7692 s% excitation sine wave amplitude (m)Ae1 = 6e-2;% second mode excitation% excitation sine wave frequency (Hz)fe2 = 4.4;Te2 = 1 / fe2; % = 0.2273 s% excitation sine wave amplitude (m)Ae2 = 3.5e-2;% excitation sequence transition timeste1 = Te1;te2 = te1 + Te1;te3 = te2 + 9 * Te1;te4 = te3 + Te1;te5 = te4 + 9 * Te1;te6 = te5 + Te2;te7 = te6 + 17 * Te2;

Document Number: 572 ! Revision: 02 ! Page: 6

Page 9: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

te8 = te7 + Te2;te9 = te8 + 17 * Te2 - Te1; % 23.57 s% first mode excitation sequencee1_seq_time = [ 0 te1 te1 te2 te2 te3 te3 te4 te4 te9 ];e1_seq_out = [ 0 0 0 Te1 0 0 0 Te1 0 0 ];% second mode excitation sequencee2_seq_time = [ 0 te5 te5 te6 te6 te7 te7 te8 te8 te9 ];e2_seq_out = [ 0 0 0 Te2 0 0 0 Te2 0 0 ];% control sequence transition timestc1 = te4 + Te1;tc2 = te5 - Te1;tc3 = te8 + Te2;tc4 = te9 - Te2;ctrl_seq_time = [ 0 tc1 tc1 tc2 tc2 tc3 tc3 tc4 tc4 te9 ];ctrl_seq_out = [ 1 1 2 2 1 1 2 2 1 1 ];% PV Controller Design SpecificationsPO = 10; % spec #1: maximum of percent overshoottp = 0.15; % spec #2: time of first peak (s)% pole-placement specificationsif ( strcmp ( CART_TYPE, 'IP02') & strcmp( CART_LOAD_TYPE, 'TWO_WEIGHT' ) ) % desired state-feedback controller poles P = [ -6+15*i, -6-15*i, -7+10*i, -7-10*i, -16+13*i, -16-13*i ]; % desired full-order observer poles OP = [ -40, -45, -50, -55, -60, -65 ];else error( 'Error: Design the observer and state-feedback controller for your configuration.' )end% initial state variables (at t=0)X0 = [ 0; 0; 0; 0; 0; 0 ];% Specifications of a second-order low-pass filter if strcmp( CART_TYPE, 'IP01' ) % Cart Potentiometer Sensitivity global K_PCelseif strcmp( CART_TYPE, 'IP02' ) % Cart Encoder Resolution global K_ECelse error( 'Error: Set the type of motorized cart.' )end% First And Second Floor Accelerometers Sensitivity (m/s^2/V)global K_ACC% ############### END OF USER-DEFINED CONTROLLER DESIGN ###############

In this section, setting the CONTROLLER_TYPE flag to 'AUTO' will first automaticallytrigger the calculations of the two PV controller gains Kp and Kv by calling the controllerdesign file d_amd2.m. These two controller gains are determined in order to meet the PVcontroller design specifications set by the user in the section printed above. You may changethese time specifications (i.e. zeta, and tp). The Matlab controller design file d_amd2.m will

Document Number: 572 ! Revision: 02 ! Page: 7

Page 10: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

then use pole placement to calculate the system's observer gain matrix, G, as well as thestate-feedback gain vector, K. G and K are determined accordingly to the pole locations setby the user in the section printed above. The user may also change these specifications.

When set to 'MANUAL', the CONTROLLER_TYPE flag does not set any controller gainsand it lets the students carry out the calculations themselves and manually enter the gainvalues in the Matlab workspace.

In this laboratory, the self-excitation sequence consists of two different sine wavedisturbances, each of which exciting either the first or the second mode of vibration. Bothsine waves are user-defined by their frequencies, fe1 and fe2, and their amplitudes, Ae1 andAe2. The transition times of the excitation sequence are also set by the setup_lab_amd2.mscript. Each sine wave period start occurs at the times te1, te3, te5, or te7, and its end resultsat the times te2, te4, te6, or te8, respectively. The control sequence transition times tc1, tc2,tc3, and tc4 are then defined accordingly. The user is free to modify the given "default"values to excite the AMD-2 structure in order to best suit his or her needs. Both excitationand control sequences repeat themselves every te9 seconds.

It is suggested that the instructor first run the setup_lab_amd2.m script in the 'AUTO' modein order to know the proper controller gains meeting the pre-defined design requirements.The instructor may then have the students run this script file in the 'MANUAL' mode, sinceit is part of the lab procedure to manually calculate the gains needed to achieve the closed-loop system requirements.

Document Number: 572 ! Revision: 02 ! Page: 8

Page 11: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

6. Solutions to the Pre-LabAssignmentsThe students are required to include the solutions to the pre-lab assignments in theirlab report.

6.1. Solution to Assignment #1: Proportional-Velocity (PV)Controller DesignThe solutions to the questions of Assignment #1 are as follows:

1. The derivation of the open-loop transfer function of your linear cart system frommechanical and electrical first principals is provided in Appendix B of Reference [8]. Itis reminded below:

= ( )Gc srmp Kg Kt

( ) + + ( ) + Rm Mc rmp2 Rm Kg

2 Jm s Kg2 Kt Km Beq Rm rmp

2 s[1]

2. As derived in Reference [9], the two PV controller's gains, Kp and Kv, as functions of thesecond-order system's characteristic parameters ωnc and ζc can be expressed as shownbelow:

= Kp

ωnc2

Rm ( ) + Mc rmp2

Jm Kg2

rmp Kg Kt[2]

and:

= Kv

− − 2 ζ c ωnc Rm ( ) + Mc rmp2

Jm Kg2

Kg2

Kt Km Beq Rm rmp2

rmp Kg Kt[3]

3. From the two Hint formulae [7] and [8] of Reference [7], ωnc and ζc can be expressed asfunctions of the two PV design specifications previously defined, PO and tp, as shownbelow:

Document Number: 572 ! Revision: 02 ! Page: 9

Page 12: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

= ζ c

ln PO

100

+

ln PO

100

2

π2and = ωnc

π

tp − 1 ζ c2 [4]

4. The values of ωnc and ζc corresponding to the desired PV design specifications defined inReference [7] are shown below:

= ζ c 0.59 and = ωnc 26.0

rads [5]

As a consequence, the numerical values of Kp and Kv satisfying the desired timerequirements of the closed-loop PV-plus-cart system result to be such as:

= Kp 305.9

Vm and = Kv 7.7

V sm [6]

6.2. Solution to Assignment #2: Linear Equations OfMotion (EOM)The derivation from mechanical principals of the linear Equations Of Motion (EOM) ofyour AMD-2 system is provided in Appendix B of the student handout for this laboratory,i.e. Reference [7]. It is to be noted that the modelling developed in Appendix B uses theenergy-based Lagrangian approach. The three Lagrangian coordinates are chosen to be xc,xf1, and xf2. Also, the input to the system is set to be Fc, the linear force applied by themotorized cart.

Nevertheless, it is left up to you, the instructor, to decide whether to provide the studentswith that Appendix or to have them derive the system's EOM on their own, following themethod of your choice. In the latter case of course, the instructor, i.e. you, should not giveAppendix B as part of the laboratory Student Handout.

6.3. Solution to Assignment #3: State-SpaceRepresentationThe solutions to the questions of Assignment #3 are as follows:

Document Number: 572 ! Revision: 02 ! Page: 10

Page 13: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

1. According to the system's state-space representation defined by Equations [12], [13],[14], and [15] of Reference [7] and according to the three linear EOM expressed inEquations [B.17], [B.18], and [B.19] of Reference [7], the state-space matrices A, B, C,and D result to be as follows:

A = [ , , , , , ]0 0 0 1 0 0[ , , , , , ]0 0 0 0 1 0[ , , , , , ]0 0 0 0 0 1

, , , , ,

0 0

rmp2 Mc Kf2

+ Mc rmp2 Mf2 Jm Kg

2( ) + Mc Mf2

−rmp

2 Beq ( ) + Mc Mf2

+ Mc rmp2 Mf2 Jm Kg

2( ) + Mc Mf2

0 0

, , , , ,

0 −Kf1

Mf1

Kf2

Mf10 0 0

0Kf1

Mf1−

Kf2 ( ) + Mc rmp2

( ) + Mf1 Mf2 Jm Kg2

( ) + + Mc Mf1 Mf2

Mf1 ( ) + Mc rmp2

Mf2 Jm Kg2

( ) + Mc Mf2

, , ,

Mc Beq rmp2

+ Mc rmp2 Mf2 Jm Kg

2( ) + Mc Mf2

0 0, ,

[7]

and:

= B

000

rmp2

( ) + Mc Mf2

+ Mc rmp2 Mf2 Jm Kg

2( ) + Mc Mf2

0

−Mc rmp

2

+ Mc rmp2 Mf2 Jm Kg

2( ) + Mc Mf2

[8]

and:

Document Number: 572 ! Revision: 02 ! Page: 11

Page 14: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

C = [ , , , , , ]1 0 0 0 0 0

, , , , ,

0 −Kf1

Mf1

Kf2

Mf10 0 0

0Kf1

Mf1−

Kf2 ( ) + Mc rmp2

( ) + Mf1 Mf2 Jm Kg2

( ) + + Mc Mf1 Mf2

Mf1 ( ) + Mc rmp2

Mf2 Jm Kg2

( ) + Mc Mf2

, , ,

Mc Beq rmp2

+ Mc rmp2 Mf2 Jm Kg

2( ) + Mc Mf2

0 0, ,

[9]

and:

= D

00

−Mc rmp

2

+ Mc rmp2 Mf2 Jm Kg

2( ) + Mc Mf2

[10]

As a remark if both Beq and Jm are neglected, the state-space matrices A, B, C, and Dresult from the three linear EOM expressed in Equations [B.20], [B.21], and [B.22] ofReference [7], as shown below:

= A

0 0 0 1 0 00 0 0 0 1 00 0 0 0 0 1

0 0Kf2

Mf20 0 0

0 −Kf1

Mf1

Kf2

Mf10 0 0

0Kf1

Mf1−

Kf2 ( ) + Mf1 Mf2

Mf1 Mf20 0 0

and = B

000

+ Mc Mf2

Mc Mf2

0

−1

Mf2

[11]

and:

Document Number: 572 ! Revision: 02 ! Page: 12

Page 15: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

= C

1 0 0 0 0 0

0 −Kf1

Mf1

Kf2

Mf10 0 0

0Kf1

Mf1−

Kf2 ( ) + Mf1 Mf2

Mf1 Mf20 0 0

and = D

00

−1

Mf2

[12]

2. Evaluating Equation [17] of Reference [7] by using the model parameter values providedin Reference [1] results to the following relationship:

= Fc − + 7.74

d

dt ( )xc t 1.73 Vm [13]

Evaluating the system's state-space matrices previously found in Equations [7], [8], [9],and [10] for a force input and using Equation [13] to numerically convert them to avoltage input result to the following state-space representation:

= A

0 0 0 1 0 00 0 0 0 1 00 0 0 0 0 10 0 278.43 -18.69 0 00 -431.03 431.03 0 0 00 431.03 -766.49 5.98 0 0

and = B

000

3.000

-0.96

[14]

and:

= C

1 0 0 0 0 00 -431.03 431.03 0 0 00 431.03 -766.49 5.98 0 0

and = D

00

-0.96[15]

Note:The evaluation of the state-space matrices for your particular system may differ fromEquations [14] and [15] depending on the actual AMD-2 configuration that you areusing.For proper numerical evaluation, the instructor, i.e. you, should provide the students withinformation regarding the system configuration that is going to be used in the in-labsession. Particularly, the number of load masses (if any) attached on top of the linear cartshould be specified to the students so that they can properly determine the modelparameter values corresponding to the actual in-lab session.

As a remark, the system's state-space matrices for a voltage input can also be formally

Document Number: 572 ! Revision: 02 ! Page: 13

Page 16: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

derived. Using Equations [7], [8], [9], and [10] and taking into account Equation [17] ofReference [7] the system's state-space representation can then be written as shownbelow:

A = [ , , , , , ]0 0 0 1 0 0[ , , , , , ]0 0 0 0 1 0[ , , , , , ]0 0 0 0 0 1

0 0rmp

2 Mc Kf2

+ Mc rmp2

Mf2 Jm Kg2

( ) + Mc Mf2

− + Kg

2 Kt Km ( ) + Mc Mf2 Beq Rm rmp2

( ) + Mc Mf2

Rm ( ) + Mc rmp2

Mf2 Jm Kg2

( ) + Mc Mf2

0

, , , , ,

0

, , , , ,

0 −Kf1

Mf1

Kf2

Mf10 0 0

0Kf1

Mf1−

Kf2 ( ) + Mc rmp2

( ) + Mf1 Mf2 Jm Kg2

( ) + + Mc Mf1 Mf2

Mf1 ( ) + Mc rmp2 Mf2 Jm Kg

2( ) + Mc Mf2

, , ,

Mc ( ) + Kg2 Kt Km Beq Rm rmp

2

Rm ( ) + Mc rmp2 Mf2 Jm Kg

2( ) + Mc Mf2

0 0, ,

[16]

and:

= B

000

Kg Kt rmp ( ) + Mc Mf2

Rm ( ) + Mc rmp2 Mf2 Jm Kg

2( ) + Mc Mf2

0

−Mc Kg Kt rmp

Rm ( ) + Mc rmp2 Mf2 Jm Kg

2( ) + Mc Mf2

[17]

Document Number: 572 ! Revision: 02 ! Page: 14

Page 17: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

and:C =

[ , , , , , ]1 0 0 0 0 0

, , , , ,

0 −Kf1

Mf1

Kf2

Mf10 0 0

0Kf1

Mf1−

Kf2 ( ) + Mc rmp2

( ) + Mf1 Mf2 Jm Kg2

( ) + + Mc Mf1 Mf2

Mf1 ( ) + Mc rmp2

Mf2 Jm Kg2

( ) + Mc Mf2

, , ,

Mc ( ) + Kg2 Kt Km Beq Rm rmp

2

Rm ( ) + Mc rmp2 Mf2 Jm Kg

2( ) + Mc Mf2

0 0, ,

[18]

and:

= D

00

−Mc Kg Kt rmp

Rm ( ) + Mc rmp2 Mf2 Jm Kg

2( ) + Mc Mf2

[19]

3. Since the system's state-space matrix A is a 6-by-6 matrix, there should be six open-looppoles. Calculating the six eigenvalues of A, as evaluated in Equation [14] above, resultsin the following open-loop pole locations:

, , , , ,-16.54 − + 0.67 10.69 j − − 0.67 10.69 j − + 0.41 32.34 j − − 0.41 32.34 j 0 [20]All the poles shown in Equation [20] lie in the Left-Hand-Plane (LHP). Therefore theopen-loop system is stable. It can clearly be seen that the open-loop system has one poleat the origin of the s-plane. Consequently, the system is of type one. As seen in Equation[1], the two real poles can be attributed to the linear cart positioning system. The twopairs of complex and conjugate poles can be attributed to the two floor deflections of theflexible structure. Both pairs of complex poles are very lightly damped, with dampingratios of approximately 0.013 and 0.062. Therefore, one can expect the structure's open-loop response to be highly underdamped and oscillatory. A feedback controller isrequired to dampen the vibration.

Document Number: 572 ! Revision: 02 ! Page: 15

Page 18: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

7. Typical In-Lab Results

7.1. Checking the Actual Controller GainsThe solutions of this first in-lab section are contained in the d_amd2.m design file. Theinstructor, i.e. you, can call the d_amd2.m file from the setup_lab_amd2.m Matlab script bysetting the CONTROLLER_TYPE flag to 'AUTO'. This automatically calculates and returnsto the Matlab workspace the appropriate gain values meeting the design requirements forboth controllers.

CAUTION:For safety reasons, the different controller gain values, as determined by the students,must be checked by the instructor (i.e. yourself) before they start the real-timecontroller.

7.1.1. Checking the PV Position Controller Gains: Kp and Kv

Both PV controller gains, Kp and Kv, meeting the design specifications have been calculatedin pre-lab Assignment #1 and are expressed by Equation [6].

Setting the flag SYS_PV_ANALYSIS to 'YES' in the controller design file d_amd2.mproduces, for example, a plot of the simulated cart position response to a unit step input, asrepresented in Figure 1, below.

Figure 1 Simulated Unit Step Response: Cart-Plus-PV Controller

Document Number: 572 ! Revision: 02 ! Page: 16

Page 19: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

It can be observed that the response plotted in Figure 1 and corresponding to the PVcontroller gains expressed in Equation [6], is in complete agreement with the chosen timespecifications (i.e. PO = 10 % and tp = 0.15 s). However, this simulation is for an idealsystem and does not take into account the actual system's nonlinearity, like, for example, thepower amplifier saturation.

7.1.2. Checking the State-Feedback Gain Vector: KIt is reminded that an observer-based state-feedback controller can be completely describedby the following relationship combining both state and error equations:

=

∂∂t X

∂∂t Xe

− A B K B K0 − A G C

XXe

[21]

The desired closed-loop poles locations defined in Equation [3] of Reference [7] are due tothe closed-loop state-feedback design. They correspond to the eigenvalues of the statematrix (A-BK).

It results that the state-feedback gain vector, K, can be calculated by using the followingMatlab command line:

>> P = [ -6+15*i, -6-15*i, -7+10*i, -7-10*i, -16+13*i, -16-13*i ];>> K = place( A, B, P )K = 51.8493 159.5847 -501.1378 4.9362 30.6652 -25.4765

where P is a Matlab vector containing the desired pole locations, as characterized byEquation [3] of Reference [7].

Therefore, the state-feedback gain vector K satisfying the design requirements can beexpressed as follows:

= K [ ], , , , ,51.85 159.59 -501.14 4.94 30.67 -25.48 [22]

The resulting closed-loop poles can be checked with Matlab by using the followingcommand line:

>> eig(A-B*K)ans = -16.0000 +13.0000i

Document Number: 572 ! Revision: 02 ! Page: 17

Page 20: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

-16.0000 -13.0000i -6.0000 +15.0000i -6.0000 -15.0000i -7.0000 +10.0000i -7.0000 -10.0000i

7.1.3. Checking the Observer Gain Matrix: GThe desired closed-loop poles locations defined in Equation [4] of Reference [7] are due tothe observer error system. They correspond to the eigenvalues of the state matrix (A-GC).

It results that the observer gain matrix, G, can be calculated by using the following Matlabcommand line:

>> OP = [ -40, -45, -50, -55, -60, -65 ];>> G = place( A', C', OP )'G = 1.0e+003 * 0.0931 -0.0000 -0.0000 0.0241 -0.0006 -0.0003 0.0321 -0.0003 -0.0003 1.5209 -0.0016 -0.0015 -0.6119 -0.0143 -0.0086 -0.2445 -0.0066 -0.0058

where OP is a Matlab vector containing the desired pole locations, as characterized byEquation [4] of Reference [7].

Therefore, the observer gain matrix G satisfying the design requirements can be expressedas follows:

= G

93.1 0. 0.24.1 -0.6 -0.332.1 -0.3 -0.3

1520.9 -1.6 -1.5-611.9 -14.3 -8.6-244.5 -6.6 -5.8

[23]

The resulting closed-loop poles can be checked with Matlab by using the followingcommand line:

>> eig( A - G * C )ans =

Document Number: 572 ! Revision: 02 ! Page: 18

Page 21: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

-65.0000 -40.0000 -60.0000 -45.0000 -50.0000 -55.0000

7.2. Real-Time Implementation Of The AMD-2 Switching-Mode ControllerThe AMD-2 second and first floor measured accelerations are plotted in the xf2_ddot(m/s^2) and xf1_ddot (m/s^2) WinCon Scopes, respectively, and can be seen in Figures 2and 3, below. This illustrated set of data comes from the same experimental run as the datapresented in Reference [7].

Figure 2 AMD-2 Second Floor Actual Acceleration (m/s2) And Control Mode

Document Number: 572 ! Revision: 02 ! Page: 19

Page 22: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

Figure 3 AMD-2 First Floor Actual Acceleration (m/s2)

It can be measured in Figure 10 of Reference [7] that the time required by the AMD controlsystem to reduce the second floor deflection amplitude to less than 2.5 millimeters isactually less than 1.5 seconds. Likewise, Figure 11 of Reference [7] shows that the firstfloor deflection amplitude can be reduced by the AMD control system to less than 3.0millimeters in less than 1.5 seconds. These measurements indicate that the AMD-2 plantactual responses are in perfect agreement with the closed-loop design specifications statedin Equations [2a] and [2b] of Reference [7].

In all Figures, it can be observed that, in response to a given disturbance, the AMD-2oscillations are greatly reduced by the Active Mass Damper when compared to the flexiblestructure natural behaviour (i.e. AMD off).

Document Number: 572 ! Revision: 02 ! Page: 20

Page 23: Linear Experiment #10: Vibration Controlpid-control.com/products/pdf/amd2_instructor_572.pdf · Linear Motion Servo Plant: AMD-2 ... Lab Report ... IP01 and IP02 - Linear Experiment

Vibration Control Laboratory - Instructor Manual

8. Possible Lab ExtensionsOnce a working AMD controller has been successfully developed, one can investigate andassess in more details the system's disturbance rejection. This is the regulation problem. Dif-ferent kinds of excitation disturbances can be tried, from an external manual tap/push ap-plied to the structure to diverse types of repeatable self-excitations (like those implementedin this laboratory). Furthermore, the AMD-2 "ground" floor can also be excited. This isachieved, for example, by mounting the AMD-2 plant on top of a shake table apparatus, asdescribed in Reference [10]. This setup allows for several types of base excitations to begenerated.

Furthermore, the ability to vary parameters (e.g. cart weight) and the hardware configurationis also available should you wish to change the dynamics of your AMD-2 plant. You can re-fer to Reference [1] for some of the other possible hardware configurations. For instance,additional floor(s) and linear cart(s) can be added to increase the system's number of vibra-tion modes and degrees of freedom.

9. Lab ReportInstructions regarding the students' lab report together with its corresponding markingscheme are left up to the instructor�s discretion.

Document Number: 572 ! Revision: 02 ! Page: 21