Introduction to Servo Control & PID Tuning

Similar documents
Advanced Servo Tuning

Servo Tuning Tutorial

Step vs. Servo Selecting the Best

Servo Tuning. Dr. Rohan Munasinghe Department. of Electronic and Telecommunication Engineering University of Moratuwa. Thanks to Dr.

Fundamentals of Servo Motion Control

Basic Tuning for the SERVOSTAR 400/600

Automatic Control Motion control Advanced control techniques

Upgrading from Stepper to Servo

Tech Note #3: Setting up a Servo Axis For Closed Loop Position Control Application note by Tim McIntosh September 10, 2001

Analog Vs. Digital Weighing Systems

Where: (J LM ) is the load inertia referred to the motor shaft. 8.0 CONSIDERATIONS FOR THE CONTROL OF DC MICROMOTORS. 8.

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

TCS3 Servo System Design: Software

Active Vibration Isolation of an Unbalanced Machine Tool Spindle

elevation drive. The best performance of the system is currently characterized by 3 00 steps.

Load Observer and Tuning Basics

profile Using intelligent servo drives to filter mechanical resonance and improve machine accuracy in printing and converting machinery

A Searching Analyses for Best PID Tuning Method for CNC Servo Drive

1. To study the influence of the gain on the transient response of a position servo. 2. To study the effect of velocity feedback.

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

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

A Fast PID Tuning Algorithm for Feed Drive Servo Loop

SRVODRV REV7 INSTALLATION NOTES

Application Note #2442

High-Bandwidth Force Control

Chapter Objectives. Motion Control Concepts CHAPTER 4. APPLICATION DESIGN 43. Move Profiles. The information in this chapter will enable you to:

Latest Control Technology in Inverters and Servo Systems

Linear Control Systems Lectures #5 - PID Controller. Guillaume Drion Academic year

Basic Guidelines for Tuning With The XPS Motion Controller

Lecture 5 Introduction to control

CTC and FLC, by default, have Default For Device checked which means use the factory default servo tuning settings.

Development of the AC Servo Amplifier

MEM380 Applied Autonomous Robots I Winter Feedback Control USARSim

3Configuration CHAPTER THREE IN THIS CHAPTER. Configuration Tuning Procedures. Chapter 3 Configuration 23

Automatic Control Systems 2017 Spring Semester

G320X MANUAL DC BRUSH SERVO MOTOR DRIVE

Application Note Loop Tuning

Pan-Tilt Signature System

V&T Technologies Co., Ltd. Vectorque TM V6-H-M1 SERIES INVERTER ADDITIVE MANUAL (M1) V6-H Series ADDITIVE MANUAL V& T

CSMIO/IP-A motion controller and Mach4

Getting Started Sizing & Selecting Servos: Understanding the need for a system solution

Table of Contents. Tuning Ultrasonic Ceramic Motors with Accelera-Series Motion Controller. Sept-17. Application Note # 5426

Elements of Haptic Interfaces

-binary sensors and actuators (such as an on/off controller) are generally more reliable and less expensive

Software Operational Manual

Special Internal Circuits

All Servos are NOT Created Equal

Galil Motion Control. DMC 3x01x. Datasheet

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

Introduction. Example. Table of Contents

Build the machine you ve dreamed of, today!

Feed-back loop. open-loop. closed-loop

DC motor control using arduino

Application Note #5426

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

Parker Hannifin Corporation Electromechanical Automation Division

Robot Autonomous and Autonomy. By Noah Gleason and Eli Barnett

TCS3 SERVO SYSTEM: Proposed Design

Advanced Motion Control Optimizes Mechanical Micro-Drilling

Phys Lecture 5. Motors

Glossary. Glossary Engineering Reference. 35

System Inputs, Physical Modeling, and Time & Frequency Domains

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

Sensors and Sensing Motors, Encoders and Motor Control

EasyMotion User s Manual Ver

High-speed and High-precision Motion Controller

Engineering Reference

Advanced Motion Control Optimizes Laser Micro-Drilling

Experiment 9. PID Controller

Nanomotion Tech Note 105 Using AC and DC Modes with Nanomotion AB2 Driver in Closed-Loop for Nanometer Level Positioning

9 Feedback and Control

Brett Browning and. Spring 2011

Rapid Array Scanning with the MS2000 Stage

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

Motomatic Servo Control

9 Things to Consider When Specifying Servo Motors

MCE441/541 Midterm Project Position Control of Rotary Servomechanism

GE423 Laboratory Assignment 6 Robot Sensors and Wall-Following

DIGITAL SPINDLE DRIVE TECHNOLOGY ADVANCEMENTS AND PERFORMANCE IMPROVEMENTS

Detect stepper motor stall with back EMF technique (Part 1)

