cancel
Showing results for 
Search instead for 
Did you mean: 

In the MC workbench, I get compilation error when enabling open loop mode in FOC for a PMSM with encoder. the OpenLoop_handle OpenLoop_ParamsM1 constants are not defined

SupaDupaDave
Associate

T

OpenLoop_Handle_t OpenLoop_ParamsM1 =

{

 .hDefaultVoltage = OPEN_LOOP_VOLTAGE_d,

 .VFMode      = OPEN_LOOP_VF,

 .hVFOffset    = OPEN_LOOP_OFF,

 .hVFSlope     = OPEN_LOOP_K

};

Constant are undeclared. Any ideas what should be those value? I also don't understand how to set the offset angle between encoder Z channel and motor phase reference

In addition I can't find where to define the open voltage or current in Motor Pilot GUIs.

Many thanks

David

1 REPLY 1
SupaDupaDave
Associate

Ok, I found the code documentation and figured a few things :grinning_face_with_sweat:

What is the measurement unit of OPEN_LOOP_VOLTAGE_d ?

Still the question about the encoder remains. I understand the encoder control force an alignement each time. Is the Z channel of any use in software?