Page 1
ETH-RELAIS-8 / OPTOIN-8 Hardware-Description Juli 2019...
Page 2
2.1.1. Step 1 - Installation of the software and driver 2.1.2. Step 2 - Connecting of the module 2.1.3. Step 3 - Testing the connection and the module 2.1.4. DIP-Switches 2.2. ETH-RELAIS-8 2.2.1. Technical data 2.2.2. Product pictures 2.2.3. Overview screen 2.2.4.
Page 3
2.3.5.3. Visual control of the inputs (depends of module) 3. Hardware 3.1. LED blinking behavior 3.2. DIP-Switches 4. Firmware update 4.1. DEDITEC Flasher 5. Software 5.1. Using our products 5.1.1. Access via graphical applications 5.1.2. Access via the DELIB driver library 5.1.3. Access via protocol 5.1.4.
Page 4
INDEX 5.3.8.1. Integration of the delib.dll in LabVIEW 5.3.8.2. Usage of the VIs in LabVIEW 5.4. Test programs 5.4.1. Digital Input-Output Demo 5.5. DELIB CLI (command-line interface) 5.5.1. Customisation for USB-Modules (only Linux) 5.5.2. Customisation for RO-ETH-Modules (only Linux) 5.5.3. DELIB CLI samples 6.
Page 5
INDEX 6.4.3. DapiDOSet8 6.4.4. DapiDOSet16 6.4.5. DapiDOSet32 6.4.6. DapiDOSet64 6.4.7. DapiDOReadback32 6.4.8. DapiDOReadback64 6.5. Example program 7. Appendix 7.1. Revisions 7.2. Copyrights and trademarks Index | Seite...
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.
PC. 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.
Page 10
2.1.4. DIP-Switches You can configure DHCP- and EEPROM settings on the module directly via DIP-Switches. Achtung: Alle Änderungen an den DIP-Schaltern werden nur nach Trennung und Wiederherstellung der Spannungsversorgung übernommen. DIP Switch Mode / Description DHCP is active The network settings IP, subnet mask, DNS-Domain and gateway will be received from a DHCP Server.
Page 11
DIP Switch Mode / Description EEPROM is write protected If the write protection is on, no settings can be configured via the DELIB-Configuration Utility. EEPROM write protection is off DIP Switch Mode / Description The settings from the EEPROM will be ignored on module start.
Page 12
2.2. ETH-RELAIS-8 2.2.1. Technical data Ethernet-Interface 100/10Mbit Power supply: External 12-24V DC 8 Relays outputs (36V, 1A, 10W, make contact) Max. switching voltage: 36V DC Max. switching current: 0,5A Max. switching power: 10W Max. transport current: 1,25A Isolation : 5TOhm...
Page 13
2.2.3. Overview screen Hardware description | Seite 13...
Page 15
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.
Page 16
2.3. ETH-OPTOIN-8 2.3.1. Technical data Ethernet-Interface 100/10Mbit Power supply: External 12-24V DC 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...
Page 20
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 ETH-RELAIS-8 and ETH-RELAIS-8_B module Hardware description | Seite 20...
Page 23
3. Hardware 3.1. LED blinking behavior Erläuterung 1.) Bootvorgang Der Bootvorgang startet direkt nach dem Stecken der Spannungsversorgung. Die Bootvorgang-Sequenz wird einmalig durchlaufen. Hardware | Seite 23...
Page 24
2.) Applikation oder Bootloader 2.1 Applikation Der Bootvorgang wurde erfolgreich durchlaufen und das Produkt befindet sich in der Applikation. Das Produkt ist nun Einsatzbereit. Die Status-LED leuchtet 5 Sekunden und erlischt für etwa 300ms. Die Applikation-Sequenz wiederholt sich. Bei Modulen mit Ethernet-Schnittstelle (nicht RO-ETH und RO-CPU-800) Status-LED erlischt einmal: Statische IP Status-LED erlischt zweimal: IP über DHCP erfolgreich bezogen Status-LED erlischt dreimal: IP über DHCP nicht erfolgreich bezogen...
Page 25
2.2. Bootloader Das Produkt befindet sich nach dem Bootvorgang im Bootloader. Dies deutet auf einen Fehler in der Firmware hin. Eine Aktualisierung der Firmware kann das Problem in den meisten Fällen beheben. aktuellsten Firmware Versionen können über DT-Flasher heruntergeladen werden ( -> siehe Firmware Update durchführen) Die Status-LED leuchtet 2 Sekunden und erlischt für etwa 300ms.
3.2. DIP-Switches Einige Einstellungen lassen sich einfach mit Hilfe von DIP Schaltern konfigurieren. Es lassen sich die DHCP- und EEPROM-Einstellungen konfigurieren. Achtung: Alle Änderungen an den DIP-Schaltern werden nur nach Trennung und Wiederherstellung der Spannungsversorgung übernommen. Modus / Erklärung Schalter 1 DHCP ist aktiviert Die Netzwerkseinstellungen (IP, Subnetzmaske, DNS-Domain sowie Gateway) werden über einen DHCP-Server aus Ihrem...
Page 27
Modus / Erklärung Schalter 2 EEPROM Schreibschutz aktiviert Ist der Schreibschutz aktiv, kann keine Konfiguration der Netzwerkeinstellungen über das DELIB-Configuration Utility vorgenommen werden. EEPROM Schreibschutz deaktiviert Modus / Erklärung Schalter 3 Das Modul startet mit den im EEPROM gespeicherten Parametern. Die im EEPROM gespeicherten Werte (IP-Adresse, Gateway, Subnetzmaske, DHCP) werden beim Modulstart ignoriert.
Page 28
Geben Sie hier den Text ein. Hardware | Seite 28...
Page 30
4. Firmware update 4.1. DEDITEC Flasher You can find the latest firmware version for your DEDITEC product always at the download section of our homepage. -> http://www.deditec.de/en/module/downloads/firmware-updates.html Approach after download Unzip the ZIP archive Start the program deditec-flasher.exe The following application will be opened: You can find a detailed description of the available commands on the following page.
Page 31
2. Additional options Command (Key) Description Flasher runs in DEBUG mode Therefore, additional information will be displays Reads the current firmware of connected DEDITEC products 3. Select the module which you want to flash (RO-Series only) Command (Key) Description Flash the RO-Interface module...
Page 32
After successful update procedure, the message FLASH-OK! appears. Firmware update | Seite 32...
Page 34
5. Software 5.1. Using our products 5.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! 5.1.2.
Page 35
5.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.
Page 36
5.2. DELIB driver library 5.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 5.2.1.1.
Page 37
5.2.1.2. 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®.
Page 38
5.2.2. Supported operating systems Our products support the following operating systems: Windows 7 Windows Vista Windows XP Windows 2000 Linux 5.2.3. Supported programming languages Our products are responsive via the following programming languages: Delphi VisualBasic VB.NET MS-Office Software | Seite 38...
Page 39
5.2.4. Installation DELIB driver library Start screen of the DELIB installer 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 | Seite 39...
Page 40
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 | Seite...
Page 41
5.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.
Page 42
Description of the DELIB integration in Visual-C/C++ The DELIB Installation defines environment variables to facilitate links to the DELIB-include and DELIB-lib directory. DELIB_LIB = C:\Programs\DEDITEC\DELIB\lib DELIB_INCLUDE = C:\Programs\DEDITEC\DELIB\include Start Visual-C/C++ and open via menu "Projekt -> Einstellungen" Software | Seite...
Page 43
DELIB.H entry in the Visual-C/C++ Project configurations Under the tab "C/C++" choose the "Kategorie" Präprozessor and enter on "Zusätzliche Include Verzeichnisse" "$(DELIB_INCLUDE)". Software | Seite...
Page 44
DELIB.LIB entry in the Visual-C/C++ Project configurations Under the tab "Linker" extend the existing line in "Zusätzliche Include Verzeichnisse" with the ending "$(DELIB_LIB)\delib.lib" Software | Seite...
Page 45
Description of the DELIB integration in Visual-C# You can find the needed files for Visual-C# in the directory C: \Programme\DEDITEC\DELIB\Include\delib.cs. Start Visual-C# and open via menu "Projekt -> Vorhandes Element hinzufügen" in the directory C: \Programme\DEDITEC\DELIB\Include\ the file "delib.cs" to import.
Page 46
5.3.3. Integration of the delib.cs in Visual-C# unter Windows 64bit Program sample for the DELIB driver library under Windows 64 Bit In the following sections there is a description how to compile the project as "x86" Show all settings Open the options via menue "Extras -> Optionen" Check “Alle Einstellungen anzeigen"...
Page 47
Check under "Projekte und Projektmappen" "Erweiterte Buildkonfigurationen anzeigen". Software | Seite...
Page 48
The Configuration Manager Open the configuration manager via "Any CPU -> Konfigurations-Manager...". In the configuration manager select under der column "Plattform" "Any CPU -> Neu...". Under "Neue Plattform" select "x86". Software | Seite 48...
Page 49
Start debugging You can start the debugging as normal via the "Start-Button". Note that the toolbar combobox for Platform Configuration now lists both "x86" and "AnyCPU" and has "x86" selected Software | Seite...
Page 50
5.3.4. Integration of the delib.pas in Delphi Description of the "delib.pas" integration in Delphi find needed files Delphi directory \Programme\DEDITEC\DELIB\include\delib.pas. Start Delphi and open via menu "Projekt -> dem Projekt hinzufügen" the file "delib.pas" to import. Software | Seite 50...
Page 51
5.3.5. Integration of the delib.bas in Visual Basic Description of the "delib.bas" integration in Visual Basic find needed files directory \Programme\DEDITEC\DELIB\include\delib.bas. Start Visual Basic and open via menu "Projekt -> Datei hinzufügen..." the file "delibi.bas" to import. Software | Seite 51...
Page 52
5.3.6. Integration of the delib.vb in VB.NET Description of the DELIB integration in VB.NET find the needed files for VB.NET directory \Programme\DEDITEC\DELIB\Include\delib.vb. Start VB.NET and open via menu "Projekt -> Vorhandes Element hinzufügen" directory \Programme\DEDITEC\DELIB\Include\ the file "delib.vb" to import.
Page 53
5.3.7. Integration of the delib.bas in MS-Office (VBA) Description of the "delib.bas" integration in Visual Basic for Applications find needed files directory \Programme\DEDITEC\DELIB\include\delib.bas. Start Microsoft Excel and open via menu "Extras -> Makro -> Visual Basic Editor". Software | Seite 53...
Page 54
Creation of UserForm Create a new UserForm via menu "Einfügen -> UserForm". In the top left-hand corner of the project manager right click on "UserForm -> Datei importieren". Open in the directory C:\Programme\DEDITEC\DELIB\include the file "delib. bas" to import. Software | Seite...
Page 55
Description of the delib.dll integration in LabVIEW Version 11 - You can find the needed files for LabVIEW in the directorys "C:\Windows\System32\delib.dll" "C:\Programme\DEDITEC\DELIB\include\ delib.h" - Start LabVIEW and open the menu "Tools -> Import -> DLL ..." Software | Seite 55...
Page 56
- Choose the option "create VIs for DLL" and press continue Software | Seite 56...
Page 57
- In the next window, choose the path to the delib.h and delib.dll and press continue Software | Seite 57...
Page 58
- Press continue again - The Header-File will now be analized. Afterwards press continue. Software | Seite 58...
Page 59
- Follow the instructions and configurate the name and the saving location for the VIs. Software | Seite 59...
Page 60
- In the new window choose "Easy error correction" in the drop-down menu and press continue. Software | Seite 60...
Page 61
- VIs which are working with 64-bit values must be edited. The display must be changed from "unsigned long" to "unsigned quad". - The following VIs must be edited: -> DapiCNT48CounterGet48 (function return) -> DapiDIGet64 (function return) -> DapiDOSet64 (data) ->...
Page 62
- In addition for some VIs you need to change the elementype to "numeric". - The following VIs must be edited: -> DapiWriteLongLong (value) -> DapiReadLongLong (function return) - Afterwards press continue. Software | Seite 62...
Page 63
- You recive a summary of the executed steps. - Press continue - The VIs will now be created and are ready to use. Software | Seite 63...
Page 64
In the delib.h file can you read the hexadecimal values to determine the modes. The hex values must be convertet to decimal. After the installation of the DELIB-library, the delib.h file is located in the following directory: C:\Programs\Deditec\DELIB\Include\delib.h Software | Seite...
Page 65
The function could look like this in LabVIEW: The channel and mode are passed as unsigned long Software | Seite 65...
5.4.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.
Page 67
\Programme\DEDITEC\DELIB\Programs\Console. You can find the DELIB CLI Command for Windows after Installation of the DELIB driverlibrary in the directory C:\Programme\DEDITEC\DELIB\programs\cli\ The DELIB CLI Command for Linux is located in the directory "/deditec-cli/, after unzipping the ZIP-Archiv "delib-linux-cli". Definition (Windows) delib_cli command channel [value | unit ["nounit"] ] Definition for USB-Module (Linux) sudo delib-cli-usb command channel [value | unit ["nounit"] ]...
Page 68
integer or hexadecimal number (starting with 0x). 0, 1, 2, ... For an integer a V for Volt, mA for milli Ampere can be attached. Software | Seite 68...
Page 69
Return-value Read state of the inputs (in combination with command = di, di8, di16, di32 and ai). Read state of the inputs as hexadecimal (in combination with command = di, di8, di16, di32 and ai and unit "hex") Voltage of the input (in combination with unit "volt" and command "ai") Current of the input (in combination with unit "mA"...
Page 70
= DapiOpenModule(USB_OPTOIN_8_RELAIS_8, 0); if(handle==0) handle = DapiOpenModule(USB_OPTOIN_16_RELAIS_16, 0); if(handle==0) handle = DapiOpenModule(USB_OPTOIN_32_RELAIS_32, 0); return handle; Note: The project "delib-cli-usb" has to recompiled after each modification. Therefore, you can find in the directory "/deditec-cli/", the shell script Software | Seite 70...
Page 71
"compile_delib_cli_usb.sh", with which you can compile the project under Linux. Software | Seite 71...
Page 72
5.5.2. Customisation for RO-ETH-Modules (only Linux) In order to access a RO-ETH module under Linux, you have to set IP address of the module. Therefore you can find in the directory "/deditec-cli/source" the file "delib_cli_open_module_eth.c" after unzipping the ZIP archive.
Page 73
5.5.3. DELIB CLI samples Digital Outputs Windows delib_cli DO1 17 1 -> digital output 18 will be switched on delib_cli DO1 3 0 -> digital output 4 will be switched on delib_cli DO8 0 255 -> digital outputs 1-8 will be switched on delib_cli DO16 0 0 ->...
Page 74
Digitale Inputs Windows delib_cli DI1 3 Example of a return value: 1 -> reads the state of digital input 4 delib_cli DI8 0 hex Example of a return value: 0xFF -> reads the state of digital input 4 as hexadecimal delib_cli DI16 0 hex Example of a return value: 0xFFFF ->...
Page 75
Analog Outputs Windows delib_cli AO 7 4711 ->analog output 8 will be set to the decimal value 4711 delib_cli AO 6 0x4711 ->analog output 7 will be set to the hexadecimal value 0x4711 delib_cli AO 7 3.7V -> the voltage of analog output 8 will be set to 3,7 Volt (the comma ","...
Page 76
Analog Inputs Windows delib_cli AI 2 Example of a return value: 1234 -> reads the value of analog input 3 as decimal delib_cli AI 2 hex Example of a return value: 0x1FA -> reads the value of analog input 3 as hexadecimal delib_cli AI 2 V Example of a return value: 12.500000V ->...
Page 77
DELIB API reference DELIB API reference | Seite 77...
6. DELIB API reference 6.1. Management functions 6.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 ->...
Page 79
6.1.2. DapiCloseModule Description This command closes an opened module. Definition ULONG DapiCloseModule(ULONG handle); Parameters handle=This is the handle of an opened module Return value none Example program // Close the module DapiCloseModule(handle); DELIB API reference | Seite 79...
Page 80
6.1.3. DapiGetDELIBVersion Description This function returns the installed DELIB version. Definition ULONG DapiGetDELIBVersion(ULONG mode, ULONG par); Parameters mode=Mode, with which the version is readout (must be 0). par=This parameter is not defined (must be 0). Return value version=Version number of the installed DELIB version [hex]. Example program version = DapiGetDELIBVersion(0, 0);...
Page 81
6.1.4. DapiSpecialCMDGetModuleConfig Description This command returns the hardware equipment (number of in-/output channels) of the module. Definition ULONG DapiSpecialCommand(ULONG handle, DAPI_SPECIAL_CMD_GET_MODULE_CONFIG, par, 0, 0); Parameters handle=This is the handle of an open module. Get number of digital input channels par=DAPI_SPECIAL_GET_MODULE_CONFIG_PAR_DI Get number of digital output channels par=DAPI_SPECIAL_GET_MODULE_CONFIG_PAR_DO Get number of digital in-/output channels...
Page 82
Return value Get number of digital input channels return=Number of digital input channels Get number of digital output channels return=Number of digital output channels Get number of digital in-/output channels return=Number of digital in-/output channels Get number of analog input channels return=Number of analog input channels Get number of analog output channels return=Number of analog output channels...
Page 83
6.1.5. DapiOpenModuleEx Description This function opens a specific RO-ETH-module.The particularity of this command is, that parameters like IP-address and portnumber can be specified. Definition ULONG DapiOpenModuleEx(ULONG moduleID, ULONG nr, unsigned char* exbuffer); Parameters moduleID=Specifies the module, which is to be opened (see delib.h) nr=Indicates No of module which is to be opened.
6.2. Error handling 6.2.1. DapiGetLastError Description This function returns the last registered error. Definition ULONG DapiGetLastError(); Parameters None Return value Error code 0=no error. (see delib.h) Example program ULONG error; error=DapiGetLastError(); if(error==0) return FALSE; printf("ERROR = %d", error); DELIB API reference | Seite 84...
Page 85
6.2.2. DapiGetLastErrorText Description This function reads the text of the last registered error. Definition extern ULONG __stdcall DapiGetLastErrorText(unsigned char * msg, unsigned long msg_length); Parameters msg = text buffer msg_length = length of the buffer Example program BOOL IsError () if (DapiGetLastError () != DAPI_ERR_NONE) unsigned char msg[500];...
6.3. Reading Digital inputs 6.3.1. DapiDIGet1 Description This command reads a single digit input. Definition ULONG DapiDIGet1(ULONG handle, ULONG ch); Parameters handle=This is the handle of an opened module. ch=Specifies the number of input that is to be read (0 ..). Return value State of the input (0 / 1).
Page 87
6.3.2. DapiDIGet8 Description This command reads 8 digital inputs simultaneously. Definition ULONG DapiDIGet8(ULONG handle, ULONG ch); Parameters handle=This is the handle of an opened module. ch=Specifies the number of the input, from which it begins to read from (0, 8, 16, 24, 32, ..) Return value State of the read inputs.
Page 88
6.3.3. DapiDIGet16 Description This command reads 16 digital inputs simultaneously. Definition ULONG DapiDIGet16(ULONG handle, ULONG ch); Parameters handle=This is the handle of an opened module. ch=Specifies the number of the input, from which it begins to read from (0, 16, 32, ..) Return value State of the read inputs.
Page 89
6.3.4. DapiDIGet32 Description This command reads 32 digital inputs simultaneously. Definition ULONG DapiDIGet32(ULONG handle, ULONG ch); Parameters handle=This is the handle of an opened module. ch=Specifies the number of the input, from which it begins to read from (0, 32, 64, ..) Return value State of the read inputs.
Page 90
6.3.5. DapiDIGet64 Description This command reads 64 digital inputs simultaneously. Definition ULONGLONG DapiDIGet64(ULONG handle, ULONG ch); Parameters handle=This is the handle of an opened module. ch=Specifies the number of the input,from which it begins to read from (0, 64, ..) Return value State of the read inputs.
Page 91
6.3.6. DapiDIGetFF32 Description This command reads the flip-flops from the inputs and resets them. (Input state change). Definition ULONG DapiDIGetFF32(ULONG handle, ULONG ch); Parameters handle=This is the handle of an opened module . ch=Specifies the number of the input, from which it begins to read from (0, 32, Return value State of 32 input change states DELIB API reference | Seite 91...
Page 92
6.3.7. DapiDIGetCounter Description This command reads the counter of a digital input Definition ULONG DapiDIGetCounter(ULONG handle, ULONG ch, ULONG mode); Parameters handle=This is the handle of an opened module. ch=Specifies the digital input,from which the counter will be read. mode=0 (Normal counter function) mode=DAPI_CNT_MODE_READ_WITH_RESET (Reading and resetting the counter) mode=DAPI_CNT_MODE_READ_LATCHED (Reading the latched counter)
Page 93
6.3.8. DapiSpecialCounterLatchAll Description This command saves the counters of all digital inputs simultaneously into a temporary storage (latch). So, after that, the counter of the latch can be read successively. Here, the speciality is, that it is possible to "freeze" simultaneously the counter and the frozen counter (latch) can be read one by one.
Page 94
6.3.9. DapiSpecialCounterLatchAllWithReset Description This command saves the counters of all digital inputs simultaneously into a temporary storage (latch). In addition, the counters of the digital inputs will be reset. Definition void DapiSpecialCommand(ULONG handle, DAPI_SPECIAL_CMD_COUNTER, DAPI_SPECIAL_COUNTER_LATCH_ALL_WITH_RESET, 0, 0); Parameters None Example program DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_COUNTER, DAPI_SPECIAL_COUNTER_LATCH_ALL_WITH_RESET, 0, 0);...
Page 95
6.3.10. Dapi_Special_DI_FF_Filter_Value_Get Description This command returns the filter [ms], in which time interval the digital inputs are sampled. Definition ULONG DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_DI, DAPI_SPECIAL_DI_FF_FILTER_VALUE_GET, 0, 0); Parameters handle=This is the handle of an opened module. Return value Time [ms] Example program value = DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_DI, DAPI_SPECIAL_DI_FF_FILTER_VALUE_GET, 0, 0);...
Page 96
6.3.11. Dapi_Special_DI_FF_Filter_Value_Set Description This command sets a filter [ms], in which time interval the digital inputs are sampled. Definition void DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_DI, DAPI_SPECIAL_DI_FF_FILTER_VALUE_SET, ULONG time_ms, 0); Parameters handle=This is the handle of an opened module. time_ms=time interval [ms], in which digital inputs are sampled. Return value None Remarks...
6.4. Setting Digital outputs 6.4.1. DapiDOSet1_WithTimer Description This function sets a digital output (ch) to a value (data - 0 or 1) for a specified time in msec. Definition void DapiDOSet1_WithTimer(ULONG handle, ULONG ch, ULONG data, ULONG time_ms); Parameters handle=This is the handle of an opened module ch=Specifies the number of the output, from which it begins to write to (0, 32, 64, ..) data=Specifies the data values, to write to the outputs...
Page 98
6.4.2. DapiDOSet1 Description This is the command to set a single output. Definition void DapiDOSet1(ULONG handle, ULONG ch, ULONG data); Parameters handle=This is the handle of an opened module ch=Specifies the number of the output to be set to (0 ..) data=Specifies the data value that is to be written (0 / 1) Return value None...
Page 99
6.4.3. DapiDOSet8 Description This command sets 8 digital outputs simultaneously. Definition void DapiDOSet8(ULONG handle, ULONG ch, ULONG data); Parameters handle=This is the handle of an opened module ch=Specifies the number of the output, from which it begins to write to (0, 8, 16, 24, 32, ..) data=Specifies the data values, to write to the outputs Return value...
Page 100
6.4.4. DapiDOSet16 Description This command sets 16 digital outputs simultaneously. Definition void DapiDOSet16(ULONG handle, ULONG ch, ULONG data); Parameters handle=This is the handle of an opened module ch=Specifies the number of the output, from which it begins to write to (0, 16, 32, ..) data=Specifies the data values, to write to the outputs Return value...
Page 101
6.4.5. DapiDOSet32 Description This command sets 32 digital outputs simultaneously. Definition void DapiDOSet32(ULONG handle, ULONG ch, ULONG data); Parameters handle=This is the handle of an opened module ch=Specifies the number of the output, from which it begins to write to (0, 32, 64, ..) data=Specifies the data values, to write to the outputs Return value...
Page 102
6.4.6. DapiDOSet64 Description This command is to set 64 digital outputs. Definition void DapiDOSet64(ULONG handle, ULONG ch, ULONG data); Parameters handle=This is the handle of an opened module ch=Specifies the number of the output, from which it begins to write to (0, 64, ..) data=Specifies the data values, to write to the outputs Return value None...
Page 103
6.4.7. DapiDOReadback32 Description This command reads back the 32 digital outputs. Definition ULONG DapiDOReadback32(ULONG handle, ULONG ch); Parameters handle=This is the handle of an opened module ch=Specifies the number of the input, from which it begins to read from (0, 32, Return value Status of 32 outputs.
Page 104
6.4.8. DapiDOReadback64 Description This command reads back the 64 digital outputs. Definition ULONGLONG DapiDOReadback64(ULONG handle, ULONG ch); Parameters handle=This is the handle of an opened module ch=Specifies the number of the input, from which it begins to read from (0, 64, Return value Status of 64 outputs.
Page 108
7. Appendix 7.1. Revisions Rev 2.00 First DEDITEC issue Rev 2.01 Added chapter "Firmware update" and "Integration of the DELIB" Rev 2.02 Added index Appendix | Seite 108...
Page 109
7.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.
Need help?
Do you have a question about the ETH-RELAIS-8 and is the answer not in the manual?
Questions and answers