Академический Документы
Профессиональный Документы
Культура Документы
Project Report
Written by:
Jordan D. Ulmer,
Instructor:
Dr. Hietpas
Joshua Behnken,
Design Initiated:
01/16/2015
02/13/2015
03/16/2015
04/29/2015
Jeremy Laird
Page |1
Background:
The Twilight Zone Tower of Terror is a Walt Disney World amusement park ride, which the SDSU team has
been tasked with re designing (See Figure 1). The existing system has been analyzed, simulated and a
new control system scheme design is here in proposed to meet a new set of specifications and constraints.
Figure 1: Walt Disney World's Twilight Zone Tower of Terror Building Architecture [1]
Page |2
Introduction:
The aim of this project was to design a new Control System for Walt Disneys Twilight Zone Tower of
Terror, this task has been split into three parts, analysis, simulation and design. First, the existing system
was thoroughly studied through hand analysis techniques (Part one). Second, the existing system was
modeled programmatically and simulated (Part two). Third, specifications and constraints were identified
and a control system was designed (Part three) and is here-in presented.
Theoretical Analysis: Part one consisted of four independent tasks contrived to understand the exiting
Control System for the Tower of Terror. First, the electromechanical model provided by Walt Disney
engineers was translated to an electrical equivalent network. Second, the electrical equivalent system
was used in coalition with the electromechanical model to generate a Simulink system block diagram
summary. Third the transfer function of the system has been derived using two methods: standard circuit
analysis applied to the electrical equivalent network (described in Task 1) and Masons Gain Rule applied
to the SIMULINK system block diagram (described in Task 2). Fourth, a set of prospective DC motors
considered to meet new specifications. Additionally, in Task 4, one motor from this set has been chosen
and analyzed in detail.
Simulation: Part two was a continued study of the existing system through programmatic simulations
utilizing Simulink and MATLAB. First, the open loop system transfer function was analyzed (with and
without gravity) in MATLAB as well as modeled in Simulink and the two simulations were compared.
Second, a maximum forward system gain was established through the use of a Routh Hurwitz stability
analysis. Third, the system closed loop transfer function was analyzed in MATLAB and modeled in
Simulink and again the simulations were compared.
Design: In part three, specifications and constraints for a new control system were identified, and a
control system was designed through iteratively utilizing two separate design approaches. First, the root
locus of the open loop system transfer function was studied, and a manual attempt was made to meet
specifications by altering the forward system gain to position the dominant closed loop system poles
(preliminary design work, not discussed). Second, the system Bode plot was considered and a Lag
Compensator was iteratively designed.
Page |3
Item
Constraint Description:
Symbol
Physical Constraint
[MKS Units]
1.1
1.2
1.3
61 []
20 [ ]
25 [ 2 ]
1.4
1320 []
1.5
6546 []
1.6
5385 [ ]
1.7
| |
12 []
1.8
Motor Number:
11
Page |4
6. The desired settling time, , should be consistent with the desired overshoot, and a time
to peak of 9 .
Item
Specification Description
Symbol
Performance Specification
[MKS Units]
2.0
50 [m]
2.1
| |
0.5 []
2.2
50 []
2.3
Percent Overshoot:
%. .
15 [%]
2.4
2.5 []
2.5
7 []
2.6
Settling Time:
17 []
Page |5
Performance Specification
Item
Specification Description
Symbol
2.0
10 [ ]
2.1
0.1 []
[MKS Units]
Page |6
and is shown in
Y (s)
J g , Dg
J g , Dg
DE
kC
X (s)
Elevator
ME
kC
Worm
Gear
DE
Tm ( s )
J m , Dm
Ra , La
electromechanical kt , kb
m ( s )
DC
Motor
N g : Nm
J g , Dg
mechanical
electrical
Ea ( s )
J g , Dg
g (s)
Figure 2: System Level Diagram of the Twilight Zone Tower of Terror [2]
An S-Domain electrical equivalent network, Figure 3, has been contrived based upon the approximate
system level Electro-Mechanical model detailed in Figure 2.
LHS Units Are In Ohms
: 1 2
Page |7
thus
Third, in the circuits approach, the electromechanical gains are assumed to be equal,
= = .
Circuits Fundamentals Approach:
Using the circuit equivalent model identified in Figure 3, the system gain was derived using a standard
circuits approach.
The Motor Impedance , Back EMF , Equivalent Admittance at node , Equivalent Motor
Inertia and Equivalent Motor Damping are defined by (1) , (2) , (3) and (4) respectively.
= +
(1)
= + + (
) (4 + 4 ) + ( ) 2 + 2
= (
(2)
) 2 + ( ) (4 ) +
(3)
(4)
) 2 2 + ( ) (4 ) +
Equation (5) is the un-expanded transfer function resulting from the standard circuit analysis, reflecting
= (
=(
(
1
( ) ( )
) ( ) +
(5)
(KVL) Kirchhoffs Voltage Law (Conservation Of Energy): The Sum All Of The Power Sourced Is Equal To The Power
Drained.
2
(KCL) Kirchhoffs Current Law (Conservation Of Charge): The Current Entering A Node Is Equivalent To The Current
Leaving The Node
Page |8
Figure 4: [Part 1 and Part 2][Simulnk] Open Loop Simulink System Model With Gravity
1 1 + 2 =
(6)
(7)
1 + + + +
(8)
The Forward Gain 1 and the Forward Gain Coefficient 1 are defined in (9) and (10) respectively:
( )
1
1 2
+
1 = 1
(9)
(10)
Equation (11) is the un-expanded transfer function resulting from the application of Masons Gain Rule.
Page |9
1
=
=
1 1 + 2
The Masons Gain Rule approach led to the monic form transfer function in (12).
=
(11)
( )
( )
(12)
( + ) 2 ( + )
3 +
+
+0
( )
( )
0
1
0
=
=
3
2
1
2
3 + 2 + 1 + 0 3 + 2 1 + 1
(13)
0
=
=
2
3 + 2 1 + 1
(14)
Constant
Simplified
Expanded
Expression
Expression
4 2 + 2 2 2 + ( ) + ( )
( ) + 4 2
+ 2 2 )
( ) + 4
+ 2 2
( ) + 4 2 + 4 2 + 2 2
2
( ) + 4
+ 2 2
P a g e | 10
Motor Selection:
A list of motors was compiled based upon the following constraints (See Table 15):
1. Nominal supply voltage 440 and 470 VDC.
a. {440 [ ] ; 470 [ ]}
2. Nominal speed range between 710 and 910 rpm
a. 710 [rpm] n2 910 [rpm]
3. Nominal output power capability range between 375 and 475 hp.
a. 375 [hp] P 475 [hp]
b. 279 [kW] P 354 [kW]
Motor # 11 of the Approved Parts List (APL)was assigned by the instructor for further study [6]
. A
= =
[ ]
5385 [ ]
=
4.936
[]
1091 []
(15)
= =
440 [] 1091 [] 40 []
=(
)(
764 []
2
) (60 [
])
[ ]
(16)
4.954 [
]
/
Theoretically the motor (Torque Current) ratio and the motor (Voltage Speed) ratio should be
equivalent, ( = = ), notably they are not. The small discrepancy is due to the fact that there are
losses unaccounted for in this model thus the motor torque is not equivalent to the rated torque.
P a g e | 11
Table 5: [Part 1] Motor Parameters Corresponding to Motor #11 (See Figure 28)
Element
Value
Units
7500
250
6.5
151.6
75.8
0.117
0.57
40
4.936
4.954
/ /
60
teeth
1440
teeth
P a g e | 12
(17)
: 4.282 [/]
(18)
: %. . 1.730 [%]
(19)
: 0.1311 []
(20)
: 0.1440 []
(21)
: 4.2050 [/]
(22)
P a g e | 13
X: 0.1311
Y: 4.282
X: 0.2471
Y: 4.205
3.5
Vx(t) [m/s]
3
2.5
2
1.5
1
0.5
0
0
0.05
0.1
0.15
0.2
0.25
0.3
Time [s]
Figure 5: [Part 2][MATLAB] - Step Input - Open Loop Response Velocity (Neglecting Gravity)
P a g e | 14
From the top subplot of Figure 5, the maximum velocity (23) , percent overshoot (24), time to peak (25) ,
settling time (26) and steady state velocity (27) were observed.
: 4.3530 [/]
(23)
: %. . 3.4970 [%]
(24)
: 0.1097 []
(25)
: 0.1406 []
(26)
: 4.2060 [/]
(27)
From the middle subplot of Figure 5, the maximum motor current (28) and steady state current (29) were
observed.
: 9246 []
(28)
: 27.23 []
(29)
From the bottom subplot of Figure 5, the maximum torque (30) and steady state torque (31) were
ascertained.
: 40230 [ ]
(30)
: 118.5 [ ]
(31)
P a g e | 15
Vx(t) [m/s]
X: 0.1098
Y: 4.353
2
0
0
0.05
X: 0.02622
Y: 9246
10000
X: 0.3002
Y: 4.206
X: 0.3264
Y: 4.206
0.3
0.35
0.05
x 10
Tm(t) [N*m]
Ia(t) [Amps]
X: 0.1406
Y: 4.29
X: 0.02622
Y: 1.449
0.1
0.15
0.2
0.25
Time [s]
Part 2. Task (1) . Section (c) . Item(ii) - [Simulink]
[ Motor Torque T m(t) ] Open-Loop - Step Response - (Neglecting Gravity)
X: 0.3002
Y: 29.5
X: 0.3274
Y: 27.23
0.3
0.35
X: 0.02622
Y: 4.023e+04
4
Maximum Output Motor Torque = 40230 [N*m]
2
0.05
0.1
0.15
0.2
0.25
X: 0.3002
Y: 128.3
X: 0.3274
Y: 118.5
0.3
0.35
Time [s]
Figure 6: [Part 2][Simulink] - Step Input - Open Loop Elevator Velocity, Motor Current and Torque Response (Neglecting Gravity)
P a g e | 16
= ( )
#11
3879 [ ]
(32)
From the top subplot of Figure 7 , the maximum velocity (33) , percent overshoot (34) , time to peak (35) ,
settling time (36) and steady state velocity (37) were observed.
: 4.079 [/]
(33)
: %. . 3.5 [%]
(34)
: 0.1108 []
(35)
: 0.1419 []
(36)
: 3.9410 [/]
(37)
From the middle subplot of Figure 7 , the maximum motor current (38) and steady state current (39) were
observed.
: 9564 []
(38)
: 917.2 []
(39)
From the bottom subplot of Figure 7 , the maximum torque (40) and steady state torque (41) were
ascertained.
: 41610 [ ]
(40)
: 3990 [ ]
(41)
P a g e | 17
Vx(t) [m/s]
X: 0.1196
Y: 4.071
X: 0.02491
Y: 1.179
2
0
0
0.05
X: 0.02753
Y: 9564
X: 0.3002
Y: 3.941
X: 0.3274
Y: 3.941
0.3
0.35
0.05
x 10
Tm(t) [N*m]
Ia(t) [Amps]
10000
X: 0.1468
Y: 4.007
0.1
0.15
0.2
0.25
Time [s]
Part 2. Task (1) . Section (d) . Item(iv) . SubItem(d) - [Simulink]
[ Motor Torque T m(t) ] Open-Loop - Step Response - (WITH Gravity)
X: 0.3002
Y: 919.4
X: 0.3274
Y: 917.2
0.3
0.35
X: 0.02753
Y: 4.161e+04
4
Maximum Output Motor Torque = 41610 [N*m]
2
Steady State Output Motor Torque = 3990 [N*m]
0
0
0.05
0.1
0.15
0.2
0.25
X: 0.3002
Y: 4000
0.3
X: 0.3274
Y: 3990
0.35
Time [s]
Figure 7: [Part 2][Simulink] - Step Input - Open Loop Elevator Velocity, Motor Current and Torque Response (With Gravity)
P a g e | 18
(42)
X: 0.1003
Y: 4.339
Vx(t) [m/s]
X: 0.05637
Y: 3.434
X: 0.1003
Y: 4.181
X: 0.02655
Y: 1.474
X: 0.3002
Y: 4.205
X: 0.1501
Y: 4.269
X: 0.3002
Y: 4.206
X: 0.05637
Y: 3.103
X: 0.1501
Y: 4.265
= 3.434 [m/s]
- 3.103 [m/s]
= 1.489 * 1015 epsilon
Simulink Vx(t)
X: 0.02655
Y: 1.284
0
0
MATLAB Vx(t)
0.05
0.1
0.15
0.2
0.25
0.3
Time [s]
14
15
x 10
X: 0.05637
Y: 1.489e+15
10
Part 2. Task (1) . Section (c) . Item(iii) . SubItem(b) - [MATLAB & Simulink Difference Plot]
[ Translational Velocity Vx(t) ] Open-Loop - Step Response - (Neglecting Gravity)
X: 0.1003
Y: 7.092e+14
X: 0.02655
Y: 8.57e+14
5
X: 0.3002
Y: 2.975e+12
X: 0.1501
Y: -1.424e+13
0
-5
0
0.05
0.1
0.15
0.2
0.25
0.3
Time [s]
Figure 8: [Part 2][Simulink and MATLAB Comparison] - Step Input - Open Loop Elevator Velocity (Neglecting Gravity)
P a g e | 19
(43)
5969 [/]
(44)
The root locus analysis in Figure 9 served to validate the forward gain derived in Figure 29.
60
0.68
0.8
0.56
0.42
0.28
0.14
0.91
40
20
0.975
120
0
-20
100
80
60
40
0.975
-40
-60
-80
System: Gx
Gain: 1.4e+04
Pole: 7.52 - 50.9i
Damping: -0.146
Overshoot (%): 159
Frequency (rad/s): 51.5
20
System: Gx
Gain: 5.01e+03
Pole: -2.08 - 35.5i
Damping: 0.0584
Overshoot (%): 83.2
0.14
Frequency
(rad/s): 35.6
0.91
0.8
0.68
-100
-120
-100
0.56
-80
0.42
-60
0.28
-40
-20
20
40
-1
30
20
10
System: Gx
Gain: 6.38e+03
Pole: -61
Damping: 1
Overshoot (%): 0
Frequency (rad/s): 61
System: Gx
Gain: 6.38e+03
Pole: 0.000169 + 38.8i
Damping: -4.36e-06
Overshoot (%): 100
Frequency (rad/s): 38.8
Validating Dominant
System GX(s) Poles @
-10
-20
System: Gx
Gain: 6.38e+03
Pole: -0.000106 - 38.8i
Damping: 2.73e-06
Overshoot (%): 100
Frequency (rad/s): 38.8
System Zero
-30
-40
-50
-70
-60
-50
-40
-30
-20
-10
10
Figure 9: [Part 2][MATLAB] Open Loop Root Locus Analysis (Neglecting Gravity)
P a g e | 20
6384
3192 [/]
2
2
(45)
P a g e | 21
P a g e | 22
1 +
(46)
The maximum position (47) , percent overshoot (48), time to peak (49) , settling time (50) and steady state
position (51) are depicted in Figure 12. When comparing the open loop and closed loop MATLAB
responses, Figure 5 and Figure 12 respectively, it was found that the transient response is greatly
exacerbated when feedback was added.
: 72.53 [/]
(47)
: %. . 45.06 [%]
(48)
: 0.1255 []
(49)
: 0.6617 []
(50)
: 50 [/]
(51)
P a g e | 23
70
60
X: 0.3352
Y: 56.65
X: 1.6
Y: 50
X: 1.717
Y: 50
x(t) [m]
50
X: 0.6617
Y: 49
X: 0.44
Y: 46.39
40
X: 0.2303
Y: 37.75
30
20
10
0
0
0.2
0.4
0.6
0.8
1.2
1.4
1.6
1.8
Time [s]
Figure 12: [Part 2][MATLAB] - Step Input - Closed Loop Elevator Position (Neglecting Gravity)
P a g e | 24
: 70.93 [/]
(52)
: %. . 41.89 [%]
(53)
: 0.1323 []
(54)
: 0.6033 []
(55)
: 50 [/]
(56)
From the middle subplot of Figure 13 , the maximum motor current (57) and steady state current (58)
were observed.
: 3.211 106 []
(57)
: 970.6 []
(58)
From the bottom subplot of Figure 13 , the maximum torque (59) and steady state torque (60) were
ascertained.
: 13.97 106 [ ]
(59)
: 4223 [ ]
(60)
P a g e | 25
x(t) [m]
100
X: 0.1323
Y: 70.93
X: 0.6033
Y: 50.96
0.4
Ia(t) [Amps]
x 10
X: 0.2286
Y: 1.58e+06
X: 0.0275
Y: 3.212e+06
0.2
0.4
x 10
X: 0.2286
Y: 6.875e+06
X: 0.0275
Y: 1.397e+07
0.8
1
1.2
Time [s]
Part 2. Task (1) . Section (e) . Item (iii) - [Simulink]
[ Motor Current Ia(t) ] Closed-Loop - Step Response - (WITH Gravity)
Peak Motor Current = 3.211*106 [A]
Steady State Current = 970.6 [A]
-5
0
0.6
0.6
X: 1.714
Y: 49.99
50
0
0
Tm(t) [N*m]
1.4
1.6
X: 1.717
Y: 970.6
X: 1.201
Y: -4187
0.8
1
1.2
Time [s]
Part 2. Task (1) . Section (e) . Item (iii) - [Simulink]
[ Motor Torque T m(t) ] Closed-Loop - Step Response - (WITH Gravity)
1.8
1.4
1.6
1.8
X: 1.715
Y: 4168
X: 1.201
Y: -1.822e+04
-2
0
0.2
0.4
0.6
0.8
1.2
1.4
1.6
1.8
Time [s]
Figure 13: [Part 2][Simulink] - Step Input - Closed Loop Elevator Position, Motor Current and Torque Response (With Gravity)
P a g e | 26
Simulation:
Figure Reference:
Symbol:
max(
Max Difference*
)
Max Position
Percent
%. .
Overshoot
Peak Time
Settling Time
Steady State
Velocity
Steady State
Position
Current
Current
Torque
Torque
*
Maximum Difference, described by (42).
Parameter:
Max Velocity
[MATLAB]
(No Gravity)
[Simulink]
(With Gravity)
Figure 5
Figure 6
Figure 7
Figure 8
Figure 12
Figure 13
4.282
4.3530
4.079
[/]
0.331
[]
72.53
70.93
[%]
1.730
3.4970
3.5
45.06
41.89
[]
[]
0.1311
0.1440
0.1097
0.1406
0.1108
0.1419
0.1255
0.6617
0.1323
0.6033
[/]
4.2050
4.2060
3.9410
[]
50
50
[]
[]
[ ]
[ ]
9246
27.23
40230
118.5
9564
917.2
41610
3990
3.211 106
970.6
13.97 106
4223
Units:
[/]
P a g e | 27
System Model:
A new Simulink system model was generated which has incorporated the lag compensator. Saturation
limitations were imposed on the system based upon the physical constraints identified.
P a g e | 28
=
0 0 = [
=
1
= 2 6.02 dB
0.5
0
0
=
= 0.096 40.4 dB
]
3 + 2 + 1 s=0 1
= [] [] 209 46.4 dB
(61)
(62)
(63)
P a g e | 29
(64)
on the
s plane
ox
Figure 16: Lag Compensation Pole and Zero Locations on the S Plane
To visualize the open loop transfer function of (13) with the forward gain in (63), in the context of
negative unity feedback = 1, a bode plot of the KGH was generated and is shown in Figure 17.
Part 3. [MATLAB] Open-Loop - Bode Plot - KGH - (Neglecting Gravity - Without Compensator)
Feedback H = 1 ; Forward Gain K = 209.2367
Magnitude (dB)
50
System: untitled1
Frequency (rad/s): 2
Magnitude (dB): -0.0206
System: untitled1
Frequency (rad/s): 10.7
Magnitude (dB): -14.7
-50
-100
System: untitled1
Frequency (rad/s): 2
Phase (deg): -94.7
-90
System: untitled1
Frequency (rad/s): 10.7
Phase (deg): -115
Phase (deg)
-135
-180
-225
-270
-3
10
-2
10
-1
10
10
Frequency (rad/s)
10
10
Figure 17: [Part 3] Bode Plot of [KGH] the Open Loop Transfer Function GH with the Forward Gain K
To attain the 15% overshoot specification, as a response of KGH to a step input, it was ascertained that the
phase margin in (65) was required.
= 55
(65)
Programatically, from the bode plot in Figure 17, the frequency (69) where the phase of KGH (67),
provided the desired phase margin (65) . The design parameter (66) was added for flexability in the
design.
= 10
= 180 + + = 115
| | 0.0006 64.6
rads
10.7
sec
(66)
(67)
(68)
(69)
P a g e | 30
The pole of the lag compensator (70) was then placed two decades before the phase margin frequency
identified in (69).
=
0.107
100
(70)
A gain attenuation factor for the lag compensator was then identified in (71). It is necessary to mention
that the value of in the preliminary design was incorrectly in decibels. The corrected value of
is
shown in (72) however, because this observation was made after the final design was completed the
preliminary design was not redone.
= | | 64.6
= | | 0.0006
(71)
(72)
(73)
A Bode plot of KGH s was then generated to validate the phase margin, however only a 15 phase
margin was observed. The compensated closed loop transfer function was used to evaluate transient
response. Due to a small phase margin, a large overshoot was observed causing the position, velocity and
motor voltage to saturate; these preliminary design results are suppressed for brevity.
Lag Compensator Iterative Design:
To fine tune the lag compensator design, multiple iterations were simulated and the resulting system
response was analyzed. Table 7 shows the iterations where the separation between the compensator
pole and zero and the location of the compensator pole were and the corresponding system
information which resulted from these changes. Some values are listed with (-) which indicates that that
value was not measured for that iteration due to blatant violations of specifications in other
measurements. A value listed with a plus or minus sign suffix (i.e. 25+ or 14-) indicates that the value was
not measured accurately and only served as general reference to the compensators effect on the
respective specification or constraint. Table 8 lists the percent error of the Table 7 iteration results with
respect to the specifications detailed in Table 2 and constraints listed in Table 1.
From the iterations detailed in Table 7, multiple conclusions can be drawn regarding the effects of a lag
compensator on the system in (13). First the forward gain is proportional to the overshoot of the
system and also has a strong effect on the acceleration of the system, however was observed to have
little or no effect on the maximum velocity. The location of the compensator pole and consequently the
placement of the zero appear to have a logarithmic inverse proportionality on the overshoot and
maximum velocity. The pole placement also appears proportional to the acceleration of the system.
Finally, the gain normalization factor had a small proportional effect on the overshoot and an even
smaller effect on the acceleration.
P a g e | 31
1
2
3
4
5
6
7
8
9
10
Constraints
Specifications
Forward
Gain
Zero
Pole
Gain
Normalizatio
n
Position
Velocity
Acceleration
Current
Steady
State
Overs
hoot
Rise
Time
Settling
Time
Steady
State
Error
ZLAG
PLAG
aLAG
Xmax
Vx max
ax max
Ia max
Xss
%O. S.
Tr
Ts
209.2
200.0
300.0
209.2
209.2
209.2
209.2
209.2
209.2
209.2
-6.9090
-6.9090
-6.9090
-0.6456
-64.5600
-50.0000
-75.0000
-25.0000
-25.0000
-75.0000
-0.1070
-0.1070
-0.1070
-0.0100
-1.0000
-1.0000
-1.0000
-1.0000
-0.5000
-1.5000
64.56
64.56
64.56
64.56
64.56
50.00
75.00
25.00
50.00
50.00
82.00
82.00
84.00
82.00+
66.50
66.13
66.50
65.30
72.20
55.38
12.35
12.35
12.35
6.0012.35
12.35
12.35
12.35
12.35
12.35
10.00
27.50
15.001.0025.0025.0024.00+
24.00+
20.0025.19
2000+
2000+
2500+
1000+
200020002000200020002000
49.88
49.87
49.87
49.87
11
1.504.07
100+
8-10
8-12
10-15
10-15
7.3
0.12
0.13
0.13
0.13
0.13
1
2
3
4
5
6
7
8
9
10
Constraints
Specifications
Forward
Gain
Zero
Pole
Gain
Normalization
Position
Velocity
Acceleration
Current
Steady
State
Oversh
oot
Rise
Time
Settling
Time
Steady
State
Error
ZLAG
PLAG
aLAG
Xmax
Vx max
ax max
Ia max
Xss
%O. S.
Tr
Ts
42.61%
42.61%
46.08%
42.61%
15.65%
15%
15.65%
13.57%
25.57%
3.69%
38.25%
38.25%
38.25%
70%
38.25%
38.25%
38.25%
38.25%
38.25%
38.25%
60%
10%
40%
96%
0%
0%
4%
4%
25%
0.76%
69.45%
69.45%
61.81%
84.72%
69.45%
69.45%
69.45%
69.45%
69.45%
69.45%
0.24%
0.26%
0.26%
0.26%
26.67%
40%
0%
471%
48.57%
42.86%
28.57%
28.57%
58.29%
76%
74%
74%
74%
74%
P a g e | 32
= =
1
0
1 = (
)
[
]
3
3 + 2 2 + 1 + 0
(74)
A rigorous analysis of the system in (74) has been performed in the following section where the elevator
was fully loaded (75) and a brief analysis at half load (76) has been included in the appendix.
20[] 100 [
] 2000 []
(75)
] 1000 []
(76)
10[] 100 [
Table 9: [Part 3] Summary of the Final Open Loop Transfer Function Coefficients
1
1
209.2
209.2
50
50
75
75
1.5
1.5
14.37
15.46
1504
1617
61.03
61.03
Dependencies
Forward Gain
System Coefficients
Parameters
Parameter
Compensator
P a g e | 33
Figure 18: [Part 3] - System Circuit Realization - Initial Gain Block and Summing Junction
P a g e | 34
Figure 19: [Part 3] - System Circuit Realization - Final Lag Compensator Design
P a g e | 35
100
50
Magnitude (dB)
(77)
System: untitled1
Frequency (rad/s): 1.44
Magnitude (dB): -0.0182
-50
-100
-150
-90
System: untitled1
Frequency (rad/s): 1.44
Phase (deg): -136
Phase (deg)
-135
-180
-225
-270
-315
-3
10
-2
10
-1
10
10
Frequency (rad/s)
10
10
P a g e | 36
40
0.11
0.16
20
0.26
0.45
0
-20
-40
0.45
0.26
System: Gx_comp
Gain: 1.71e+03
Pole: -0.412 - 4.9i
Damping: 0.0838
Overshoot (%): 76.8
Frequency (rad/s): 4.92
0.16
0.08
0.11
-5
-4
10
20
30
40
0.054
0.034
0.016
50
-3
-2
-1
0
1
2
Real Axis (seconds-1)
Part 3. [MATLAB] Open-Loop Positional Root Locus - (Neglecting Gravity - Compensated)
Testing Kmax Calculated (The Locus Lines Should Cross the j Axis)
30
20
10
System: Gx_comp
Gain: 235
Compensator Zero
ZLAG
@K=209, the dominant pole is in LHP -> System is stable
System Poles
0
System: Gx_comp
Gain: 235
Pole: -0.703 - 1.7i
Damping: 0.383
Overshoot (%): 27.2
Frequency (rad/s): 1.84
-10
-20
-30
-80
-70
-60
-50
-40
-30
-20
-10
10
Figure 21: [Part 3][MATLAB] Open Loop Root Locus Analysis (Neglecting Gravity)
P a g e | 37
:
62.2 []
: %. . 24 [%]
: 0 []
(78)
(79)
(80)
70
System: untitled1
Time (seconds): 2
Amplitude: 62.2
%O.S. = 24 [%]
Maximum Position = 62.2 [m]
60
System: untitled1
Time (seconds): 6
Amplitude: 50.7
System: untitled1
Time (seconds): 8
Amplitude: 49.8
50
x(t) [m]
40
System: untitled1
Time (seconds): 1.16
Amplitude: 45
System: untitled1
Time (seconds): 17
Amplitude: 50
System: untitled1
Time (seconds): 4
Amplitude: 47
30
Rise Time =1.160 [s] - 0.305 [s] = 0.855 [s]
20
10
0
0
System: untitled1
Time (seconds): 0.305
Amplitude: 5
10
Time [s] (seconds)
12
14
16
18
Figure 22: [Part 3][MATLAB] - Step Input - Closed Loop Step Response of the Final Compensated System
P a g e | 38
A step response of 50 [] was then applied to the closed loop system and the response was analyzed in
Simulink. The elevators movement characteristics are shown in Figure 23, and the motors load characteristics
are depicted in Figure 24.
From the top subplot of Figure 23, the maximum position (81), the positional overshoot(82), settling time (83),
percent overshoot (84) , and steady state error (85) were observed, and it was seen that (81), (82) and (83) were
within the physical constraints listed in Table 1 and the performance specifications listed in Table 2.
: . []
(81)
: . []
(82)
: . []
(83)
: %. . 10.78 [%]
(84)
0.13 []
(85)
From the middle subplot of Figure 23, the maximum velocity was observed, and was found to be within the
constraints listed in Table 1.
: . [/]
From the bottom subplot of Figure 23, the maximum acceleration was observed.
(86)
The initial maximum
acceleration (87) violated its constraint and lasted roughly one fifth of a second. The deceleration stage
maximum (88) lasted for roughly 3 [] and was found to be within the constraints listed in Table 1.
: 143.5 [/ 2 ]
(87)
: . [/ ]
(88)
From the top subplot of Figure 24, the maximum armature voltage clipped, but was found to be at the maximum
constraints listed in Table 1.
: []
(89)
From the middle subplot of Figure 24, the initial maximum armature current (90) violated constraints, but the
maximum deceleration current (91) lasted for roughly 1 [] and was found to be within the constraints listed in
Table 1.
:
17770 [ ]
[]
(90)
(91)
From the bottom subplot of Figure 24, the initial maximum motor torque (92) lasted roughly one fifth of a second
and violated constraints, but the maximum deceleration torque (93) lasted for roughly 1 [] and was found to be
within the constraints listed in Table 1.
:
77330 [ ]
(92)
: [ ]
(93)
P a g e | 39
x(t) [m]
60
40
X: 4.845
Y: 55.39
X: 7.3
Y: 48.86
X: 17
Y: 49.87
20
0
0
10
Time [s]
12
14
16
18
20
Vx(t) [m/s]
20
X: 0.1866
Y: 12.53
X: 2.05
Y: 12.35
X: 4.227
Y: 12.35
10
Maximum Velocity = 12.53 [m/s]
X: 4.859
Y: -0.07697
X: 7.3
Y: 1.19
-10
0
Ax(t) [m/s2]
200
X: 0.0775
Y: 143.5
10
Time [s]
X: 17
Y: -0.0004907
12
14
16
18
20
100
0
X: 0.1604
Y: -0.07735
-100
0
X: 8.841
Y: -0.0003095
X: 4.359
Y: -25.19
X: 5.58
Y: -0.001324
X: 7.3
Y: 1.315
X: 17
Y: -0.00227
10
Time [s]
12
14
16
18
20
P a g e | 40
Part 3. - [Simulink] - Closed-Loop - Step Response 2 - (WITH Gravity And Saturation Blocks)
[ Motor Drive Output Voltage E a(t) ]
X: 0.1278
Y: 1320
X: 1.983
Y: 1320
X: 4.2
Y: 1320
1000
Maximum Armature Voltage = 1320 [V]
X: 7.3
Y: 156.6
X: 4.836
Y: -0.5125
X: 17
Y: 27.67
X: 9.207
Y: -0.1748
-1000
0
2
4
Ia(t) [Amps]
X: 0.07716
Y: 1.777e+04
X: 0.1866
Y: 382.9
0
X: 4.36
Y: -1994
2
4
x 10
5
0
-5
0
10
12
Time [s]
[ Motor Drive Output Current Ia(t) ]
14
16
18
20
18
20
18
20
10
-1
0
Tm(t) [N*m]
Ea(t) [V]
2000
X: 5.227
Y: 0.0527
X: 7.3
Y: 1054
X: 0.07716
Y: 7.733e+04
X: 17
Y: 891.3
10
Time [s]
[ Motor Torque T m(t) ]
12
14
16
X: 0.1866
Y: 1666
X: 4.33
Y: -8075
X: 5.227
Y: 0.2293
X: 7.3
Y: 4584
X: 17
Y: 3878
10
Time [s]
12
14
16
P a g e | 41
(94)
12.35 [/]
(95)
10.58 [/ 2 ]
(96)
Part 3. - [Simulink] - Closed-Loop - Ramp Response - (WITH Gravity And Saturation Blocks)
[ Translational Position x(t) ]
80
The Elevator Hit the Roof @ X = 61 [m]
x(t) [m]
60
X: 6.612
Y: 61
40
0
0
10
12
Time [s]
[ Translational Velocity Vx(t) ]
14
16
18
20
18
20
X: 2.004
Y: 12.35
15
Vx(t) [m/s]
X: 17
Y: 61
20
X: 7.183
Y: 12.35
10
5
X: 10.03
Y: 61
X: 5
Y: 44.75
X: 5
Y: 9.86
X: 12
Y: 12.35
X: 17
Y: 12.35
0
-5
0
10
12
Time [s]
[ Translational Acceleration Ax(t) ]
14
16
Ax(t) [m/s2]
20
Maximum Acceleration = 10.58 [m/s 2]
X: 0.7587
Y: 10.58
10
X: 5
Y: 0.5539
X: 2.004
Y: 5.207e-05
X: 7.036
Y: 8.965
X: 7.143
Y: -0.3118
0
X: 6.615
Y: -0.1399
-10
0
X: 17
Y: -4.396e-13
10
Time [s]
12
14
16
18
20
P a g e | 42
From the first, second and third subplots of Figure 25, it was observed that the motor voltage (97), current (98) and torque (99) are all within the
step input constraints establish in Table 1 , for a ramp input of 10 [/].
Ea(t) [V]
(97)
2164 []
(98)
9413 [ ]
(99)
Part 3. - [Simulink] - Closed-Loop - Ramp Response 2 - (WITH Gravity And Saturation Blocks)
[ Motor Drive Output Voltage E a(t) ]
X: 2
Y: 1320
1500
1320 []
X: 7.035
Y: 1320
X: 11.98
Y: 1320
1000
X: 17
Y: 1320
500
0
0
10
12
Time [s]
[ Motor Drive Output Current Ia(t) ]
14
16
18
20
18
20
18
20
Ia(t) [Amps]
3000
X: 0.7889
Y: 2164
2000
X: 7.146
Y: 934.6
1000
Tm(t) [N*m]
X: 17
Y: 971.3
X: 2.772
Y: 667.1
0
0
10000
X: 7.036
Y: 2021
X: 0.7889
Y: 9413
10
Time [s]
[ Motor Torque T m(t) ]
12
14
16
X: 7.044
Y: 8567
5000
X: 17
Y: 4226
X: 2.772
Y: 2903
0
0
10
Time [s]
12
14
16
P a g e | 43
Table
Reference
Constraints
Table 1
Step
Specification
Table 2
Item
Parameter
Units
Expected
Value
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
2.0
2.1
2.2
2.3
2.4
2.5
2.6
%. .
[]
[/]
[/ 2 ]
[]
[]
[ ]
[]
[]
[]
[]
[]
[%]
[]
[]
[]
61
20
25
1320
6546
5385
12
11
50
0.5
50
15
2.5
7
17
Full Load
MATLAB
Value
Full Load
Simulink
Value
Half Load
Simulink
Value
Worst
Case
Value
62.2
NTN*
0
50
24
55.39
12.53
143.5
1320
17770
77330
NTN*
NTN*
NTN*
0.13
49.87
11.08
55.41
12.65
143.6
1320
17684
76939
NTN*
NTN*
NTN*
0.119
49.88
11.09
0.855
2.512
2.507
8
-
7.3
NTN*
7.3
NTN*
55.41
12.65
143.6
1320
17770
77330
NTN*
NTN*
NTN*
0.13
49.88
10.78
2.512
2.507
7.3
NTN*
9.16 [%]
36.75 [%]
474.4 [%]
0 [%]
171.5 [%]
1336 [%]
NTN*
NTN*
NTN*
74.0 [%]
0.26 [%]
0.48 [%]
64.11 [%]
58.8 [%]
100 [%]
Ramp
[/]
3.0
10
Specification
[/]
3.1
**
0.1
0.2
Table 3
1
Peak Occurs At System Turn On Point, Within the First
[] of the Step Response.
5
*
No Test Necessary (NTN) , Implementation Grantees The Requirement Is Met.
**
Steady State Error to a Ramp Input After 5 []
Worst Case
% Deviation
NTN
Design
Requirement
Met In
Simulink
Yes
Yes
No
Yes
No
No
NTN*
NTN*
NTN*
Yes
Yes
Yes
Yes
Yes
NTN*
No
P a g e | 44
Table 11: [Part 3] Final Design Simplified Comparison to Constraints and Specifications
1
2
3
4
5
6
Simulink
Description
Expected
(w/Units)
Value
[]
61
[/]
20
[/ 2 ]
25
[]
1320
[]
6546
[ ]
5385
1
2
3
4
5
6
7
Simulink
Description
Expected
(w/Units)
Value
[]
0.5
[]
50
%. . [%]
15
[]
2.5
[]
7
[]
17
[/]
0.1
Constraints
Target
Specification
Actual Value
Full-Load
55.39
12.53
143.5
1320
17770
77330
50% Load
55.41
12.65
143.6
1320
17684
76939
Actual Value
Full-Load
0.13
49.87
11.08
2.512
2.512
7.3
0.2
50% Load
0.119
49.88
11.09
2.507
2.507
7.3
0
Met
% Deviation
(Yes/No)
Yes
9.16 [%]
Yes
36.75 [%]
[%]
No
474.4
Yes
0 [%]
171.5 [%] No
1336 [%] No
Met
% Deviation
(Yes/No)
Yes
74.0 [%]
Yes
0.26 [%]
Yes
[%]
Yes
0.48
Yes
64.11 [%]
Yes
58.8 [%]
No
100 [%]
P a g e | 45
An additional simulation was performed where a saturation block was added to limit the armature current to a maximum of 6546 []. A
summary of the new systems performance compared to the established physical constraints and desired performance specifications has been
summarized in Table 12. Notably, the same specifications and constraints which were met without the current saturation block, Table 10, were
also met with the addition of the current saturation block, Table 12, and the same constraints were still violated, though to a lesser degree.
Table 12: [Part 3] Final Design (With Current Saturation Block) Comparison to Constraints and Specifications
Table
Reference
Constraints
Table 1
Step
Specification
Table 2
Item
Parameter
Units
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
2.0
2.1
2.2
2.3
2.4
2.5
2.6
%. .
[]
[/]
[/ 2 ]
[]
[]
[
]
[]
[]
[]
[]
[]
[%]
[]
[]
[]
Absolute
Difference
% Difference
Change
Summary
55.39
12.53
143.5
1320
17770
55.39
12.49
48.20
1320
6546
0
0.04
95.3
0
11220
0 [%]
0.32 [%]
66.41 [%]
0 [%]
63.16 [%]
Same
Decrease
Decrease
Same
Decrease
77330
28480
48850
63.17 [%]
Decrease
12
11
50
0.13
49.87
11.08
12
11
50
0.13
49.87
11.08
NTN*
NTN*
NTN*
0
0
0
2.512
2.512
7.3
7.379
0.079
NTN*
NTN*
NTN*
NTN*
0 [%]
0 [%]
0 [%]
0 [%]
0 [%]
1.08 [%]
NTN*
NTN*
NTN*
Same
Same
Same
Same
Same
Increase
NTN*
NTN*
35 [%]
Decrease
Ramp
[/]
3.0
10
10
Specification
[/]
3.1
**
0.2
0.13
Table 3
1
Peak Occurs At System Turn On Point, Within the First
[] of the Step Response.
5
*
No Test Necessary (NTN) , Implementation Grantees The Requirement Is Met.
0.07
P a g e | 46
Conclusion:
In this study a new control system for the Twilight Zone Tower of Terror was designed to meet a set of
constraints and specifications. The resulting system was tested by applying a step input of 50 [] and a
ramp input of 10 [/]. It was found that five out of the eight constraints and all of the specifications
were met for the step input.
Notably, during the first fifth of a second (turn on point) after a step input of 50 [] is applied to the
final compensated system in (74), the elevator velocity (86), acceleration (88) , the motor voltage (89) ,
current (90) and torque (92) all peak as shown in Figure 23 and Figure 24. This is due to the infinite slope
at the start of a step input.
The first of three constraints violated, at the turn on point, was the maximum motor current draw,
constrained to 6546 []. At the turn on point, the motor current peaks at 17,770 []. This peak current is
due to the ideal motor drive assumed in the simulations. In a realistic system, the motor drive would be
designed to provide a much smaller current than that seen in the simulation, and have protection
designed to prevent this large current spike.
The second constraint violated was the peak motor output torque, constrained to 5385 [ ]. At the
turn on point, this torque peaked at 77330 [ ]. The current limit previously discussed would also
serve to prevent a violation of the maximum torque. This is due to the relationship between the motor
torque and current, = .
The final violated constraint was the elevator acceleration, constrained to 25 [/ 2 ]. The acceleration
initially peaked at 143.5 [ 2 ]. The current limit previously discussed would again serve to prevent a
violation of the maximum acceleration. This is because of the relationship between acceleration and
current, = = .
In order to simulate the realistic current limit a saturation block of 6546 [] was added to the Simulink
system in Figure 14. The same step input of 50 [] was applied to the Simulink system at full load with
the current saturation block and a comparison of parameters was performed in Table 12. Notably, the
aforementioned current, torque, and acceleration were significantly reduced at the turn on point, and all
of the step specifications were still met.
Upon the introduction of the current saturation block into the Simulink model, the current, torque, and
acceleration peaks all decreased by approximately 60 %, yielding final values of 6546 [] , 28480 [ ]
and 48.2 [/ 2 ] , respectively.
The peak values of the current, torque, and acceleration can be further reduced by the application of a
ramp input 10 [/] as observed in Figure 25 and Figure 26. Therefore it may be advisable to provide a
ramp input until the magnitude of the step desired is reached.
Further limitations of the motor current combined with the initial application of a ramp input will serve to
ensure safety and enhance the Twilight Zone Tower of Terror II theme park experience!
P a g e | 47
The Tech of the Tower of Terror, Tower of Terror Walt Disney World By Martin Smith,
https://eeyoreandhs.wordpress.com/2011/04/18/the-tech-of-the-tower-of-terror/
Downloaded: January 11, 2015.
[2]
Controls Project Part I - s15.docx, Linear Control Systems EE-315-S01 Lecture Content, Web Site:
https://d2l.sdbor.edu/d2l/le/content/653305/viewContent/3440333/View
Downloaded: January 22, 2015.
[3]
[4]
[5]
Hyperloop: What is a physically comfortable rate of acceleration for human beings?, Web Site:
http://www.quora.com/Hyperloop/What-is-a-physically-comfortable-rate-of-acceleration-forhuman-beings
Viewed: March 29, 2015.
[6]
EE315 Group Assignment.pdf, Linear Control Systems EE-315-S01 Lecture Content, Web Site:
https://d2l.sdbor.edu/d2l/le/content/653305/viewContent/3568607/View
Downloaded: January 31, 2015
[7]
Guidelines for Writing Reports for The Electrical Engineering Program under The Department of
Electrical Engineering and Computer Science Approved by EE Faculty Dec. 7, 2008, Web Site:
http://www.sdstate.edu/eecs/for-students/
Downloaded: January 11, 2015.
[8]
Using the correct terms Shall, Will, Should, Requirements Experts, Posted October 9th 2012,
Web Site:
http://www.reqexperts.com/blog/2012/10/using-the-correct-terms-shall-will-should/
Viewed: April 23, 2015.
[9]
Nise, N. Control Systems Engineering. United States: R. R. Donnelly Willard, 6th edition
P a g e | 48
Appendices:
A [ Part 1 ] [ Task 3 ] System Gain Derivations:
Assumptions
For simplicity in the part one analysis, two assumptions have been made. First, the torque due to gravity
was ignored. Second, the springs are assumed to have an infinite rigidity.
Assumption #1: ( = 0 )
Assumption #2: ( 2 = 0 )
~Circuits Fundamentals Approach to the System Gain Derivation~
Finding the systems transfer function =
Starting from the LHS of Figure 3, we then defined the equivalent impedance due to the motor windings
= +
(100)
(101)
(102)
(103)
assumption( 2
(104)
=0):
=
Now, defining the admittance at nodes , and :
(105)
= + 2
= 4 + 4
= +
Reflecting all admittances from nodes and to :
(106)
(107)
(108)
= (
) 2
(109)
= + + = + + (
(110)
) (4 + 4 ) + ( ) 2 + 2
(111)
P a g e | 49
= ( ) 2 + ( ) (4 ) +
(112)
= ( ) 2 2 + ( ) (4 ) +
(113)
)
+
(115)
) = ( ) (
)
(116)
= (
Reflecting node to node :
= (
(114)
Dividing through by and dividing through by (Time Domain Integration) yields the desired Transfer
Function:
( )
1
1
=
=( )
= ( )(
)
( ) +
(117)
Back substituting into the Transfer Function yields a fundamental, but simplified form:
1
( ) ( )
=
(
( +
2
2
+ ( ) (4 + 4 ) + ( )
(118)
2
+ 2 ) + +
Further multiplying out the denominator and collecting like terms yields:
2
= (( + 4 ( ) + ( )
2 ) 2
+ ( + 4 ( ) + ( )
2 2 ) 1
2
+ ( + + + 4 ( ) + 4 ( ) + ( )
+(
(119)
2
2
2 2 ))
P a g e | 50
The Circuits Approach yields a fundamental monic form described by the coefficients in Table 13:
Table 13: [Part 1] Circuits Approach Transfer Function Coefficients
Numerator
0 = (
Denominator
( ) + 4 2
2
0 = 0
2
+ )
1 = 0
1 = (
4 2 + 2 2
2
( ) + 4
+ ( ) + ( )
+ 2
2 =0
3 =0
=(
( ) + 4 2 + 4 2 + 2
2
( ) + 4
+ 2
3 =1
P a g e | 51
~Masons Gain Rule Systems Level Approach to The System Gain Derivation~
Finding the systems transfer function =
In order to apply Masons Gain Rule on the system block diagram depicted in Figure 4, the One At A Time
(1AAT) Loop gains were defined3:
1
1
1
1
) =
) ( ) (
+
+
1
1
1
2 ( ) ( ) ( ) =
Next the system characteristic was calculated:
1 (
1
1
+
+
1 + + + +
=
+
The forward path of the system block diagram depicted in Figure 4 was then identified.
(120)
(121)
= 1 1 + 2 = 1 +
(122)
( )
1
1
1
1
1
(123)
1 (
) ( ) ( ) ( ) ( ) = 2
+
+
By observation, the forward gain shares signals with all Loop Gains, so the coefficient 1 was calculated to
be:
1 = 1
Masons Gain Rule then yields the desired transfer function:
=
=
( )
2
+
+ + + +
+
( )
1
=
+ + + +
( )
1
=
( ) 2 + ( + ) + ( + )
The final transfer function in monic form becomes:
(124)
(125)
(126)
(127)
No simultaneous (ie: 2AAT, 3AAT) loops exist in the system block diagram depicted in Error! Reference
ource not found..
P a g e | 52
( )
( )
(128)
(
)
(
)
3 +
2 +
+0
( )
( )
The Masons Gain Rule system level approach yields a monic form described by the coefficients in Table
=
14:
Table 14: [Part 1] MGR Transfer Function Coefficients
Numerator
0 = (
( )
Denominator
0 =0
1 = 0
1 =
2 =0
2 =
3 =0
( + )
( )
( + )
( )
3 = 1
P a g e | 53
UN
Pout
Pout
Jm
Ra
La
IN
(Ea in
Vdc)
(nm in
rpm)
(kW)
(hp)
(kg m2)
(m)
(mH)
(A)
(Nm)
117
440
804
284
381
5.9
38
0.86
745
3378
117
470
845
299
401
5.9
38
0.86
745
3377
119
470
735
308
413
6.7
43
0.99
720
4007
119
440
839
347
465
6.7
29
0.61
860
3954
127
440
844
300
402
5.9
38
0.51
745
3396
127
470
906
322
432
5.9
38
0.51
744
3392
129
470
745
320
429
6.7
43
0.59
745
4099
133
440
886
302
405
6.5
34
0.92
747
3250
135
470
759
320
429
7.8
41
1.14
745
4018
10
137
440
729
348
467
8.9
29
0.93
909
4561
11
143
440
866
300
402
6.5
40
0.57
747
3311
12
151
470
825
284
381
11
54.8
0.92
675
3285
Motor
#
Pg. #
P a g e | 54
P a g e | 55
Figure 28: [Part 1] Designated Motor (#11) From The ABB DC-Motors Catalog [3]
P a g e | 56
Figure 29: [Part 3][MATLAB] Routh Hurwitz Analysis - Finding Open Loop Gain K
P a g e | 57
Part 2. Task (1) . Section (e) . Item (i) - CLOSED-Loop Positional Step Response - (Neglecting Gravity)]
Finding the Maximum Closed Loop Gain K_max:
------------------------------------------------------------------------Performing A Routh Hurwitz Stability Analysis On The Following Characteristic Polynomial:
-+
1.0,
1503.7642105939680732262786477804
|
|
|
61.027695723276671913026802940294,
14.373808673859363338465300330426 K_SYMS |
|
|
14.373808673859363338465300330427 K_SYMS,
|
P a g e | 58
+-
-+
For the system to be stable the first row must have the SAME sign (No Right Hand Plane Poles):
Each element in the first row has been compared with zero [eval(c(:,1)>0)] the results are displayed below:
+|
-+
1.0
|
|
|
|
1.0
|
|
|
0.0 < K_SYMS
|
-+
User discretion is advised for the following reported K_max (Closed Loop - Forward Path Gain)
Large changes in this system may cause undecipherable regions of stability - utilizing the current method K_max may be indeterminable
The closed loop gain (K_SYMS) produces a stable system for the following values and or intervals:
(0.0, 6384.6171022562712717332100818435)
K_max Has Been Identified!!!
Maximum magnitude of the Open-Loop Gain:[K_max] = 6384.6171
P a g e | 59
% Clean Up Commands
clc
clear all
close all
close all hidden
format long
% Figure Positions
rightScreen_Small_normalized=[0.525, 0.075, 0.45, 0.825]; %[x y w h]
leftScreen_Small_normalized=[0.025, 0.075, 0.45, 0.825]; %[x y w h]
rightScreen_fit_normalized=[0.505, 0.05, 0.492, 0.8725]; %[x y w h]
leftScreen_fit_normalized=[0.005, 0.05, 0.492, 0.8725]; %[x y w h]
fullScreen_fit_normalized=[0.005, 0.05, 0.99, 0.8725]; %[x y w h]
wholeScreen_normalized=[0,0,1,1]; %[x y w h]
disp('Jordan, Joshua, Jeremy (04/27/2015)')
%% -------------------------------------------------------------------------disp('Part 2. Task (1) . Section (a) . Item (i)')
disp('Variable Definitions (See Code) - Using Motor #11')
% Motor #11
Jm = 6.5; % Kg*m^2
Jg = 250; % Kg*m^2
Me_full_load = 2000; %Kg
Me_half_load = 1000; %Kg
Me = 7500+Me_half_load; % Kg % for full load analysis
%Me = 7500+Me_half_load; % Kg % for half load analysis
r = 1; % m
Dm = 0.117; % N*m*s*(rad^-1)
Dg = 75.8; % N*m*s*(rad^-1)
De = 151.6; % N*s*(m^-1)
kt = 3250/747; % N*m*(A^-1) % Numerical Value (4.350736278447122) From Dr. Hietpas (Discussed
and comprehended)
kb = kt; % V*(rad^-1)*s
%kc = inf; % Infinitely stiff springs % N*(m^-1)
Ra = 31.1 * 10^(-3); % Ohms
La = 0.51* 10^(-3); % H % Numerical Value From Dr. Hietpas was(0.92 mH) ? Double Checked with
datasheet = (0.51 mH)
Nm = 60; % Gear Teeth
Ng = 1440; % Gear Teeth
UN = 440; % Vdc
ag = 9.8; % Acceleration Of Gravity % m*(s^-2)
P a g e | 60
P a g e | 61
P a g e | 62
P a g e | 63
P a g e | 64
P a g e | 65
Ax(t) [m/s2]
Vx(t) [m/s]
x(t) [m]
Part 3. - [Simulink] - Closed-Loop - Step Response - (WITH Gravity And Saturation Blocks)
[ Translational Position x(t) ]
100
50
0
0
10
Time [s]
12
14
16
18
20
14
16
18
20
14
16
18
20
-20
0
10
Time [s]
12
X: 0.07713
Y: 143.6
10
Time [s]
12
Figure 30: [Part 3][Simulink][Half Load] - Step Input - Elevator Movement Characteristics
Elevator Position, Velocity and Acceleration
P a g e | 66
Ia(t) [Amps]
2000
0
-2000
0
T m(t) [N*m]
Ea(t) [V]
Part 3. - [Simulink] - Closed-Loop - Step Response - (WITH Gravity And Saturation Blocks)
[ Motor Drive Output Voltage Ea(t) ]
10
Time [s]
12
14
16
18
20
14
16
18
20
14
16
18
20
x 10
2
0
-2
0
10
Time [s]
12
x 10
1
0 X:Y: 0.07713
7.693e+04
-1
0
2
10
Time [s]
12
Figure 31: [Part 3][Simulink][Half Load] - Closed-Loop - Step Response - (WITH Gravity And Saturation Blocks)
[ Motor Drive Output Voltage E_a(t) ]
P a g e | 67
Ax(t) [m/s ]
Vx(t) [m/s]
x(t) [m]
Part 3. - [Simulink] - Closed-Loop - Ramp Response - (WITH Gravity And Saturation Blocks)
[ Translational Position x(t) ]
100
50
0
0
10
Time [s]
12
14
16
18
20
14
16
18
20
14
16
18
20
10
Time [s]
12
X: 0.7543
Y: 10.55
10
Time [s]
12
Figure 32: [Part 3][Simulink][Half Load] - Closed-Loop - Ramp Response - (WITH Gravity And Saturation Blocks)
[ Translational Position x(t) ]
P a g e | 68
Ea(t) [V]
Ia(t) [Amps]
T m(t) [N*m]
Part 3. - [Simulink] - Closed-Loop - Ramp Response 2 - (WITH Gravity And Saturation Blocks)
[ Motor Drive Output Voltage Ea(t) ]
2000
1000
Maximum Voltage = 1320 [V]
0
0
2
4
6
8
10
12
14
16
18
20
Time [s]
[ Motor Drive Output Current Ia(t) ]
4000
2000
0
0
10
Time [s]
12
14
16
18
20
14
16
18
20
X: 0.7744
Y: 8993
10
Time [s]
12
Figure 33: [Part 3][Simulink][Half Load] - Closed-Loop - Ramp Response 2 - (WITH Gravity And Saturation Blocks)
[ Motor Drive Output Voltage E_a(t) ]
P a g e | 69
Table List:
Table 1: [Part 3] Physical System Constraints and Customer Non Negotiables............................................ 4
Table 2: [Part 3] Desired (Type 0) Positional Performance Specifications Step Input .................................. 5
Table 3: [Part 3] Desired (Type 1) Positional Performance Specifications Ramp Input ................................ 6
Table 4: [Part 1] Summary of Positional Transfer Function Coefficients ....................................................... 10
Table 5: [Part 1] Motor Parameters Corresponding to Motor #11 (See Figure 28)....................................... 12
Table 6: [Part 2] Original System Simulation Summary ................................................................................. 27
Table 7: [Part 3] Lag Compensator Design Simulink Values by Iteration ................................................. 32
Table 8: [Part 3] Lag Compensator Design Simulink Error Analysis by Iteration ..................................... 32
Table 9: [Part 3] Summary of the Final Open Loop Transfer Function Coefficients ...................................... 33
Table 10: [Part 3] Final Design Comparison to Constraints and Specifications ............................................. 44
Table 11: [Part 3] Final Design Simplified Comparison to Constraints and Specifications ............................ 45
Table 12: [Part 3] Final Design (With Current Saturation Block) Comparison to Constraints and
Specifications ................................................................................................................................................. 46
Table 13: [Part 1] Circuits Approach Transfer Function Coefficients ............................................................. 51
Table 14: [Part 1] MGR Transfer Function Coefficients ................................................................................. 53
Table 15: [Part 1] Motor Selection from the ABB DC-Motors Catalog .......................................................... 54
P a g e | 71
Table of Contents:
EE 315 Linear Control Systems......................................................................................................................... 1
Background: ................................................................................................................................................. 2
Introduction: ................................................................................................................................................ 3
(0)PART ZERO DESIGN SPECIFICATIONS AND CONSTRAINTS ................................................................... 4
System Constraints: ................................................................................................................................. 4
System Specifications for a Step Input: ................................................................................................... 5
System Specifications for a Ramp Input: ................................................................................................. 5
(1)PART ONE THEORETICAL ANALYSIS ...................................................................................................... 7
Electrical Equivalent Model: .................................................................................................................... 7
System Transfer Function: ....................................................................................................................... 8
Motor Selection: .................................................................................................................................... 11
(2)PART TWO - SIMULATION ..................................................................................................................... 13
Original System - Open Loop Simulations: ............................................................................................. 13
Original System - Stability Analysis: ....................................................................................................... 20
Original System with Feedback - Closed Loop Simulations: .................................................................. 21
Original System - Simulations Summary: ............................................................................................... 27
(3)PART THREE - DESIGN ........................................................................................................................... 28
Design Process: ...................................................................................................................................... 28
Final Design Summary of Parameters: ................................................................................................ 33
Final Design Lag Compensator Circuit Realization: ............................................................................. 34
Final Design System Characterization: ................................................................................................ 36
Final Design Comparison to Constraints and Specifications: .............................................................. 44
Conclusion: ................................................................................................................................................ 47
Works Citied & Works Consulted: ............................................................................................................. 48
Appendices:.................................................................................................................................................... 49
A [ Part 1 ] [ Task 3 ] System Gain Derivations: ................................................................................. 49
~Circuits Fundamentals Approach to the System Gain Derivation~ ...................................................... 49
~Masons Gain Rule Systems Level Approach to The System Gain Derivation~ ................................... 52
B [ Part 1 ] Task 4 Motor Selection: .................................................................................................. 54
C [ Part 2 ] Routh Hurwitz System Stability Analysis:........................................................................... 57
(Figure)Routh Hurwitz Stability Analysis MATLAB Output: ................................................................... 57
(Text)Routh Hurwitz Stability Analysis MATLAB Output:....................................................................... 58
D [ Part 3 ] MATLAB Code First Compensator Design: ...................................................................... 60
E [ Part 3 ] Simulink Final Design Performance Raw Output: .............................................................. 63
Simulink Full Load Step Input Analysis (No Current Saturation): ........................................................ 63
Simulink Half Load Step Input Analysis (No Current Saturation): ....................................................... 64
Simulink Full Load Step Input Analysis (With Current Saturation): .................................................... 65
F [TOC] Table of Contents, Tables List and Figures List: ...................................................................... 70
Figure List: .............................................................................................................................................. 70
Table List: ............................................................................................................................................... 71
Table of Contents: .................................................................................................................................. 72
P a g e | 72