% CONTOH Motor punya Haris Mukasir
clear
Ta = 10; % Waktu akhir simulasi [sec]
% DATA MOTOR
Ea = 220; % Ea NOMINAL [Volt]
Ra = 0.62; % Tahanan Jangkar [Ohm]
La = 0.01; % Induktansi Jangkar [Henry]
Km = 1.01384; % Konstanta Motor [Nm/Amp]
Kb = 1.0419; % EaNOM/w[rad/sec]
B = 0.0139897195; % [Nm/(rad/sec}]
J = 0.0006909712; %[Nm sec^2/rad]
sim('Motor2021_PWM_Steady_State.slx')
subplot(311), plot(time, tegangan), grid on, xlabel('time [sec]'), ylabel('Ea(t), [Volt]')
subplot(312), plot(time, RPM), grid on, xlabel('time [sec]'), ylabel('RPM')
subplot(313), plot(time, arus), grid on, xlabel('time [sec]'), ylabel('Ia(t), [Amp]')