| aMotion_SetEnc32 | Index |
Definition:
Parameters:
| channel | - | Motion control channel. |
| posH | - | Most significant 2 bytes of new 32-bit encoder setting. |
| posL | - | Least significant 2 bytes of new 32-bit encoder setting. |
Return Value:
Description:
This routine assigns a new value to the 32-bit encoder for a motion control channel. The value is a four-byte term and must be broken up into 2 integers. See the cmdMO_ENC32 documentation for details on the 32-bit encoder.
Example:
#include <aMotion.tea>
aMotion_SetEnc32(0, 0, 0);
aMotion_SetEnc32(1, 0, 0);
This would clear the 32-bit encoder for channel 0 and 1.
Related: