Controlling of our ethernet-modules
Our ethernet modules can be controlled by two different ways.1. The Windows driver library DELIB
The DELIB driver library allows a direct communication with our modules. You don't have to worry about the TCP/IP protocoll. The driver library assumes it for you!
2. You may program the controlling software by yourself
In our download area you can find the specifications for our TCP-IP protocoll. By this way, our ethernet modules can be connected to small Linux computers or workstations for engineering, with LAN Interface.
Controlling by the DELIB driver library under Windows
The extensive but easy handling library is written for computer language, which responds to DLL's. Programming examples in source code for C, Delphi or Visual Basic can be found in our download area.Examples for responsing our products with "C"
In the following example we show you in "C", how to access to our input modules in short time.1. Step: Open the module
handle = DapiOpenModule(RO-ETH,0); //Open Ethernet-module
2. Step: Reading of 16 digital inputs
data = DapiDIGet16(handle, 0); // Read the first 16 digital inputs
3. Step: Close the module
DapiCloseModule(handle); // Close the module
The function "DapiOpenModule" is used to open a special kind of module.
Which module should be openend, is defined by the two parameters.
The first parameter is for the "module ID". By the integrated "DELIB.H", you can also set this parameter to "RO-ETH".
So the driver library recognize, that an ethernet interface will be driven.
The second parameter assigns the module number. If only one module is connected to the pc, the module number is "0". Are there more than one module in the network, you have to set the correct number.
The link to the according IP-address of the module can be configured by the "DELIB-Configuration Utility".
Testprogram with examples for digital inputs
| Digital Input/Output Sample Testprogramm für Module |
|
Click to enlarge ![]() |
With this program you can test our modules very easily. The digital input/output sample testprogram is easy to use and supports all of our measurement modules. The example above shows the test of a RO-USB-O32 input module.


)