2018-06-18 03:39 AM
Referring to UM1052, chapter 14.
I cannot read or write the ramp duration register 0x5C.
Anyone having the same problem? ST, is this a known problem/bug????
Fredrik
#st-mcp #uilibrary2018-08-06 09:17 AM
Dear Fredrik,
The reading of the ramp duration through 0x5c is not implemented.
But if you want to execute a ramp, speed or torque, the duration is a parameter of the following function :
void MC_ProgramSpeedRampMotor1( int16_t hFinalSpeed, uint16_t hDurationms )
void MC_ProgramTorqueRampMotor1( int16_t hFinalTorque, uint16_t hDurationms )
(API from 5.1.3 release )
If you want to check if your ramp is completed you can use this API :
bool MC_HasRampCompletedMotor1(void)
I would like to understand why do you need to read the ramp duration as this value comes from the application.
By the way if you have not switched yet to the 5.X release, I encourage you to switch as soon as the 5.2 is released. It will be in the coming days. If a blocking point prevent you to switch, I would be very interested to know about it.
Regards
Cedric