TOnMasteringNeedCB
Features
This is a callback function for checking if the robot’s axes have been twisted due to external force in the robot controller. The axes of robot can be aligned again through the home commands and it can be checked whether the alignment of axes have been completed through the SetOnHomingCompleted callback function. As the callback function is executed automatically in the case of a specific event, a code that requires an excessive execution time (within 50 msec) within the callback function should not be made.
Parameter
None
Return
None.
Example
void OnMasteringNeedCB()
{
// Starts the homing mode for the alignment of the robot’s axes
drfl.move_home(True);
}
int main()
{
drfl.SetOnMasteringNeedCB(TOnMasteringNeedCB);
}