State-Space Equation for DC Motor Drive
and
Matlab Code
-------% PARAMETERS %------(Pankaj Aswal)----------%
%Rm = 2.06; % Motor resistance (ohm)
%Lm = 0.000238; % motor inductance (Henrys)
%Kb = 1/((406*2*pi)/60); % Back EMF constant (Volt-sec/Rad)
%Kt = 0.0235; % Torque constand (Nm/A)
%Jm = 1.07e-6; % Rotor inertia (Kg m^2)
%bm = 12e-7; % MEchanical damping (linear model of
% friction: bm * dth)
%---------% $$$$$$$$$$$$$$$$$$ %----------------
Rm = 2.06;
Lm = 0.000238;
Kb = 1/((406*2*pi)/60);
Kt = 0.0235;
Jm = 1.07e-6;
bm = 12e-7;
A = [-bm/Jm -Kb/Jm ;
Kt/Lm -Rm/Lm ];
B = [0 1/Lm ]';
C = [0 1; 0 0];
D = [0 0]';
sys = ss(A, B, C, D);
[num den] = ss2tf(sys.a, sys.b, sys.c, sys.d, 1);
E = tf(num(2,:), den)
elim = boolean([1 0]');
sys_blue = modred(sys, elim);
ltiview(sys_blue)
figure;
ltiview(sys)
Output Of Scope
1.
2.