Professional Documents
Culture Documents
Motion Control Guiding Equations_simapp_matlab-1
Motion Control Guiding Equations_simapp_matlab-1
Motion Control Guiding Equations_simapp_matlab-1
Course content
1 Electric motor governing equations:
• Electrical domain
• Mechanical domain
• Laplace domain - transformation and transfer function
Lagegeber
Der Motor wird von einem Servoverstärker gespeist. Der momentenbildende Strom 𝑖𝑖𝑠𝑡 wird gemessen
und als gemessener Istwert 𝑖𝑀𝑒𝑠𝑠 in den Stromregler der Verstärkers zurückgeführt. Die Drehzahl 𝑛𝑖𝑠𝑡
wird bspw. mit einer Tachomaschine erfasst und auch als gemessener Istwert 𝑛𝑀𝑒𝑠𝑠 des
Drehzahlregelkreises zurückgeführt. Der Drehzahlsollwert 𝑛𝑠𝑜𝑙𝑙 wird vom Lageregler gebildet, indem
der Istwert 𝜑𝑖𝑠𝑡 mittels einer Lagegebers 𝜑𝑀𝑒𝑠𝑠 mit dem Sollwert 𝜑𝑠𝑜𝑙𝑙 verglichen wird.
Introduction
DC Motor construction and working principle
Stator The DC motor is the motor which converts the direct current
(permanent magnet)
into the mechanical work. It works on the principle of Lorentz
Law, which states that “the current carrying conductor placed in
Rotor
(rotating electromagnet) a magnetic and electric field experience a force”, which is called
the Lorentz force.
Winding
(electromagnets) The brushed DC electric motor generates torque directly from
DC power supplied to the motor by using internal commutation,
Commutator stationary magnets and rotating electromagnets.
(rotary electrical switch)
Electrical domain
DC Motor electric circuit
𝑅𝑎 𝐿𝑎
Stator
=
(permanent magnet)
Rotor
(rotating electromagnet)
𝑉𝑎 𝑡 𝐸𝐸𝑀𝐹
Winding
(electromagnets)
Mechanical domain
DC Motor free body diagram
𝑅𝑎 𝐿𝑎
Stator 𝑴
=
(permanent magnet)
Rotor
(rotating electromagnet)
𝑉𝑎 𝑡
Winding
(electromagnets)
𝒅𝟐Ѳ(𝒕) 𝒅Ѳ(𝒕)
Brushes 𝑴𝒎 𝒕 = 𝑴𝑳 𝒕 + 𝑱𝒎 + 𝒃
(voltage supply)
𝒅𝒕𝟐 𝒅𝒕
𝑑Ѳ(𝑡) 𝑀𝑚 = motor torque (Nm)
=ɷ 𝑀𝐿 = load torque (Nm)
𝑑𝑡 𝐽𝑚 = motor inertia (kgm 2)
𝑏 = viscous friction (damping) (Nmsec)
Ѳ = angular position of rotor shaft (rad)
ɷ = angular speed (rad/sec)
Electrical domain
𝑑𝐼𝑎(𝑡) 𝑑ɷ(𝑡)
𝑉𝑎 𝑡 = 𝑅𝑎𝐼𝑎 𝑡 + 𝐿𝑎 + 𝐸𝐸𝑀𝐹 𝐼𝑎 𝑡 𝐾 = 𝑀𝐿 𝑡 + 𝐽𝑚 + 𝑏ɷ(𝑡)
𝑑𝑡 𝑑𝑡
⇒ 𝑑𝐼𝑎(𝑡)
Mechanical domain
𝑉𝑎 𝑡 = 𝑅𝑎𝐼𝑎 𝑡 + 𝐿𝑎 +ɷ 𝑡 𝐾
𝑑2Ѳ(𝑡) 𝑑Ѳ(𝑡) 𝑑𝑡
𝑀𝑚 𝑡 = 𝑀𝐿 𝑡 + 𝐽𝑚 + 𝑏 𝑉𝑎 = armature voltage (V)
𝑑𝑡2 𝑑𝑡 𝑅𝑎 = armature resistance (Ω)
𝑑Ѳ(𝑡) 𝐿𝑎 = armature inductance (H)
= ɷ (𝑡) 𝐼𝑎 = armature current (A)
𝑑𝑡 𝐸𝐸𝑀𝐹 = counter electromotive force (V)
𝑀𝑚 = motor torque (Nm)
Binding equations: 𝑀𝐿 = load torque (Nm)
𝐽𝑚 = motor inertia (kgm 2)
𝐸𝐸𝑀𝐹 𝑡 = ɷ 𝑡 𝐾 𝑏 = viscous friction (damping) (Nmsec)
Ѳ = angular position of rotor shaft (rad)
ɷ = angular speed (rad/sec)
𝑀𝑚 𝑡 = 𝐼𝑎 𝑡 𝐾
ɷ 𝑡
𝐾
The nonlinear model results in a one-input, one-output map, having a disturbance input 𝑀𝐿 and with two state variables,
related to:
• the energy stored in the inductance 𝐿𝑎
• the kinetic energy of the rotor (related to 𝐽𝑚)
𝑑𝐼𝑎 (𝑡)
𝑉𝑎 𝑡 = 𝑅𝑎𝐼𝑎 𝑡 + 𝐿𝑎 +ɷ 𝑡 𝐾
𝑑𝑡
Ѳ(𝑡) = ɷ 𝑡 𝑑𝑡
𝑑ɷ(𝑡)
𝐼𝑎 𝑡 𝐾 = 𝑀𝐿 𝑡 + 𝐽𝑚 + 𝑏ɷ(𝑡)
𝑑𝑡
Differentiation
if signal f is continuous at t = 0, then a > 0; then ℒ(𝑓̇
(𝑡)) = 𝑠𝐹(𝑠)
• time-domain differentiation becomes multiplication by frequency variable s (as with phasors)
• plus a term that includes initial condition (i.e., −f(0))
𝑑ɷ(𝑡)
𝐼𝑎 𝑡 𝐾 = 𝑀𝐿 𝑡 + 𝐽𝑚 + 𝑏ɷ(𝑡) 𝐼𝑎 𝑠 𝐾 = 𝑀𝐿 𝑠 + 𝑠𝐽𝑚ɷ(𝑠) + 𝑏ɷ(𝑠)
𝑑𝑡
𝑑𝐼𝑎(𝑡)
⇒
𝑉𝑎 𝑡 = 𝑅𝑎𝐼𝑎 𝑡 + 𝐿𝑎 +ɷ 𝑡 𝐾 𝑉𝑎 𝑠 = 𝑅𝑎𝐼𝑎 𝑠 + 𝑠𝐿𝑎𝐼𝑎 𝑠 + ɷ 𝑠 𝐾
𝑑𝑡
𝐼𝑎 𝑠 𝐾 = 𝑀𝐿 𝑠 + 𝑠2𝐽𝑚Ѳ(𝑠) + 𝑠𝑏Ѳ(𝑠)
𝑑Ѳ(𝑡)
= ɷ (𝑡) ⇒
𝑑𝑡 𝑉𝑎 𝑠 = 𝑅𝑎𝐼𝑎 𝑠 + 𝑠𝐿𝑎𝐼𝑎 𝑠 + 𝑠Ѳ 𝑠 𝐾
Laplace transformation
𝐼𝑎 𝑠 𝐾 = 𝑀𝐿 𝑠 + 𝑠2𝐽𝑚Ѳ(𝑠) + 𝑠𝑏Ѳ(𝑠) 𝑉𝑎 𝑠 − 𝑠Ѳ 𝑠 𝐾
𝐼𝑎 𝑠 =
𝑉𝑎 𝑠 = 𝑅𝑎𝐼𝑎 𝑠 + 𝑠𝐿𝑎𝐼𝑎 𝑠 + 𝑠Ѳ 𝑠 𝐾 𝑅𝑎 + 𝑠𝐿𝑎
𝑽𝒂 𝒔 − 𝒔Ѳ 𝒔 𝑲
⇒ 𝒔𝟐𝑱𝒎Ѳ 𝒔 + 𝒔𝒃Ѳ 𝒔 + 𝑴𝑳 𝒔 = 𝑲
𝑹𝒂 + 𝒔𝑳𝒂
Transfer functions
From equation above, the transfer function from the input And transfer function from the input voltage, V(s), to the
voltage, V(s), to the output angle, θ, directly follows: angular velocity, ω is:
Ѳ 𝑠 𝐾 𝑟𝑎𝑑 ɷ 𝑠 𝐾 𝑟𝑎𝑑/𝑠𝑒𝑐
𝐺𝑎 𝑠 = = , [ ] 𝐺ɷ 𝑠 = = , [ ]
𝑉𝑎 𝑠 𝑠[ 𝑅𝑎 + 𝑠𝐿𝑎 𝑠𝐽𝑚 + 𝑏 + 𝐾2] 𝑉 𝑉𝑎 𝑠 𝑅𝑎 + 𝑠𝐿𝑎 𝑠𝐽𝑚 + 𝑏 + 𝐾2 𝑉
𝑉𝑎 𝑠 − 𝐾ɷ 𝑠 𝑎 𝐾𝐼 𝑠 − 𝑀 𝑠
𝐿
⇒ 𝐼𝑎 𝑠 =
𝑅𝑎(1 + 𝑠𝜏𝑎)
⇒ ɷ 𝑠 = 𝑏(1 + 𝑠𝜏𝑚)
𝑉𝑎 𝑠 1 𝐼𝑎 𝑠 𝑀𝑚 𝑠 1 ɷ 𝑠 1 Ѳ 𝑠
+ 𝐾𝑎 𝐾 + 𝐾𝑚
- 1 + 𝑠𝜏𝑎 - 1 + 𝑠𝜏𝑚 𝑠
𝑇𝐿
𝐸𝐸𝑀𝐹
ɷ 𝑠
𝐾
𝑉𝑎 𝑠 − 𝐾ɷ 𝑠 𝐾𝐼𝑎 𝑠 − 𝑀𝐿 𝑠 ɷ 𝑠
= 𝐼𝑎 𝑠 =ɷ 𝑠 = Ѳ(𝑠)
𝑅𝑎 (1 + 𝑠𝜏𝑎 ) 𝑏(1 + 𝑠𝜏𝑚) 𝑠
1 𝐿𝑎 1 𝐽
𝐾𝑎 = 𝜏𝑎 = 𝐾𝑚 = ; 𝜏𝑚 = = 𝐾 𝑚𝐽
𝑅𝑎 ; 𝑅𝑎 𝑏 𝑏
𝑉𝑎 𝑠 − 𝐾ɷ 𝑠 𝐾𝐼𝑎 𝑠 − 𝑇𝐿 𝑠
𝐼𝑎 𝑠 = ɷ 𝑠 =
𝑅𝑎(1 + 𝑠𝜏𝑎) 𝑏(1 + 𝑠𝜏𝑚)
SimApp
Model of the DC motor
The Laplace transformed equations of a DC motor are: Coefficients, forming parameters:
𝑅𝑎 = armature resistance (Ω)
𝑳𝒂 = armature inductance (H)
𝐸𝐸𝑀𝐹 = counter electromotive force (V)
𝑱𝒎 = motor inertia (kgm2)
𝑱𝒍𝒐𝒂𝒅 = load inertia (kgm2)
𝒃 = viscous friction (damping) (Nmsec)
SimApp
Model of the DC motor
SimApp
Model of the DC motor
Summary
You have learned the necessary basic steps for creating custom blocks. As an overview, we will enumerate all steps:
1. Open a new block folder.
2. Define new parameters in the parameter table.
3. Draw the block diagram of the system you want to put in the block.
4. Enter the formulas for the parameters of the system blocks.
5. Test the inner structure.
6. Denote the input and outputs by connecting them with node objects.
7. Design the block symbol and move the nodes on the block frame.
8. Join the system and the symbol by exporting the block into the Windows clipboard.
9. Paste the block into a drawing.
10. Store the block into a library or into the palette.
Transient parameters:
Transient Steady state
• Rise time (Tr)
Lower values make system response faster,
Mp so lower values preferred
ess
• Maximum overshoot (Mp)
Lower value makes system more stable,
so lower value preferred
• Settling time (Ts)
Output settles faster to final values if it has lower value,
so lower value preferred
Steady state parameter:
• Steady state error (ess)
Output reaches required value if steady state error is
Ts zero, so zero value required
Tr
• Proportional (P) 𝑅 𝑠 𝐸𝑖 𝑠 𝐸0 𝑠 𝐶 𝑠
• Integral (I) 𝐼𝑛𝑝𝑢𝑡 + 𝐺𝑐(𝑠) 𝐺(𝑠) 𝑂𝑢𝑡𝑝𝑢𝑡
-
• Derivative (D)
Combination modes: 𝑪𝒐𝒏𝒕𝒓𝒐𝒍𝒍𝒆𝒓 𝑀𝑜𝑡𝑜𝑟
• Proportional + Integral (PI)
• Proportional + Derivative (PD) 𝐻 𝑠 =1
• Proportional + Integral + Derivative (PID) 𝐹𝑒𝑒𝑑𝑏𝑎𝑐𝑘 𝑔𝑎𝑖𝑛
Controllers are:
• used to achieve desired response (output) by changing control parameters
• system response modifiers
• feeding forward the main transfer function (motor)
Time domain:
Tr
𝑒0 𝑡 = 𝐾𝑝𝑒𝑖 𝑡
Laplace domain: Ts
𝐸0 𝑠
𝐺𝑐 𝑠 = = 𝐾𝑝
𝐸𝑖 𝑠
Time domain:
𝑡 Tr
𝑒0 𝑡 = 𝐾𝑖 ∫ 𝑒𝑖 𝑡 𝑑𝑡
0
Laplace domain: Ts
𝐸0 𝑠 𝐾𝑖
𝐺𝑐 𝑠 = =
𝐸𝑖 𝑠 𝑠
Amplitude
Time domain:
𝑑
𝑒0 𝑡 = 𝐾𝑑 𝑒 𝑡 Error (eset – e(t))
𝑑𝑡 𝑖
Laplace domain:
𝐸0 𝑠 D-control action
𝐺𝑐 𝑠 = = 𝑠𝐾d
𝐸𝑖 𝑠 Time
Time domain:
𝑡
𝐾𝑝
𝑒0 𝑡 = 𝐾𝑝𝑒𝑖 𝑡 + 𝑒𝑖 𝑡 𝑑𝑡 Tr
𝑇𝑖 0
Laplace domain:
𝐸0 𝑠 1
𝐺𝑐 𝑠 = = 𝐾𝑝(1 + )
𝐸𝑖 𝑠 𝑠𝑇𝑖
Time domain:
𝑑 Tr
𝑒0 𝑡 = 𝐾𝑝𝑒𝑖 𝑡 + 𝐾𝑝𝑇𝑑 𝑒 𝑡
𝑑𝑡 𝑖
Laplace domain:
𝐸0 𝑠
𝐺𝑐 𝑠 = = 𝐾𝑝(1 + 𝑠𝑇𝑑 )
𝐸𝑖 𝑠
Time domain:
𝑡
𝑑 𝐾𝑝 Tr
𝑒0 𝑡 = 𝐾𝑝𝑒𝑖 𝑡 + 𝐾𝑝𝑇𝑑 𝑒𝑖 𝑡 + 𝑒𝑖 𝑡 𝑑𝑡
𝑑𝑡 𝑇𝑖 0
Laplace domain:
𝐸0 𝑠 1
𝐺𝑐 𝑠 = = 𝐾𝑝(1 + 𝑠𝑇𝑑 + )
𝐸𝑖 𝑠 𝑇𝑖
P-T1..n systems
• Most P-controllers have one or more storage elements that
assume their final state at different times, so that the final
steady state is reached with a delay.
Examples:
• A closed compressed air storage vessel does not immediately reach its end pressure (x) inside after a sudden
change in the inlet pressure (y).
• The speed of an electric motor only changes with a delay to the new final value (x) in the event of sudden load
changes or a voltage change (y), since the inertia of the armature mass and the induction effects of the armature
winding and/or the field winding have to be compensated for beforehand.
• With electric heating, the heating element must first heat up, followed by the transmission medium and the
radiator, before energy can be released into the room. Until the constant final temperature is reached, the
different heat gradients of the room boundaries and the facilities still have to be compensated.
The easiest way to determine the dynamic behavior of these systems is to record the step response. If the controlled
variable reaches its final value with a delay after an e-function, then the process only has one effective memory. It is a
first-order P-controller, written as P-T1. The step response of a proportional system with two or more different storage
elements has an inflection point and is referred to as a P-T2 or P-Tn system.
P-T1 system
• An RC circuit has a storage element with the capacitor and was
used for the following graphic as a system simulation.
• The course of the unit step function of this P-T1 segment is
shown.
• It has a hibernating state with y = 0 for t < 0. The input variable
jumps to the value 1 for t ≥ 0.
• The controlled variable x reaches its compensation value KS
with the transfer function h(t).
• The time constant TS indicates how quickly the final value of an
exponential controlled variable could be reached if the initial
gradient at point t = 0 remained.
P-T2 system
• To simulate a second-order P-system, an RL- and RC- low-pass filter were connected in series and
dimensioned in such a way that the circuit in the analyzed area does not oscillate.
• Also conceivable is the non-oscillatable series connection of two RC low-pass filters with different time
constants.
• The graphic shows the step response of a system with two storage elements for the unit step.
• It is described by three parameters, the transmission coefficient KS, a delay time Tu and a compensation time Tg
P-Tn system
• In the case of P-Tn system, the system of higher order, Tu becomes increasingly larger and the path becomes
more difficult to control.
• From the step response it can be seen that the system only reacts very weakly to a change in the control value
y during the delay time.
• The time ratio Tg / Tu provides information on the controllability of a route or, inversely, on the degree of difficulty
S to control it. The table shows some reference values.
P-Tn system
• Start-up time and start-up value are two
dynamic characteristic values of controlled
systems, which are determined assuming
that the rate of change of the controlled
variable x remains constant until the
setpoint w is reached.
• The start-up value A is the proportion of the
maximum rate of change of the controlled
variable when the control range is fully
utilized.
• In the area of the start-up time TA, the step
function runs linearly with maximum
gradient.
• The start-up time is therefore the time that elapses when the control range Yh is fully utilized until the controlled
variable x has reached the desired setpoint w.
P-Tn system
• Start-up time and start-up value are two
dynamic characteristic values of controlled
systems, which are determined assuming
that the rate of change of the controlled
variable x remains constant until the
setpoint w is reached.
• The start-up value A is the proportion of the
maximum rate of change of the controlled
variable when the control range is fully
utilized.
• In the area of the start-up time TA, the step
function runs linearly with maximum
gradient.
• The start-up time is therefore the time that elapses when the control range Yh is fully utilized until the controlled
variable x has reached the desired setpoint w.
• The complexity factor S of the system can also be defined with the delay time and the start-up time or the start-up
value: S = Tu / TA or S = Tu / (A · Δxw). The estimates for S are as found in the table above.
P-Tt system
• Conveyor belt sections or pipelines where the measuring point is relatively far away from the location have a
dead time.
• The control circuit can only react to a change in the manipulated variable and/or disturbance variable when the
information has arrived at the measuring point.
• The dead time results from the route length and the transport speed along the route. Tracks with dead time are very
difficult to control.
• A very long delay time Tu of a P-Tn controller corresponds more or less to a dead time in its first two thirds. Simple
dead-time sections have two characteristic values - KS and Tt.
𝐺𝑐(𝑠) 𝐶 𝑠 𝐺𝐶 𝑠 𝐺(𝑠)
𝐻 𝑠 = =
𝑷 𝑲𝒑 𝑅 𝑠 1 + 𝐺𝐶 𝑠 𝐺(𝑠)
𝑅 𝑠 𝐸𝑖 𝑠 𝑰 𝑲𝒑 + 𝐸0 𝑠 𝐶 𝑠
𝐼𝑛𝑝𝑢𝑡 + + 𝐺(𝑠) 𝑂𝑢𝑡𝑝𝑢𝑡
- 𝑻𝒊𝒔 +
𝑫 𝑀𝑜𝑡𝑜𝑟
𝑲𝒑𝑻𝒅𝒔
𝑪𝒐𝒏𝒕𝒓𝒐𝒍𝒍𝒆𝒓
𝐻 𝑠 =1