User manual
Table Of Contents
- Introduction
- Hardware description
- Software
- Appendix
- manual_e_delib.pdf
- Introduction
- Hardware description
- Software
- Appendix
- manual_e_ro_io_stepper2.pdf
- Introduction
- Hardware description
- Software
- DELIB API reference
- Management functions
- Error handling
- Stepper motor functions
- DapiStepperCommands
- DAPI_STEPPER_CMD_GO_POSITION
- DAPI_STEPPER_CMD_GO_POSITION_RELATIVE
- DAPI_STEPPER_CMD_SET_POSITION
- DAPI_STEPPER_CMD_SET_FREQUENCY
- DAPI_STEPPER_CMD_GET_FREQUENCY
- DAPI_STEPPER_CMD_SET_FREQUENCY_DIRECTLY
- DAPI_STEPPER_CMD_STOP
- DAPI_STEPPER_CMD_FULLSTOP
- DAPI_STEPPER_CMD_DISABLE
- DAPI_STEPPER_CMD_SET_MOTORCHARACTERISTIC
- DAPI_STEPPER_CMD_GET_MOTORCHARACTERISTIC
- DAPI_STEPPER_CMD_MOTORCHARACTERISTIC_EEPROM_SAVE
- DAPI_STEPPER_CMD_MOTORCHARACTERISTIC_EEPROM_LOAD
- DAPI_STEPPER_CMD_MOTORCHARACTERISTIC_LOAD_DEFAULT
- DAPI_STEPPER_CMD_GO_REFSWITCH
- DAPI_STEPPER_CMD_GET_CPU_TEMP
- DAPI_STEPPER_CMD_GET_MOTOR_SUPPLY_VOLTAGE
- DapiStepperGetStatus
- DapiStepperCommandEx
- DapiStepperCommands
- Example program
- Appendix
- manual_e_ro_serie.pdf
- Introduction
- Hardware description
- Ethernet Interface
- CAN Interface
- RS-232/RS-485 Interface
- USB Interface
- Digital in-/output modules
- Analog in-/output modules
- Stepper module
- Software
- DELIB API reference
- Management functions
- Error handling
- Reading Digital inputs
- Setting Digital outputs
- A/D converter functions
- D/A outputs management
- Stepper motor functions
- DapiStepperCommands
- DAPI_STEPPER_CMD_GO_POSITION
- DAPI_STEPPER_CMD_GO_POSITION_RELATIVE
- DAPI_STEPPER_CMD_SET_POSITION
- DAPI_STEPPER_CMD_SET_FREQUENCY
- DAPI_STEPPER_CMD_GET_FREQUENCY
- DAPI_STEPPER_CMD_SET_FREQUENCY_DIRECTLY
- DAPI_STEPPER_CMD_STOP
- DAPI_STEPPER_CMD_FULLSTOP
- DAPI_STEPPER_CMD_DISABLE
- DAPI_STEPPER_CMD_SET_MOTORCHARACTERISTIC
- DAPI_STEPPER_CMD_GET_MOTORCHARACTERISTIC
- DAPI_STEPPER_CMD_MOTORCHARACTERISTIC_EEPROM_SAVE
- DAPI_STEPPER_CMD_MOTORCHARACTERISTIC_EEPROM_LOAD
- DAPI_STEPPER_CMD_MOTORCHARACTERISTIC_LOAD_DEFAULT
- DAPI_STEPPER_CMD_GO_REFSWITCH
- DAPI_STEPPER_CMD_GET_CPU_TEMP
- DAPI_STEPPER_CMD_GET_MOTOR_SUPPLY_VOLTAGE
- DapiStepperGetStatus
- DapiStepperCommandEx
- DapiStepperCommands
- Output timeout management
- Test functions
- Example program
- Appendix
DELIB API reference |
Seite 105
4.2. Error handling
4.2.1. DapiGetLastError
Description
This function returns the last registered error.
Definition
ULONG DapiGetLastError();
Parameters
None
Return value
Error code
0=no error. (see delib.h)
Example program
ULONG error;
error=DapiGetLastError();
if(error==0) return FALSE;
printf("ERROR = %d", error);