◆ MotorTypeGet()

virtual RSIMotorType MotorTypeGet ( )
pure virtual

Get the motor type.

ℹ This function is avaliable in RapidCode and RapidSequencer

Description:
MotorTypeGet returns the motor type.
Returns
(RSIMotorType) Motor Type.
Sample Code:
if (axis->MotorTypeGet() == RSIMotorTypeSERVO) {
printf("This is a servo motor\n");
}
See also
MotorTypeSet