Skip to main content
SRedd.5
Senior III
May 15, 2023
Question

Open loop Current Mode B-G431B-ESC1

  • May 15, 2023
  • 1 reply
  • 659 views

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.

This topic has been closed for replies.

1 reply

SRedd.5
SRedd.5Author
Senior III
May 15, 2023

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]);

   }