Error Position

C Definition

double dms_ErrorPosition(long NodeNumber, long AxisNumber)

Pascal Definition

function dms_ErrorPosition(NodeNumber:longint; AxisNumber:longint):double;

Description

Error Position returns the difference between where the motor is commanded to be and its Actual Position. For a stepper motor the Actual Position is the number of counts that have been transmitted to the drive section so the Error Position is reporting how well the electronics is expressing the trajectory. For a servo motor the Actual Position is the motor shaft position as reported by the encoder. In this case the Error Position reports how well the motor is physically tracking the trajectory. The Error Position is monitored and if it is found to be greater than the Error Limit, the motor is turned off. The Error Limit can be changed with the Set Error Limit block.

Escapes

Reading the Error Position command does not produce any escapes.

Note that the EscapeResult parameter must be preset to 0 before making the call or the routine will not run

Related Topics

Error Limit
Actual Position
Commanded Position