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 170
4.10. Example program
// ****************************************************************************
// ****************************************************************************
// ****************************************************************************
// ****************************************************************************
// ****************************************************************************
//
// (c) DEDITEC GmbH, 2009
//
// web: http://www.deditec.de
//
// mail: vertrieb@deditec.de
//
//
//
// dtapi_prog_beispiel_input_output.cpp
//
//
// ****************************************************************************
// ****************************************************************************
// ****************************************************************************
// ****************************************************************************
// ****************************************************************************
//
//
// Folgende Bibliotheken beim Linken mit einbinden: delib.lib
// Dies bitte in den Projekteinstellungen (Projekt/Einstellungen/Linker(Objekt-
Bibliothek-Module) .. letzter Eintrag konfigurieren
#include <windows.h>
#include <stdio.h>
#include "conio.h"
#include "delib.h"
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
void main(void)
{
unsigned long handle;
unsigned long data;
unsigned long anz;
unsigned long i;
unsigned long chan;
// ----------------------------------------------------
// USB-Modul öffnen
handle = DapiOpenModule(USB_Interface8,0);
printf("USB_Interface8 handle = %x\n", handle);
if (handle==0)
{
// USB Modul wurde nicht gefunden
printf("Modul konnte nicht geöffnet werden\n");
printf("TASTE für weiter\n");
getch();