Digital Servo Motion Control
Digital Servo Motion Control
Digital Servo Motion Control
Printed in Canada
All rights reserved
ISBN 978-2-89640-392-9 (Printed version)
ISBN 978-2-89747-334-1 (CD-ROM)
Legal Deposit – Bibliothèque et Archives nationales du Québec, 2010
Legal Deposit – Library and Archives Canada, 2010
The purchaser shall receive a single right of use which is non-exclusive, non-time-limited and limited
geographically to use at the purchaser's site/location as follows.
The purchaser shall be entitled to use the work to train his/her staff at the purchaser's site/location and
shall also be entitled to use parts of the copyright material as the basis for the production of his/her own
training documentation for the training of his/her staff at the purchaser's site/location with
acknowledgement of source and to make copies for this purpose. In the case of schools/technical
colleges, training centers, and universities, the right of use shall also include use by school and college
students and trainees at the purchaser's site/location for teaching purposes.
The right of use shall in all cases exclude the right to publish the copyright material or to make this
available for use on intranet, Internet and LMS platforms and databases such as Moodle, which allow
access by a wide variety of users, including those outside of the purchaser's site/location.
Entitlement to other rights relating to reproductions, copies, adaptations, translations, microfilming and
transfer to and storage and processing in electronic systems, no matter whether in whole or in part, shall
require the prior consent of Festo Didactic.
Information in this document is subject to change without notice and does not represent a commitment on
the part of Festo Didactic. The Festo materials described in this document are furnished under a license
agreement or a nondisclosure agreement.
Festo Didactic recognizes product names as trademarks or registered trademarks of their respective
holders.
All other trademarks are the property of their respective owners. Other trademarks and trade names may
be used in this document to refer to either the entity claiming the marks and names or their products.
Festo Didactic disclaims any proprietary interest in trademarks and trade names other than its own.
Safety and Common Symbols
The following safety and common symbols may be used in this manual and on
the equipment:
Symbol Description
Direct current
Alternating current
Symbol Description
Equipotentiality
On (supply)
Off (supply)
Index................................................................................................................... 165
Bibliography ....................................................................................................... 167
Servo motors are used more and more because they give much more precision
and/or rapidity to the movements of a mechanical system. An industrial robot, for
example, usually contains many servo motors.
Open-source firmware and software controls are provided so the user can create
his own control strategies by modifying the existing ones or by developing new
ones. This open architecture also facilitates the addition of mechanical options to
the system.
The present manual, Digital Servo Motor Control, familiarizes students with the
internal characteristics of a servo motor. It also allows students to experiment
with different types of control loops and expand their knowledge of servo control.
Accuracy of measurements
The numerical results of the hands-on exercises may differ from one student to
another. For this reason, the results and answers given in this manual should be
considered as a guide. Students who correctly performed the exercises should
expect to demonstrate the principles involved and make observations and
measurements similar to those given as answers.
EXERCISE OBJECTIVE When you have completed this exercise, you will be familiar with servo operation
in closed loop speed control. You will know how to calculate and measure the
steady state speed of the Digital Servo in closed loop speed control for various
controller gains both theoretically and experimentally and be able to compare the
two.
DISCUSSION OUTLINE The Discussion of this exercise covers the following points:
DISCUSSION Components of the Digital Servo operating under closed loop speed control
The Digital Servo closed loop speed-control system consists of the following.
A system controller
For brevity purposes, we Figure 23 shows the simplified block diagram of a servo motor closed loop
will now refer to the motor speed-control system with a first-order model (developed in Exercise 2). The
steady state speed con- controller is proportional only, which means that it has a constant gain term
stant as the general (proportional action is discussed in more detail in Exercise 9).
motor speed constant .
Controller
(%) (%)
1
Figure 23. Block diagram of a servo motor in closed loop speed-control mode.
The controller gain is the result of the PID controller three different gains: the
proportional gain , the integral gain and the derivative gain . In most
(26)
1
Equation (26) shows that, as the controller gain (proportional only) increases,
the ⁄ 1 ratio approaches 1. In other words, the higher the gain, the
more the motor steady state speed approaches the desired or reference
speed . The difference between the reference speed and the actual
speed ( ) is referred to as the error (or offset). Therefore, increasing the
proportional gain decreases the error. This means that, theoretically, the
proportional gain could be set to a very high value in order to minimize the error.
In practice, however, increasing the proportional gain destabilizes the servo
system and produces speed changes and oscillations. This is discussed in more
details in Exercise 5.
In a real servo system implementation, the analysis must consider the gains of
both the servo system power amplifier and the speed sensor. The reference
speed for the servo system as well as the controlled variable speed is
often expressed in percentage, as is the case for the Digital Servo controller. The
conversion between percentage and speed must be taken into account and can
be seen as another gain term. All gain terms can then be grouped as one single
term by multiplying them together.
The following gain terms are determined for the Digital Servo:
A 100% speed is equal for the Digital Servo to 3000 rpm. The gain term
for converting rpm to percentage is thus (1/30)%/rpm.
Figure 24. Block diagram of a servo motor in closed loop speed-control mode showing all gain
terms.
All the gain terms in Figure 24 can be grouped together as a total product of all
terms. In this case, the product is 0.139 V/(rad/s) (0.48 x 0.91 x 30/π x 1/30).
This gain will be referred to as a scaling factor. A block diagram that shows the
grouping of these gains is given in Figure 25.
Controller
(%) (%)
Scaling = 0.139
1
Motor transfer
function
Figure 25. Block diagram of a servo motor in closed loop speed-control mode showing the
simplified gain term.
From the above, it can be seen that for this particular system, Equation (26) has
to be modified to the following:
0.139 (27)
1 0.139
In this section, you will setup the Digital Servo for closed-loop speed-control
measurements.
Setup the servo system for speed control, i.e., disengage the
platform.
Set the belt tension to allow the belt to be lifted of the pulley
connected to the motor shaft and slipped on the two pins to the rear
of the pulley, allowing the shaft to run uncoupled from the belt.
Secure the flywheel to the shaft using the appropriate hex key.
2. Run LVServo, and click on the Device Controlled button in the Speed Loop
menu. Make sure the settings are initially as shown in Table 12:
In this section, you will calculate the steady state speed and the speed
constant value of the motor operating under closed loop speed control for
various gains using Equation (27). You will then measure experimentally the
motor and values for various gains and compare the theoretical and
experimental results. You will eliminate the calculated error value by means of
integral action. Only proportional action will be used. The controller gain value is
thus equal to the proportional gain value and will be referred to as .
4. Slowly increase the offset value until the motor voltage reading reaches 40%,
which corresponds to a voltage of 19.2 V. Record the actual speed (rpm)
and the reference speed (%) in Table 13:
Steady
Steady
Speed/Voltage State
Gain Voltage Reference Speed Actual Speed Error State
Ratio Speed
Speed
Ratio
∆ =
= / /
-
Steady
Steady
Speed/Voltage State
Gain Voltage Reference Speed Actual Speed Error State
Ratio Speed
Speed
Ratio
∆ =
= / /
-
5. Decrease the offset to 0%, increase the proportional gain to 2 and repeat
the previous operation. Do the same thing for values of 3, 4, and 5.
6. Fill out the rest of Table 13 using Table 14 as a quick reference for speed
unit conversion. Keep in mind the following while completing Table 13:
The steady state speed ratio / and speed value (%) are
calculated using Equation (27).
rad/s
rpm ⟶ rad/s
30 rpm
30 rpm
rad/s ⟶ rpm
rad/s
% ⟶ rad/s rad/s
1
rad/s ⟶ %
rad/s
7. Compare the calculated steady state speed with the measured steady state
speed.
The calculated and measured steady state speed values are very similar.
9. Set the proportional gain back to 1 and enter 0.1 s into the integral time .
Describe what happens to the error when integral action is introduced into
the controller.
CONCLUSION In this exercise, you familiarized yourself with servo system operation in closed
loop speed control. You learned how to calculate and measure the steady state
speed of the Digital Servo in closed loop speed control. You also learned to
calculate the error value between the reference speed and the actual speed and
how to minimize it by increasing the controller gain.
REVIEW QUESTIONS 1. Consider a dc motor system having a supply voltage of 35 V. The dc motor
system proportional gain is set to 3 and its steady state motor speed
is 1960 rpm. Find the motor system speed constant (steady state speed to
voltage ratio:
rad/s
1960 rpm 205.3 rad/s
30 rpm
205.3 rad/s
5.87 rad/s/V
35 V
2. Given the same motor parameters as in question 1, find the motor reference
speed in rad/s, rpm, and percentage, as well as the steady state closed
loop system value ( ⁄ ).
205.3
0.139
0.71
1 0.139
205.3 rad/s
289.2 rad/s
0.71
30 rpm
289.2 rad/s 2761.3 rpm
rad/s
2761.3 rpm
100% 92%
3000
1960 rpm
0.71
2761.3 rpm
3. Given the same motor parameters as in question 1, find the system error
value in percentage.
1960 rpm
Error 92.0% 100% 26.7%
3000 rpm
205.3 rad/s
5.87 rad/s
0.139
0.765
1 0.139
205.3 rad/s
268.2 rad/s
0.765
30 rpm
268.2 rad/s 2561.5 rpm
rad/s
2561.5 rpm
100% 85.4%
3000 rpm
1960 rpm
0.765
2561.5 rpm
5. Given the same motor parameters as in question 4, find the system error
value in percentage.
1960 rpm
Error 85.4% 100% 24.8%
3000 rpm
6. Compare both calculated error values from question 3 and 5. Which one is
lower and why?
The calculated error value is lower in question 5. This is due to the fact that,
given the same motor parameters, a higher controller gain results in a steady
state closed loop system value ( ⁄ ) closer to 1 and thus, in a steady
state speed that is closer to the reference speed.
LIPTAK, Bela G., Instrument Engineers Handbook, Boca Raton, CRC Press,
2006.
ISBN 0-8493-1081-4.