DESIGN OF A TWO DIMENSIONAL MICROPROCESSOR BASED PARABOLIC ANTENNA CONTROLLER

HPVFP High Performance Full Function Vector Frequency Inverter

PID Control with Derivative Filtering and Integral Anti-Windup for a DC Servo

Application of Integrated Controller MICREX-SX to a Motion Control System

VibroBlock Systems, Some Basic Concepts And the VBC 2000/2500

Controlling an AC Motor

Teaching Mechanical Students to Build and Analyze Motor Controllers

Computer Numeric Control

3Configuration CHAPTER THREE IN THIS CHAPTER. Configuration Tuning Procedures. Chapter 3 Configuration 23

Application Note # 5448

Chapter 5. Tracking system with MEMS mirror

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

Motion Control Glossary

Rectilinear System. Introduction. Hardware

Exercise 6. Range and Angle Tracking Performance (Radar-Dependent Errors) EXERCISE OBJECTIVE

TOSHIBA MACHINE CO., LTD.

Design and Implementation of the Control System for a 2 khz Rotary Fast Tool Servo

Comparative Study of PID and Fuzzy Controllers for Speed Control of DC Motor

ON THE PERFORMANCE OF LINEAR AND ROTARY SERVO MOTORS IN SUB MICROMETRIC ACCURACY POSITIONING SYSTEMS

PART 2 - ACTUATORS. 6.0 Stepper Motors. 6.1 Principle of Operation

Transcription:

Introduction to Servo Control & PID Tuning Presented to:

Agenda Introduction to Servo Control Theory PID Algorithm Overview Tuning & General System Characterization Oscillation Characterization Feed-forward Terms Dual-loop Control

Introduction to Servo Control Theory

Positioning a Load Servo positioning systems are designed to precisely move a load along an axis of a coordinate system. Load Axis of movement

Positioning with Servo Motors A servo motor can be used to move a load in conjunction with a lead screw. Motor Lead screw Load

Position Feedback It is theoretically possible, but not practical, to calculate the required motor current - Exact physical properties of system components must be identified and must not change Position feedback is used to provide the control system with motor shaft position - Enables the control system to ensure that the load gets to the commanded position

Servo Positioning with Feedback An optical encoder is used to provide the control system with position feedback Position feedback Control System Command signal Optical encoder Motor Load

PID Algorithm Overview

Servo Control with PID PID is the most commonly used servo control algorithm - Proportional - Integral - Derivative PID systems can be understood by way of analogous physical models

Understanding the Proportional Term Proportional term is analogous to the spring constant in a damped harmonic oscillator system Error = Desired position - Actual position Desired position Actual position Hooke s law: F = k * ( - x ) Spring with spring constant k Load PID Equivalent: Output P = P * (Error)

Understanding the Derivative Term Derivative term is analogous to a pot of honey in a damped harmonic oscillator system Load Pot of Honey Damping effect: F = - b * v Where b is a damping term proportional to velocity Pot of honey provides a damping force proportional to velocity PID Equivalent: Output D = D * error

Limitations of PD Control PD systems are very effective for servo control, but they break down when friction in the system is high Desired position Actual position Load When the actual position is very close to the desired position, both error and error are very small. This results in an output that is too low to overcome any friction in the system.

Understanding the Integral Term Integral term contributes to the output in proportion to the sum of the error over time Desired position Actual position Load Output I = I * (Σ error) Since the I term builds up with the sum of the error over time, the effect is to generate a force that pulls the load into the desired position.

Tuning & General System Characterization

What is Tuning? Tuning \ tün ingverb : The art of adjusting PID gains to optimize the motion of your system.

Tuning First Step is Safety Before doing anything related to tuning your servo motors, you must be sure your system is in a safe configuration - Refer to Introduction to Servo Tuning handout Be sure to check wiring and set software limits to appropriate values

Tuning Getting Started Initial tuning will concentrate on P & D gains - Reminder: P spring constant D damping factor General guidelines - P is usually a small (0 10) positive integer - D is usually = 10 * P

Tuning Setting Initial P & D Gains 1. Set initial values for P & D 2. Command a motion and use Motion Console to graph Actual Position versus Time 3. If the motor doesn t move at all, or doesn t closely reach the target position, try doubling the P gain 4. Analyze graphs if motor is underdamped, overdamped, or critically damped. 5. An ideally tuned system is just under critically damped (underdamped).

Tuning Underdamped Motor If your system is underdamped, you will notice a large oscillation at the end of the move Try increasing D gain - You can also decrease P gain, but increasing gains are recommended at this stage Actual position Command position

Tuning Overdamped Motor If your system is overdamped, the motor will either take very long to complete the move or not get to the target position at all Try increasing P gain - You can also decrease D gain, but increasing gains are recommended at this stage Actual position Command position

