User manual

Table Of Contents
DELIB API reference |
Seite 165
4.7.2.3. DAPI_STEPPER_STATUS_GET_SWITCH
Description
With this command, the status of the switches can be read.
Definition
ULONG DapiStepperGetStatus(handle, motor, cmd);
Parameters
cmd=DAPI_STEPPER_STATUS_GET_SWITCH
Return value
Status of the switches will be delivered back
Bit0: ENDSWITCH1; 1 = Endswitch1 is closed
Bit1: ENDSWITCH2; 1 = Endswitch2 is closed
Bit2: REFSWITCH1; 1 = Referenceswitch1 is closed
Bit3: REFSWITCH2; 1 = Referenceswitch2 is closed
Example program
pos = DapiStepperGetStatus(handle, motor, DAPI_STEPPER_STATUS_GET_SWITCH);