Important question about motor control

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Important question about motor control

1,081 Views
JonAnder_Amante
Contributor II

Hi,

 

I am using the board S32K344MINI-EVB with driver GD3000 and Sunrise motor. I have tested a program where you can manage the speed of motor with the project "S32K344:mc_pmsm_1sh_s32ct". I have different questions because I want to prove new options. 

 

JonAnder_Amante_1-1770196663700.png

 

1. I want to use the evaluation board to realize the control of motor, so I want to do the control FOC (2 controllers PI) but I want to simulate the plant (the motor PMSM) and the power electronics (GD3000). In this example, how I can modify it to simulate the plant but continue perfoming the control from the evaluation board? I suppose that I have to change something of state machine block but I don´t know what I have to change. 

2. Could you tell me the pins that I am using to send different signals from GD3000 (driver of motor) to motor PMSM? I have information in your website about this but I don´t if that´s the case. I send you a pdf with this information, although it´s not yhe same board I think the pins are the same (INFO_Driver_MOtor.pdf).

Thank you for all, 

 

Jon Ander Amante

 

0 Kudos
Reply
5 Replies

968 Views
stefanvlad
NXP Employee
NXP Employee

Hi @JonAnder_Amante ,

 

In order to use the S32K344MINI-EVB, the following modifications are needed on the board:

stefanvlad_0-1770819182442.png

1. Remove resistors R396 and R397, located on bottom PCB near DC Jack:

stefanvlad_4-1770819788524.png

2. Populate with 0 (zero) Ohm  resistors R413, R414 and R418 located near J4 connector:

stefanvlad_3-1770819728806.png

And also because the VDD_HV_A is supplied with 3.3V instead of 5V:

stefanvlad_2-1770819465940.png

We need to modify the parameters for the Udc and Idc Gains:

stefanvlad_6-1770820165900.png

%% Application scales
MBD_I_MAX = 20.625;
MBD_U_DCB_MAX = 29.7;
 
After this we can connect the DEVKIT-MOTORGD (GD3000) board on top of S32K344MINI-EVB:
stefanvlad_5-1770819975008.jpeg

 

Now Open FreeMASTER and run the example and check iABC waveforms:

stefanvlad_7-1770821519787.png

 

 Best regards,

Stefan V.

0 Kudos
Reply

953 Views
JonAnder_Amante
Contributor II

Hi, 

Thank you for your reply. At now, I want to realize only the control of FOC in the board "S32K344 MINI-EVB", that is to say, I have another block of the plant that it´s represented the motor PMSM (Sunrise) with power electronics but I have to use the control of FOC with MBD. In this example, could you tell me which block I have to keep and what blocks I have to remove?

JonAnder_Amante_0-1770883302148.png

I think that I have to keep the current loop and speed loop in the block called "state machine" but the problem is there are many variables and different blocks with different jumps between them. 

JonAnder_Amante_1-1770883826681.png

 

Basically, my project´s target is to use the same control of FOC from this project but to use another plant.

Thank you for all, 


Jon Ander Amante

 

0 Kudos
Reply

942 Views
stefanvlad
NXP Employee
NXP Employee

Hi @JonAnder_Amante ,

 

I am not sure i understand what other plant you want to use, another motor maybe?

We currently support the Sunrise Motor with parameters in s32k344_mc_pmsm_2sh_s32ct_data.m and Linix Motor with parameters in s32k344_mc_pmsm_2sh_s32ct_data_linix.m

 

If you have any other motors, you will need to modify the parameters accordingly in data.m files, then do a clean Build.

 

Have a good day,

Stefan V.

0 Kudos
Reply

891 Views
JonAnder_Amante
Contributor II

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 

 

JonAnder_Amante_1-1771229540348.png

JonAnder_Amante_2-1771229553893.png

JonAnder_Amante_4-1771229596623.png

 

JonAnder_Amante_3-1771229577117.png

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;


 

0 Kudos
Reply

1,034 Views
dragostoma
NXP Employee
NXP Employee

Hi, @JonAnder_Amante,

You can find the answer to the initial thread here: missing Motor Control PMSM example in the 1.60 version of the S32K3 MBDT

 

Best regards,

Dragos

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2305902%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EImportant%20question%20about%20motor%20control%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2305902%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20am%20using%20the%20board%20%3CSPAN%3ES32K344MINI-EVB%20with%20driver%20GD3000%20and%20Sunrise%20motor.%20I%20have%20tested%20a%20program%20where%20you%20can%20manage%20the%20speed%20of%20motor%20with%20the%20project%20%22S32K344%3Amc_pmsm_1sh_s32ct%22.%20I%20have%20different%20questions%20because%20I%20want%20to%20prove%20new%20options.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JonAnder_Amante_1-1770196663700.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_1-1770196663700.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_1-1770196663700.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_1-1770196663700.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_1-1770196663700.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_1-1770196663700.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_1-1770196663700.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F375465i21E8D42A1779FE60%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JonAnder_Amante_1-1770196663700.png%22%20alt%3D%22JonAnder_Amante_1-1770196663700.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3E1.%20I%20want%20to%20use%20the%20evaluation%20board%20to%20realize%20the%20control%20of%20motor%2C%20so%20I%20want%20to%20do%20the%20control%20FOC%20(2%20controllers%20PI)%20but%20I%20want%20to%20simulate%20the%20plant%20(the%20motor%20PMSM)%20and%20the%20power%20electronics%20(GD3000).%20In%20this%20example%2C%20how%20I%20can%20modify%20it%20to%20simulate%20the%20plant%20but%20continue%20perfoming%20the%20control%20from%20the%20evaluation%20board%3F%3C%2FSPAN%3E%26nbsp%3BI%20suppose%20that%20I%20have%20to%20change%20something%20of%20state%20machine%20block%20but%20I%20don%C2%B4t%20know%20what%20I%20have%20to%20change.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E2.%20Could%20you%20tell%20me%20the%20pins%20that%20I%20am%20using%20to%20send%20different%20signals%20from%20GD3000%20(driver%20of%20motor)%20to%20motor%20PMSM%3F%20I%20have%20information%20in%20your%20website%20about%20this%20but%20I%20don%C2%B4t%20if%20that%C2%B4s%20the%20case.%20I%20send%20you%20a%20pdf%20with%20this%20information%2C%20although%20it%C2%B4s%20not%20yhe%20same%20board%20I%20think%20the%20pins%20are%20the%20same%20(INFO_Driver_MOtor.pdf).%3C%2FP%3E%3CP%3EThank%20you%20for%20all%2C%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EJon%20Ander%20Amante%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2313837%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Important%20question%20about%20motor%20control%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2313837%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F226147%22%20target%3D%22_blank%22%3E%40JonAnder_Amante%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EYou%20can%20find%20the%20answer%20to%20the%20initial%20thread%20here%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FModel-Based-Design-Toolbox-MBDT%2Fmissing-Motor-Control-PMSM-example-in-the-1-60-version-of-the%2Fm-p%2F2313448%2Fhighlight%2Ftrue%23M10626%22%20target%3D%22_blank%22%3Emissing%20Motor%20Control%20PMSM%20example%20in%20the%201.60%20version%20of%20the%20S32K3%20MBDT%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EDragos%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2316523%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Important%20question%20about%20motor%20control%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2316523%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F226147%22%20target%3D%22_blank%22%3E%40JonAnder_Amante%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EIn%20order%20to%20use%20the%20%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fdevelopment-boards-and-designs%2FS32K344MINI-EVB%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ES32K344MINI-EVB%3C%2FA%3E%2C%26nbsp%3Bthe%20following%20modifications%20are%20needed%20on%20the%20board%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stefanvlad_0-1770819182442.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_0-1770819182442.png%22%20style%3D%22width%3A%20850px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_0-1770819182442.png%22%20style%3D%22width%3A%20850px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_0-1770819182442.png%22%20style%3D%22width%3A%20850px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_0-1770819182442.png%22%20style%3D%22width%3A%20850px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376521iE9EA517CF495AD10%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stefanvlad_0-1770819182442.png%22%20alt%3D%22stefanvlad_0-1770819182442.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E1.%20Remove%20resistors%20%3CSTRONG%3ER396%3C%2FSTRONG%3E%20and%20%3CSTRONG%3ER397%3C%2FSTRONG%3E%2C%20located%20on%20bottom%20PCB%20near%20DC%20Jack%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stefanvlad_4-1770819788524.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_4-1770819788524.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_4-1770819788524.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_4-1770819788524.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_4-1770819788524.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376529i8EB250BFC515F804%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22stefanvlad_4-1770819788524.png%22%20alt%3D%22stefanvlad_4-1770819788524.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E2.%20Populate%20with%200%20(%3CSTRONG%3Ezero%3C%2FSTRONG%3E)%20Ohm%26nbsp%3B%20resistors%20%3CSTRONG%3ER413%3C%2FSTRONG%3E%2C%20%3CSTRONG%3ER414%3C%2FSTRONG%3E%20and%20%3CSTRONG%3ER418%20%3C%2FSTRONG%3Elocated%20near%20J4%20connector%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stefanvlad_3-1770819728806.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_3-1770819728806.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_3-1770819728806.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_3-1770819728806.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_3-1770819728806.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376527iA7C8E7C849E35ABB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22stefanvlad_3-1770819728806.png%22%20alt%3D%22stefanvlad_3-1770819728806.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAnd%20also%20because%20the%20VDD_HV_A%20is%20supplied%20with%203.3V%20instead%20of%205V%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stefanvlad_2-1770819465940.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_2-1770819465940.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_2-1770819465940.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_2-1770819465940.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_2-1770819465940.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376524i09EFFBC617C5A3C4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22stefanvlad_2-1770819465940.png%22%20alt%3D%22stefanvlad_2-1770819465940.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWe%20need%20to%20modify%20the%20parameters%20for%20the%20Udc%20and%20Idc%20Gains%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stefanvlad_6-1770820165900.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_6-1770820165900.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_6-1770820165900.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_6-1770820165900.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_6-1770820165900.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376533iD0B6B26893B98002%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stefanvlad_6-1770820165900.png%22%20alt%3D%22stefanvlad_6-1770820165900.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20class%3D%22rtcContent%22%3E%0A%3CDIV%20class%3D%22lineNode%22%3E%3CSPAN%3E%25%25%20Application%20scales%20%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%20class%3D%22lineNode%22%3E%3CSPAN%3EMBD_I_MAX%20%3D%2020.625%3B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%20class%3D%22lineNode%22%3E%3CSPAN%3EMBD_U_DCB_MAX%20%3D%2029.7%3B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%20class%3D%22lineNode%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22lineNode%22%3E%3CSPAN%3EAfter%20this%20we%20can%20connect%20the%20DEVKIT-MOTORGD%20(GD3000)%20board%20on%20top%20of%20S32K344MINI-EVB%3A%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%20class%3D%22lineNode%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stefanvlad_5-1770819975008.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_5-1770819975008.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_5-1770819975008.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_5-1770819975008.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_5-1770819975008.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376530iD9521C936A58AEE3%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22stefanvlad_5-1770819975008.jpeg%22%20alt%3D%22stefanvlad_5-1770819975008.jpeg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3ENow%20Open%20FreeMASTER%20and%20run%20the%20example%20and%20check%20iABC%20waveforms%3A%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22stefanvlad_7-1770821519787.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_7-1770821519787.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_7-1770821519787.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_7-1770821519787.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22stefanvlad_7-1770821519787.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376534iB675226DFEEF715E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22stefanvlad_7-1770821519787.png%22%20alt%3D%22stefanvlad_7-1770821519787.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%26nbsp%3BBest%20regards%2C%3C%2FP%3E%0A%3CP%3EStefan%20V.%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2316910%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Important%20question%20about%20motor%20control%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2316910%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20for%20your%20reply.%20At%20now%2C%20I%20want%20to%20realize%20only%20the%20control%20of%20FOC%20in%20the%20board%20%22S32K344%20MINI-EVB%22%2C%20that%20is%20to%20say%2C%20I%20have%20another%20block%20of%20the%20plant%20that%20it%C2%B4s%20represented%20the%20motor%20PMSM%20(Sunrise)%20with%20power%20electronics%20but%20I%20have%20to%20use%20the%20control%20of%20FOC%20with%20MBD.%20In%20this%20example%2C%20could%20you%20tell%20me%20which%20block%20I%20have%20to%20keep%20and%20what%20blocks%20I%20have%20to%20remove%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JonAnder_Amante_0-1770883302148.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_0-1770883302148.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_0-1770883302148.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_0-1770883302148.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376633iCDB15E67391B9421%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JonAnder_Amante_0-1770883302148.png%22%20alt%3D%22JonAnder_Amante_0-1770883302148.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI%20think%20that%20I%20have%20to%20keep%20the%20current%20loop%20and%20speed%20loop%20in%20the%20block%20called%20%22state%20machine%22%20but%20the%20problem%20is%20there%20are%20many%20variables%20and%20different%20blocks%20with%20different%20jumps%20between%20them.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JonAnder_Amante_1-1770883826681.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_1-1770883826681.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_1-1770883826681.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_1-1770883826681.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376636i5060B73E4FB4463C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JonAnder_Amante_1-1770883826681.png%22%20alt%3D%22JonAnder_Amante_1-1770883826681.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBasically%2C%20my%20project%C2%B4s%20target%20is%20to%20use%20the%20same%20control%20of%20FOC%20from%20this%20project%20but%20to%20use%20another%20plant.%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20for%20all%2C%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EJon%20Ander%20Amante%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2317212%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Important%20question%20about%20motor%20control%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2317212%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F226147%22%20target%3D%22_blank%22%3E%40JonAnder_Amante%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EI%20am%20not%20sure%20i%20understand%20what%20other%20plant%20you%20want%20to%20use%2C%20another%20motor%20maybe%3F%3C%2FP%3E%0A%3CP%3EWe%20currently%20support%20the%20%3CSTRONG%3ESunrise%20Motor%3C%2FSTRONG%3E%20with%20parameters%20in%20%3CSTRONG%3Es32k344_mc_pmsm_2sh_s32ct_data%3C%2FSTRONG%3E.%3CSTRONG%3Em%3C%2FSTRONG%3E%20and%20Linix%20Motor%20with%20parameters%20in%20s32k344_mc_pmsm_2sh_s32ct_data_linix.m%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EIf%20you%20have%20any%20other%20motors%2C%20you%20will%20need%20to%20modify%20the%20parameters%20accordingly%20in%20data.m%20files%2C%20then%20do%20a%20clean%20Build.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EHave%20a%20good%20day%2C%3C%2FP%3E%0A%3CP%3EStefan%20V.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2318452%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Important%20question%20about%20motor%20control%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2318452%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3E1.%20I%20want%20to%20use%20Sunrise%20motor%20with%20its%20parameters%20but%20my%20question%20is%20if%20there%20is%20any%20block%20in%20SImulink%20that%20represents%20the%20plant%20because%20I%20want%20to%20have%20a%20block%20of%20the%20plant%20on%20one%20hand%20and%20the%20controller%20on%20the%20other.%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20Moreover%2C%20I%20send%20you%20the%20parameters%20of%20motor%20Sunrise%20and%20I%20don%C2%B4t%20know%20if%20you%20can%20confirm%20that%20the%20dates%20are%20true.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EPARAM_Rs%20%3D%200.192%3B%20%25%20Resistencia%20del%20estator%20%5BOhms%5D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EPARAM_Mpp%20%3D%202%3B%20%25%20Pares%20de%20polos%20%5B-%5D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EPARAM_Ld%20%3D%200.000096%3B%20%25%20Inductancia%20eje%20D%20%5BH%5D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EPARAM_Lq%20%3D%200.000107%3B%20%25%20Inductancia%20eje%20Q%20%5BH%5D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EPARAM_Ke%20%3D%200.005872%3B%20%25%20Constante%20Back-EMF%20%5BV.sec%2Frad%5D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EPARAM_J%20%3D%200.12e-4%3B%20%25%20Inercia%20%5Bkg.m2%5D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EPARAM_r32_F_IP_Wb_motor1%20%3D%200.00518%3B%20%25%20Flujo%20magnetico%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3E%25%25%20Parametros%20dise%C3%B1o%20LAZO%20DE%20CORRIENTE%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3E%25Loop%20Bandwidth%20%3D%20150%20%5BHz%5D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3E%25Loop%20Attenuation%20%3D%201%20%5B-%5D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3E%25Loop%20sample%20time%20%3D%200.0001%20%5Bsec%5D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3E%25-----------------------------------------------------%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3Ef_cutoff_current%20%3D%20150%3B%20%25%20Frecuencia%20de%20corte%20deseada%20%5BHz%5D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3Ew0_current%20%3D%202%20*%20pi%20*%20f_cutoff_current%3B%20%25%20Frecuencia%20natural%20%5Brad%2Fs%5D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3Exi_current%20%3D%200.707%3B%20%25%20Amortiguamiento%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3ETs_current%20%3D%201%20%2Ffsw%3B%20%25%20Tiempo%20de%20muestreo%20%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3E%25%20C%C3%A1lculos%20eje%20D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EKp_D%20%3D%20(2%20*%20xi_current%20*%20w0_current%20*%20PARAM_Ld)%20-%20PARAM_Rs%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EKi_D%20%3D%20(w0_current%5E2)%20*%20PARAM_Ld%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3E%25%20C%C3%A1lculos%20eje%20Q%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EKp_Q%20%3D%20(2%20*%20xi_current%20*%20w0_current%20*%20PARAM_Lq)%20-%20PARAM_Rs%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EKi_Q%20%3D%20(w0_current%5E2)%20*%20PARAM_Lq%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3E%25%20Current%20Loop%20Control%20(Calculado%20seg%C3%BAn%20NXP%20GFLIB)%20%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3E%25----------------------------------------------------------------------%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EMBD_CLOOP_LIMIT%20%3D%200.9%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3E%25%20Eje%20D%20(D-axis)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EMBD_D_CC1SC%20%3D%20Kp_D%20%2B%20(Ki_D%20*%20Ts_current%20%2F%202)%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EMBD_D_CC2SC%20%3D%20-Kp_D%20%2B%20(Ki_D%20*%20Ts_current%20%2F%202)%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3E%25%20Eje%20Q%20(Q-axis)%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EMBD_Q_CC1SC%20%3D%20Kp_Q%20%2B%20(Ki_Q%20*%20Ts_current%20%2F%202)%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CSPAN%3EMBD_Q_CC2SC%20%3D%20-Kp_Q%20%2B%20(Ki_Q%20*%20Ts_current%20%2F%202)%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CP%3E2.%20I%20send%20you%20the%20scheme%20that%20I%20am%20using%20in%20Simulink.%20My%20idea%20is%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JonAnder_Amante_1-1771229540348.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_1-1771229540348.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376908i66C9513943847B05%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JonAnder_Amante_1-1771229540348.png%22%20alt%3D%22JonAnder_Amante_1-1771229540348.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JonAnder_Amante_2-1771229553893.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_2-1771229553893.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376909i5A97B7E58B87D855%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JonAnder_Amante_2-1771229553893.png%22%20alt%3D%22JonAnder_Amante_2-1771229553893.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JonAnder_Amante_4-1771229596623.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_4-1771229596623.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376911iF3EEAB279A38539B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JonAnder_Amante_4-1771229596623.png%22%20alt%3D%22JonAnder_Amante_4-1771229596623.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JonAnder_Amante_3-1771229577117.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22JonAnder_Amante_3-1771229577117.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F376910iA5F1CE9D7CE36E11%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JonAnder_Amante_3-1771229577117.png%22%20alt%3D%22JonAnder_Amante_3-1771229577117.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EMy%20idea%20is%20to%20not%20use%20the%20physical%20motor%20and%20to%20simulate%20it%20with%20the%20green%20block%20you%20see%20in%20the%20photos.%20and%20to%20perform%20the%20control%20(current%20loop%20and%20speed%20loop)%20with%20the%20MCLIB%20blocks.%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CDIV%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CBR%20%2F%3E%3CP%3EThank%20you%20for%20all%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E