5-68
esp_set_following_error
Set Motor Following Error Threshold
esp_get_following_error
Report Motor Following Error Threshold Setting
Synopsis:
#include “esp6000.h”
int esp_set_following_error(long axis, double ferr)
int esp_get_following_error(long axis, double *ferr)
Arguments:
long axis
axis number from 1-6
double ferr
maximum motor following error threshold in user units
Library Location:
\esp6000.dll
Description:
esp_set_following_error() sets the maximum motor following error threshold for the
specified axis. A maximum moving error of ‘0’ disables this feature.
esp_get_following_error() reports the maximum motor following error threshold
setting for the specified axis.
The esp_set_followerr_config() command determines what happens when the follow-
ing error threshold is exceeded.
Returns:
ESPOK, ESPERROR
Hint:
If following error threshold is set too large then its purpose is defeated.
Usage Example:
#include “esp6000.h”
int status;
if (esp_init_system() )
{
/* Set Axis 1 Following Error Threshold */
status = esp_set_following_error(1,0.2);
}
See Also:
esp_set_followerr_config()
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com