DC Motor: Why are Step Responses Different for Transfer Function & State Space?

조회 수: 4 (최근 30일)
Connor Grant
Connor Grant 2019년 4월 11일
답변: Arkadiy Turevskiy 2019년 6월 20일
Hello All,
I am new to MATLAB and control systems in general, so this is hopefully a nice and easy novice question.
I am trying to plot the step response of a DC motor using both the transfer function and state space model. But I am getting different answers for each of them. I was expecting them to be the same as your plotting the same response from the same system... can anyone explain why they're different? Or is there something wrong in my code?
DC Motor Being Modeled and Graphs of Step Responses are here:
MATLAB Code Here:
% Parameters
J=0.0113;
b=0.028;
L= 0.1;
R=0.45;
K=0.067;
% Transfer Function - Open Loop Response
s = tf('s');
P_motor = K/(s*((J*s+b)*(L*s+R)+K^2))
t = 0:0.001:0.2;
step(P_motor,t)
% State Space - Open Loop Response
A = [-b/J K/J
-K/L -R/L];
B = [0
1/L];
C = [1 0];
D = 0;
motor_ss = ss(A,B,C,D)
t = 0:0.001:0.2;
step(motor_ss,t)

답변 (1개)

Arkadiy Turevskiy
Arkadiy Turevskiy 2019년 6월 20일
It looks like the transfer function is from voltage to angle, while state-space is from voltage to angular rate (speed).
If you remove the integrator from the transfer function, then the two are exactly the same.
P_motor = K/((J*s+b)*(L*s+R)+K^2)

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Motor Drives에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by