Controlling 2 relays over the USB bus
USB-MINI-REL2
19% VAT
Controlling 2 relays over the USB bus
- USB stick output module
- 2 relays outputs
- LED status dislay of the USB stick
- galvanic insulation by the relays
The USB-MINI-REL2 is a small model of our process measuring and control technology modules. The whole electronics fits in a small USB-stick and is connected with a 9 pol. 1,8 meter cable to a D-sub connector. The relay contacts are accessible over the 9 pol. D-sub connector.
Included is a Windows driver library, that allows easy access of the module.

More info
USB interface
Transfer rate
As standard, USB 2.0 und USB 1.1 are supported.
The transfer rate is around 12 MBit/s or 1,5 MBit/s.
Outputs
Relay outputs
The relays grants a secure galvanic insulation of the outputs. They are appropriate for 0,3A at30V AC / 1A at 24V DC.

Config
Configuration of USB modules
A configuration of a USB product is not needed - this complete the driver with their Plug and Play mechanism.
Working with several modules
Are more than one USB products working on a system, the driver library differentiate between these modules.
Every brand new USB product has the ID "0". The ID can be changed by the DELIB-Configuratin Utility and will be stored in an EEPROM on the module.
So you can use up to eight identical modules on one pc.
Working with several modules on one pc
| DELIB-Configuration Utility für USB Module |
|
Click to enlarge ![]() |

Tech.-Info
| ||||||||||||||||||||||||||||||

Software
Controlling by the DELIB DLL under Windows
The DELIB DLL allows a standard respond of all DEDITEC measurement modules. For this we provide all functions of our products to the software engineer.
Simple testprogram with example for digital inputs
| Digital Input/Output Sample Testprogramm für Module |
|
Click to enlarge ![]() |
With this tool you can test our products very easily. It is easy to handle and supports all modules of DEDITEC. The example above shows a test of a RO-USB-O32 input module.
Examples for responding 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-USB,0); // Open USB-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-USB1".
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 modules in the network, you have to set the correct number.
Controlling of more than one USB-module
Example for opening several modules on one pc:
Open a module with ID "1"
handle1 = DapiOpenModule(RO-USB1,1); // open USB-module with ID=1
Open a module with ID "4"
handle2 = DapiOpenModule(RO-USB1,4); // open USB-module with ID=4

Overview about available DELIB-Functions
General Handling
General
DapiOpenModule
ULONG DapiOpenModule(ULONG moduleID, ULONG nr);
This function opens a particular module.
DapiCloseModule
ULONG DapiCloseModule(ULONG handle);
This command closes an opened module.
DapiGetLastError
ULONG DapiGetLastError();
This function returns the last registered error.
DapiGetLastErrorText
ULONG DapiGetLastErrorText(unsigned char * msg, unsigned long msg_length);
This function reads the text of the last registered error.
DapiGetDELIBVersion
ULONG DapiGetDELIBVersion(ULONG mode, ULONG par);
This function returns the installed DELIB version.
Special functions
Special
DapiSpecialCommand - DapiSpecialCMDGetModuleConfig
ULONG DapiSpecialCommand(ULONG handle, DAPI_SPECIAL_CMD_GET_MODULE_CONFIG, par, 0, 0);
This command returns the hardware equipment (number of in-/output channels) of the module.
Digital output functions
Digital-output
DapiDOSet1
void DapiDOSet1(ULONG handle, ULONG ch, ULONG data);
This is the command to set a single output.
DapiDOSet8
void DapiDOSet8(ULONG handle, ULONG ch, ULONG data);
This command sets 8 digital outputs simultaneously.
DapiDOSet16
void DapiDOSet16(ULONG handle, ULONG ch, ULONG data);
This command sets 16 digital outputs simultaneously.
DapiDOSet32
void DapiDOSet32(ULONG handle, ULONG ch, ULONG data);
This command sets 32 digital outputs simultaneously.
DapiDOSet64
void DapiDOSet64(ULONG handle, ULONG ch, ULONGLONG data);
This command is to set 64 digital outputs.
DapiDOReadback32
ULONG DapiDOReadback32(ULONG handle, ULONG ch);
This command reads back the 32 digital outputs.
DapiDOReadback64
ULONGLONG DapiDOReadback64(ULONG handle, ULONG ch);
This command reads back the 64 digital outputs.
Special functions
Special
DapiSpecialCommand - DapiSpecialCMDTimeout
void DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_TIMEOUT, cmd, par1, par2);
This command serves to set the timeout time
DapiSpecialCommand - DapiSpecialCMDTimeoutGetStatus
ULONG DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_TIMEOUT, DAPI_SPECIAL_TIMEOUT_GET_STATUS, 0, 0);
This command reads the timeout status.

Optional E.
230V Hutschienen-Solid-State-Relais für induktive Lasten
Mit diesem Solid-State-Relais erweitern wir die maximale Schaltpannung unserer Digitalen Ausgabemodule auf 230V AC.
Angesteuert werden können diese Relais beispielsweise durch unsere Relais oder MOS-Ausgänge. Als Steuerspannung kann hierbei 3.5 ... 32V DC benutzt werden. Mit diesem Solid-State-Relais können induktive Lasten geschaltet werden.
230V Hutschienen-Solid-State-Relais für ohmsche Lasten
Mit diesem Solid-State-Relais erweitern wir die maximale Schaltpannung unserer Digitalen Ausgabemodule auf 230V AC.
Angesteuert werden können diese Relais beispielsweise durch unsere Relais oder MOS-Ausgänge. Als Steuerspannung kann hierbei 3.5 ... 32V DC benutzt werden. Mit diesem Solid-State-Relais können ohmsche Lasten geschaltet werden.

Manuals
Manuals
Driver
Driver / Programs
DELIB USB driver for Linux
DELIB USB driver for Linux
The DELIB USB driver for Linux supports following products:
- RO-USB-Series
- USB-Mini-Sticks
- USB-Watchdog
- Linux Kernel 2.6.x
Manual for DELIB Driver Library for Windows 7, Windows Vista, XP, 2000 and Linux
Manual for DELIB Driver Library for Windows 7, Windows Vista, XP, 2000 and Linux Documentation of all functions
- module open/close functions
- Digital Input read 1 / 8 / 16 / 32 / 64 bit
- Digital Output write 1 / 8 / 16 / 32 / 64 bit
- A/D Read, read_volt, read_mA, set A/D mode
- D/A Write, write_volt, write_mA, set D/A mode
DELIB driver library for Windows 7, Vista, XP and 2000
DELIB driver library for Windows 7, Vista, XP and 2000
Installation file for USB driver
supports the following operating systems: 32 Bit:
- Windows 7
- Windows Server 2008
- Windows Vista
- Windows XP
- Windows Server 2003
- Windows 2000
64 Bit:
- Windows 7 x64
- Windows Server 2008 x64
- Windows Vista x64
- Windows XP x64
- Windows Server 2003 x64
Downloads
Downloads
RO Flasher Update
RO Flasher Update Flasher software for firmware update of the RO-CPU Modules and the Mini Sticks
Demos
Demo-Software
LabView Labview sample for analog and digital input/outputs
Labview sample for analog and digital input/outputs









