MotionController Axis MultiAxis IO IOPoint NetworkNode RsiError
Sample Apps Changelog

RapidCode API

◆ EncoderPositionGet()

double EncoderPositionGet ( RSIMotorFeedback  encoder)
pure virtual

Get the raw encoder position.

Description:
EncoderPositionGet returns the raw encoder position for an axis. The encoder position is not scaled by the origin. The encoder position is sometimes called the motor feedback position.
Parameters
encoderUse RSIMotorFeedback.
Returns
(double) Raw encoder value.
Sample Code:
Console.WriteLine("Secondary Encoder Position: " + axis.EncoderPositionGet(RSIMotorFeedback.RSIMotorFeedbackSECONDARY));
Note
Typically an application will use ActualPositionGet, which is scaled by the Origin position.
See also
RSIMotorFeedback
 
Examples
SyncInterrupt.cpp.