Error Position

Text Language Definition

function T1Axis.ErrorPosition: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 commands does not produce any escapes.

Examples

This procedure writes the difference between actual position and the commanded position to the status display:

Related Topics

Error Limit
Actual Position
Commanded Position