Example: DCMOTOR-P
DC Motor position control

Purpose

To study closed loop position constrol using a DC motor and PID controller.

System

The motor has the model considered in the previous example. It is constrolled by a PID controller which has the position error as input. Note that the motor transfer function constains an integration so that there will be no steady state error to a step reference input with the PID controller in the proportional mode. On the other hand a non zero value for the disturbance input W will cause a steady state error.

[picture]
[end of picture]

System excitation

There are two inputs, the reference input, S, and the disturbance input, W.

Task

Check that there is a position error with the controller in the P mode when W is not zero. You may wish to calculate this for specific parameters and compare with the simulation results. Include an integral term in the controller to show that with finite W there is now no position error. By examining the controller output signal, note that to avoid pure differentiation of the step input and therefore a very high value of controller output at t = 0+ a non zero value of τ is required.

System Parameters

J3.2284E-6J = 3.2284.106[kg.m2]moment of inertia of the rotor
B3.5077E-6B = 3.5077.106[N.m.s/rad]damping ratio of the mechanical system
K0.0274K = 0.0274[Nm/Amp]electromotive force constant
R4R = 4[Ω]electric resistance
L2.75E-6L = 2.75.106[H]electric inductance
P17P = 17  
I600I = 600  
D.15D = 0.15  
tau0.0015tau = 0.0015  
S1S = 1 desired position of shaft
W0W = 0 disturbance

Last Update

May 20, 2012