| aMotion_RampEnable | Index |
Definition:
Parameters:
Return Value:
Description:
This routine starts or stops a ramp operation for a motion control channel. See the cmdMO_RMPENA documentation for details on enabling and disabling the ramp features for a motion control channel.
An enable code of 1 starts the ramp operation. An enable code of 0 terminates the ramp operation. A defined value may be used to indicate that the enable code should be applied to all channels.
| aMOTION_RAMP_CHANNEL_ALL | 0xFF | Apply enable code to all channels |
Example:
#include <aMotion.tea>
aMotion_RampEnable(0, 1);
Enables the ramp operation for channel 0.
#include <aMotion.tea>
aMotion_RampEnable(aMOTION_RAMP_CHANNEL_ALL, 1);
Enables the ramp operation for all channels.
Related: