| aMotion_SetRampVel | Index |
Definition:
| void aMotion_SetRampVel( | char channel, int maxVelocity); |
Parameters:
| channel | - | Motion control channel. |
| maxVelocity | - | Velocity limit for a trapezoidal ramp motion or new velocity when using velocity damping. |
Return Value:
Description:
This routine sets a new ramp velocity for a motion control channel. See the cmdMO_RMPCFG documentation for details on configuring a ramp motion for a motion control channel.
Example:
#include <aMotion.tea>
aMotion_SetRampVel(0, 50);
aMotion_SetRampVel(1,-50);
This would set the ramp velocity to 500 for motor 0 and -50 for motor 1.
Related: