Section 5 — Programming
5-39
esp_get_motion_status Report Motion Status For All Axes
Synopsis:
#include “esp6000.h”
int esp_get_motion_status(long *mstat)
Arguments:
long mstat
motion status register
Library Location:
\esp6000.dll
Description:
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.
NOTE
If motor type not previously defined then the corresponding status bit will equal
zero (0).
BIT#
VALUE
DEFINITION
0
0
axis 1 positioner not moving
0
1
axis 1 positioner moving
1
0
axis 2 positioner not moving
1
1
axis 2 positioner moving
2
0
axis 3 positioner not moving
2
1
axis 3 positioner moving
3
0
axis 4 positioner not moving
3
1
axis 4 positioner moving
4
0
axis 5 positioner not moving
4
1
axis 5 positioner moving
5
0
axis 6 positioner not moving
5
1
axis 6 positioner moving
6
0
reserved
6
0
reserved
7
0
no error occurred (error buffer empty)
7
1
error occurred (error buffer contains message)
•
•
•
31
0
reserved
31
1
reserved
Returns:
ESPOK, ESPERROR
Hint:
Use esp_move_done() for simple “Motion Complete” testing.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание ESP6000
Страница 24: ...1 1 0 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 44: ...2 2 0 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 96: ...5 30 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 122: ...5 56 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 142: ...5 76 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 164: ...5 98 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 170: ...5 104 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 178: ...5 112 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 216: ...7 6 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 226: ...8 1 0 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 232: ...9 6 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 238: ...A 6 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 246: ...B 8 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 278: ...D 4 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 286: ...F 2 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 288: ...G 2 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 290: ...G 4 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...