Section 5 — Programming
5-61
esp_get_motor_onoff_status
Report Motor ON/OFF status (Continued)
Usage Example:
#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”);
}
}
See Also:
esp_disable_motor(), esp_enable_motor()
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com