3D CRANE SYSTEM
By
Umi Hani Mustafa
Dissertation submitted in partial fulfillment of the requirement for the
BACHELOR OF ENGINEERING (Hons) (ELECTRICAL & ELECTRONICS)
JUNE 2004
4
Universiti Teknologi PETRONAS "^
Bandar Seri Iskandar 31750 Tronoh Perak Darul Ridzuan
)roved by,
CERTIFICATION OF APPROVAL
3D CRANE SYSTEM
By
Umi Hani Mustafa
A project dissertation submitted to the Electrical & Electronics Engineering Programme
Universiti Teknologi PETRONAS In partial fulfillment of the requirement for the
BACHELOR OF ENGINEERING (Hons) (ELECTRICAL & ELECTRONICS)
Noh b Karsiti)
UNIVERSITI TEKNOLOGI PETRONAS TRONOH, PERAK
June 2004
CERTIFICATION OF ORIGINALITY
This is to certify that I am responsible for the work submitted in this project, that the original work is my own except as specified in the references and acknowledgements, and that the original work contained herein have not been undertaken or done by unspecified sources or
persons.
UMI HANI MUSTAFA
11
ABSTRACT
This is a research and analysis project on studying the 3D Crane System. The 3D Crane System is widely used for industrial purposes to move cargo, goods and supplies. But one of the problems is when the payload/pendulum is swinging too oscillatory. Thus, it could give the impact on the safety of personnel who controlling the crane and public servant around the
crane area.
The goals of this project are to analyse and study the dynamic behavior of 3D Crane System and to design and test a control strategy to improve the performance of the crane system.
Through this project, the performance of the crane system is measured in terms of stability of the crane especially on the pendulum oscillation and accuracy of the crane movement to the
desired position. In this project, only one control strategy had been designed, which is tuning
the PID controller parameters. Thus, tuning the PID parameters expected to reduce theoscillatory of the payload and improving the performance of the crane system. Some tuning
methods analysis had been used in order to obtain the tuning parameters of PID controller which are Ziegler Nichols Method and Ciancone Correlations Tuning Method. To obtain the PID tuning parameters, many experiments had been done by varying the gain to obtain thebest response (constant amplitude). From the response, using the tuning method, the tuning
parameters for PID controller is obtained. All the tuning parameters for each axis obtained were set into respective PID controller and combined it into 3 axis controller. The final response shows the response from actual cart position from 3 axis and response of angle payload in x and y axis. Conclude that, the objective of this project is met where the performance of the response of cart position and angle of payload is better compare before undergoing the tuning PID controller. The scopes of this project include literature review on 3D crane system and Matlab simulation by varying PID tuning parameters. The purpose of this simulation is to see the response curve based ontuning parameters obtained and compare with the response curve before the PID is tuned. Therefore, the performance of the crane system can be observed either better or not.111
ACKNOWLEDGEMENT
Deciding to pick a final year topic is the easy part. Actually, starting and, more importantly, finishing the process is another story. Although there is only one author's name in the cover of this particular report, it would have been impossible to accomplish this work without the help and support of many other people throughout the months of deadlines, schedules juggling, mislead sleep, and a complete lack of social life.
My greatest gratitude and thanks goes to my supervisor, Dr Mohd Noh b Karsiti, who become much more than a father in giving me the guidance, advices, patience and motivation towards the finishing point of this project paper. He has given me the confidence to proceed with the project even though I had some doubts at the beginning stage. Thanks again for the outragingeffort to keep up my soul until the completion of this project. Without the support and motivation from her, I would not be able to conform to the level of expectation and even up to this stage of time.
Special thanks to En. Azhar, Technician in charge in Control Lab. He had given a big help in providing equipment, troubleshoot the crane when it have a failure and materials needed in conducting the simulation and experiments. His support and guidance will always be appreciated. A special appreciation is also conveyed to Nur Atikah Abu Bakar, Mr. Fawnizu Azmadi b Hussein, Mr. Azman Zainuddin and Mr Rosdiazli for assistance and guidance towards completing this project.
To my most adored and beloved parents, Mr. Mustafa b Afandi and Ms. Asmah bt Wagio, thank you for your love and endless encouragement.
A word of thanks to all my colleagues, for the help, support, encouragement and motivation throughout project time period. Finally, I would like to express my thanks and appreciation to everyone who has given helping hand and wish to remain anonymous who have contributed in one way or another. Your kindness and generosity is greatly appreciated. Thank you.
IV
TABLE OF CONTENT
CERTIFICATION OF APPROVAL i
CERTIFICATION OF ORIGINALITY ii
ABSTRACT iii
ACKNOWLEDGEMENT iv
CHAPTER 1: INTRODUCTION
1.1 Background of Study/Project Goal . . . 1
1.2 Objectives and Scope of Study
1.2.1 Objectives 2
1.2.2 Scope of Study 3
1.3 Problem Statement
1.3.1 Problem Identification . 4
1.3.2 Significant of the Project . . . 5
1.4 Organisation of the Report . . . 6
CHAPTER 2: LITERATURE REVIEW / THEORY
2.1 Dynamics of the Crane Model . . . 7
2.2 Dynamics of the PID Crane Control 9
CHAPTER 3: METHADOLOGY / PROJECT WORK
3.1 Tuning Parameters for PID Controllers in X-Axis Direction . . . 1 4 3.1.1 Determining the Tuning Parameters for PID Controller
of Cart Position . . . . 1 4
3.1.2 Determimng the Tuning Parameters for PID Controller
of Payload Angle . .16
3.1.3 Final Response Curve Using Tuning Parameters Calculated. .17
3.2 Tuning Parameters for PID Controllers in Y-Axis Direction . .17 3.2.1 Determining the Tuning Parameters for PID Controller
of Cart Position 18
3.2.2 Determining the Tuning Parameters for PID Controller
of Payload Angle . .19
3.2.3 Final Response Curve Using Tuning Parameters Calculated. .21 3.3 Tuning Parameters for PID Controllers in Z-Axis Direction . .21
3.3.1 Determining the Tuning Parameters for PID Controller
of Cart Position . 2 1
3.3.2 Determining the Tuning Parameters for PID Controller
of Payload Angle . .23
3.3.3 Final Response Curve Using Tuning Parameters Calculated. 23 3.4 Test All the Tuning Parameters Obtained to All PID Controller in All Axis . 23
3.5 Tool Required 24
CHAPTER 4: RESULTS AND DISCUSSION
4.1 Results . . . .
4.1.1 Response for X-axis . . . .
4.1.2 Response for Y-axis . . . .
4.1.3 Response for Z-axis . . . .
4.1.4 Final Response Curve Combination of 3-Axis
4.2 Discussion . . . .
4.2.1 Analysis on the Final Response Obtained
4.2.2 Stability Analysis and Controller Tuning Analysis
CHAPTER 5: CONCLUSION AND RECOMMENDATION
REFERENCE
APPENDICES
25
25 25
26 26 27
27 29
32
APPENDICES
APPENDIX 1: Ciancone Correlations for Dimensionless Tuning Constants, PID Algorithm APPENDIX 2: Ziegler-Nichols Rules
APPENDIX 3: Ciancone Correlations Tuning Method
APPENDIX 4: PID Controller
LIST OF FIGURES
Figure 1.1: The Movement of the Crane System Figure 2.1: Symbol Definition of Crane Diagram Figure 2.2: Data visible of crane response
Figure 2.3: Simulink Block of PID Controller Figure 3.1: Simulink Model of the Crane System Figure 3.2: Response Curve of the Crane System
Figure 3.3: Best Response for Cart Position in the X-Axis
Figure 3.4: Best Response for Oscillation of Payload in the X-Axis Figure 3.5: Final Response for X-Axis
Figure 3.6: BestResponse for Cart Position in the Y-Axis
Figure 3.7: Best Response for Oscillation of Payload in the Y-Axis Figure 3.8: Final Response for Y-Axis
Figure 3.9: Best Response for Cart Position& Oscillation in the Z-Axis Figure 3.10: Final Response for Z-Axis
Figure 3.11: Simulink Model Combination 3-Axes Figure 3.12: Response Curve Combination 3-Axes
LIST OF TABLES
Table 1.1: Work Plan
Table 2.1: State Representation
Table 3.1: Tuning Parameters for PID Controller of Cart Position Table 3.2: Tuning Parameters of PID Controller
Table 3.3: TuningParameters for PID Controllerof Cart Position Table 3.4: Tuning Parameters of PID Controller
Table 3.5: Tuning Parameters for PID Controller of Cart Position
Table 4.1: Tuning Parameters for PID Controller of Cart Position (X-Axis) Table 4.2: TuningParameters for PID Controllerof PayloadAngle (X-Axis) Table 4.3: Tuning Parameters for PID Controller of Cart Position (Y-Axis) Table 4.4: TuningParameters for PID Controllerof PayloadAngle (Y-Axis) Table 4.5: Tuning Parameters for PID Controller of Cart Position (Z-Axis) Table 4.6: Tuning Parameters for PID Controller of Payload Angle (Z-Axis) Table 4.7: Summary of PID tuning methods
CHAPTER 1 INTRODUCTION
1.1 Background of Study / Project Goal
In the present day in industrial world, 3D Crane System widely used in lining and to move the cargo, goods and supplies. The 3D Crane System have three-dimensional motion where it is controlled by three control DC motors to move in x, y and z-axis direction. It is a non linear electromechanical system having complex dynamic behavior. The control of the crane is achieved by using Matlab / Simulink environment, RT-DAC3 acquisition board and RTWT (Real-Time Window Target) software driver [1].
In this project, by using a 3D crane model by Inteco as a gantry of this project, a few analyses have been done through some experiments to see the response and instability of the crane. From the analysis and added with some studies on dynamic crane system, some problems have been identified that causing the instability of the crane include the high oscillation of the payload and less precision of the cart position to the desired position.
Therefore, to solve the problem, the Author need to design a control strategy and test the design control strategy on lab 3D Crane System. In this project, only one control strategy had been designed, which is tuning the PID controller parameters where the PID controller is played a main role. Therefore, tuning the PID parameters expected to reduce the oscillatory of the payload and improving the performance of the crane system. Some tuning methods analyses have been determined to obtain the tuning parameters of PID controller. Therefore, for this control strategy, the Author focuses on analysis and tuning the parameter of PED
controller.
Therefore, the main goal of this project is to design a few control strategies and test it on lab 3D crane system to improve the performance of the crane system.
1.2 Objectives and Scope of Study
1.2.1 Objectives
The objective of Final Year Project is to develop a framework, which will enhance skills in the process of applying knowledge, expanding thought, solving problems independently and presenting findings through minimum guidance and supervision.
However, the detail objectives of this project listed as below:
• Main objective is to design a control strategy, which expected to produce a better performance of the 3D Crane Inteco crane system. Therefore, need to figure out what
causes that affect the performance of the crane system.
• In order to meet the main objective, need to learn and understand what the dynamics of the crane system.
• Need to familiarize the Matlab environment in controlling the crane system and familiarize & study the function of RTWT in controlling the crane.
• From that, need to identify the problem encountered that causing the instability of the crane system.
• Need to determine and tune the parameter of the PID controller in reducing the instability of the crane system.
• Finally, need to produce and propose what is the best control strategy in order to produce the best performance of the crane system if it applied in real life.
1.2.2 Scope of Study
Two timeframe has been given in order to complete the task given.
For the last semester, scope of study is going to be conducted is theoretical studies. For this semester, scope of study that is going to be conducted is simulation implementation by using Matlab Simulink Block. Table 1 shows plan work to complete the project.
Table 1.1: Work Plan
Theoretical Studies • Identification of disturbances that contribute non-linearity of crane system
• Identification of method used to reduce the disturbances in crane system.
• Determination of tuning parameters of PID Controller for
all axes.
Simulation Stage • Simulate based on the parameters calculated of PID
Controller.
• Do the simulation on all axis (x, y and z axis)
• Finally, own controller had been designed.
1.3 Problem Statement
1.3.1 Problem Identification
A few problems have been identified is briefed as below.
1. The crane problem is illustrated in Figure 1 (in the appendix section) where the pendulum is hanging in the down (equilibrium) position from the cart. Swinging is induced in the pendulum as the cart is moved back and forth by the DC motor. The situation being studied as the crane is moved from one point to another. The velocity and angle of the pendulum swing may become very large or the duration of the swing is too long.
x movement
rail
K
i Q~|
1 _ _Y„• - ~ _... ^ j.
^ j |
x displacement
Figure 1.1: The Movement of the Crane System
2. The efficiency of movement of x, y and z-axis driver to a certain position in terms of smoothness and preciseness is a crucial element characteristic of a 3D crane. Therefore, the percentage of efficiency in the 3D crane model must be low in order to improve the crane performance.
3. The motion of a hanging payload swinging accordance to a moving wheel in x, y and axis will produce an overshoot. In order to reduce the angle of overshoot produced, an analytical solution is to be conducted.
4. Cart friction and air friction are identified as a part contributor in reducingthe linearity of the crane system. Therefore, dynamic compensators need to be designed in order to reduce and compensate the linearity error.
5. Static friction also contributes an error in linearity and stability of the crane system. Static friction is frictions exist between static cart and initial cart started to accelerate. Thus,
produce an overshoot that will be increasing the angle of pendulum swinging and effect
the stability of the crane system.
1.3.2 Significant of the Project
Gantry system is a common problem seen in modeling and controlling of overhead cranes
used at shipping ports and construction sites to move cargo and supplies. When the
payload/pendulum swinging is too oscillatory, the impact on the safety of the personnel who
controlling the crane and public servant around the crane area must be looked at. The cargo
and supplies moved also damaged due to instability of the crane in moving the payload.
1.4 Organisation of Report
In this report, it has been divided into four chapters. There are:
• CHAPTER 2: LITERATURE REVIEW
From this chapter, briefs on crane system description. More information on the dynamics of the crane system and dynamics of PID Controller.
• CHAPTER 3: METHODOLOGY / PROJECT WORK
Methodology describes the sequence of project work, designation and implementation startingfrom the gathering of information till the simulation stage.
• CHAPTER 4: RESULTS AND DISCUSSION
Briefs and a bit discussed on result obtained based on experiment of tuning the PID
parameters.
CHAPTER 2
LITERATURE REVIEW AND/OR THEORY
For the purpose of conducting this research, the Author had done some literature review to gain enough fact in order to proceed with the research. There are many types of information available to strengthen the facts produced. Most of information that is available regarding to the 3D crane system is mostly from the User Guide from Inteco crane model [2].
Since the main goal is to design a control strategy for the crane system, the Author needs to analyse the motion and response of the crane system through some experiment that have been conducted. However, the Author needs to understand on the dynamics of the 3D crane system because it helps the Author to understand what the cause of high oscillation of the payloadand less preciseness of the cart position.
2.1 Dynamics of The Crane Model [2]
Dynamics of the crane model has been described and listed below is a description of five measured quantities that has been described in this model.
• xw = the distance of the rail with the cart from the center of the construction frame.
• yw - the distance of the cart from the center of the rail.
• R = the length of the lift-line.
• a = angle between the x-axis and the lift-line.
• p = angle between the negative direction of the z-axis andthe projection of the lift-line to the yz plane.
7
Figure 2.1 shows a crane model diagram and symbol definition that has been obtained from the User Manual 3D Crane (Inteco).
mc-mass of the payload mw- mass of the cart m5-mass of the moving rail
xc, YCl zc-components of the payload position vector S - gravity force ofthe payload
xw yw- components of the cart position vector ijw- 0) F% -force driving the cart
Fv- force driving the rail &cart
7^ Tv -friction forces corresponding to motions in the xand
y directions
R- length ofthe lift-line
Figure 2.1: Symbol Definition of Crane Diagram
From Figure 2.1, crane equation is derived based on denotation of state representation shows
in Table 2.1.
Table 2.1: State Representation
M **mw +mc?ks +mwms +mcmM!
My =mw+ ms
V6 = 2xz\c5x6x9 + s5x]i})+gs7
^6 = S5X%X9 "*" SS5C7 + X6X9
-J* •2
A=m£ +mwms +mcmw sin x$ sin *7 +My mc cos x$
Ul=FX
•
u2mfy ^=^-7)
«3"^i ^-a3+g-Tg
*i ^^w *6 = x5 = iV
*2 = *i=s xw *7 = A
x3"^w i Xg « *7 =>'
5 *4"*3 ='?w j Xp-£
x5 = a
1
^IQ - ^9 = R
sn = sin xn
C* = c o s x
'H n
xi=x2
X2=N1+u.1c5N3
X3 = X4
X4 -N2 + u.2s5s7N3
x5=x6
X6-(sgN1~c5s7N2+(p1-|A2S7)cgs5N3+V5)x9
X7-X8
x8 =-(c7N2+|i2s5c7s7N3+V6Xs5x9)
X9 = X10
xio =-c5N1-s5s7N2~(l +p.1C5 +n2S5S7)N3+V7
The dynamics of the crane system helps the Author understands the system model based on the dynamics denoted. From the system model obtained, the Author can determine the controlling parameters which are to be controlled.
2.2 Dynamics of The PID Crane Controller
The objective the Author to study and analyse the dynamics of the PID controller is that, to gain understand how the PID controller helps in reducing the oscillatory of the payload and increasing the preciseness of the cart position to the desired position.
To study and analyse the dynamics of the PID controller, the Author needs to determine a few types of error exist in the crane system to confirm that the PID controller is the only
controller that controls the errors occurred.
Therefore, a few disturbances have been identified which are cart friction, air friction, noise and error produced between desired position and manipulated position. In Figure 2.2 shows a instability of crane response.
desired position manipulated position
pendulum angle controller
Figure 2.2: Data visible of crane response.
Therefore, in order to control the crane as per required, PID Controller has been chosen to solve the problem of disturbance.
The PID control rule is very common in control systems. It is the basic tool for solving most process control problems. The transfer function of basic PID controller has the form
u(t) =KPe(t) +Ki fe(t)dr +Kd ~~{e{t))
d dtwhere u(t) is the control output and the error, e(t), is defined as
e(t) = desired value- measured value of quantity being controlled.
10
The control gains Kp, Kd and K* determine the weight of the contribution of the error, the integral of the error, and the derivative of the error to the control output. The simulink block of PID Controller is built based on equation above shows in Figure 2.3.
Cj Crane3D_first/X position of the cait File £d& View j£jrnMlatioiT Fgmiat loofs ftefc
0 ^ H i External
e>
Proportional
d>
In 1
t!
Integral! Integrator Sum Out 1
>C- • du/dt
Derivative
fd vl*W; -Mi
Figure 2.3: Simulink Block of PID Controller
11
CHAPTER 3
METHODOLOGY / PROJECT WORK
In this project, the Author stresses on designing a control strategy, which is tuning the parameter of the PID controller. Firstly, the Author need to determine the main caused that causing the instability the crane system performance. The main caused are oscillation of the payload during movements to certain direction, and less preciseness for cart position to the desired position. Therefore, a few experiments have been conducted to get the best response curve of the payload oscillation and the cart position. Follows are the methodology in determining the best tuning parameters using Ziegler-Nichols analysis for x, y and z-axis. In the final analysis, the Author shows the results of the response combining the three axis tuning parameters.
Before the analysis is started, the Author needs to know the exact position of the PID controller in the crane system simulink model. Below in Figure 5 [1] shows the simulink model of the crane system.
12
X axis PID Controller
Figure 3.1: Simulink Model of the Crane System
Based on the simulink model shown in Figure 3.1, shows that the first PID controller is located at the input of cart position where the function of the PID controller is to control the cart position to follow the desired position. The second PED controller is located at the output of the crane system where to control the oscillatory of the payload.
Therefore, from the simulink model, the Author had been determined that the crane system is closed loop system. Thus, the analysis conducted is based onthe closed-loop system analysis.
There are a few methods analysis had been used in determining the tuning parameters for PID controller for cart position and PID controller for oscillation of the payload which are;
Ciancone Tuning Correlations and Ziegler Nichols ClosedLoop. The best choice of method used is based on response curve obtained that conforming most closely to the characters of the curve and easiest way in determining the tuning parameters. Refer to Figure 3.2 in the Appendix section, shows the response of the curve for actual of cart position and oscillation of the payload in the X-axis direction. Since the characteristic of the cart position curve is looks like more to process reaction curve, the Ciancone Tuning Correlations Method is suitable to be used. While for oscillation of the payload curve, the curve is quite oscillatory
13
and has a long settling time. Therefore, the Ziegler Nichols Closed Loop Method is suitable
to be used.
3.1 Tuning Parameters for PID Controllers in X-Axis Direction
For X-axis direction, the cart and rail are moves together to the desired position. Therefore, the oscillatory of the payload doesn't make any effect on the response curve for the cart position to move to desired position.
In this section, two set of tuning parameters of PID controllers had been determined, PID controllerof cart position and PID controllerof payload angle.
3.1.1 Determining the Tuning Parameters for Pit) Controller of Cart Position.
The main objective of these experiments is to reduce the offset between cart position to the
desired position to reach the minimum by controlling Proportional controller of PID
controller of cart position. At the same time, the PID controller of payload angle is set to zerofor all P, I and D controllers.
Therefore, a few experiments have been conducted in determining the bestProportional gain in order to obtain the best response of the cart position where the offset between the actual cart position to the desired position is reached to the minimum value. Refer to Figure 3.3 (attached in the Appendices section), shows the best response from one of the experiments
conducted.
Therefore, in determining the tuning parameter for PID of cart position, the Ciancone Correlations Tuning Method is used. The S, 0, 5, and A values is determined based on the response obtained (Figure 3.3).
14
S = 0.28 0-0.13 A -0.37 5 = 0.38
Then, based on the formula of Ciancone Correlations, the value of Kp, x and Fraction Dead
Time is obtained. The calculation is shown as follows;
K. =*«°£ =0.9737
-P5 0.38 A 0.37
t = —= = 1.32
S 0.28
• 013
FractionDeadTime = = ———• = 0.089 9+r 0.13 + 1.32
Finally, based on Fraction Dead Time obtained, the value of Kc, Ti and TD is determined by referring to the Fraction Dead Time Graph (Appendix 1)in the Appendices section.
KCK,,=1.1
Kc =
1.1
KP
1.1 0.9737
= 1.1297
Ti .-0.25
e+x
Tj =0.25(0+t) =0.25(0.13+ 1.32) =0.36
^ =0
e+x
TD=0
15
Table 3.1: Tuning Parameters for PID Controller of Cart Position
Kc Ti TD
1.1297 0.36 0
3.1.2 Determining the Tuning Parameters for PID Controller of Payload Angle
In obtaining the tuning parameters for PID of payload angle, Ziegler Nichols Tuning Method is the best method is chosen. A few experiments have been conducted in orderto get the best Proportional gain where the oscillation of the payload angle is tend to reach the steady state fastest and have a minimum amplitude of oscillatory. Refer to Figure 3.4 (attached in the Appendices section), shows the best response of payload angle from one of the experiments
conducted.
Therefore, in determining the tuning parameter for PID of payload angle, the Ziegler Nichols Closed Loop Method is used. The Ku and Tu values is determined based on the response obtained (Figure 3.4).
Ku=l Tu = 9.42
Tuning parameters Ku and Tu obtained are calculated referring to Appendix 2. Values of
tuning parameters are defined in Table 3.2.
16
Table 3.2: Tuning Parameters of PID Controller
Control Mode Calculation Tuning Parameters
Ponly Kc-1.5 Ku-1.5(1) Kc-1.5
P+I Kc - 0.45 Ku = 0.45(1)
Ti = Tu/1.2 = 9.42/1.2
Kc = 0.45 Tr = 7.85
P+I+D Kc = 0.6 Ku-0.6(1)
Ti = Tu/2 = 9.42/2 TD = Tu/8 = 9.42/8
Kc-0.6 Ti-4.71 TD=1.18
Finally, tuning parameters for both PID controllers had been determined. However, control mode chosen is Proportional only because the control performance of the proportional controller satisfies the desired control performance goals. Meaning that the response obtained is reached more stability using this control mode compared using other's control mode.
3.1.3 Final Response Curve Using Tuning Parameters Calculated
Using the tuning parameters that have been determined and set into respective PID controller, the response curve result from both PID controllers can be referred to Figure 3.5 (in the Appendix section).
3.2 Tuning Parameters for PID Controllers in Y-Axis Direction
For Y-axis direction, only cart is moves to the desired position. Therefore, the oscillatory of the payload does make any effect on the response curve for the cart position to move to the desired position.
In this section, two set of tuning parameters of PID controllers had been determined, PID controller of cart position and PID controller of payload angle.
17
3.2.1 Determining the Tuning Parameters for PID Controller of Cart Position.
The main objective for these experiments is basically same as previous experiment which is to reduce the offset between cart position to the desired position to reach the minimum by controlling Proportional controller of PID controller of cart position. At the same time, the PID controller of payload angle is set to zero for all P, I and D controllers.
Therefore, a few experiments have been conducted in determining the best Proportional gain in order to obtain the best response of the cart position where the offset between the actual cart position to the desired position is reached to the minimum value. Refer to Figure 3.6 (attached in the Appendices section), shows the best response from one of the experiments
conducted.
Therefore, in determining the tuning parameter for PID of cart position, the Ciancone Correlations Tuning Method is used. Because of the difficulty in evaluating the slope, especially when the signal has high frequency of noise, times at which the output reaches 28 and 63 percents of its final value is taken. Thus, the 0,5, and A values is determined based on the response obtained (Figure 3.6) shown as follows.
6 = 0.2 A = 0.12 8=1.075 t28% = 0.17 t63% = 0.3
Then, based on the formula of Ciancone Correlations, the value of Kp, r and Fraction Dead
Time is obtained. The calculation is shown as follows:
Kp=A =i!! =0.857
P 8 0.14
^l-5(t63%~t28%) = 1.5(0.3-0.17) = 2.647
18
q 0 9
FractionDeadTime = • = : —0.315 0+r 0.2 + 0.435
Finally, based on Fraction Dead Time obtained, the value of Kc, Tr and TD is determined by referring to the Fraction Dead Time Graph (Appendix 1) in the Appendices section.
KCKP=1.1
c KP 0:857
-ii- =0.7
T e+xT, =0.7(0.2 + 0.43478) = 0.444
T.
0+r 0.01
TD = 0.01(0.2+ 0.43478) = 0.006 s 0
Table 3.3: Tuning Parameters for PID Controller of Cart Position
Kc Ti TD
1.283 0.444 0
3.2.2 Determining the Tuning Parameters for PID Controller of Payload Angle
In obtaining the tuning parameters for PID of payload angle, Ziegler Nichols Tuning Method is the best method is chosen. A few experiments have been conducted in order to get the best Proportional gain where the oscillation of the payload angle is tend to reach the steady state fastest and have a minimum amplitude of oscillatory. Refer to Figure 3.7 (attached in the Appendices section), shows the best response of payload angle from one of the experiments
conducted.
19
Therefore, in determining the tuning parameter for PID ofpayload angle, the Ziegler Nichols Closed Loop Method is used. The Ku and Tu values is determined based on the response
obtained(Figure 3.7).
Ku-2 Tu = 7.4
Tuning parameters Ku and Tu obtained are calculated referring to Appendix 2. Values of
tuning parameters are defined in Table 3.4.
Table 3.4: Tuning Parameters of PID Controller
Control Mode Calculation Tuning Parameters
Ponly Kc=1.5Ku=1.5(2) Kc = 3.0
P+I Kc = 0.45Ku = 0.45(2) Kc-0.9
Ti = Tu/1.2-7.4/ 1.2 Tr-6.167
P+I+D Kc = 0.6Ku-0.6(2) Kc-1.2
T! = Tu/2 = 7.4/2 Ti = 3.7
TD = Tu/8 = 7.4/8 TD = 0.925
Finally, tuning parameters for both PID controllers had been determined. However, control mode chosen is Proportional only because the control performance of the proportional controller satisfies the desired control performance goals. Meaning that the response obtained is reached more stability using this control mode compared using other's control mode.
20
3.2.3 Final Response Curve Using Tuning Parameters Calculated
Using the tuning parameters that have been determined and set into respective PID controller, the response curve result from both PID controllers can be referred to Figure 3.8 (in the
Appendix section).
3.3 Tuning Parameters for PID Controllers in Z-Axis Direction
For Z-axis direction, the cart and rail are not move in the vertical and horizontal direction. In
this experiment, the cart and rail static and only payload is moves up and down direction.
Therefore, the movement of the payload up and down direction doesn't make any effect on
the response curve especially on oscillatory of the payload.In this section, two set of tuning parameters of PID controllers had been determined, PID
controller of cartposition and PID controller of payload angle.3.3.1 Determining the Tuning Parameters for PID Controller of Cart Position.
The main objective of these experiments is to reduce the offset between actual payload position to the desired payload position to reach the minimum by controlling Proportional controller of PID controller of cart position. At the same time, the PID controller of payload
angle is set to zero for all P, I and D controllers.
Therefore, a few experiments have been conducted in determining the best Proportional gain
in order to obtain the best response of the cart position where the offset between the actual payload position to the desired payload position is reached to the minimum value. Refer to Figure 3.9 (attached in the Appendices section), shows the best response from one of theexperiments conducted.
21
Therefore, in determining the tuning parameter for PID of cart position, the Ciancone Correlations Tuning Method is used. The S, 0, 8, and A values is determined based on the response obtained (Figure 3.9).
S = 0.1386 8 = 0.1298 A = 0.144 8 = 0.144
Then, based on the formula of Ciancone Correlations, the value of Kp, x and Fraction Dead
Time is obtained. The calculation is shown as follows:
8 0.144
T=A=^14i =1038%
S 0.1386
FractionDeadTime = : = 0.111
9+x 0.1298 + 1.03896
Finally, based on Fraction Dead Time obtained, the value of Kc, Ti and TD is determined by referring to the Fraction Dead Time Graph (Appendix 1) in the Appendices section.
KCKP=1.1
kc=H=M=l1
c KP 1
Tl =0.25
e+T
Tj= 0.25(0+1) = 0.25(0.1298 + 1.03896) = 0.292
22
-^ =0
e+x
TD=0
Table 3.5: Tuning Parameters for PID Controller of Cart Position
Kc Tj TD
1.1 0.292 0
3.3.2 Determining the Tuning Parameters for PID Controller of Payload Angle
Since the movement of the payload in up and down direction does not give any effect on the oscillatory of the payload, therefore, the PID controller at the payload angle is not utilized.
Thus, the Author set all zero in P, I and D controller at the payload angle.
3.3.3 Final Response Curve Using Tuning Parameters Calculated
Using the tuning parameters that have been determined and set into respective PID controller, the response curve result from both PID controllers can be referred to Figure 3.10 (in the Appendix section)
3.4 Test All the Tuning Parameters Obtained to All PID Controller in All Axis.
All the tuning parameters for each axis that have been obtained are set into respective PID controller and combined into the simulink model of the crane system as shown in Figure 3.11 (attached in the Appendix section). The response is shown in Figure 3.12 (attached in the Appendix section).
23
3.5 Tool Required
• Real-Time Workshop
Real-Time Workshop of an extension of capabilities found in Simulink and Matlab to enable rapid prototyping of real-time software application on a variety of systems. Real- Time Workshop, along with other tools and components from The Math Works, provides o Automatic code generation tailored for a variety a target platforms
o A rapid and direct path from system design to implementation.
o Seamless integration with Matlab and Simulink.
o A simple graphical user interface.
o An open architecture and extensible make process.
• Matlab and Toolboxes
Integrate with the Real-Time Workshop. Means that, it come with one package together with Real-Time Workshop in conducting the crane.
• Simulink Stateflow Blockset
Integrate with the Real-Time Workshop. Means that, it come with one package together with Real-Time Workshop in conducting the crane.
• 3D Crane Model
24
CHAPTER 4
RESULTS AND DISCUSSION
4.1 Results
4.1.1 Response for X-axis
Table 4.1: Timing Parameters for PID Controller of Cart Position (X-Axis)
Kc Ti TD
1.1297 0.36 0
Table 4.2: Tuning Parameters for PID Controller of Payload Angle (X-Axis)
Kc Ti TD
1.5 0 0
Using the tuning parameters that have been determined and set into respective PID controller, the response curve result from both PID controllers can be referred to Figure 3.5 (in the Appendix section).
4.1.2 Response for Y-axis.
Table 4.3: Tuning Parameters for PID Controller of Cart Position (Y-Axis)
Kc Ti TD
1.283 0.444 0
25
Table 4.4: Tuning Parameters for PID Controller of Payload Angle (Y-Axis)
Kc Ti TD
3.0 0 0
Using the tuning parameters that have been determined and set into respective PID controller, the response curve result from both PID controllers can be referred to Figure 3.8 (in the Appendix section).
4.1.3 Response for Z-axis
Table 4.5: Tuning Parameters for PID Controller of Cart Position (Z-Axis)
Kc Ti TD
1.1 0.292 0
Table 4.6: Tuning Parameters for PID Controller ofPayload Angle (Z-Axis)
Kc Ti TD
0 0 0
Using the tuning parameters that have been determined and set into respective PID controller, the response curve result from both PID controllers can be referred to Figure 3.10 (in the Appendix section).
4.1.4 Final Response Curve Combination of 3-Axis
All the tuning parameters for each axis that have been obtained are set into respective PH) controller and combined into the simulink model of the crane system as shown in Figure 3.11 (attached in the Appendix section). The response is shown in Figure 3.12 (attached in the Appendix section).
26
4.2 Discussion
4.2.1 Analysis on the Final Response Obtained
Figure 3.12 shows that the final response obtained based on tuning parameters calculated in the PID controller for x, y and z-axis. In the graph, there are eight responses curve shows the actual cartposition of each axis andthe oscillation for x andy-axis. This second order system (crane system) exhibits a wide range response. Changes in the parameters of a second-order
system can change the form of the response. Based onthe response obtained in Figure 3.12,
there are 3 forms of response exhibits which are underdamped response, undamped response and critically damped response.Inthe graph, the actual cart position for y and z-axis shows the same form of response which
is underdamped response. It can be recognized from the response obtained that there is an overshooting and oscillating about the steady-state value for a step input. The response is named overdamped because it refers to a large amount of energy absorption in the system.That is why the response is overshooting and a bit oscillating to reach the steady state to follow the desired position. However, the response for both axis (y and z-axis) met the objective of this project which is minimizing the offset or error between the actual cart
position and desired position.For actual cartposition response in the x-axis, the form of response is recognized as critically
damped. The characteristic of critically damped response can be determined where the
response is the fastest to reach the steady state without the overshoot. However, the response obtained for actual cart position in the x-axis, there is offset / error between actual cart position and desired position.For payload angle response in the x-axis, the form of response looks like an undamped response. However, there is a bit of damping to reach the steady-state as time increases.
Therefore, the response can be determined as underdamped response. For payload angle in
27
the y-axis, the response is clearly is underdamped response since the oscillation of the
payloadis damped to the steady-state.
Basically, in determining the ultimate gain for PID controller in order to determine the best response and best performance, a few trial-and-error experiments have been conducted. The procedure is called continuous cycling. From the best response, using the Ziegler-Nichols
and Ciancone Correlations analysis, the tuning parameters of PID controller is determined. Indetermining the initial best response, the crane system is controlled by a proportional - only controller where the set point perturbed slightly, and the transient response of the controlled
variables is observed. When the crane system is stable either overdamped or oscillatory, thegain is increased. The crane system is unstable when the gain decreases. The iterative procedure is continued by changing Kc until after a set point perturbation where the crane system will oscillates with a constant amplitude. This behavior occurs when the crane system
has exponential terms with (very nearly) zero values indicating that the crane system is atstability margin. The gain at this condition is the ultimate gain, and the frequency of the
oscillation is the critical frequency. Therefore, the Ziegler-Nichols closed-loop tuning correlation is used in calculating the PID constants.28
4.2.2 Stability Analysis and Controller Tuning Analysis
At this point, the Author has succeeded in developing a control algorithm (the proportional-
integral-derivative controller) and a suitable method has been chosen for tuning its adjustable
constants. Through a few experiments that have beenconducted, the Author has seen on how feedback control can change the qualities behavior of a process, introducing oscillations in anoriginally over damped system and potentially causing instability. In fact, the Author shall
see that the stability limit is what prevents the use of a very high controller gain to improvethe control performance of the controlled variable. Therefore, a through understanding of the stability of dynamic systems is important, because it provides important relationship among process dynamics, controller tuning, and achievable performance. These relationships are
used in a variety of ways, such as selecting controller modes, tuning controllers and designing processes that are easier to control.What do we mean bystable andunstable? How to make our system and control systems to be
stable? To answer those questions, the Author had to make a clear and precise definition of how to reach stability to the crane system. The termed bounded input - bounded outputstability, can be employed in the design and analysis of the crane system. A variable is
bounded when it does not increase in magnitude to the rail limit as time increases. Bounded inputs for the crane systemare the step changes.Elements in the control loop in the crane system influence the stability and tuning. Clearly,
the types of instrument equipment involve in the control loop such as RTW (Real-Time
Workshop) and Matlab & Toolboxes and also friction & noise give an affect on the crane system stability and feedback tuning constants. The Author had determined how the process dynamics affect feedback control, specifically the gain and the integral time of a PI controller. The amplitude ratio of the response obtained generally decreases for process elements as the frequency increases. Therefore, smaller time constants and dead times lead toa larger allowable controller gain. The smaller values of the time constant and dead times
leadto a smaller integral time which gives a stronger effect on a control action. The previous result obtained in the Result section clearly demonstrates that the Fraction Dead Time and29
time constant obtained from the response produced a larger controller gain and smaller integral time, thus affecton the feedback tuning and stability.
Basically, the key relationship between tuning and fraction dead time is investigated for Ziegler Nichols PID Tuning. Clearly, the relationship can be referred in the Methodology section where these relationships are consistent with a common-sense interpretation of the feedback controller relationships. As previously mention that the fraction dead time and time constant influence the dynamic performance of the crane system. Since in this project, disturbance contribute a main factor that causing the instability of the system. Thus, the gain controller generally decreases as the fraction dead time increases. The dimensionless derivative time is zero for small fraction dead time and increases for longer dead times to compensate for the lower controller gain. The dimensionless integral time remains in a small range as the fraction dead time increases.
The stability was not explicitlyconsidered in the Ciancone method, although tuning that gave unstable, still have an offset between actual cart position and desired cart position, or oscillatory systems would have a large IAE (Integral of Absolute Value) and thus would not have been selected as optimum. Just simply refer to the Final Response (shown in Figure 3.12) that combined three axes simultaneously. Note that the Ciancone gain values are lower,
partly because of the objectives of robust performance with model errors and partly because of limitationon manipulated-variable variationwith a noisymeasuredcontrolledvariable [5].
Each mode of the PID controller affects the stability of the feedback system. Increasing the magnitude of the controller gain and decreasing the integral time tends to destabilize the feedback systems.
Many other tuning methods have been developed, generally based on either stability margins or time-domain performance. A summary of the methods is presented in Table 4.1, which givesthe main objectives of each methodused in this project.
30
Table 4.7: Summary of PID tuning methods
Tuning Stability Objective Objective Model Noise Input
method objective ForCV(t) ForMV(t) e r r o r on CV(t) SP = set point
D = disturbance Ciancone None
explicit
MinlAE Overshoot and variant with noise
±25% Yes SP and D individually
Ziegler Implicit 4:1 decay None None No n/a
Nichols margin for ratio explicit
closed- stability
loop (GM*2)
31
CHAPTERS
CONCLUSION AND RECOMMENDATION
This project takes time on analysis on performance of crane system, identification of
disturbances that contribute a non-linearity of crane system and identification of appropriate method to be used to obtain tuning parameters to control stability of crane system. There is only one control strategy that had been completed which is designing the PID tuning
parameters.
In designing the PID tuning parameters, trial-and-error experiments have been conducted to
obtain the best response that meet the objective of the project. From the response obtained, the tuning parameters are calculated. To this point, two controller tuning methods have been
presented. The Ciancone correlations were based on a comprehensive definition of controlperformance in thetime domain, whereas theZiegler-Nichols closed loop method were based on the stability margin. Using these methods, the fraction dead time and time constant played
a main role to give a better control performance. The more and longer time constants and dead times lead to detuning of the PID controller and that fewer and shorter time constantsdead times lead to larger controller gain, smaller integral time, and stronger feedback action.
Therefore, the stronger feedback action will give better control performance.
Basically, the Author has succeeded to achieve the objective of the project which is to give a
better performance of the crane system compared with the original system for each axis. The oscillation of the payload is reduced to the minimum andthe cartposition follows the desired position even it takes a few second to complete its settling time. However, combination of 3- axis of PID controllers are shown a drastic characteristic in terms of performance of the crane system. It can be referred to the results obtained. Theoretically, the performance of the final32
response should be have a minimum oscillation and slow in the movements. However, due to some reasons, the final response fails to meet the objective of the project. Though, it stills the best performance from the crane systemby using some analysis.
The final response can be improved by using a Bode analysis where the model system is determined. From the system model, transfer function of the system can be determined and therefore the location of zero and pole using a root locus analysis can be built. Thus, the dynamics behavior can be observed. Using this analysis, the excellent display of the effect of the tuning constants on the exponential terms and therefore on stability can be observed. In summary, application of general stability analysis method to feedback control systems demonstrates that the roots of the characteristic equation determine the stability of the system. If all roots have negative real parts, the system is bounded input-bounded output stable; if any root has a positive or zero real part, the system is unstable.
This particular project will prove the importance of tuning methods (stability analysis) in giving the stability on the system. Thus, give a better control performance. Note that, using this stability analysis, the substantial incentives exist for maintaining the system variable at a stable operating conditions. Thus, prevent damaging the system by excessive or over limited
some variable.
33
REFERENCES
[1] Inteco admin, "3D Crane", <http://www.inteco.cc.pl>
[2] Inteco admin, "Getting Started", <http://www.inteco.cc.pl>
[3] Chen-I Lim, December 1999, "Thesis of Development of Interactive Modeling, Simulation, Animation, and Real Time Control Tool for Research and Education. A Framework for Real-Time Hardware Control - Arizona State University"
[4] Norman S.Nise, Third Edition, "Control Systems Engineering"
[5] Thomas E. Marlin, Second Edition, Process Control - Designing Processes and Control Systems for Dynamic Performance
APPENDICES
0.8 0.6 0.4 0.2 ActualPayloadAngic Ov- 7 -0.2 10
~.ActualCartPosition DesiredCanPosition v V 1520 Figure3.2:ResponseCurveoftheCraneSystem
/\ V s 2530
0.8 -0r6^ 0.4 0.2 -0.2 1015 Q^-\3
1/DesiredCartPosition ActualCartPosition nr. n •^ Ii *=1-^-3 Fiffure3.3:BestResponseforCartPositionintheX-Axis
kJ" ActualPayloadAngle 25
~f~ ^CO <
—c 30
0.8 0.6 0.4 0.2 -0.2
ActualCanPosition DesiredCanPosition IS---i 101520
h .-L- Ir ActualPayloadAngle 25 Figure3.4:BestResponseforOscillationofPayloadintheX-Axis
Li: H.r1 30
0.8 DesiredCartPosition 0.6 ,--'"*ActualCartPosition 0.4 0.2 0«= ActualPayloadAngle -0.2 10152530 Figure3.5:FinalResponseforX-Axis
rT" <&•f> f>2%& f 1.2Z%&. -is-Ti__j.ir»r~_r*t.Ti^^j*:—,'~*u„\/"a..;,
0.6, 0.5L— 0.4I— 0.3 0.2 0.1 -0.1
DesiredCartPosition ActualCartPosition,. _ActualPayloadAngle 5T«*1t10 Figure3.7:BestResponseforOscillationofPayloadintheY-Axis
15
Figure3.3:FinalResponseforY-Axis
0.3 0.6 0.4-• 0.2 Or -0.2
DesiredCartPosition yActualCartPosition ActualPayloadAngle 10.1520 Figure3.9:BestResponseforCartPosition&OscillationintheZ-Axis
2530
0.8 DesiredCartPosition 0,6r ActualCartPosition 0.4 0.2 ActualPavloadAngle -0.2 1015202530 Figure3.10:FinalResponseforZ-Axis
'niddleof Xposition •niddleof Yposition niddieof Zposition Step2 Figure3.11:SimulinkModelCombination3-Axes
Yangle ofthepayload
0.6H- 0.5
DesiredPositionZ-Axis
Actualfosmon>l-axis i/ j'"S'J''\ActualPositionY-Axis DesiredPositionX&Y-Axis\// rHActualPositionX-Axis 0.4r- 0.3 0.2 0.1- ActualPavloadAngleY-Axis \,-ActualPavloadAngleX-Axis -0.1 101520 Figure3.12:ResponseCurveCombination3-Axes
JL\ 2530
r
r
•i i I
•]{\, ji) ,;ii .30 A<\ .50 .W JO .til :Ai I,'.i
[;i;,.-tis'nuk^d time {jfrz)
tK»
"IX
^-h
in)
0 .10 .20 10 ..JO .50 iiO .70 SO 'JO I 'i li;iL-[juii ik;id llim* (-— )
a-)
JO
.20
.H)
(I L—/- rj..^Cr_..i l_.j i.___l J J
0 JO I'fl .\() .40 _"i<] (rfl .71) NO <«l I <l
Fiaiiion Jc;iJ (in>c (yt—)
APPENDIX 1
1 M
i 0 .'•..'(>
.Si''
E •» r
'"-U.
-A^
""-O-
o io .:^ i-;i in .so <v'i 70 rfi |Ki i.o
li.vikri rfc.ul tiiiu- fj,~z)
4
,-. t. .--l„_l 1 l-__.i -I J- 1...-•!----P
iWj
II M\ .20 .30 ..:{) ..'hi .60 .70 .KD »il |.(l
[:;;..ai«>iiiL-jJi«i:r (;-}^)
f(l
.JO r
\ W i t '
iff
Ciancone correlations for dimensionless tuning constants, PID algorithm.
For disturbance response: (a) control system gain, (b) integral time, (c) derivative time.
For set point response: (d) control system gain, (e) integral time, (f) derivative time.
APPENDIX 2
Ziegler-Nichols Rules [4]
Ziegler Nichols have two types of methods to calculate tuning parameters based on response
curve. The methods described as below:
1. Method I
This type of tuning methods is used to calculate the closed loop parameters of PID Controller. In general, the parameters calculation is intended to produce a closed loop- damping ratio of lA. The parameters are obtained when sustained oscillation isobserved. The value of Ku and period of oscillation, Tu is noted. Below in Table 1 shows a calculation in
obtaining controller parameters.
Table 1: Ziegler-Nichols Closed-Loop TuningPID Parameters
Control Mode Parameters
Ponly Kc = 1.5Ku
P+I Kc = 0.45Ku
Ti-Tu/1.2
P+I+D Kc-0.6Ku
Tj-Tu/2 TD = Tu/8
2. Method II
The process reaction curve used for identifying dynamics model. This method uses graphical
calculation (Figure 2) to determine the parameters for a first-order with dead time model. Thevalues determined from the graph are the magnitude of the input change, 8; the magnitude of the steady-state change in output, A; and the maximum slope of the output-versus-time plot,
S.
Q.
C
/
a o
ouput L^
/ S=maximum slope
hen/
A
-
input 8
T
time
Figure 16: Process Reaction Curve
Thus, model parameters:
KP = A/S
t = A/S
G= interceptof maximum slope with initial value
APPENDIX 3
Ciancone Correlations Tuning Method
The purpose oftuning correlations is to enable to calculate tuning constant for many process applications that simultaneously without performing the optimization. Correlations for tuning constants will reduce the engineering effort in controller tuning, and, perhaps more importantly, the correlations will show how the controller tuning constants depends on
feedback process dynamics.
This correlation provides values for Kc, Ti and Td based on the values in a process dynamic model. The general approach is to select a model structure and determine the dimensionless
parameters that define the closed-loop dynamics response.
The Ciancone correlations consist of the following steps:
1. Ensure that the performance goals and assumptions are appropriate.
2. Determine the dynamic model using and empirical method (e.g. process reaction curve),
giving Kp, 0 and x.
3. Calculate the fraction dead time, G/ (0 +T-).
4. Select the appropriate correlation, disturbance or set point; use the disturbance if not sure
(refer to Appendix 1).
5. Determine the dimensionless tuning values from the graphs for KcKp, Ti / (0 +x), and Td /
(0 n).
APPENDIX 4
PID Controller
The PID control rule is very common in control syst