Tuning Critically Damped Motor If your system is critically damped, you should not see much oscillation at the end of the move, and the motor should get to the target position fairly quickly. Actual position Command position

Tuning Determining In Position If your final positioning accuracy can vary by several counts, a slightly underdamped system can get to the target position faster. Range of acceptable error Actual position Command position

Tuning General Guidelines When tuning, use moves that are similar to the moves that you will use in your application - Using the most aggressive moves (highest acceleration and/or longest time) will result in best results. When increasing K & D, use these guidelines: D new = D old * (multiple) P new = P old * (multiple) 2

Tuning Using the Integral Term Integral term can be used in two modes: 1.Standing only (recommended) 2.Always When used in standing only, the Integral term only contributes to the servo command when the command position has stopped changing

Tuning Initial Guidelines for I Term Start with I = 1 - I values are generally very small positive integers Command a move, and graph error versus time At the end of the move, the I term should pull the error down to zero Keep increasing the I gain until the error begins to oscillate, then revert to previous value. After tuning for the I gain, go back and doublecheck values for P & D gains. - Generally after tuning for the I gain, you will need to either reduce P gain or increase D gain by 1-10%.

Oscillation Characterization

Three General Types of Oscillation High-frequency oscillation - Frequency of ½ or less of the sample rate - Sometimes results in an audible high-frequency hum - Oscillation is generally imperceptible to the human eye - Generally indicates a D gain that is too large Middle frequency oscillations - Period in between high- and low-frequency oscillations - Generally indicates a P gain that is too large - Approximately 1/10 of high-frequency

Three General Types of Oscillation Low-frequency oscillation - Period greater than several samples - Sometimes results in an audible low-frequency hum or rattle - Oscillation is sometimes perceptible to the human eye - Generally indicates an I gain that is too large - Approximately 1/10 of middle-frequency

Identifying High-Frequency Oscillations This graph indicates a motor tuned with a D gain that is too large

Identifying Low-Frequency Oscillations This graph indicates a motor tuned with an I gain that is too large

Identifying Middle-Frequency Oscillations This graph indicates a motor tuned with an P gain that is too large

Oscillations due to Mechanical Issues Some kinds of oscillations can be caused by problems with the mechanical system Can be identified when changing PID gains doesn t affect the period of the oscillations If period of oscillation is proportional to the velocity of the move, a mechanical problem is usually the cause Only solution is to fix the mechanical problem.

Feed-forward Terms

Introduction to Feed-forward Feed-forward terms use the commanded trajectory to send a signal to the amplifier that predicts the required signal - Since PID systems respond based on error, this can almost always improve system response PID does not have to wait for large error to build up before trying to catch up

Three Types of Feed-forward Acceleration feed-forward (A ff ) - Used to compensate for inertia Friction feed-forward (F ff ) - Used to compensate for classical kinetic friction Velocity feed-forward (V ff ) - Used to compensate for viscous friction (friction that is proportional to velocity)

Feed-forward Effect on Servo Command velocity A ff time Commanded trapezoidal velocity profile Acceleration feed-forward has additive effect on servo command during acceleration, no effect during slew, and subtractive effect during deceleration F ff Friction feed-forward has additive effect on servo command at all times during move. V ff Velocity feed-forward has additive effect on servo command directly proportional to velocity profile.

Tuning for Feed-forward Terms 1. Command a move 2. Graph error versus time 3. Identify shape of error graph and try to match the effect of one or more of the three types of feed-forward 4. Apply feed-forward term and re-test with a move in the same direction

Identifying the need for A ff The following graph of error versus time has a profile similar to the effect of A ff, therefore, A ff should be applied.

Identifying too much A ff The following graph shows when too much A ff has been applied. Therefore, A ff needs to be reduced.

Identifying the need for V ff The following graph of error versus time has a profile similar to the effect of V ff, therefore, V ff should be applied.

Dual-loop loop Control

Introduction to Dual-loop loop Control Servo response of systems with backlash caused by lead screw or gearing can be improved through the use of dual-loop control. A second encoder is added to the load so that the control system is aware of both the position of the motor shaft as well as the position of the load. The encoder on the motor shaft is configured as the velocity encoder, and the encoder on the load is configured as the position encoder.

Dual-loop loop - Control Algorithm

Dual-loop loop Control Encoder Resolution When using dual-loop control, it is recommended that the velocity encoder resolution is higher than that of the position encoder - This results in better velocity estimation, especially at low speeds Optimal ratios for velocity encoder resolution to position encoder resolution are between 3:1 and 10:1 - Ratios of greater than 10:1 are possible, but not much more benefit is gained at greatly increased cost - Ratios of 1:1 or less are generally not recommended

Thank you! Questions?