Deditec USB-RELAIS-8 Guide

Hardware-Description
Dezember
USB-RELAIS-8 / OPTOIN-8
2012

INDEX
Index | 2Seite
1. Introduction 7
1.1. General remarks 7
1.2. Customer satisfaction 7
1.3. Customer response 7
2. Hardware description 9
2.1. Quick installation 9
9
2.1.1. Step 1 - Installation of the software and driver 9
2.1.2. Step 2 - Connecting of the module 9
2.1.3. Step 3 - Testing the connection and the module
2.2. USB-RELAIS-8 10
10
2.2.1. Technical data 11
2.2.2. Product pictures 12
2.2.3. Overview screen 13
2.2.4. Pin assignment 13
2.2.4.1. Pin assignment J1
13
2.2.4.2. Pin assignment J2
14
2.2.5. Outputs 14
2.2.5.1. Relay outputs
14
2.2.5.2. Timeout protection
14
2.2.5.3. Visual control of the outputs (depends of
module)
2.3. USB-OPTOIN-8 15
15
2.3.1. Technical data 16
2.3.2. Product pictures 17
2.3.3. Overview screen 18
2.3.4. Pin assignment 18
2.3.4.1. Pin assignment J1
18
2.3.4.2. Pin assignment J2
19
2.3.5. Inputs 19
2.3.5.1. Registering short input pulses
19
2.3.5.2. Galvanically decouppled through optocouplers
19
2.3.5.3. Visual control of the inputs (depends of module)

INDEX
Index | 3Seite
3. Firmware update 22
3.1. DEDITEC Flasher 22
4. Software 26
4.1. Using our products 26
26
4.1.1. Access via graphical applications 26
4.1.2. Access via the DELIB driver library 26
4.1.3. Access via protocol 27
4.1.4. Access via provided test programs
4.2. DELIB driver library 28
28
4.2.1. Overview 28
4.2.1.1. Program under diverse operating systems
29
4.2.1.2. Program with diverse programming languages
29
4.2.1.3. Program independent of the interface
29
4.2.1.4. SDK-Kit for Programmer
30
4.2.2. Supported operating systems 30
4.2.3. Supported programming languages 31
4.2.4. Installation DELIB driver library 33
4.2.5. DELIB Configuration Utility
4.3. Integration of the DELIB 34
34
4.3.1. Integration of the delib.h in Visual-C/C++ 37
4.3.2. Integration of the delib.cs in Visual-C# 38
4.3.3. Integration of the delib.cs in Visual-C# unter Windows 64bit
42
4.3.4. Integration of the delib.pas in Delphi 43
4.3.5. Integration of the delib.bas in Visual Basic 44
4.3.6. Integration of the delib.vb in VB.NET 45
4.3.7. Integration of the delib.bas in MS-Office (VBA) 47
4.3.8. Integration of the delib.dll in LabVIEW 47
4.3.8.1. Integration of the delib.dll in LabVIEW
56
4.3.8.2. Usage of the VIs in LabVIEW
4.4. Test programs 58
58
4.4.1. Digital Input-Output Demo
4.5. DELIB CLI (command-line interface) 59
61
4.5.1. Customisation for USB-Modules (only Linux)

INDEX
Index | 4Seite
62
4.5.2. Customisation for RO-ETH-Modules (only Linux) 63
4.5.3. DELIB CLI samples
5. DELIB API reference 68
5.1. Management functions 68
68
5.1.1. DapiOpenModule 69
5.1.2. DapiCloseModule 70
5.1.3. DapiGetDELIBVersion 71
5.1.4. DapiSpecialCMDGetModuleConfig 73
5.1.5. DapiOpenModuleEx
5.2. Error handling 74
74
5.2.1. DapiGetLastError 75
5.2.2. DapiGetLastErrorText
5.3. Reading Digital inputs 76
76
5.3.1. DapiDIGet1 77
5.3.2. DapiDIGet8 78
5.3.3. DapiDIGet16 79
5.3.4. DapiDIGet32 80
5.3.5. DapiDIGet64 81
5.3.6. DapiDIGetFF32 82
5.3.7. DapiDIGetCounter 83
5.3.8. DapiSpecialCounterLatchAll 84
5.3.9. DapiSpecialCounterLatchAllWithReset 85
5.3.10. Dapi_Special_DI_FF_Filter_Value_Get 86
5.3.11. Dapi_Special_DI_FF_Filter_Value_Set
5.4. Setting Digital outputs 87
87
5.4.1. DapiDOSet1_WithTimer 88
5.4.2. DapiDOSet1 89
5.4.3. DapiDOSet8 90
5.4.4. DapiDOSet16 91
5.4.5. DapiDOSet32 92
5.4.6. DapiDOSet64 93
5.4.7. DapiDOReadback32 94
5.4.8. DapiDOReadback64
5.5. Example program 95

I
Introduction |Seite 6
Introduction

Introduction |Seite 7
1. Introduction
1.1. General remarks
First of all, we would like to congratulate you to the purchase of a high quality
DEDITEC product.
Our products are being developed by our engineers according to quality
requirements of high standard. Already during design and development we take
care that our products have -besides quality- a long availability and an optimal
flexibility.
Modular design
The modular design of our products reduces the time and the cost of development.
Therefor we can offer you high quality products at a competitive price.
Availability
Because of the modular design of our products, we have to redesign only a module
instead of the whole product, in case a specific component is no longer available.
1.2. Customer satisfaction
Our philosophy: a content customer will come again. Therefor customer
satisfaction is in first place for us.
If by any chance, you are not content with the performance of our product, please
contact us by phone or mail immediately.
We take care of the problem.
1.3. Customer response
Our best products are co-developments together with our customers. Therefor we
are thankful for comments and suggestions.

II
Hardware description |Seite 8
Hardware description

Hardware description |Seite 9
2. Hardware description
2.1. Quick installation
2.1.1. Step 1 - Installation of the software and driver
Now install the driver DELIB library with the file "delib_install.exe" from the supplied
DEDITEC-Driver CD.
These can be found in the "\zip\DELIB\delib_install.exe" on the DEDITEC-Driver
CD.
Note: On our website www.deditec.de you can always find the latest DELIB driver
version.
2.1.2. Step 2 - Connecting of the module
Connect your PC via USB cable to the USB connector of the module.
After about 20 seconds, the module is detected by the driver and can now be
tested and operated.
2.1.3. Step 3 - Testing the connection and the module
In the Start menu, see "Start -> All Programs -> DEDITEC -> DELIB -> Sample
Programs" you will find some example programs to test your module.

Hardware description |Seite 10
2.2. USB-RELAIS-8
2.2.1. Technical data
Interface USB 2.0 / USB 1.1
Power Supply +5V (power supply occurs over USB bus)
8x Relais outputs (36V, 1A, 15W)
max. switching voltage: 36V DC
max. switching current: 1A
max. switching power: 15W
max. transport current: 1,25A
Isolation (coil / contact): 1500V DC
contact resistance: 150mW
switching time: 0,5 ms
fall time: 0,1 ms
Outputs Selectable timeout-protection, if the module is not longer adressed
Galvanically isolated using relays
Control-LED LED for 5V power supply
Dimensions 77 mm x 67,5 mm x 55 mm (L x W x H)
Operating temperature 10°C .. 50°C
Produktspezifische Daten:
Product
Connection
Activity-LED
Case
USB-RELAIS-8
screwable terminal block
1 for each output
Yes
USB-RELAIS-8_A
screwable
-
-
USB-RELAIS-8_B
screwable terminal block
1 for each output
-

Hardware description |Seite 11
2.2.2. Product pictures
USB-RELAIS-8
USB-RELAIS-8_A
USB-RELAIS-8_B

Hardware description |Seite 12
2.2.3. Overview screen

Hardware description |Seite 13
2.2.4. Pin assignment
2.2.4.1. Pin assignment J1
Pin
Description
1
Output Channel 1
2
Output Channel 1
3
Output Channel 2
4
Output Channel 2
5
Output Channel 3
6
Output Channel 3
7
Output Channel 4
8
Output Channel 4
2.2.4.2. Pin assignment J2
Pin
Description
9
Output Channel 5
10
Output Channel 5
11
Output Channel 6
12
Output Channel 6
13
Output Channel 7
14
Output Channel 7
15
Output Channel 8
16
Output Channel 8

Hardware description |Seite 14
2.2.5. Outputs
2.2.5.1. Relay outputs
The relays are able to switch voltages up to 36V. The max. current is 1A at a max.
power of 15W.
Additionally, the relays provide a safe electrical isolation of the module to the
connected equipment.
2.2.5.2. Timeout protection
The timeout-protection gives the possibility to switch-off automatically the outputs
to prevent damage. This takes place, if in a predefined time frame any
communication with the module was possible. Reasons could be cable disruption,
PC-crash and so on. This way damage control, surcharge of connected equipment
and risk of accidents can be avoided.
2.2.5.3. Visual control of the outputs (depends of module)
The state of each output is directly signalized by a separate LED. This simplifies to
detect and rectify wiring errors, because the signals on the cables are directly
observable.
Note: Only available for the USB-RELAIS-8 and USB-RELAIS-8_B module

Hardware description |Seite 15
2.3. USB-OPTOIN-8
2.3.1. Technical data
USB-Interface (USB 1.1 / USB 2.0)
Power supply: +5V (supply occurs over USB bus)
8 opto-coupler inputs
24V AC switching voltage (optional 15V, 12V and 5V are available)
16 Bit-Counter for each input
Detection of pulses between two selection cycles
Galvanically isolated using opto-couplers
Variable input voltage range min 5V, max 30V AC (standard: 15-30V)
Logging of impulses between 2 read out cycles
Control-LED LED for 5V power supply
Dimensions: 77 x 67,5 x 55 mm (L x W x H)
Operating temperature: 10°C .. 50°C
Produktspezifische Daten:
Product
Connection
Activity-LED
Case
USB-OPTOIN-8
screwable terminal block
1 for each input
Yes
USB-OPTOIN-8_A
screwable
-
-
USB-OPTOIN-8_B
screwable terminal block
1 for each input
-

Hardware description |Seite 16
2.3.2. Product pictures
USB-OPTOIN-8
USB-OPTOIN-8_A
USB-OPTOIN-8_B

Hardware description |Seite 17
2.3.3. Overview screen

Hardware description |Seite 18
2.3.4. Pin assignment
2.3.4.1. Pin assignment J1
Pin
Description
1
Input Channel 1 +
2
Input Channel 1 -
3
Input Channel 2 +
4
Input Channel 2 -
5
Input Channel 3 +
6
Input Channel 3 -
7
Input Channel 4 +
8
Input Channel 4 -
2.3.4.2. Pin assignment J2
Pin
Description
9
Input Channel 5 +
10
Input Channel 5 -
11
Input Channel 6 +
12
Input Channel 6 -
13
Input Channel 7 +
14
Input Channel 7 -
15
Input Channel 8 +
16
Input Channel 8 -

Hardware description |Seite 19
2.3.5. Inputs
2.3.5.1. Registering short input pulses
Short input pulses between to read-out cycles are registered through an additional
logic and can be separately read-out.
2.3.5.2. Galvanically decouppled through optocouplers
AC input opto-couplers provide a galvanic isolation of the module towards the
connected equipment. They also provide a safe connection to the module for
reverse currents and high voltage peaks.
2.3.5.3. Visual control of the inputs (depends of module)
The state of each input is directly signalized by a separate LED. This simplifies to
detect and rectify wiring errors, because the signals on the cables are directly
observable.
Note: Only available for the USB-RELAIS-8 and USB-RELAIS-8_B module

Hardware description |Seite 20
This manual suits for next models
1
Table of contents
Other Deditec Control Unit manuals