Esp_Delay_After_Stop(Long Axis, Float Time) - Newport ESP6000 User Manual

Motion controller/driver
Table of Contents

Advertisement

esp_delay_after_stop Set Delay Time After Motion Stops
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Usage Example:
`
See Also:
5-34
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
#include "esp6000.h"
int esp_delay_after_stop(long axis, float time)
float axis
axis number from 1-6, axis = 0 tests all axes
float time
time in seconds (where maximum = 1000 seconds)
\esp6000.dll
esp_delay_after_stop() API call is used to delay continued command processing for the
specified time after the specified axis has stopped. If the axis parameter is set to zero
then the API will start the delay process after all axes have stopped.
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);
/* Wait 2.5 seconds */
esp_delay_after_stop(2,2.5);
/* check error status */
esp_get_error_num(&error,&ServoTick) ;
if (error) printf("Error %d Reported!", error);
}
esp_delay()

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents