Esp_Move_Absolute(Long Axis, Double Position) - Newport ESP6000 User Manual

Motion controller/driver
Table of Contents

Advertisement

esp_move_absolute Move To Absolute Position
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Hint:
Usage Example:
See Also:
5-32
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
#include "esp6000.h"
int esp_move_absolute(long axis, double position)
long axis
axis number from 1-6
double position
target absolute position in user units
\esp6000.dll
esp_move_absolute() will move the specified axis to the absolute motor position
as referenced to position count zero (0).
ESPOK, ESPERROR
Remember to specify position parameter in user units (e.g., millimeters)
#include "esp6000.h"
main()
{
long error, servotick; double position;
if (!esp_init_system())
{
printf("ESP6000 Not Initialized! \r\n");
exit(-1);
}
/* enable motor power */
esp_enable_motor(2);
/* move axis 2 to absolute position -3.0 */
esp_move_absolute(2,-3.0);
while (!esp_move_done(2));
/* check error status */
esp_get_error_num(&error,&ServoTick) ;
if (error) printf("Error %d Reported!", error);
}
esp_get_all_position(), esp_set_speed(), esp_set_accel(), esp_set_decel(),
esp_move_relative(), esp_set_resolution(), esp_move_done()

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents