Esp_Get_Error_Num(Int *Error, Int *Servotick) - Newport ESP6000 User Manual

Motion controller/driver
Table of Contents

Advertisement

esp_get_error_num Report Error Number
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Usage Example:
See Also:
5-106
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
#include "esp6000.h"
int esp_get_error_num(long *error, long *ServoTick)
long error
error number
long ServoTick
servo cycle timestamp (409µsec)
\esp6000.dll
esp_get_error_num() API function call reports ESP6000 error messages complete with
error number and timestamp. The ESP6000 queues error messages in a 10-word FIFO
buffer. The timestamp enables users to know the exact time of error posting.
ESP6000 uses a 10-word FIFO buffer to queue error messages.
ESPOK, ESPERROR
Hint:
Check for errors after critical command sequences.
#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_error_string()
NOTE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents