5-60
esp_get_motor_onoff_status
Report Motor ON/OFF status
Synopsis:
#include “esp6000.h”
int esp_get_motor_onoff_status(long *onoff)
Arguments:
long *onoff
motor ON/OFF status where bits 0 - 5 correspond to axes 1-6
Library Location:
\esp6000.dll
Description:
esp_get_motor_onoff_status() reports all axes motor on/off status in binary format
where axis-1 corresponds to bit-0 and axis-6 bit-5. If the corresponding bit is equal to
‘0’ then the axis is OFF (disabled). If the corresponding bit is equal to ‘1’ then the motor
is ON (enabled).
NOTE
If motor type not previously defined then the corresponding status bit will equal zero (0).
BIT#
VALUE
DEFINITION
0
0
axis-1 motor not enabled
0
1
axis-1 motor enabled
1
0
axis-2 motor not enabled
1
1
axis-2 motor enabled
2
0
axis-3 motor not enabled
2
1
axis-3 motor enabled
3
0
axis-4 motor not enabled
3
1
axis-4 motor enabled
4
0
axis-5 motor not enabled
4
1
axis-5 motor enabled
5
0
axis-6 motor not enabled
5
1
axis-6 motor enabled
6
0
reserved
6
1
reserved
7
0
reserved
7
1
reserved
•
•
•
31
0
reserved
31
1
reserved
Returns:
ESPOK, ESPERROR
Hint:
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com