Esp_Set_Fullstep_Resolution(Float, Fullstep); Esp_Get_Fullstep_Resolution(Float, *Fullstep) - Newport ESP6000 User Manual

Motion controller/driver
Table of Contents

Advertisement

esp_set_fullstep_resolution Set Full-Step Resolution
esp_get_fullstep_resolution Report Full-Step Resolution Setting
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Usage Example:
See Also:
Section 5 — Programming
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
#include "esp6000.h"
int esp_set_fullstep_resolution(float, fullstep)
int esp_get_fullstep_resolution(float, *fullstep)
long axis
axis number from 1-6
float fullstep
full-step resolution in user units
\esp6000.dll
esp_set_fullstep_resolution() provides the controller with the step motor fullstep
resolution in user units. This API function call enables the ESP6000 to properly calcu-
late the number of step pulses to output in order to achieve desired encoder-based
position.
esp_get_fullstep_resolution() reports present microstepping factor setting in ESP6000
memory.
ESPOK, ESPERROR
Hint:
Fullstep resolution is automatically set with ESP-compatible stepper stages.
#include "esp6000.h"
main()
{
long error, servotick;
if (!esp_init_system() )
{
printf("ESP6000 Not Initialized! \r\n");
exit(-1);
}
/* Define Axis-1 Microstep Resolution */
esp_set_microstep_factor(1, 10);
/* Full-step resolution */
esp_set_fullstep_resolution(1, 0.001);
/* Save new settings to non-volatile memory */
esp_save_parameters();
/* check error status */
esp_get_error_num(&error,&ServoTick) ;
if (error) printf("Error %d Reported!\r\n", error);
}
esp_set_fullstep_resolution()
5-71

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents