The RMP Motion Controller APIs

◆ MotionIdGet()

uint16_t MotionIdGet ( )
Description:
MotionIdGet returns the identifying number of the next move.
Returns
(uint16_t) The motion ID (unsigned 16-bit).
Remarks
This function is also available in RapidSequencer.

Part of the Motion Configuration method group.

Sample Code:
printf("The next move will have this ID: %d\n", axis->MotionIdGet());
Note
This value is auto-incremented after a motion is started (for the next move). It will eventually rollover from uint16_t.maxvalue to 0.
See also
MotionIdSet