Skip to main content
freppa
Associate II
June 18, 2018
Question

Cannot read or write ramp duartion reg

  • June 18, 2018
  • 1 reply
  • 694 views
Posted on June 18, 2018 at 12:39

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 #uilibrary
This topic has been closed for replies.

1 reply

cedric H
Technical Moderator
August 6, 2018

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