Newport ESP6000 User Manual page 125

Motion controller/driver
Table of Contents

Advertisement

esp_disable_motor Disable Motor Power
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_disable_motor(long axis)
long axis
axis number from 1-6, axis = 0 disables all axes
\esp6000.dll
esp_disable_motor() disables motor power to specified axis. If axis parameter = 0 then
all axes are disabled.
The AMP ENABLE signal is set FALSE on the 100-pin motor I/O connector.
All axes are automatically disabled after system initialization or reset.
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));
/* check error status */
esp_get_error_num(&error,&ServoTick) ;
if (error) printf("Error %d Reported!", error);
/* disable motor power */
esp_disable_motor(2);
}
esp_enable_motor()
NOTE
5-59

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents