function to read current to motor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-04 1:32 AM
Hi, does anyone knows how to read current to motor by calling a function in SDK 5.2?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-04 5:45 AM
Hello,
Depending on what you actually want, there are two ways:
- Use MC_GetPhaseCurrentAmplitudeMotor1() or MC_GetPhaseCurrentAmplitudeMotor2() to get the amplitude (0 to peak value) of the current that globally flows into the motor;
- Use MC_GetIabMotor1() or MC_GetIabMotor2() to get the values of the motor's phases currents. The function returns Ia, Ib and lets you deduce Ic.
These values are expressed in S16A unit. To convert them into Amperes, use the formula displayed in the reference documentation for function MC_GetPhaseCurrentAmplitudeMotor1().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-05 9:37 AM
Hi Fred,
Where can I get the reference document you mentioned
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-09-18 12:04 AM
Hello Diandi,
Sorry for the late answer. The reference document is accessible from the Motor Control Workbench: in menu "Documentation", select item "Firmware Reference".
Alternatively, you can browse to the folder where the Motor Control SDK is installed (e.g. C:\Program Files (x86)\STMicroelectronics\MC_SDK_5.2.0) and go in the "Documentation" subdirectory. There, you'll find the MotorControlSDKFirmware.chm file. Simply double-click on it and the reference documentation will open.
Best Regards,
Fred.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-04-17 11:14 PM
Dear Fred
if i don't call "MC_StartMotor1() " this function but just call "​MC_GetIabMotor1() "
can i get the current flow to motor?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2019-05-07 11:42 PM
Hello Frank,
The current will start to flow in the motor only after MC_StartMotor1() is executed, So without this the MC_GetIabMotor1() function will only return 0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-04-16 1:53 AM
Hello VSHAR
I found that the the phaseCurrent value by calling MC_GetPhaseCurrentAmplitudeMotor1() is not inaccurate during heavy load ex when climbing the hill
Is there any way to fix this problems?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-12 12:52 AM
I am an newbie​ in the motor control + IAR
Is there any guidance document to teach how to display current in s16a format in IAR debug mode?
