Newport ESP6000 User Manual page 74

Motion controller/driver
Table of Contents

Advertisement

esp_init_system Initialize ESP6000 and PCI Communications
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Usage Example:
See Also:
5-8
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
#include "esp6000.h"
int esp_init_system(void)
none
\esp6000.dll
esp_init_system() initializes the ESP6000 controller internals and PCI bus
communication.
The first time new stages are connected, the esp_init_system() API function call
may take as long as 20 seconds to completely upload and parse all ESP-compat-
ible stage data and configure UniDrive axes.
The esp_init_system() API function must be the first ESP function called in any
application.
All motors are turned OFF and ESP6000 hardware is reset after an esp_init_system()
function call.
ESPOK, ESPERROR
Hint:
Always evaluate returned value from esp_init_system()
# include <stdio.h>
# include <stdlib.h>
# include "esp6000.h"
void tell_error(int esp_error)
{
char buffer[MAX_ERROR_LEN];
switch (esp_error)
{
case ESP_OK: /* ESP6000 and communications OK */
default:
(%d).\n", buffer,
esp_error);
}
}
int
main()
{
int esp_error;
esp_error = esp_init_system();
tell_error(esp_error);
any) */
return (0);
}
NOTE
break;
error_msg(error_code, buffer) ;
fprintf(stderr, "ERROR: %s
exit(1);
break;
/* initialize ESP6000 */
/* report errors (if

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents