Application Note #3413

Similar documents
9.1 Harmonic Motion. Motion in cycles. linear motion - motion that goes from one place to another without repeating.

Stepping Motors. Chapter 11 L E L F L D

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

Wednesday 9/27. Please open quizizz

Appendix A: Exercise Problems on Classical Feedback Control Theory (Chaps. 1 and 2)

Index. Index. More information. in this web service Cambridge University Press

Quanser NI-ELVIS Trainer (QNET) Series: QNET Experiment #02: DC Motor Position Control. DC Motor Control Trainer (DCMCT) Student Manual

Open Loop Tuning Rules

Newton s Laws of Motion

Laboratory Exercise 1 DC servo

Lecture 6: Control Problems and Solutions. CS 344R: Robotics Benjamin Kuipers

Control 2. Proportional and Integral control

Control. CSC752: Autonomous Robotic Systems. Ubbo Visser. March 9, Department of Computer Science University of Miami

System Modeling: Motor position, θ The physical parameters for the dc motor are:

Position Control Experiment MAE171a

Impedance. Reactance. Capacitors

Lab 3: Quanser Hardware and Proportional Control

EE 422G - Signals and Systems Laboratory

SRV02-Series Rotary Experiment # 1. Position Control. Student Handout

IGCSE Double Award Extended Coordinated Science

Inverted Pendulum. Objectives

Lab 11 - Free, Damped, and Forced Oscillations

PHYS225 Lecture 9. Electronic Circuits

Wheel and Axle. Author: Joseph Harrison. Research Ans Aerospace Engineering 1 Expert, Monash University

MOMENTUM, IMPULSE & MOMENTS

Feedback Control of Linear SISO systems. Process Dynamics and Control

Inverted Pendulum: State-Space Methods for Controller Design

MEAM 510 Fall 2011 Bruce D. Kothmann

The basic principle to be used in mechanical systems to derive a mathematical model is Newton s law,

DC-motor PID control

LAB 05B: Friction 2 times PURPOSE BACKGROUND MATERIALS PRELIMINARY QUESTIONS: (TO DO BEFORE THE LAB!!) Lab 05B: Friction 1/5 Mr.

Spontaneous Speed Reversals in Stepper Motors

PID Control. Objectives

TEACHER BACKGROUND INFORMATION FORCE

friction friction a-b slow fast increases during sliding

Practice Midterm Exam 1 Physics 14

MEAM 510 Fall 2012 Bruce D. Kothmann

FEEDBACK CONTROL SYSTEMS

B1-1. Closed-loop control. Chapter 1. Fundamentals of closed-loop control technology. Festo Didactic Process Control System

HA Axis Parameter TCS1 Simulink Comment Tracking Velocity Average

Structural Dynamics. Spring mass system. The spring force is given by and F(t) is the driving force. Start by applying Newton s second law (F=ma).

LECTURE 12. STEADY-STATE RESPONSE DUE TO ROTATING IMBALANCE

" Closed Loop Control with Second Derivative Gain Saves the Day Peter Nachtwey, President, Delta Computer Systems

A hockey puck slides on ice at constant velocity. What is the net force acting on the puck?

Acceleration Feedback

Chapter 4. Forces in One Dimension

MAE106 Laboratory Exercises Lab # 6 - Vibrating systems

LAB 11: FREE, DAMPED, AND FORCED OSCILLATIONS

LAB 2: INTRODUCTION TO MOTION

Dynamics of Ocean Structures Prof. Dr. Srinivasan Chandrasekaran Department of Ocean Engineering Indian Institute of Technology, Madras

2. How will we adjust our fitting procedure to compensate for fact that the acceleration differs depending on the direction of motion?

Computer Aided Control Design

Lab #2: Digital Simulation of Torsional Disk Systems in LabVIEW

Pushes and Pulls. Example- an apple falling on a tree exerts a downward force with a magnitude of about 1 newton.

AlphaLab Gaussmeter Model VGM -- Instructions

Control for. Maarten Steinbuch Dept. Mechanical Engineering Control Systems Technology Group TU/e

Chapter 4 Force and Motion

Physics I: Oscillations and Waves Prof. S. Bharadwaj Department of Physics and Meteorology. Indian Institute of Technology, Kharagpur

2.004 Dynamics and Control II Spring 2008

Dr Ian R. Manchester

Modeling Mechanical Systems

Analysis of the NOT Primary Mirror Dynamics

Survey of Methods of Combining Velocity Profiles with Position control

(Refer Slide Time: 00:01:30 min)

Chapter One Introduction to Oscillations

CREATE A MOTION. Purpose Demonstrate your understanding of motion graphs by creating real-world motion(s) that match a graph(s) you ve been given.

Intermittent-Contact Mode Force Microscopy & Electrostatic Force Microscopy (EFM)

Lab 6a: Pole Placement for the Inverted Pendulum

Analysis and Design of Control Systems in the Time Domain

Virtual Passive Controller for Robot Systems Using Joint Torque Sensors

Section 2: Friction, Gravity, and Elastic Forces

Robotics. Dynamics. Marc Toussaint U Stuttgart

Automatic Control Systems. -Lecture Note 15-

[Type the document title]

557. Radial correction controllers of gyroscopic stabilizer

Feedback Basics. David M. Auslander Mechanical Engineering University of California at Berkeley. copyright 1998, D.M. Auslander

4.4. Friction and Inclines

Figure 5.1: Force is the only action that has the ability to change motion. Without force, the motion of an object cannot be started or changed.

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

odes I. HARMONIC OSCILLATOR

Module 4: Dynamic Vibration Absorbers and Vibration Isolator Lecture 19: Active DVA. The Lecture Contains: Development of an Active DVA

Lecture 5 Classical Control Overview III. Dr. Radhakant Padhi Asst. Professor Dept. of Aerospace Engineering Indian Institute of Science - Bangalore

Chapter 6 Dynamics I: Motion Along a Line

Forces are impossible to see! We can only see the effects! Essentially forces are pushes or pulls.

Introduction to structural dynamics

Dynamics of Ocean Structures Prof. Dr. Srinivasan Chandrasekaran Department of Ocean Engineering Indian Institute of Technology, Madras

NEWTON S FIRST LAW OF MOTION. Law of Inertia

Exercises for lectures 13 Design using frequency methods

Lab 3: Model based Position Control of a Cart

Newton. Galileo THE LAW OF INERTIA REVIEW

Dr Ian R. Manchester Dr Ian R. Manchester AMME 3500 : Review

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

Module No. # 01 Lecture No. # 22

Measurement Techniques for Engineers. Motion and Vibration Measurement

Lab 6d: Self-Erecting Inverted Pendulum (SEIP)

2.010 Fall 2000 Solution of Homework Assignment 1

LAB 2 - ONE DIMENSIONAL MOTION

Semester I lab quiz Study Guide (Mechanics) Physics 135/163

ACTIVITY 5: Changing Force-Strength and Mass

Manufacturing Equipment Control

Transcription:

Application Note #3413 Manual Tuning Methods Tuning the controller seems to be a difficult task to some users; however, after getting familiar with the theories and tricks behind it, one might find the tuning procedure simple and fun. This application note explains the basic ideas behind the feedback control system, introduces the DMC commands related to tuning, and offers some tips on how to use these commands. Mass K D F X Balancing Position Figure 1. Spring-Damper and Mass A simple physical model: Begin with a very simple physical model: a spring-damper and mass system (see Figure 1). K is the spring constant, and D is the damping ratio. If the mass is pulled away from the balancing position, the magnitude of the combined force exerted by spring and damper on the mass should be: F = X * K + V * D where X is the distance of the mass from the balancing position, and V is the velocity. The further the mass is pulled away from its balancing position, the greater the force the - 1 -

spring will exert on it; the faster it is pulled, the greater the force the damper will exert to prevent motion. Also, the stronger and tougher the spring is, or the greater the value K (spring constant) is, the spring will exert greater force to the mass, and likewise for D (damping ratio). How the DMC Controller controls the motor: Now, look at the system block diagram of the controller-amplifier-motor displayed in Figure 2. DMC Motion Controller R + X - de * KD dt ( T T E * KP + Amp Motor E * dt) * KI Motor Motion Encoder Figure 2. System Diagram In the diagram above, R is the motor position the DMC controller calculates at each moment. At the same time, the encoder is feeding the real position of the motor, X, into the controller. This position is reported with the DMC Command TP. The position error, E, is calculated by taking the difference between R and X. This is reported with the DMC Command TE. This position error E is then processed to obtain the motor command output, the analog voltage or PWM signal, to send to the amplifier. Summing the results from several independent equations forms this command signal; the three most important are listed in the diagram. E is multiplied by a proportional gain KP to get the first voltage. Next, multiply the derivative of E, or the velocity, by the derivative gain KD to get the second voltage. Finally, multiply the integral of E, or the accumulating error by the integrator gain KI to get the third voltage. The sum of these three voltages is sent to the MOCMD output. The DMC Command TT reports this output voltage. To help understand the physical meaning of KP, KD and KI, compare the system in Figure 2 to the simple system in Figure 1. Consider the real position X is to be the true location of the mass, the command position R to be the balancing point, the position error E to represent X, and the force F to be the MOCMD output (TT). Then one will easily see that KP is actually equivalent to the spring constant K in Figure 1, and KD is equivalent to the damping ratio D. Even though there is no equivalent physical model for KI in our simple system, the following graph attempts to explain intuitively how it will affect the TT output. - 2 -

Position Commanded Position Real Position 0 1 2 Figure 3a. Position vs. Time Time E 0 Figure 3b. Control Output from KI Time The solid line represents the command position R, and the dotted line represents the real position of motor, X. The voltage output contributed by KI is the area between the solid line and the dotted line. At time 0, even if there is a big position error, the contribution from KI is only 0 Volts. However, as time continues, this contribution accumulates. At time 1, although the system does not have any position error, the integrator is generating a maximum voltage. After time 1, because the position error reverses direction, the integrator is accumulating negative voltages and the overall output voltage from the integrator drops. Figure 3b shows the control voltage contributed by KI terms versus time. It is intuitive that the integrator introduces oscillation, and even instability, to the system because it has the intention to over compensate the position error and push the motor to the other side of the balancing point. However, it can be very useful if the system has a huge steady frictional force to prevent the motor from getting to the balancing point. Imagine that the dotted line in Figure 3a is always beneath the solid line, in this case, the voltage will keep increasing until it breaks the friction. This is why the KI term will significantly reduce the position error. It is necessary to keep in mind that a system - 3 -

always requires a good solid KD, or damper, to stabilize this voltage so that the motor will not bounce around the balancing point forever. The effects of KP, KD and KI: How do KP, KD and KI affect the response of the motor? response of a motor in Figure 4. Take a look at the step Overshoot Steady-State Error Rise Time Figure 4. Step Response Time Again, the solid line figure is the command position, and the dotted line is the actual motion of the motor. To evaluate the response of the motor, the following three characteristics are used: overshoot, rise time and steady-state error. The overshoot is the maximum amplitude of the vibration, the rise time is the time the motor takes to get to the vicinity of the goal position, and the steady-state error is the position error after the motor stopped. The overshoot shows the stability of the system, the rise time shows the responsiveness, and the steady-state error shows the accuracy. A good system keeps the overshoot to be small, rise time to be short, and steady state error to be minimal. However, none of the KP, KD or KI gains will improve all the three aspects at the same time. Chart 1 shows how each of the three tuning parameters will affect the three aspects. These trends can be very useful tools in the trial-and-error process of finding the set of gains that optimize the response. - 4 -

Chart 1. Tuning Parameter Effects on Motor Response Characteristics KP KD KI Overshoot Rise Time Steady-State Error It is intuitive that increasing KP increases the overshoot. Since the KD is the damping ratio of the system, more KD will reduce the overshoot. As discussed earlier in the article, KI is accumulating the control effort; hence, more KI will generate a larger overshoot. A stronger spring always means quicker response; therefore, increasing KP will reduce the rise time. The situation is similar but a less significant effect is contributed by KI due to its delaying nature. KD is more of a factor against motion, so increasing KD will increase the rise time. A greater KP reduces steady-state error because a stronger spring can fight greater frictional force. Since the KD is only effective when motor is moving, it does not have significant effect over the steady-state error. As we discussed earlier, if error persists, the voltage from KI will keep increase until either the error is corrected or the output voltage saturate. In an idealistic system where the output voltage will never saturate, the integrator will eliminate the position error. How to tune the system from scratch: To manually tune the system means to find a set of KP, KD, KI and other tuning parameters to make your system respond satisfactorily. Before tuning, the first question that should be asked is: how well does the system need to perform? Sometime it is difficult and even impossible to find the absolute optimal parameters for the system. However, if a tolerance for the overshoot, rise time and steady-state error has been defined, it may be easy to quickly find the set of satisfactory parameters following a few simple steps: Step 1: Set all KP, KI and KD parameters to 0. If the system has a vertical load, make sure a mechanical break is used on the load so that it will not drop. At this point, the motor should turn freely by hand, and the motor should not drift by itself. If it does drift, use the OF command to set an offset voltage so that the motor is steady. Step 2: Gradually increase KD until the system shows the signs of instability such as humming noise or vibration. At this point, reduce the KD value by 25-30%. - 5 -

Theoretically KD is the damping ratio of the system, a very passive term that should not cause the system to be unstable. However, remember this is a virtual damper created by the controller even when the motor is not moving, and noise can still erroneously be read as speed. With an extremely high KD value, a minimal noise can be amplified to a high command voltage and hence cause the system to be unstable. Step 3: Gradually increase KP until the system shows the same signs of instability, and then reduce it by 25-30%. Step 4: Increase KI gradually until the position error (TE) is within the specified tolerance. Since the integrator gain will introduce instability to the system, do not push it up to the limit. Step 5: Fine-tune the system. Now, with the trend table (Chart 1) in mind, we can play with the KP, KD and KI values to further reduce overshoot or reduce the rise time to satisfy the criteria. Other advanced tuning parameters: - IL, negative integral limit Sometimes it is necessary for the system to correct the position error aggressively, but do not want the contribution from KI to exceed a certain value to cause system instability. In such case, the IL command is helpful by adding a limit on the voltage contribution from KI. A more important function of the IL command is that it can disable the contribution from KI when controller is commanding the motor to move, and re-enable it after the commanded motion stops. This function is achieved by specifying a negative value, such as IL-2. Figure 5 explains why this can be helpful. Position B A 1 Figure 5. Effect of Negative IL Time As before, the solid line is the command position, and the dotted line is the real position. In this example, the motor is commanded to move from point A to point B by time 1. It is intuitive that when the motion first begins, the motor is very likely going to be lagging behind the goal position; therefore, the integral gain KI will accumulate a huge control force and hence cause a big overshoot. If a negative integration limit is used, then KI will only come into play after command position reaches B. The figure shows that this - 6 -

removes the contribution of KI during the shaded area; therefore significantly reducing overshoot. FV and FA, feed forward terms FV creates a voltage that is proportional to the speed of the motor in the direction of motion. In other words, it pushes the motor forward, and when the motor is commanded to run faster, it pushes harder. This feed forward term blindly adds the voltage to the control output regardless of whether the motor is ahead or behind of its goal position. This command can be very helpful when the motor is driving a big load while maintaining a slow speed. Imagine that the person in Figure 6, pushing his heavy cart filled with coal. Speed Actual Speed Required Speed Figure 6. Pushing a Heavy Cart of Coal on a Flat Surface If it is a requirement to push this heavy cart while maintaining a very slow speed, the real speed will probably be very shaky. This is because the heavy inertia of the cart will make the person push and pull constantly in order to maintain the speed. However, if the cart is not on the flat surface but on a downward slope as shown in Figure 7, the speed will be much steadier because instead of pushing and pulling, it is only necessary to pull the cart. Intuitively, it is now easier to maintain a steady speed. Speed Your Speed Required Speed Figure 7. Purshing a Heavy Cart of Coal on a Sloping Surface The FV parameter is similar to stiffness of this slope. The larger the FV, the stiffer the slope will be. FA is a similar function that adds a voltage when motor is commanded to accelerate or decelerate. The voltage is proportional to the actual AC and DC value specified. Since FA will push the motor at its acceleration profile and hold the motor - 7 -

at its deceleration, an appropriate FA factor can effectively shorten the time needed for motor to complete the profile. The Galil controllers offer other useful tools such as a low-pass filter or notch filter to further optimize the performance of your system. Please see Application Note 2431 on how to use them to eliminate high-frequency resonance. - 8 -