Newport ESP6000 User Manual page 92

Motion controller/driver
Table of Contents

Advertisement

esp_save_parameters Save Parameters To Flash EPROM Memory
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Usage Example:
See Also:
5-26
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
#include "esp6000.h"
int esp_save_parameters()
none
\esp6000.dll
esp_save_parameters() API function call causes the ESP6000 to save present param-
eters to non-volatile flash EPROM memory. Parameters saved to flash EPROM are
automatically restored to working registers after system initialization or reset.
Saved axis settings are automatically overwritten when a different ESP-compatible
stage is detected in the same axis channel.
All saved settings are automatically erased when new ESP6000 firmware is
downloaded.
ESPOK, ESPERROR
Hint:
#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);
}
NOTE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents