Newport ESP6000 User Manual page 127

Motion controller/driver
Table of Contents

Advertisement

esp_get_motor_onoff_status
Usage Example:
See Also:
Section 5 — Programming
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Report Motor ON/OFF status (Continued)
#include "esp6000.h"
main()
{
long error, servotick, onoff;
if(!esp_init_system())
{
printf("ESP6000 Not Initialized! \r\n");
exit(-1);
}
/* enable motor power */
esp_enable_motor(2);
esp_get_motor_onoff_status(&onoff);
/* test for exis 2 enabled */
if(onoff& 0x02)
{
printf("Axis 2 Motor Enabled! \r\n");
}
}
esp_disable_motor(), esp_enable_motor()
5-61

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents