◆ MotionIdGet()

virtual uint16_t MotionIdGet ( )
pure virtual

Get the motion identifier.

ℹ This function is avaliable in RapidCode and RapidSequencer

Part of the Motion Configuration method group.

Description:
MotionIdGet returns the identifying number of the next move.
Returns
(uint16_t) The motion ID (unsigned 16-bit).
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