Configuration of the RS-232/RS-485 Module
A brand new serial module is delivered in RS-232 mode. To change this mode to RS-485, you just have to open the case and place some jumper. Detailed information can be found in the manual RO-Serie
RS-232/RS-485 parameter configurationAll serial parameter can be configured by a few DIP switches. Such as baudrate, module address, special-mode and other interface specifications. The special-mode allows you to set the module on constant values. This may be useful for a quick start-up and defect analysis.
Controlling of our RS-232/RS-485 modules
Our RS-232/RS-485 modules can be controlled by two different ways.
1. The Windows driver library DELIBThe DELIB driver library allows a direct communication of our modules. You don't have to worry about the Handshake and the serial protocoll. The DELIB DLL assumes it for you!
2. You may program the controlling software by yourselfIn our download area you can find a conform protocol. So our serial modules can be connected to small Linux computers or workstations for engineering, with RS-232/RS485 Interface.
Controlling by the DELIB driver library under WindowsThe 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-SER,0); // Open serial 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-SER".
So the driver library recognize, that a serial 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
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.