Esp_Enable_Motor(Long Axis); Esp_Disable_Motor(Long Axis) - Newport ESP6000 User Manual

Motion controller/driver
Table of Contents

Advertisement

esp_enable_motor Enable Motor Power
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Usage Example:
See Also:
5-58
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
#include "esp6000.h"
int esp_enable_motor(long axis)
long axis
axis number from 1-6
\esp6000.dll
esp_enable_motor() enables motor power to specified axes. After this API call DC
motors will servo on target position and stepper motors will have torque applied.
The AMP ENABLE signal is set TRUE 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_disable_motor(), esp_get_motor_onoff_status()
NOTE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents