Hi,
1. I want to use Sunrise motor with its parameters but my question is if there is any block in SImulink that represents the plant because I want to have a block of the plant on one hand and the controller on the other.
2. Moreover, I send you the parameters of motor Sunrise and I don´t know if you can confirm that the dates are true.
PARAM_Rs = 0.192; % Resistencia del estator [Ohms]
PARAM_Mpp = 2; % Pares de polos [-]
PARAM_Ld = 0.000096; % Inductancia eje D [H]
PARAM_Lq = 0.000107; % Inductancia eje Q [H]
PARAM_Ke = 0.005872; % Constante Back-EMF [V.sec/rad]
PARAM_J = 0.12e-4; % Inercia [kg.m2]
PARAM_r32_F_IP_Wb_motor1 = 0.00518; % Flujo magnetico
%% Parametros diseño LAZO DE CORRIENTE
%Loop Bandwidth = 150 [Hz]
%Loop Attenuation = 1 [-]
%Loop sample time = 0.0001 [sec]
%-----------------------------------------------------
f_cutoff_current = 150; % Frecuencia de corte deseada [Hz]
w0_current = 2 * pi * f_cutoff_current; % Frecuencia natural [rad/s]
xi_current = 0.707; % Amortiguamiento
Ts_current = 1 /fsw; % Tiempo de muestreo
% Cálculos eje D
Kp_D = (2 * xi_current * w0_current * PARAM_Ld) - PARAM_Rs;
Ki_D = (w0_current^2) * PARAM_Ld;
% Cálculos eje Q
Kp_Q = (2 * xi_current * w0_current * PARAM_Lq) - PARAM_Rs;
Ki_Q = (w0_current^2) * PARAM_Lq;
% Current Loop Control (Calculado según NXP GFLIB)
%----------------------------------------------------------------------
MBD_CLOOP_LIMIT = 0.9;
% Eje D (D-axis)
MBD_D_CC1SC = Kp_D + (Ki_D * Ts_current / 2);
MBD_D_CC2SC = -Kp_D + (Ki_D * Ts_current / 2);
% Eje Q (Q-axis)
MBD_Q_CC1SC = Kp_Q + (Ki_Q * Ts_current / 2);
MBD_Q_CC2SC = -Kp_Q + (Ki_Q * Ts_current / 2);
2. I send you the scheme that I am using in Simulink. My idea is




My idea is to not use the physical motor and to simulate it with the green block you see in the photos. and to perform the control (current loop and speed loop) with the MCLIB blocks.
Thank you for all;