Newport ESP6000 User Manual page 99

Motion controller/driver
Table of Contents

Advertisement

esp_delay Set Delay Time
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_ delay(float time)
float time
time in seconds (where maximum = 1000 seconds)
\esp6000.dll
esp_ delay() API call is used to delay continued command processing for the specified
time. This API call uses the PC system timer which has a 55 milli-second resolution.
ESPOK, ESPERROR
Hint:
#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));
/* Wait 2.5 seconds */
esp_delay(2.5);
/* move axis 2 to absolute position 0.0 */
esp_move_absolute(2,0.0);
while (!esp_move_done(2));
/* check error status */
esp_get_error_num(&error,&ServoTick) ;
if (error) printf("Error %d Reported!", error);
}
esp_delay_after_stop()
5-33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents