cancel
Showing results for 
Search instead for 
Did you mean: 

Open loop Current Mode B-G431B-ESC1

SRedd.5
Senior III

Thank you for support till now, i want to do the open loop current mode using the B-G431B-ESC1 software. This is the code i have written

if(g_motormodeselection_u8 == OPENLOOP_CURRENTMODE )

    {

    MC_SetCurrentReferenceMotor1(g_qdreference_s);

    MC_ProgramTorqueRampMotor1(g_qdreference_s.q ,0);

    MCI_SetOpenLoopCurrent(&Mci[MOTOR_0]);

    }

I am setting id=0 and iq around 20. Please guide if the code is ok.

One other doubt is in open loop current does it read the position feedback, i am assuming it does not read. Am i correct? Please help.

1 REPLY 1
SRedd.5
Senior III

I think one correction after going through the documentation is

if(g_motormodeselection_u8 == OPENLOOP_CURRENTMODE )

   {

MC_ProgramTorqueRampMotor1(g_qdreference_s.q ,0);   

MC_SetCurrentReferenceMotor1(g_qdreference_s);

     MCI_SetOpenLoopCurrent(&Mci[MOTOR_0]);

   }