Programming our modules with the DELIB driver library
The DELIB driver library enables uniform communication with all DEDITEC products. Thanks to its comprehensive and clearly structured design, our modules can be integrated into your projects and controlled in almost any programming language.
Detailed instructions on DELIB and a variety of programming examples can be found here:
A list of all DELIB commands can be found here:
Programming our modules with the DELIB driver library ETH
DELIB ETH is a pure Ethernet version of the DEDITEC driver library. It does not contain any drivers for USB or serial ports and does not need to be installed on the PC. There is also no need to configure or integrate a module in the registry. Admin write permissions are also not required.
As a project customer, you can also integrate DELIB ETH directly into your own setup.
All products with an Ethernet interface are supported by DELIB ETH and can be addressed directly via the TCP/IP address.
Click here for DELIB ETH:
Example of programming our modules with DELIB
Open module:
uint ModulID = 14; – the ID depends on the module type. (s. delib.h)
uint ModulNr = 0; – always 0 by default
uint handle; – handle of the open module
handle = DapiOpenModule(ModulID, ModulNr);
Switching relays:
uint ch = 0; – channel number
uint val = 1; – value to be set (0=off / 1=on)
DapiDOSet1(handle, ch, val);
Close module:
DapiCloseModule(handle);
Explanation:
The “DapiOpenModule” function is used to open a module. The two parameters passed within the parentheses determine which module is to be opened.
The first parameter refers to the module ID. You can find the correct ID for your module in the delib.h file, which is located in the DEDITEC installation path.
The second parameter refers to the module number, which is important if several modules of the same type are operated on one PC. If only one module is connected to the PC, simply enter “0”. The module number can be set directly on the module using the ICT-Tool.
How do I test my module?
You can access the module directly via the graphical user interface and execute all functions.
Click here for the ICT tool:
Install the installation program and check the module functions.
