Newport ESP6000 User Manual page 105

Motion controller/driver
Table of Contents

Advertisement

esp_get_motion_status Report Motion Status For All Axes
Synopsis:
Arguments:
Library Location:
Description:
Returns:
Section 5 — Programming
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
#include "esp6000.h"
int esp_get_motion_status(long *mstat)
long mstat
motion status register
\esp6000.dll
esp_get_motion_status() is used to report motion status for all axes.
esp_get_motion_status() API call reports all axes' motion 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 not being commanded to move. If the corresponding bit is equal to '1' then
the axis is in a move sequence.
If motor type not previously defined then the corresponding status bit will equal
zero (0).
BIT# VALUE
0
0
0
1
1
0
1
1
2
0
2
1
3
0
3
1
4
0
4
1
5
0
5
1
6
0
6
0
7
0
7
1
31
0
31
1
ESPOK, ESPERROR
Hint:
Use esp_move_done() for simple "Motion Complete" testing.
NOTE
DEFINITION
axis 1 positioner not moving
axis 1 positioner moving
axis 2 positioner not moving
axis 2 positioner moving
axis 3 positioner not moving
axis 3 positioner moving
axis 4 positioner not moving
axis 4 positioner moving
axis 5 positioner not moving
axis 5 positioner moving
axis 6 positioner not moving
axis 6 positioner moving
reserved
reserved
no error occurred (error buffer empty)
error occurred (error buffer contains message)
reserved
reserved
5-39

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents