User manual
DELIB API reference |
Seite 55
4.3.2. DapiStepperGetStatus
4.3.2.1. DAPI_STEPPER_STATUS_GET_ACTIVITY
Description
With this command, some status informations (e.g. activity of the motor phase
current) can be read.
Definition
ULONG DapiStepperGetStatus(handle, motor,
DAPI_STEPPER_STATUS_GET_ACTIVITY);
Parameters
handle=This is the handle of an opened module
motor=Number of addressed motor (1,2 ..)
Return value
Bit
Command
Description
0
DISABLE
Motor is disabled
1
MOTORSTROMACTIV
Motor phase current is active
2
HALTESTROMACTIV
Hold phase current is active
3
GOPOSITIONACTIV
GoPosition is active
4
GOPOSITIONBREMSEN
GoPosition deceleration is active
5
GOREFERENZACTIV
GoReference is active
Example program
ret = DapiStepperGetStatus(handle, motor, DAPI_STEPPER_STATUS_GET_ACTIVITY);