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.
Introduction | Seite5
Page 6
Hardware description
II
Hardware description |Seite6
Page 7
2. Hardware description
2.1. Overview screen
The figure below shows the control module with USB-interface (left side)
combined with an input/output module (right side). For a connection to the USB
bus, an adequate adapter module in form of a USB-stick is included.
The figure below shows the control module with USB interface (left side)
combined with a flexible conntector input/output module (right side). For a
connection to the USB bus, an adequate adapter module in form of a USB-stick
is included with.
Hardware description |Seite7
Page 8
2.2. Technical data
Single power supply +7V..+24V DC
7 control LEDs
USB interface
Transmission range up to 100m!
USB 2.0 and USB 1.1
Data transfer speed: 12 MBit/s or 1,5 MBit/s
Galvanically isolated interface using optocouplers
9 pol. D-SUB connector
Timeout feature providing ability to disconnect outputs for safety reasons
Comfortable connector system with ejection mechanism
Expandable in 16 gradations
Can be combined without any problem to other modules of the RO series
Hardware description |Seite8
Page 9
2.3. Plug-in connector of the module
2.3.1. Power supply
The input-power-supply-range lies between +7V and +24V DC. Power supply
can be realized with a standard AC/DC adaptor with 1A output current. A
suitable plug-in connector is included.
2.3.2. USB interface
module in form of a USB stick with a connection cable. The stick has two
optocouplers ensuring a galvanical isolation to the PC.
The other end of the adapater is a 9 pol. D-SUB connector which is connected
to the RO-module.
Hardware description |Seite9
Page 10
2.4. Control LEDs
LED
Description
3,3V
Internal 3,3V power supply
5V
Internal 5V power supply
Interface
Activity
Active communication- over the USB bus
ERROR
Error during USB-transfer (for details see document ”USB
protocol”)
Inputs:
Change
State change between 2 read-out cylces detected
Outputs:
Auto-Off
Due to timeout, all outputs are switched-off for safety
reasons
I/O Access
CPU-access on the inputs and outputs of the connected
modules
The USB module has a series of control LEDs. They are used for easy visual
indication of various state functions.
While switching-on the module, it should signalize the following sequence:
all five LEDs flashing briefly
right LED (I/O access) flashing briefly
all five LEDs flashing briefly
2.4.1. Definition of the LEDs
Hardware description |Seite10
Page 11
Software
III
Software | Seite11
Page 12
3. Software
3.1. Using our products
3.1.1. Access via graphical applications
We provide driverinterfaces e.g. for LabVIEW and ProfiLab. The DELIB driver
library is the basis, which can be directly activated by ProfiLAB.
For LabVIEW, we provide a simple driver connection with examples!
3.1.2. Access via the DELIB driver library
In the appendix, you can find the complete function reference for the integration
of our API-functions in your software. In addition we provide examples for the
following programming languages:
C
C++
C#
Delphi
VisualBasic
VB.NET
MS-Office
3.1.3. Access via protocol
The protocol for the activation of our products is open source. So you are able
to use our products on systems without Windows or Linux.
Software | Seite12
Page 13
3.1.4. Access via provided test programs
We provide simple handling test programs for the most important functions of
our products. These will be installed automatically by the installation of the
DELIB driver library.
So you can test directly e.g. relays or you can check the voltage of an A/D
converter.
Software | Seite13
Page 14
3.2. DELIB driver library
3.2.1. Overview
The following figure explains the structure of the DELIB driver library
The DELIB driver library allows an uniform response of DEDITEC hardware with
particular consideration of the following viewpoints:
Independent of operating system
Independent of programming language
Independent of the product
Program under diverse operating systems
The DELIB driver library allows an uniform response of our products on diverse
operating systems.
We has made sure, that all of our products can be responded by a few
commands.
Whatever which operating system you use. - Therefore the DELIB cares!
Software | Seite14
Page 15
Program with diverse programming languages
We provide uniform commands to create own applications. This will be solved
by the DELIB driver library.
You choose the programming language!
It can be simply developed applications under C++, C, Visual Basic, Delphi or
LabVIEW®.
Program independent of the interface
Write your application independent of the interface !
Program an apllication for an USB product of us. - Also, it will work with an
ethernet or RS-232 product of us !
SDK-Kit for Programmer
Integrate the DELIB in your application. On demand you receive an installation
script for free, which allows you, to integrate the DELIB installation in your
apllication.
Software | Seite15
Page 16
3.2.2. Supported operating systems
Our products support the following operating systems:
Windows 2000
Windows XP
Windows Vista
Windows 7
Linux
3.2.3. Supported programming languages
Our products are responsive via the following programming languages:
C
C++
C#
Delphi
VisualBasic
VB.NET
MS-Office
Software | Seite16
Page 17
3.2.4. Installation DELIB driver library
DELIB stands for DEDITEC Library and contains the necessary libraries for the
modules in the programming languages C, Delphi and Visual Basic.
Insert the DEDITEC driver CD into the drive and start „delib_install.exe“. The
DELIB driver library is also available on http://www.deditec.en/delib
Click on „Install“.
Software | Seite17
Page 18
The drivers will be installed.
The DELIB driver library is now installed. Press „Close“ to finish the installation.
You can configure your module with the „DELIB Configuration Utility“ (see
next chapter). This is only necessary, if more than one module is present.
Software | Seite18
Page 19
3.2.5. DELIB Configuration Utility
Start the “DELIB Configuration Utility” as follows:
Start Programs DEDITEC DELIB DELIB Configuration Utility.
The „DELIB Configuration Utility“ is a program to configure and subdivide
identical USB-modules in the system. This is only necessary if more than one
module is present.
Software | Seite19
Page 20
3.3. Test programs
3.3.1. Digital Input-Output Demo
Start “Digital Input-Output Demo” as follows:
Start Programme DEDITEC DELIB Digital Input-Output Demo.
The screenshot shows a test of the RO-USB-O64-R64. The configuration of the
module (64 inputs and 64 outputs) is shown on the upper left side.
Software | Seite20
Page 21
3.3.2. Analog Input-Output Demo
Start “Analog Input-Output Demo” as follows:
Start Programme DEDITEC DELIB Analog Input-Output Demo.
The screenshot shows a test of the RO-USB-AD16-DA2_ISO. The configuration
of the module (16 A/D inputs and 2 D/A outputs) is shown on the upper left side.
The screenshot shows a test of the RO-USB-STEPPER2. The configuration of
the module (2 Stepper) is shown on the upper left side.
Software | Seite22
Page 23
Appendix
IV
Appendix | Seite23
Page 24
4. Appendix
4.1. Revisions
Rev 1.00First issue
Rev 2.00Design change
Appendix | Seite24
Page 25
4.2. Copyrights and trademarks
Linux is registered trade-mark of Linus Torvalds.
Windows CE is registered trade-mark of Microsoft Corporation.
USB is registered trade-mark of USB Implementers Forum Inc.
LabVIEW is registered trade-mark of National Instruments.
Intel is registered trade-mark of Intel Corporation
AMD is registered trade-mark of Advanced Micro Devices, Inc.
Appendix | Seite25
Page 26
RO-ANALOG-IN-OUT
Hardware-Description
2010
Oktober
Page 27
INDEX
1. Introduction6
1.1. General remarks6
1.2. Customer satisfaction6
1.3. Customer response6
2. Hardware description8
2.1. RO-AD16-DA48
2.1.1. Overview screen
2.1.2. Technical data
2.1.3. Timeout-protection
2.1.4. Pinout
2.1.4.1. A/D connection wiring (18pol)
2.1.4.2. D/A connection wiring (10pol)
10
11
12
12
12
2.2. RO-AD1613
2.2.1. Overview screen
2.2.2. Technical data
2.2.3. Pinout
2.2.3.1. A/D connection wiring (18pol)
13
14
15
15
2.3. RO-AD16_ISO16
2.3.1. Overview screen
2.3.2. Technical data
2.3.3. Pinout
2.3.3.1. A/D connection wiring (18pol)
16
17
18
18
2.4. RO-DA419
9
2.4.1. Overview screen
2.4.2. Technical data
2.4.3. Timeout-protection
2.4.4. Pinout
2.4.4.1. D/A connection wiring (10pol)
19
20
21
21
21
2.5. RO-DA2_ISO22
2.5.1. Overview screen
2.5.2. Technical data
22
23
Index |2Seite
Page 28
INDEX
2.5.3. Timeout-protection
2.5.4. Pinout
2.5.4.1. D/A connection wiring (10pol)
24
25
25
3. Software27
3.1. Using our products27
3.1.1. Access via graphical applications
3.1.2. Access via the DELIB driver library
3.1.3. Access via protocol
3.1.4. Access via provided test programs
3.2. DELIB driver library29
3.2.1. Overview
3.2.2. Supported operating systems
3.2.3. Supported programming languages
3.2.4. Installation DELIB driver library
3.2.5. DELIB Configuration Utility
3.3. Test programs35
27
27
27
28
29
31
31
32
34
3.3.1. Analog Input-Output Demo
35
4. DELIB API reference37
4.1. Management functions37
4.1.1. DapiOpenModule
4.1.2. DapiCloseModule
4.2. Error handling39
4.2.1. DapiGetLastError
4.2.2. DapiGetLastErrorText
4.3. A/D converter functions41
4.3.1. DapiADSetMode
4.3.2. DapiADGetMode
4.3.3. DapiADGet
4.3.4. DapiADGetVolt
4.3.5. DapiADGetmA
4.4. D/A outputs management47
37
38
39
40
41
43
44
45
46
4.4.1. DapiDASetMode
47
Index |3Seite
Page 29
INDEX
4.4.2. DapiDAGetMode
4.4.3. DapiDASet
4.4.4. DapiDASetVolt
4.4.5. DapiDASetmA
4.4.6. DapiSpecialCmd_DA
49
50
51
52
53
4.5. Output timeout management55
4.5.1. DapiSpecialCMDTimeout
4.5.2. DapiSpecialCMDTimeoutGetStatus
55
56
4.6. Test functions57
4.6.1. DapiPing
57
4.7. Example program58
5. Appendix61
5.1. Revisions61
5.2. Copyrights and trademarks62
Index |4Seite
Page 30
Introduction
I
Introduction | Seite5
Page 31
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.
Introduction | Seite6
Page 32
Hardware description
II
Hardware description |Seite7
Page 33
2. Hardware description
2.1. RO-AD16-DA4
This module has 16 A/D channels and provides a good basis to convert voltages
to digital values. It has furthermore 4 D/A outputs allowing to convert digital
values to an analog voltage.
Hardware description |Seite8
Page 34
2.1.1. Overview screen
The lower figure shows a module with two terminal blocks and corresponding
numbered connection ports.
The following figure shows a flexible conntector module with two terminal
blocks and corresponding numbered connection ports.
Hardware description |Seite9
Page 35
2.1.2. Technical data
Timeout-protection
Comfortable connector system with ejection mechanism
Can be combined without any problem to other modules of the RO series
A/D outputs
Mode U: (voltage)
Unipolar: 0-5V, 0-10V
Bipolar: +5V, +10V
Mode I: (current)
Range: 0-20mA (optional)
D/A outputs
Timeout-protection
Mode U: (voltage)
Unipolar: 0V-5V, 0V-10V
Bipolar: +5V, +10V
Hardware description |Seite10
Page 36
2.1.3. Timeout-protection
The timeout-protection gives the possibility to switch automatically off the
outputs on its own to prevent damage. This takes place, if in a predefined time
frame no communication with the module was possible. Reasons could be cable
disruption, PC-crash and more. This way damage control, surcharge of
connected equipment and risk of accidents can be avoided. Switching off the
outputs is indicated by a LED.
Hardware description |Seite11
Page 37
2.1.4. Pinout
Pin
Pin1AGND
2
AGND
3
AD1
4
AD0
5
AD3
6
AD2
7
AD5
8
AD4
9
AD7
10
AD6
11
AD9
12
AD8
13
AD11
14
AD10
15
AD13
16
AD12
17
AD15
18
AD14
Pin
Pin1AGND
2
DA0
3
AGND
4
DA1
5
AGND
6
DA2
7
AGND
8
DA3
9
AGND
10
AGND
2.1.4.1. A/D connection wiring (18pol)
2.1.4.2. D/A connection wiring (10pol)
Hardware description |Seite12
Page 38
2.2. RO-AD16
This module has 16 A/D input channels and provides a good basis to convert
voltages to digital values.
2.2.1. Overview screen
The lower figure shows a module with a terminal block and corresponding
numbered connection ports.
The following figure shows a flexible conntector module with a terminal block
and corresponding numbered connection ports.
Hardware description |Seite13
Page 39
2.2.2. Technical data
Timeout-protection
Comfortable connector system with ejection mechanism
Can be combined without any problem to other modules of the RO series
A/D inputs
Mode U: (voltage)
Unipolar: 0-5V, 0-10V
Bipolar: +5V, +10V
Mode I: (current)
Range: 0-20mA (optional)
Hardware description |Seite14
Page 40
2.2.3. Pinout
Pin
Pin1AGND
2
AGND
3
AD1
4
AD0
5
AD3
6
AD2
7
AD5
8
AD4
9
AD7
10
AD6
11
AD9
12
AD8
13
AD11
14
AD10
15
AD13
16
AD12
17
AD15
18
AD14
2.2.3.1. A/D connection wiring (18pol)
Hardware description |Seite15
Page 41
2.3. RO-AD16_ISO
This module has 16 A/D input channels (galvancally isolated) and provides a
good basis to convert voltages to digital values.
2.3.1. Overview screen
The lower figure shows a module with a terminal block and corresponding
numbered connection ports.
The following figure shows a flexible conntector module with a terminal block
and corresponding numbered connection ports.
Hardware description |Seite16
Page 42
2.3.2. Technical data
Timeout-protection
Comfortable connector system with ejection mechanism
Can be combined without any problem to other modules of the RO series
A/D inputs
Galvanically isolated
Mode U: (voltage)
Unipolar: 0-5V, 0-10V
Bipolar: +5V, +10V
Mode I: (current)
Range: 0-20mA (optional)
Hardware description |Seite17
Page 43
2.3.3. Pinout
Pin
Pin1AGND
2
AGND
3
AD1
4
AD0
5
AD3
6
AD2
7
AD5
8
AD4
9
AD7
10
AD6
11
AD9
12
AD8
13
AD11
14
AD10
15
AD13
16
AD12
17
AD15
18
AD14
2.3.3.1. A/D connection wiring (18pol)
Hardware description |Seite18
Page 44
2.4. RO-DA4
This module has 4 D/A outputs and provides a good basis to convert digital
values to a voltage.
2.4.1. Overview screen
The lower figure shows a module with a terminal block and corresponding
numbered connection ports.
The following figure shows a flexible conntector module with a terminal block
and corresponding numbered connection ports.
Hardware description |Seite19
Page 45
2.4.2. Technical data
Timeout-protection
Comfortable connector system with ejection mechanism
Can be combined without any problem to other modules of the RO series
D/A outputs
Unipolar: 0V-5V, 0V-10V
Bipolar: +5V, +10V
Hardware description |Seite20
Page 46
2.4.3. Timeout-protection
Pin
Pin1AGND
2
DA0
3
AGND
4
DA1
5
AGND
6
DA2
7
AGND
8
DA3
9
AGND
10
AGND
The timeout-protection gives the possibility to switch automatically off the
outputs on its own to prevent damage. This takes place, if in a predefined time
frame no communication with the module was possible. Reasons could be cable
disruption, PC-crash and more. This way damage control, surcharge of
connected equipment and risk of accidents can be avoided. Switching off the
outputs is indicated by a LED.
2.4.4. Pinout
2.4.4.1. D/A connection wiring (10pol)
Hardware description |Seite21
Page 47
2.5. RO-DA2_ISO
This module has 2 galvanically decoupled D/A outputs and provides a good
basis to convert digital values to a voltage.
2.5.1. Overview screen
The lower figure shows a module with a terminal block and corresponding
numbered connection ports.
The following figure shows a flexible conntector module with a terminal block
and corresponding numbered connection ports.
Hardware description |Seite22
Page 48
2.5.2. Technical data
Timeout-protection
Comfortable connector system with ejection mechanism
Can be combined without any problem to other modules of the RO series
D/A outputs
Modus U: (Spannung)
Unipolar: 0V-5V, 0V-10V
Bipolar: +5V, +10V
Mode I: (current)
Modus I: (Strom)
0-20mA, 4-20mA, 0-24mA
Hardware description |Seite23
Page 49
2.5.3. Timeout-protection
The timeout-protection gives the possibility to switch automatically off the
outputs on its own to prevent damage. This takes place, if in a predefined time
frame no communication with the module was possible. Reasons could be cable
disruption, PC-crash and more. This way damage control, surcharge of
connected equipment and risk of accidents can be avoided. Switching off the
outputs is indicated by a LED.
Hardware description |Seite24
Page 50
2.5.4. Pinout
Pin
Pin1VOUT_A
2
+Vsense_A
3
VOUT_A
4
+Vsense_A
5
AGND
6
-Vsense_A
7
AGND
8
-Vsense_A
9
AGND
10
IOUT_A
Pin
Pin1VOUT_B
2
+Vsense_B
3
VOUT_B
4
+Vsense_B
5
AGND
6
-Vsense_B
7
AGND
8
-Vsense_B
9
AGND
10
IOUT_B
2.5.4.1. D/A connection wiring (10pol)
Connection wiring top:
Connection wiring bottom:
Hardware description |Seite25
Page 51
Software
III
Software | Seite26
Page 52
3. Software
3.1. Using our products
3.1.1. Access via graphical applications
We provide driverinterfaces e.g. for LabVIEW and ProfiLab. The DELIB driver
library is the basis, which can be directly activated by ProfiLAB.
For LabVIEW, we provide a simple driver connection with examples!
3.1.2. Access via the DELIB driver library
In the appendix, you can find the complete function reference for the integration
of our API-functions in your software. In addition we provide examples for the
following programming languages:
C
C++
C#
Delphi
VisualBasic
VB.NET
MS-Office
3.1.3. Access via protocol
The protocol for the activation of our products is open source. So you are able
to use our products on systems without Windows or Linux.
Software | Seite27
Page 53
3.1.4. Access via provided test programs
We provide simple handling test programs for the most important functions of
our products. These will be installed automatically by the installation of the
DELIB driver library.
So you can test directly e.g. relays or you can check the voltage of an A/D
converter.
Software | Seite28
Page 54
3.2. DELIB driver library
3.2.1. Overview
The following figure explains the structure of the DELIB driver library
The DELIB driver library allows an uniform response of DEDITEC hardware with
particular consideration of the following viewpoints:
Independent of operating system
Independent of programming language
Independent of the product
Program under diverse operating systems
The DELIB driver library allows an uniform response of our products on diverse
operating systems.
We has made sure, that all of our products can be responded by a few
commands.
Whatever which operating system you use. - Therefore the DELIB cares!
Software | Seite29
Page 55
Program with diverse programming languages
We provide uniform commands to create own applications. This will be solved
by the DELIB driver library.
You choose the programming language!
It can be simply developed applications under C++, C, Visual Basic, Delphi or
LabVIEW®.
Program independent of the interface
Write your application independent of the interface !
Program an apllication for an USB product of us. - Also, it will work with an
ethernet or RS-232 product of us !
SDK-Kit for Programmer
Integrate the DELIB in your application. On demand you receive an installation
script for free, which allows you, to integrate the DELIB installation in your
apllication.
Software | Seite30
Page 56
3.2.2. Supported operating systems
Our products support the following operating systems:
Windows 2000
Windows XP
Windows Vista
Windows 7
Linux
3.2.3. Supported programming languages
Our products are responsive via the following programming languages:
C
C++
C#
Delphi
VisualBasic
VB.NET
MS-Office
Software | Seite31
Page 57
3.2.4. Installation DELIB driver library
DELIB stands for DEDITEC Library and contains the necessary libraries for the
modules in the programming languages C, Delphi and Visual Basic.
Insert the DEDITEC driver CD into the drive and start „delib_install.exe“. The
DELIB driver library is also available on http://www.deditec.en/delib
Click on „Install“.
Software | Seite32
Page 58
The drivers will be installed.
The DELIB driver library is now installed. Press „Close“ to finish the installation.
You can configure your module with the „DELIB Configuration Utility“ (see
next chapter). This is only necessary, if more than one module is present.
Software | Seite33
Page 59
3.2.5. DELIB Configuration Utility
Start the “DELIB Configuration Utility” as follows:
Start Programs DEDITEC DELIB DELIB Configuration Utility.
The „DELIB Configuration Utility“ is a program to configure and subdivide
identical USB-modules in the system. This is only necessary if more than one
module is present.
Software | Seite34
Page 60
3.3. Test programs
3.3.1. Analog Input-Output Demo
Start “Analog Input-Output Demo” as follows:
Start Programme DEDITEC DELIB Analog Input-Output Demo.
The screenshot shows a test of the RO-USB-AD16-DA2_ISO. The configuration
of the module (16 A/D inputs and 2 D/A outputs) is shown on the upper left side.
Software | Seite35
Page 61
DELIB API reference
IV
DELIB API reference | Seite36
Page 62
4. DELIB API reference
// USB-Modul öffnen
handle = DapiOpenModule(RO_USB1, 0);
printf("handle = %x\n", handle);
if (handle==0)
{
// USB Modul wurde nicht gefunden
printf("Modul konnte nicht geöffnet werden\n");
return;
}
4.1. Management functions
4.1.1. DapiOpenModule
Description
This function opens a particular module.
Definition
ULONG DapiOpenModule(ULONG moduleID, ULONG nr);
Parameters
moduleID=Specifies the module, which is to be opened (see delib.h)
nr=Indicates No of module which is to be opened.
nr=0 -> 1. module
nr=1 -> 2. module
Return value
handle=handle to the corresponding module
handle=0 -> Module was not found
Remarks
The handle returned by this function is needed to identify the module for all
other functions.
handle=This is the handle of an opened module
ch=Specifies the channel of the D/A converter (0, 1, 2, ..)
Reset settings to default configuration
cmd=DAPI_SPECIAL_DA_PAR_DA_LOAD_DEFAULT
Save configuration to EEPROM
cmd=DAPI_SPECIAL_DA_PAR_DA_SAVE_EEPROM_CONFIG
Load configuration out of EEPROM
cmd=DAPI_SPECIAL_DA_PAR_DA_LOAD_EEPROM_CONFIG
Return value
None
Remarks
DAPI_SPECIAL_CMD_DA_PAR_DA_LOAD_DEFAULT
This command loads the default configuration of a D/A converter. The D/A
output has the voltage 0V now.
DAPI_SPECIAL_DA_PAR_DA_SAVE_EEPROM_CONFIG
This command saves the current settings of the D/A converter (voltage/current
value, enable/disable and D/A converter mode) to EEPROM.
DAPI_SPECIAL_DA_PAR_DA_LOAD_EEPROM_CONFIG
This command sets the saved EEPROM configuration to the D/A converter.
DELIB API reference | Seite53
Page 79
Example program
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_DA,
DAPI_SPECIAL_DA_PAR_DA_LOAD_DEFAULT, 1, 0); //Zurücksetzen der EEPROMKonfiguration auf Default Konfiguration bei Kanal 1.
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_DA,
DAPI_SPECIAL_DA_PAR_DA_SAVE_EEPROM_CONFIG, 3, 0); //Speichern der D/A
Wandler Einstellungen in das EEPROM bei Kanal 3.
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_DA,
DAPI_SPECIAL_DA_PAR_DA_LOAD_EEPROM_CONFIG, 2, 0); //Setzen des D/A Wandlers,
mit der im EEPROM gespeicherten Konfiguration bei Kanal 2.
DELIB API reference | Seite54
Page 80
4.5. Output timeout management
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_TIMEOUT,
DAPI_SPECIAL_TIMEOUT_SET_VALUE_SEC, 3, 7);
//Die Zeit des Timeouts wird auf 3,7sek gesetzt.
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_TIMEOUT,
DAPI_SPECIAL_TIMEOUT_ACTIVATE, 0, 0);
//Der Timeout wird aktiviert.
DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_TIMEOUT,
DAPI_SPECIAL_TIMEOUT_DEACTIVATE, 0, 0);
//Der Timeout wird deaktiviert.
void main(void)
{
unsigned long handle;
unsigned long data;
unsigned long anz;
unsigned long i;
unsigned long chan;
// ---------------------------------------------------// USB-Modul öffnen
handle = DapiOpenModule(USB_Interface8,0);
printf("USB_Interface8 handle = %x\n", handle);
if (handle==0)
{
// USB Modul wurde nicht gefunden
printf("Modul konnte nicht geöffnet werden\n");
printf("TASTE für weiter\n");
getch();
DELIB API reference | Seite58
Page 84
return;
}
// Zum Testen - ein Ping senden
// ---------------------------------------------------printf("PING\n");
anz=10;
for(i=0;i!=anz;++i)
{
data=DapiPing(handle, i);
if(i==data)
{
// OK
printf(".");
}
else
{
// No answer
printf("E");
}
}
printf("\n");
// ---------------------------------------------------// Einen Wert auf die Ausgänge schreiben
data = 255;
DapiWriteByte(handle, 0, data);
printf("Schreibe auf Adresse=0 daten=0x%x\n", data);
// ---------------------------------------------------// Einen Wert auf die Ausgänge schreiben
data = 255;
DapiWriteByte(handle, 1, data);
printf("Schreibe auf Adresse=0 daten=0x%x\n", data);
// ---------------------------------------------------// Einen Wert auf die Ausgänge schreiben
data = 255;
DapiWriteByte(handle, 2, data);
printf("Schreibe auf Adresse=2 daten=0x%x\n", data);
// ---------------------------------------------------// Einen Wert von den Eingängen lesen
data = (unsigned long) DapiReadByte(handle, 0);
printf("Gelesene Daten = 0x%x\n", data);
// ---------------------------------------------------// Einen A/D Wert lesen
chan=11; // read chan. 11
data = DapiReadWord(handle, 0xff010000 + chan*2);
printf("Adress=%x, ret=%x volt=%f\n", chan, data, ((float) data) / 1024*5);//
Bei 5 Volt Ref
// ---------------------------------------------------// Modul wieder schliessen
DapiCloseModule(handle);
printf("TASTE für weiter\n");
getch();
return ;
}
DELIB API reference | Seite59
Page 85
Appendix
V
Appendix | Seite60
Page 86
5. Appendix
5.1. Revisions
Rev 1.00First issue
Rev 2.00Design change
Appendix | Seite61
Page 87
5.2. Copyrights and trademarks
Linux is registered trade-mark of Linus Torvalds.
Windows CE is registered trade-mark of Microsoft Corporation.
USB is registered trade-mark of USB Implementers Forum Inc.
LabVIEW is registered trade-mark of National Instruments.
Intel is registered trade-mark of Intel Corporation
AMD is registered trade-mark of Advanced Micro Devices, Inc.
Appendix | Seite62
Page 88
RO-Series
Hardware-Description
2010
November
Page 89
INDEX
1. Introduction10
1.1. General remarks10
1.2. Customer satisfaction10
1.3. Customer response10
2. Hardware description12
2.1. Ethernet Interface12
2.1.1. Hardware description
2.1.1.1. Overview screen
2.1.1.2. Technical data
2.1.1.3. Plug-in connector of the module
2.1.1.3.1. Power supply
2.1.1.3.2. Ethernet interface
2.1.1.4. Buttons of the module
2.1.1.5. Controll LEDs
2.1.1.5.1. Definition of LEDs
2.1.2. Restore basic configuration
2.1.2.1. Restore IP address
2.1.2.2. Restore firmware
2.1.3. Firmware Update
2.1.3.1. DEDITEC Flasher
2.1.3.2. Web interface
2.1.4. Configuring the module
2.1.4.1. Configuration via DELIB Configuration utility
2.1.4.2. Configuration via internal web server
2.1.4.3. Factory settings
12
12
14
15
15
15
16
17
17
18
18
18
19
19
20
22
22
26
27
2.2. CAN Interface28
2.2.1. Hardware description
2.2.1.1. Overview screen
2.2.1.2. Technical data
2.2.1.3. Plug-in connector of the module
2.2.1.3.1. Power supply
2.2.1.3.2. CAN interface
2.2.1.4. Control LEDs
2.2.1.4.1. Definition of LEDs
Index |
28
28
29
30
30
30
31
31
2Seite
Page 90
INDEX
2.2.2. Configuring the module
2.2.2.1. DIP-switches
2.2.2.2. The “special mode”
2.2.2.3. Software mode
2.2.2.4. DIP-switch mode
2.2.2.4.1. Setting up the transfer rate
2.2.2.4.2. Setting up the CAN module address
32
32
33
34
36
36
37
2.3. RS-232/RS-485 Interface39
2.3.1. Hardware description
2.3.1.1. Overview screen
2.3.1.2. Technical data
2.3.1.3. Selecting between RS-232 or RS-485 interface
2.3.1.4. Plug-in connector of the module
2.3.1.4.1. Power supply
2.3.1.4.2. RS-232/RS-485 Interface
2.3.1.4.2.1RS-232 Pinout
2.3.1.4.2.2RS-485 Pinout
2.3.1.5. Control LEDs
2.3.1.5.1. Definition of LEDs
2.3.2. Configuring the module
2.3.2.1. DIP-switches
2.3.2.2. The "special-mode"
2.3.2.3. Activating echo
2.3.2.4. Setting up Baud rate
2.3.2.5. Setting up module address (RS-485 only)
39
39
40
41
43
43
43
44
44
45
45
46
46
47
47
48
49
2.4. USB Interface50
2.4.1. Hardware description
2.4.1.1. Overview screen
2.4.1.2. Technical data
2.4.1.3. Plug-in connector of the module
2.4.1.3.1. Power supply
2.4.1.3.2. USB interface
2.4.1.4. Control LEDs
2.4.1.4.1. Definition of the LEDs
50
50
51
52
52
52
53
53
2.5. Digital in-/output modules54
2.5.1. Hardware description
2.5.1.1. Opto-coupler inputs
54
55
Index |
3Seite
Page 91
INDEX
2.5.1.1.1. Overview screen
2.5.1.1.2. Technical data
2.5.1.1.3. 16-bit counter
2.5.1.1.4. Registering short input pulses
2.5.1.1.5. Galvanically decouppled through optocouplers
4.7.1.17.
DAPI_STEPPER_CMD_GET_MOTOR_SUPPLY_VOLTAG
E
135
135
136
137
138
139
140
141
142
143
144
149
157
158
159
160
161
162
Index |
7Seite
Page 95
INDEX
4.7.2. DapiStepperGetStatus
4.7.2.1. DAPI_STEPPER_STATUS_GET_ACTIVITY
4.7.2.2. DAPI_STEPPER_STATUS_GET_POSITION
4.7.2.3. DAPI_STEPPER_STATUS_GET_SWITCH
4.7.3. DapiStepperCommandEx
163
163
164
165
166
4.8. Output timeout management167
4.8.1. DapiSpecialCMDTimeout
4.8.2. DapiSpecialCMDTimeoutGetStatus
167
168
4.9. Test functions169
4.9.1. DapiPing
169
4.10. Example program170
5. Appendix173
5.1. Revisions173
5.2. Copyrights and trademarks174
Index |
8Seite
Page 96
Introduction
I
Introduction |
Seite9
Page 97
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.
Introduction |
Seite10
Page 98
Hardware description
II
Hardware description |
Seite11
Page 99
2. Hardware description
2.1. Ethernet Interface
2.1.1. Hardware description
2.1.1.1. Overview screen
The figure shows the control module with ethernet interface (left side) combined
with an input/output module (right side).
Hardware description |
Seite12
Page 100
The figure shows the control module with ethernet interface (left side) combined
with a flexible connector input/output module (right side).
Hardware description |
Seite13
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.