5-84
esp_update_filter Update Servo PID and Feedforward Coefficients
Synopsis:
#include “esp6000.h”
int esp_update_filter(void)
Arguments:
Library Location:
\esp6000.dll
Description:
esp_update_filter() transfers all changed PID and feedforward parameters (i.e., accel-
eration and velocity) to working servo registers.
NOTE
If necessary, use the ESP-tune utility to optimize servo PID and feedforward
parameters.
Returns:
ESPOK, ESPERROR
Hint:
Usage Example:
#include “esp6000.h”
main()
{ long error, servotick;
if (!esp_init_system() )
{
printf(“ESP6000 Not Initialized! \r\n”);
exit(-1);
}
/* set PID gain */
esp_set_kp(1,100.0);
esp_set_kd(1,200.0);
esp_set_ki(1,50.0);
esp_set_il(1,50.0);
/* transfer PID to working registers */
esp_update_filter();
/* save parameters to ESP6000 Flash EPROM */
esp_save_parameters();
/* check error status */
esp_get_error_num(&error,&ServoTick) ;
if (error) printf(“Error %d Reported!”, error);
}
See Also:
esp_set_kd(), esp_set_kp(), esp_set_ki(), esp_set_il(), esp_update_filter()
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com