Hi Kamil,
The default unit for the speed in the library is 0.1Hz which translates to 6RPM per count. So when you write 1500, the speed set in RPM is actually 1500 * 6 = 9000 RPM. The simplest way to write speed in RPM is by specifying it as RPM/6 in the API. For example: to run your motor at 1500RPM you can write MC_ProgramSpeedRampMotor1(1500/6, 1000);
Another important point is that this is a buffered command and is only executed once the state machine converges to FOC (MC_GetSTMStateMotor1() return value changes to 6 or RUN).
In case of sensorless operation, the 1000msec ramp would usually start sometime after 'Minimum startup output speed' specified in startup parameters (The point from where library tries to converge to FOC from open loop startup) whereas in case of physical sensors like HALL and Encoders, this ramp will usually be executed as soon as the MC_StartMotor1(); is executed.
So when using sensorless operation the actual ramp is from somewhere around the 'Minimum startup output speed' till the specified speed in 1000msec while in case of Hall/Encoder it will be from 0 to specified speed in 1000msec.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.