BS-WEU-AD16-DA4-OR16

0 customer reviews

ab  753,27

Desined-in-Germany

OUR PROMISE TO YOU:


 
Our advantages
 


DEDITEC Logo
Top 3 of the best-selling DEDITEC products!
We have a full year’s production of this module in sufficient quantities in stock.

Availability: In Stock SKU: BSW-ADDA-OR16 Category:

The BS-WEU-AD16-DA4-OR16 is a compact module with an Ethernet and USB interface. Furthermore, you can integrate and control this module via WiFi into your PC network.

 

3 different module variants

  • with 16 A/D channels
  • with 16 A/D channels , 4 D/A channels
  • with 16 A/D channels , 4 D/A channels, 16 DI/DO channels

Optional extensions

  • CAN and SER interface (see scope of delivery)
  • A/D current and voltage modes (see scope of delivery)
  • Ethernet-Interface 10/100 Mbit
  • Connection via WiFi possible
  • WPS function
  • Open Ethernet protocol
  • USB 2.0 interface up to 480 Mbit
  • 16 * A/D inputs with 16-bit resolution each
  • Voltage ranges: 0-5V, 0-10V, ±5V, ±10V
  • Current ranges optional: 0-50mA
  • 4 * D/A outputs with 16-bit resolution each
  • Voltage ranges: 0-5V, 0-10V, ±5V, ±10V

WEU Modules

WEU Modules (WEU= WiFi, Ethernet, USB) can be connected to the PC network via Ethernet or USB interface, but also via WiFi. For a more user-friendly connection setup via WiFi, the module can also be connected to the router via WPS function.


Analogue inputs

Analog to digital converter modules are suitable for measuring and monitoring voltages and currents. Measuring transducers, for example, convert physical quantities such as pressure, temperature, humidity etc. into corresponding currents (0..24mA) or voltages (0..10V) and can thus be recorded and digitally processed with our A/D modules.

 

A/D filter

Electrical or electromagnetic interference in measurement signals is smoothed and optimized by the software-side A/D filter by averaging the measurements.

 

Analogue outputs

With our digital to analog converter modules you are able to control current or voltage controlled actuators such as valves, servomotors or special power supplies. Especially in harsh industrial environments and with very long cable runs, analog signals, especially currents, can be transmitted interference-free.


Digital inputs

With our optocoupler inputs, digital signal states can be recorded within a voltage range of 5V to 30V AC or DC. Input and output circuits are galvanically isolated from each other up to 2.5kV.

 

Digital In Input Filter

With our Digital-In modules, an input filter can be set in a time interval of 1ms…255ms to filter interference pulses.

This means that AC signals can also be detected cleanly.

 

Counter

Each input has a 16 bit counter that can count up to 65535 pulses. If the maximum counter value is exceeded, the counting process starts again from zero. By means of a software command, the current status of all input counters can be read from the module simultaneously.

 

Recording of status changes

Status changes that occur between the readout cycles are reliably detected by internal flip-flops and can be read out separately by software. In addition, such an event is signalled by a status LED. Resetting is done automatically after the flip-flops have been read out.


Relay 1A

With the option “Relay outputs (1A)” reed relays with normally open (NO) function are used. They are suitable for smaller switching capacities of up to 1A and have a service life of well over 100 million switching cycles. The electrical isolation between input and output circuit is up to 1.5kV.

 

Relay 3A

With the option “Relay outputs (3A)” power relays with normally open (NO) function are used. They are suitable for switching capacities of up to 3A and have a service life of up to 10 million switching cycles. The electrical isolation between input and output circuit is up to 3kV.

 

MOSFET 2A

With the option “Mosfet outputs (2A)” P-Ch MOSFETs are used. They are suitable for switching capacities up to 2A DC and are practically wear-free.


 

Fail-safe mode

The fail-safe mode is a safety function in which the DEDITEC module switches to a previously configured, safe switching state in the event of a connection failure.
This is intended to prevent connected installations or systems from continuing to run in an uncontrolled manner.

 

Three switching states can be defined for each digital output: a) Switched off, b) Switched on or c) Unchanged.

 

The fail-safe circuit is triggered by a timeout protection function. If the control unit no longer receives any commands from the control PC within a previously defined period of time, the timeout function comes into effect. The cause of a timeout can be a loss of connection between the control PC and the DEDITEC control system or failure of the control PC.

 

Timeout modes

Three timeout modes are available:

 

A) “Normal mode” is valid once and must be reactivated manually by software command after each timeout event. The customer application still has access to all controller outputs.

 

B) In “Auto reactivate mode”, the timeout function is automatically reactivated after communication with the control PC has been re-established. The customer application still has access to all outputs of the control unit.

 

C) The “Secure outputs mode” blocks access to the outputs after the timeout event. Unlocking can only be carried out by software command. This is an important safety aspect


Connectors

A screwless system from the manufacturer WAGO Kontakttechnik is used as the connector. The 1-wire female connectors are 100% protected against mismating and have an eject and locking mechanism. All conductor types up to 1.5mm² can be connected.


Software and control

Our DELIB driver library, which is included with the product, makes it easy to address the product via our API.

 

We offer support for the following programming languages:

  • C
  • C++
  • C#
  • VB
  • VBA
  • VB.Net
  • Java
  • Delphi
  • LabVIEW

We offer support for the following operating systems:

  • Windows 10 (32bit/64bit)
  • Windows 8/8.1 (32bit/64bit)
  • Windows 7 (32bit/64bit)
  • Windows Vista (32bit/64bit)
  • Windows XP (32bit/64bit)
  • Windows Server 2003 (32bit/64bit)
  • Windows 2000
  • Linux

Corresponding programming examples can be found in the “Software” section of the products or are included on the driver CD.


 

General

LEDs • WIFI
• LAN
• Interf.Act
• Status
• Error
• I/O-Acc
• O.Auto-Off
• I.Change
Connector • Two-pole plug-in screw terminal for power supply
• Pluggable 16/18 pole female connector with locking mechanism
• 100 % mismated
• 1-conductor connection for all types of conductors up to 1.5mm²
Top-hat rail mounting TS 35
Operating temperature +10°C .. +50°C
Power supply via external power supply unit + 7V bis +24V DC
Abmessungen
BE-WEU-AD16-DA4 105 mm x 152 mm x 74,5 mm (H x B x T)
BE-WEU-AD16-DA4-OR16 105 mm x 258 mm x 74,5 mm (H x B x T)

Ethernet/WiFi Interface

Interface • 10/100 Mbit Ethernet
• LAN configuration via the ICT-Tool possible (IP address, netmask …)
• WiFi configuration via the ICT-Tool (router name, password, WPS,…)
Connection setup • Ethernet/LAN – Cable
• WLAN – WPS
IP address • DHCP or static
WPS button • Activation WPS
DIP switch • DHCP ON/OFF
• Write protection ON/OFF
• Factory setting ON/OFF
• Bootloader ON/OFF
Access speed (Calculated with 1000 accesses to the module via the DELIB driver library with the command DapiDoSet32)
•Ethernet: 1,56 ms
•WiFi: 4,06 ms

USB-Interface

Interface • Connection: Type B
• USB 2.0 / USB 1.1 interface with up to 480Mbit
Access speed (Calculated with 1000 accesses to the module via the DELIB driver library with the command DapiDoSet32)
•USB: 4,06 ms

(optionale Schnittstelle)

CAN-Interface

Interface • CAN 2.0A (galvanically isolated up to 1kV rms)
• CAN 2.0A or 2.0B
• 1 Mbit/s, 500 Kbit/s, 250 Kbit/s, 125 Kbit/s, 100 Kbit/s, 50 Kbit/s, 20 Kbit/s or 10 Kbit/s
• CAN open protocol
• Automatic processing of CAN packets (Auto RX/TX Mode)
• Connection via 9 pin D-Sub female connector

(optionale Schnittstelle)

Serial interface

Interface • RS-232 interface with up to 115,200 baud rate
• Connection via 9 pin D-Sub female connector

Analog inputs

Analog inputs • 16 channels with 16 bit each
  • Galvanic isolation to power supply: max. 500V
  • Voltage ranges: 0-5V, 0-10V, +5V, +10V
• optional voltage range: 0-20V, 0-40V, +20V, +40V
• optional current ranges: 0-20mA, 4-20mA, 0-24mA
  • Input resistance: >500kOhm
  • Integral Linearity Error:  Min: -1.5 LSB / Max: +1.5 LSB
• Bipolar Full-Scale Error: Min: – 50 LSB / Max: +50 LSB
• Unipolar Full-Scale Error: Min: – 70 LSB / Max: +70 LSB
  • Accuracy: +3ppm/C°
• Zero Error Temperature Drift: +1ppm/C°
• Full-Scale Error Temperature Drift: +1 ppm/°C
  • Conversion rate: 4µs
A/D filter • Electrical or electromagnetic interference in measurement signals is smoothed and optimized by the software-side A/D filter by averaging the measurements
• Filter level 0 at module start (= filter deactivated)
• Can be set via DELIB commands
  – DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_AD, DAPI_SPECIAL_AD_FILTER_SET, ((filterlevel & 0xff) << 8) | (submodule_nr & 0xff) , 0)
  – DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_AD, DAPI_SPECIAL_AD_FILTER_GET, (submodule_nr & 0xff) , 0)

Analog outputs

Analog outputs • 4 channels with 16-bit resolution each
  • Galvanic isolation to power supply: max. 500V AC
  • Voltage ranges: 0-5V, 0-10V,  +5V, +10V
  • Relative Accuracy: Min: -16 LSB / Max: +16 LSB
  • Bipolar Zero Error (T = 25°C): ±4 ppm FSR/°C
• Zero-Scale Error (T = 25°C): ±2 ppm FSR/°C
• Full-Scale Error Temperature Drift: ±1 ppm/°C

Digital inputs

Optocoupler inputs • 15V – 30V DC/AC signal voltage (optional 5V – 15V or 30V – 50V DC/AC)
• Galvanic isolation between input and output circuit: up to 2.5kV AC for 1 minute
• Maximum input current: 14mA
• 16 bit counter per channel
• Maximum possible counts: 65535 / channel. Reset to zero after memory overflow
• Internal counting logic up to 10kHz with latch function
• Programmable filter for input channels (flip-flop and counter)
• Minimum low or high pulse duration: 5ms…255ms
• Detects a change from low to high and high to low level
• Detection of input state change between two readout processes

Digital outputs

Relay up to 3A • 8 outputs
• Typ: PCN105D3MHZ
• Feature: normally open contact (NO)
• Max. Switching voltage: 48V AC / DC
• Max. Switching current: 3A AC / DC
• Max. Switching capacity: 144 W
• Galvanic isolation between contact and coil: 3kV RMS /1 Min
• Mechanical life: up to 10 million switching cycles
Relais up to 3A • Typ: PCN105D3MHZ
• Feature: Normally open contact (NO)
• Max. Switching voltage: 48V AC / DC
• Max. Switching current: 3A AC / DC
• Max. Transport current 3A AC / DC
• Max. Switching capacity: 90 W
• Galvanic isolation between contact and coil: 3kV RMS /1 Min
• Mechanical life: up to 10 million switching cycles
MOSFET up to 2A • Typ: IRFR5505PBF
• P-Channel MOSFET
• Max. Switching voltage: 48V DC
• Min. switching voltage: 2.8V DC
• Max. Switching current: 2A DC
• Max. Switching capacity: 60W DC
• Max. Total load: 12A per 8 outputs

Additional information

Weight N/A
Variante

BSW-AD16, BSW-AD16-DA4_16, BSW-AD16-DA4_14, BSW-AD16-DA4_16-OR16, BSW-AD16-DA4_14-OR16, BSW-AD16-DA4_16-OM16, BSW-AD16-DA4_14-OM16, BSW-AD16-DA4_16-OR_3A, BSW-AD16-DA4_14-OR_3A

ICT-Tool our all-in-one software

Integration, configuration and testing – our new, comprehensive tool for all our products. All functionalities are integrated in the Windows ICT tool.
It covers everything from commissioning the DEDITEC modules to testing, diagnostics and firmware updates.
The ICT tool combines all previous programs, such as the DELIB Configuration Utility, the Demo module and the DT-Flasher, in one application and has been supplemented with numerous other functions.

 

 

 

 

Overview screen of the ICT tool with all functions. These are described in more detail in the following chapters
 

General information on the ICT tool

We have developed the new ICT tool to make commissioning our products as easy and straightforward as possible.
This tool combines all the important functions of our old programs, such as the Configuration Utility, Module Demo and DT-Flasher, in one.
With the ICT tool, you can now easily configure, test, diagnose, flash and debug our products.
In the following chapters, we would like to introduce you to our new all-in-one software in more detail.

Module selection

Here you can integrate your modules into the ICT tool by clicking on the “+” symbol, so that you can then configure or test them.

ICT-Tool module selection. Display of the ICT-Tool at program start

Start screen

Here you can find some important information about your selected module.
In addition, you can display the manual of the module as PDF or HTML version here.
Under “Show module IDs” you can call up all available module IDs. This ID is needed to integrate our products into your software projects.

ICT-Tool module info. Display of the ICT tool when the module is open

ICT Treeview

In the treeview on the left side of the program window, you can see the respective forms that are supported by your module.
With a click you can then display this form in the right part of the program and perform possible configurations or tests.

ICT-Tool Treeview. Presentation of the ICT tool, explanation of the structure

Configuration

WEU module configuration

Our WEU modules (WEU = WiFi, Ethernet, USB) can be connected directly to the home or company network via cable or WiFi. The following options are available for configuration:

 

1. ICT-Tool

With the ICT-Tool you can not only configure your Ethernet module quickly and easily, you can also view all important module information at just one glance.

 

  • Modul name
  • Modul-ID
  • Firmware revision
ICT-Tool Overview

Identification

Identify your currently addressed module with the help of LEDs located on the board. This is especially helpful if several modules are in operation at the same time.

 

ICT-Tool Ident

LAN network information

All important LAN network information at a glance. On this information page, you will find the current LAN settings of your module.

 

ICT-Tool LAN info

LAN network configuration

Integrate your module into the home or company network with just a few clicks or control it directly via a 1-to-1 connection. The following module information can be queried and changed with the ICT-Tool.

 

  • Board Name
  • Network protection
  • DHCP on/off
  • IP address
  • Net mask
  • Std. Gateway
  • TCP-Port
ICT-Tool LAN config

WiFi network information

All important WiFi network settings of your module are displayed on the WiFi info page.

 

ICT-Tool WIFI Info

WiFi network configuration

Integrate your module into the WLAN home or company network with just a few clicks. The following module information can be queried and partly changed with the ICT-Tool

 

  • Board name
  • WLAN on/off
  • Routername
  • Password
  • TCP-Port
ICT-Tool WIFI config

WPS network connection

With the WPS function, your module can be quickly and easily, automatically connected to the router (WPS on the router is required)

 

ICT-Tool WPS

TCP encryption

Here you can make settings for the encryption of your module.
The following configurations can be made.

 

  • Allow unencrypted protokol on/off
  • Allow user-encrypted protocol on/off
  • User-encryption password
  • Allow admin-encrypted protocol on/off
  • Admin-encryption password</li
  • Allow I/O access via webinerface on/off</li
ICT-Tool Encryption

NTP configuration

You can make changes to the NTP service here.
The following configurations can be made.

 

  • NTP service on/off
  • Server
  • Port
  • Timezone
ICT-Tool NTP

2. Web interface

The Ethernet module has its own web server, which can be used to change the following parameters:

 

  • IP-Adresse
  • IP address
  • Net mask
  • Std. gateway
  • DNS server
WEB Interfacce

 

DELIB driver library

 


Our WEU modules (WEU = WiFi, Ethernet, USB) you can program via Ethernet as well as via USB

M2M

M2M stands for “Machine-to-Machine” and enables the analog or digital input signals of one module to be automatically transferred to another module.
M2M transmission is supported by most of our products with an Ethernet or CAN interface


M2M-Ethernet

For M2M communication via Ethernet, it must be noted that the transmitter module must explicitly have the M2M function.
However, all DEDITEC products with an Ethernet interface can be used as receiver modules.
A total of up to 4 receiver modules can be configured and up to 8 actions defined.

 

Network settings of the receiver module and actions to be performed can be set using the ICT tool.


Receiver modules

You can enter the network settings of the receiver module here.
The following settings can be made:

  • Name of the receiver module
  • IP address
  • Port
  • Timeout
  • Encryption type and password, if applicable
ICT-Tool M2M Destination

Jobs

Here you can set which inputs are to be sent to the receiver module.
The following settings can be made:

  • Type of task (digital, analog)
  • Which receiver module should be used
  • The interval with which the operations are to be performed
  • Start Channel number of the transmitter module
  • Number of channels to be transmitted
  • Start Channel number of the receiver module

In the image on the right, DI data is sent every 100ms from channel 3(CH Start) to channel 8 ((CH Start) + (CH Count)) to channels 0-5 of the receiver module

M2M Jobs

M2M-CAN

Machine-to-machine, or M2M for short, involves direct communication between two or more modules. Analog or digital input signals from a transmitter module can be sent channel by channel via the CAN bus to channels on the receiver module. All DEDITEC products with a CAN interface are designed for automatic data exchange. M2M communication settings can be made using the ICT tool in the CAN configuration area.
Depending on the module type, up to 8 or 16 RX and TX modes can be defined using preset options

CAN configuration

In this example, CAN packets are sent every 500ms via the CAN bus to CAN ID 700.

M2M CAN TX
M2M CAN RX

Programming of modules via the DELIB driver library on Windows

The comprehensive yet very easy to use DELIB driver library is suitable for almost any programming language. An installation package with extensive examples can be found on our CD or in the download section.

Downloads

 

 

Control via the Windows driver library DELIB

The DELIB driver library enables a uniform response of all DEDITEC control engineering products. For this purpose, we provide programmers with appropriate functions for the respective product groups, which enable a uniform but also very simple addressing of the products.

 

Here you will find an overview of the DELIB and its programs:

DELIB + Tools

 

A list of all DELIB commands can be found here:

Overview DELIB API


DELIB driver library ETH

We also offer a pure Ethernet version of the DELIB driver library. Not included are all other drivers like USB/SER.
This has the advantage that no installation of the driver library or configuration of the module is necessary.
This gives project customers the advantage that the Ethernet driver library can be integrated into their own setup, eliminating the need to run the DELIB setup.

All products with Ethernet interface are supported by this driver library and can be addressed via the IP address.

 

Here you can find the download:

DELIB ETH

The DELIB enables simple addressing of DEDITEC modules

 

The following example shows how simple means can be used to access the inputs of our modules within a very short time.

 

Open the module

handle = DapiOpenModule(RO_ETH,0); // Open Ethernet-Module

 

Read 16 digital inputs

data = DapiDIGet16(handle, 0); // Read the first 16 digital inputs

 

Close Module

DapiCloseModule(handle); // Close the module

 

The function “DapiOpenModule” is used to open a product. Which product is to be opened is determined by the two transferred parameters. The first parameter designates the “Module ID”. Due to the included “DELIB.H” the parameter can be simply specified with “RO_USB1”. This tells the driver library that a RO module with USB bus is to be addressed.

 

The second parameter determines the module number. If only one module is connected to the PC, a “0” is specified. If several modules are connected, the corresponding module number must be specified. The module number can be changed with the DT-ICT-Tool.


 

Example of the addressing of a DEDITEC module

DT-ICT-Tool

The scope of delivery includes the DT-ICT-Tool. This program offers the possibility to address all inputs/outputs in a simple way and thus also to test them.

In this example, an BS-WEU is connected. The connected BS-WEU has digital outputs, these can be switched on and off.

ICT-Tool DigitalOut

 


Control of Ethernet modules via TCP/IP using our open Ethernet protocol

If required, you can program your own control system yourself. The protocol that describes the communication via TCP/IP is disclosed. The control is register-based. For this purpose, a communication protocol has been created which is used to address the registers of the module and thus execute read or write commands. The manual “Protocols & Register Assignment” describes the send and receive frames to communicate with our Ethernet modules.

 

Ethernet Protocol Documentation


Programming of USB modules

Example for opening several modules on one PC:

 

Opening the module with the nr. “1”

handle1 = DapiOpenModule(RO_USB1,1); // Open USB-Modul with Nr=1

Opening the module with the nr. “4”

handle2 = DapiOpenModule(RO_USB1,4); // Open USB-Modul with Nr=4

Programming of modules via the DELIB driver library on Windows

The comprehensive yet very easy to use DELIB driver library is suitable for almost any programming language. An installation package with extensive examples can be found on our CD or in the download section.

Downloads

 

 

Control via the Windows driver library DELIB

The DELIB driver library enables a uniform response of all DEDITEC control engineering products. For this purpose, we provide programmers with appropriate functions for the respective product groups, which enable a uniform but also very simple addressing of the products.

 

Here you will find an overview of the DELIB and its programs:

DELIB + Tools

 

A list of all DELIB commands can be found here:

Overview DELIB API


DELIB driver library ETH

We also offer a pure Ethernet version of the DELIB driver library. Not included are all other drivers like USB/SER.
This has the advantage that no installation of the driver library or configuration of the module is necessary.
This gives project customers the advantage that the Ethernet driver library can be integrated into their own setup, eliminating the need to run the DELIB setup.

All products with Ethernet interface are supported by this driver library and can be addressed via the IP address.

 

Here you can find the download:

DELIB ETH

The DELIB enables simple addressing of DEDITEC modules

 

The following example shows how simple means can be used to access the inputs of our modules within a very short time.

 

Open the module

handle = DapiOpenModule(RO_ETH,0); // Open Ethernet-Module

 

Read 16 digital inputs

data = DapiDIGet16(handle, 0); // Read the first 16 digital inputs

 

Close Module

DapiCloseModule(handle); // Close the module

 

The function “DapiOpenModule” is used to open a product. Which product is to be opened is determined by the two transferred parameters. The first parameter designates the “Module ID”. Due to the included “DELIB.H” the parameter can be simply specified with “RO_USB1”. This tells the driver library that a RO module with USB bus is to be addressed.

 

The second parameter determines the module number. If only one module is connected to the PC, a “0” is specified. If several modules are connected, the corresponding module number must be specified. The module number can be changed with the DT-ICT-Tool.


 

Example of the addressing of a DEDITEC module

DT-ICT-Tool

The scope of delivery includes the DT-ICT-Tool. This program offers the possibility to address all inputs/outputs in a simple way and thus also to test them.

In this example, an BS-WEU is connected. The connected BS-WEU has digital outputs, these can be switched on and off.

ICT-Tool DigitalOut

 


Control of Ethernet modules via TCP/IP using our open Ethernet protocol

If required, you can program your own control system yourself. The protocol that describes the communication via TCP/IP is disclosed. The control is register-based. For this purpose, a communication protocol has been created which is used to address the registers of the module and thus execute read or write commands. The manual “Protocols & Register Assignment” describes the send and receive frames to communicate with our Ethernet modules.

 

Ethernet Protocol Documentation


Programming of USB modules

Example for opening several modules on one PC:

 

Opening the module with the nr. “1”

handle1 = DapiOpenModule(RO_USB1,1); // Open USB-Modul with Nr=1

Opening the module with the nr. “4”

handle2 = DapiOpenModule(RO_USB1,4); // Open USB-Modul with Nr=4

General Handling

DEDITEC ICON
DapiOpenModule
This function opens a particular module.

DapiOpenModule

 

Description

This function opens a specific module

 

Definition

ULONG DapiOpenModule(ULONG moduleID, ULONG nr);

 

Parameters

moduleID=Specifies the module to be opened (see delib.h)
nr=Specifies which one (in case of several modules) should be opened.
nr=0 -> 1st module
nr=1 -> 2nd module

 

Return-Value

handle=Corresponding handle for the module
handle=0 -> module was not found

 

Comment

The handle returned by this function is needed to identify the module for all other functions.

 

Programming example

// Open USB module
handle = DapiOpenModule(RO_USB1, 0);
printf(“handle = %x\n”, handle);
if (handle==0)
{
// USB module was not found
printf(“Modul konnte nicht geöffnet werden\n”);
return;
}

DapiCloseModule
This command closes an opened module.

DapiCloseModule

 

Description

This command closes an open module.

 

Definition

ULONG DapiCloseModule(ULONG handle);

 

Parameters

handle=This is the handle of an open module

 

Return-Value

None

 

Programming example

// Close module
DapiCloseModule(handle);

DapiGetLastError
This function returns the last registered error. If an error has occurred, it must be deleted with DapiClearLastError(), otherwise any call of DapiGetLastError() will return the "old" error. If multiple modules are used, the use of DapiGetLastErrorByHandle() is recommended.

DapiGetLastError

 

Description

This function returns the last detected error. If an error occurred, it must be cleared with DapiClearLastError(), otherwise any call to DapiGetLastError() will return the “old” error.
If more than one module should be used, it is recommended to use DapiGetLastLastErrorByHandle().

 

Definition

ULONG DapiGetLastError(void);

 

Parameters

None

 

Return-Value

Error Code
0=no error. (see delib_error_codes.h)

 

Programming example

BOOL IsError()
{
unsigned char msg[500];
unsigned long error_code = DapiGetLastError();

if (error_code != DAPI_ERR_NONE)
{
DapiGetLastErrorText((unsigned char*) msg, sizeof(msg));
printf(“Error Code = 0x%x * Message = %s\n”, error_code, msg);

DapiClearLastError();

return TRUE;
}

return FALSE;
}

DapiGetLastErrorByHandle
This function returns the last registered error of a particular module (handle). If an error has occurred, it must be deleted with DapiClearLastErrorByHandle(), otherwise any call of DapiGetLastErrorByHandle() will return the "old" error.

DapiGetLastErrorByHandle

 

Description

This function returns the last detected error of a specific module (handle). If an error occurred, it must be cleared with DapiClearLastErrorByHandle(), otherwise any call to DapiGetLastErrorByHandle() will return the “old” error.

 

Definition

ULONG DapiGetLastErrorByHandle(ULONG handle);

 

Parameters

handle=This is the handle of an open module

 

Return-Value

Error Code
0=no error. (see delib_error_codes.h)

 

Programming example

BOOL IsError(ULONG handle)
{
unsigned long error_code = DapiGetLastErrorByHandle(handle);

if (error_code != DAPI_ERR_NONE)
{
printf(“Error detected on handle 0x%x – Error Code = 0x%x\n”, handle, error_code);

DapiClearLastErrorByHandle(handle);

return TRUE;
}

return FALSE;
}

DapiGetLastErrorText
This function reads the text of the last registered error. If an error has occurred, it must be cleared with DapiClearLastError(), otherwise every call of DapiGetLastErrorText() returns the "old" error. Definition

DapiGetLastErrorText

 

Description

This function reads the text of the last detected error. If an error occurred, it must be cleared with DapiClearLastError(), otherwise any call to DapiGetLastErrorText() will return the “old” error.

 

Definition

ULONG DapiGetLastErrorText(unsigned char * msg, unsigned long msg_length);

 

Parameters

msg = Buffer for the text to be received
msg_length = Length of the text buffer

 

Programming example

BOOL IsError()
{
unsigned char msg[500];
unsigned long error_code = DapiGetLastError();

if (error_code != DAPI_ERR_NONE)
{
DapiGetLastErrorText((unsigned char*) msg, sizeof(msg));
printf(“Error Code = 0x%x * Message = %s\n”, error_code, msg);

DapiClearLastError();

return TRUE;
}

return FALSE;
}

DapiClearLastError
This function deletes the last error registered with DapiGetLastError().

DapiClearLastError

 

Description

This function deletes the last error registered with DapiGetLastError().

 

Definition

void DapiGetLastError(void);

 

Parameters

None

 

Return value

None

 

Example program

BOOL IsError()
{
unsigned char msg[500];
unsigned long error_code = DapiGetLastError();

if (error_code != DAPI_ERR_NONE)
{
DapiGetLastErrorText((unsigned char*) msg, sizeof(msg));
printf(“Error Code = 0x%x * Message = %s\n”, error_code, msg);

DapiClearLastError();

return TRUE;
}

return FALSE;
}

DapiClearLastErrorByHandle
This function deletes the last error of a particular module (handle), which was registered with DapiGetLastErrorByHandle().

DapiClearLastErrorByHandle

 

Description

This function deletes the last error of a particular module (handle), which was registered with DapiGetLastErrorByHandle().

 

Definition

void DapiClearLastErrorByHandle(ULONG handle);

 

Parameters

handle=This is the handle of an opened module.

 

Return value

None

 

Example program

BOOL IsError(ULONG handle)
{
unsigned long error_code = DapiGetLastErrorByHandle(handle);

if (error_code != DAPI_ERR_NONE)
{
printf(“Error detected on handle 0x%x – Error Code = 0x%x\n”, handle, error_code);

DapiClearLastErrorByHandle(handle);

return TRUE;
}

return FALSE;
}

DapiGetDELIBVersion
This function returns the installed DELIB version.

DapiGetDELIBVersion

 

Description

This function returns the installed DELIB version.

 

Definition

ULONG DapiGetDELIBVersion(ULONG mode, ULONG par);

 

Parameters

mode=Mode with which the version is read (must always be 0).
par=This parameter is not defined (must always be 0).

 

Return-Value

version=Version number of the installed DELIB version [hex]

 

Programming example

version = DapiGetDELIBVersion(0, 0);
//With installed version 1.32 version = 132(hex)

DapiOpenModuleEx
This function opens a specific module with ethernet interface.The particularity of this command is,that parameters like IP-address, portnumber and the duration of the timeout can be specified. The opening of the module is independent of the DELIB Configuration Utility settings.

DapiOpenModuleEx

 

Description

This function specifically opens a module with an Ethernet interface. The parameters IP address, port number and the duration of the timeout can be determined.

 

Definition

ULONG DapiOpenModuleEx(ULONG moduleID, ULONG nr, unsigned char* exbuffer, 0);

 

Parameters

moduleID = Specifies the module to be opened (see delib.h)
nr = Specifies which one (in case of several modules) is to be opened
nr = 0 -> 1st module
nr = 1 -> 2nd module
exbuffer = buffer for IP address, port number and duration of the timeout

 

Return-Value

handle = Corresponding handle for the module
handle = 0 -> module was not found

 

Comment

The handle returned by this function is required to identify the module for all other functions.
This command is supported by all modules with Ethernet interface.

 

Programming example

// Open ETH-Module with parameter

DAPI_OPENMODULEEX_STRUCT open_buffer;

strcpy((char*) open_buffer.address, “192.168.1.10”);
open_buffer.portno = 0;
open_buffer.timeout = 5000;

handle = DapiOpenModuleEx(RO_ETH, 0, (unsigned char*) &open_buffer, 0);
printf(“Module handle = %x\n”, handle);

Analog input functions

DEDITEC ICON
DapiADSetMode
This is the command to configure the input range of an A/D converter.

DapiADSetMode

 

Description

This command configures the voltage range for an A/D converter.

 

Definition

void DapiADSetMode(ULONG handle, ULONG ch, ULONG mode);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the channel of the A/D converter (0 .. )
mode=Indicates the mode for the channel

 

Return-Value

none

 

Comment

The following modes are supported:
(these depend on the A/D module used)
Unipolar voltages:
ADDA_MODE_UNIPOL_10V
ADDA_MODE_UNIPOL_5V
ADDA_MODE_UNIPOL_2V5
Bipolar voltage:
ADDA_MODE_BIPOL_10V
ADDA_MODE_BIPOL_5V
ADDA_MODE_BIPOL_2V5
Currents:
ADDA_MODE_0_20mA
ADDA_MODE_4_20mA
ADDA_MODE_0_24mA
ADDA_MODE_0_25mA
ADDA_MODE_0_50mA

DapiADGetMode
This command reads the set mode of an A/D converter . For mode description see DapiADSetMode.

DapiADGetMode

 

Description

This command reads back the set mode of an A/D converter. For mode description see DapiADSetMode.

 

Definition

ULONG DapiADGetMode(ULONG handle, ULONG ch);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the channel of the A/D converter (0 .. )

 

Return-Value

Mode of the A/D converter

DapiADGet
This command reads a data value of one channel of an A/D converter

DapiADGet

 

Description

This command reads a data value from one channel of an A/D converter.

 

Definition

ULONG DapiADGet(ULONG handle, ULONG ch);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the channel of the A/D converter (0 .. )

 

Return-Value

Value from A/D converter in digits

DapiADGetVolt
This command reads a data value of one channel of an A/D converter in volts.

DapiADGetVolt

 

Description

This command reads a data value from one channel of an A/D converter in volts.

 

Definition

float DapiADGetVolt(ULONG handle, ULONG ch);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the channel of the A/D converter (0 .. )

 

Return-Value

Value from A/D converter in volts

DapiADGetmA
This command reads a data value of one channel of an A/D converter in mA.

DapiADGetmA

 

Description

This command reads a data value from one channel of an A/D converter in mA.

 

Definition

float DapiADGetmA(ULONG handle, ULONG ch);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the channel of the A/D converter (0 .. )

 

Return-Value

Value from A/D converter in mA.

 

Comment

This command is module dependent. Of course it only works if the module also supports the power mode.

DapiSpecialCommand - DapiReadMultipleBytes
This command saves the values of certain neighboring channels of an A/D converter simultaneously in an intermediate buffer. The values can then be read out one after the other. The advantage of this is that the A/D values are buffered simultaneously and the values can then be queried more quickly (compared to the DapiADGet command).

DapiSpecialCommand – DapiReadMultipleBytes

 

Description

This command saves the values of certain neighboring channels of an A/D converter simultaneously in an intermediate buffer.
The values can then be read out one after the other. The advantage of this is that the A/D values are buffered at the same time and the values can then be queried more quickly (compared to the DapiADGet command).

 

Definition

void DapiSpecialCommand(ULONG handle, DAPI_SPECIAL_CMD_AD, DAPI_SPECIAL_AD_READ_MULTIPLE_AD, ULONG start_ch, ULONG end_ch);

 

Parameter

handle=This is the handle of an open module
start_ch=Specifies the start channel of the A/D converter from which the values are buffered (0, 1, 2, ..).
end_ch=Gibt den End-Kanal des A/D Wandlers an, bis zu dem die Werte gepufferten werden (0, 1, 2, ..).

 

Return-Value

None

 

Comment

The values buffered with the DapiReadMultipleBytes command can then be read with the DapiADGetVolt, DapiADGetmA or DapiADGet commands. To ensure that the buffered value is actually read, the parameter “ch” must be logically linked with 0x8000 “or” for these functions (see examples).

 

Programming example

DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_AD, DAPI_SPECIAL_AD_READ_MULTIPLE_AD, 0, 15);
// Buffers the values of A/D channel 0..15

DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_AD, DAPI_SPECIAL_AD_READ_MULTIPLE_AD, 0, 63);
// Buffers the values of A/D channel 0..63

DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_AD, DAPI_SPECIAL_AD_READ_MULTIPLE_AD, 16, 31);
// Buffers the values of A/D channel 16..31

value = DapiADGetVolt(handle, 0x8000 | 0);
// Returns the buffered value of A/D channel 0 in volts.

value = DapiADGetmA(handle, 0x8000 | 15);
// Returns the buffered value of A/D channel 15 in mA.

value = DapiADGet(handle, 0x8000 | 63);
// Returns the buffered value of A/D channel 63 in digits.

Analog output functions

DEDITEC ICON
DapiDASetMode
This command sets the mode for a D/A converter.

DapiDASetMode

 

Description

This command sets the mode for a D/A converter.

 

Definition

void DapiDASetMode(ULONG handle, ULONG ch, ULONG mode);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the channel of the D/A converter (0 .. )
mode=Gives the mode for the D/A converter

 

Return value

None

 

Comment

The following modes are supported:
(these depend on the D/A module used)
Unipolar voltages:
ADDA_MODE_UNIPOL_10V
ADDA_MODE_UNIPOL_5V
ADDA_MODE_UNIPOL_2V5
Bipolar tensions:
ADDA_MODE_BIPOL_10V
ADDA_MODE_BIPOL_5V
ADDA_MODE_BIPOL_2V5
Currents:
ADDA_MODE_0_20mA
ADDA_MODE_4_20mA
ADDA_MODE_0_24mA
ADDA_MODE_0_25mA
ADDA_MODE_0_50mA

DapiDAGetMode
This command reads back the chosen mode of a D/A converter.

DapiDAGetMode

 

Description

This command reads back the set mode of a D/A converter.

 

Definition

ULONG DapiDAGetMode(ULONG handle, ULONG ch);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the channel of the D/A converter (0 .. )

 

Return-Value

Mode of the D/A converter

DapiDASet
This command transfers a data value to a channel of a D/A converter.

DapiDASet

 

Description

This command transfers a data value to a channel of a D/A converter.

 

Definition

void DapiDASet(ULONG handle, ULONG ch, ULONG data);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the channel of the D/A converter (0 .. )
data= Specifies the data value that is written

 

Return value

None

DapiDASetVolt
This command sets a voltage to a channel of a D/A converter.

DapiDASetVolt

 

Description

This command sets a voltage to one channel of a D/A converter.

 

Definition

void DapiDASetVolt(ULONG handle, ULONG ch, float data);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the channel of the D/A converter (0 .. )
data=Indicates the voltage to be set [V].

 

Return-Value

None

DapiDASetmA
This command sets a current to a channel of a D/A converter.

DapiDASetmA

 

Description

This command sets a current to one channel of a D/A converter.

 

Definition

void DapiDASetmA(ULONG handle, ULONG ch, float data);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the channel of the D/A converter (0 .. )
data=Indicates the current that is written [mA].

 

Return value

None

 

Comment

This command is module dependent. Of course it only works if the module also supports the power mode.

Digital input functions

DEDITEC ICON
DapiDIGet1
This command reads a single digital input.

DapiDIGet1

 

Description

This command reads a single digital input.

 

Definition

ULONG DapiDIGet1(ULONG handle, ULONG ch);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the number of the input to be read (0, 1, 2, 3, .. )

 

Return-Value

Status of the input (0/1)

 

Requirements

The following SW feature bits must be supported by the module:

DAPI_SW_FEATURE_BIT_CFG_DI

The following conditions for the transfer parameters must be met:

maxCh = DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_GET_MODULE_CONFIG, DAPI_SPECIAL_GET_MODULE_CONFIG_PAR_DI, 0, 0)
maxCh > ch

DapiDIGet8
This command reads 8 digital inputs simultaneously.

DapiDIGet8

 

Description

This command reads 8 digital inputs simultaneously.

 

Definition

ULONG DapiDIGet8(ULONG handle, ULONG ch);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the number of the input from which the read is to start (0, 8, 16, 24, .. )

 

Return-Value

Status of the read inputs

 

Requirements

The following SW feature bits must be supported by the module:

DAPI_SW_FEATURE_BIT_CFG_DI

The following conditions for the transfer parameters must be met:

maxCh = DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_GET_MODULE_CONFIG, DAPI_SPECIAL_GET_MODULE_CONFIG_PAR_DI, 0, 0)
maxCh > ch ch must be 0, 8, 16, …

DapiDIGet16
This command reads 16 digital inputs simultaneously.

DapiDIGet16

 

Description

This command reads 16 digital inputs simultaneously.

 

Definition

ULONG DapiDIGet16(ULONG handle, ULONG ch);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the number of the input from which the read is to start (0, 16, 32, …)

 

Return-Value

Zustand der gelesen Eingänge

 

Requirements

The following SW feature bits must be supported by the module:

DAPI_SW_FEATURE_BIT_CFG_DI

The following conditions for the transfer parameters must be met:

maxCh = DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_GET_MODULE_CONFIG, DAPI_SPECIAL_GET_MODULE_CONFIG_PAR_DI, 0, 0)
maxCh > ch ch must be 0, 16, 32, …

DapiDIGet32
This command reads 32 digital inputs simultaneously.

DapiDIGet32

 

Description

This command reads 32 digital inputs simultaneously.

 

Definition

ULONG DapiDIGet32(ULONG handle, ULONG ch);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the number of the input from which the read is to start (0, 32, 64, ..)

 

Return-Value

Status of the read inputs

 

Requirements

The following SW feature bits must be supported by the module:

DAPI_SW_FEATURE_BIT_CFG_DI

The following conditions for the transfer parameters must be met:

maxCh = DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_GET_MODULE_CONFIG, DAPI_SPECIAL_GET_MODULE_CONFIG_PAR_DI, 0, 0)
maxCh > ch ch must be 0, 32, 64, …

 

Programming example

unsigned long data;
// —————————————————-
// Read a value from the inputs (input 1-31)
data = (unsigned long) DapiDIGet32(handle, 0);
// Chan start = 0
printf(“Input 0-31 : 0x%x\n”, data);
printf(“key for further\n”);
getch();
// —————————————————-
// Read a value from the inputs (input 32-64)
data = (unsigned long) DapiDIGet32(handle, 32);
// Chan Start = 32
printf(“Input 32-64 : 0x%x\n”, data);
printf(“key for further\n”);
getch();

DapiDIGet64
This command reads 64 digital inputs simultaneously.

DapiDIGet64

 

Description

This command reads 64 digital inputs simultaneously.

 

Definition

ULONGLONG DapiDIGet64(ULONG handle, ULONG ch);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the number of the input from which the read is to start (0, 64, ..)

 

Return-Value

Status of the read inputs

 

Requirements

The following SW feature bits must be supported by the module:

DAPI_SW_FEATURE_BIT_CFG_DI

The following conditions for the transfer parameters must be met:

maxCh = DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_GET_MODULE_CONFIG, DAPI_SPECIAL_GET_MODULE_CONFIG_PAR_DI, 0, 0)
maxCh > ch ch must be 0 or 64

DapiDIGetFF32
This command reads the flip-flops from the inputs and resets them. (Input state change).

DapiDIGetFF32

 

Description

This command reads the flip-flops of the inputs and resets them.
(input state change)

 

Definition

ULONG DapiDIGetFF32(ULONG handle, ULONG ch);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the number of the input from which the read is to start (0, 32, 64, ..)

 

Return-Value

Status of 32 input status changes

 

Requirements

The following SW feature bits must be supported by the module:

DAPI_SW_FEATURE_BIT_CFG_DI_FF

The following conditions for the transfer parameters must be met:

maxCh = DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_GET_MODULE_CONFIG, DAPI_SPECIAL_GET_MODULE_CONFIG_PAR_DI_FF, 0, 0)
maxCh > ch ch must be 0, 32, 64, …

Digital output functions

DEDITEC ICON
DapiDOSet1
This is the command to set a single output.

DapiDOSet1

 

Description

This command sets a single output.

 

Definition

void DapiDOSet1(ULONG handle, ULONG ch, ULONG data);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the number of the output to be set (0 .. )
data= Specifies the data value to be written (0 / 1)

 

Return-Value

None

 

Requirements

The following SW feature bits must be supported by the module:

 

DAPI_SW_FEATURE_BIT_CFG_DO

The following conditions for the transfer parameters must be met:

maxCh = DapiSpecialCommand(handle, DAPI_SPECIAL_CMD_GET_MODULE_CONFIG, DAPI_SPECIAL_GET_MODULE_CONFIG_PAR_DO, 0, 0)
maxCh > ch

DapiDOSet8
This command sets 8 digital outputs simultaneously.

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 open module
ch= Specifies the number of the output from which writing is to start (0, 8, 16, 24, 32, ..)
data=Specifies the data values to be written

 

Return-Value

None

DapiDOSet16
This command sets 16 digital outputs simultaneously.

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 open module
ch= Specifies the number of the output from which writing is to start (0, 16, 32, ..)
data=Specifies the data values to be written

 

Return-Value

None

DapiDOSet32
This command sets 32 digital outputs simultaneously.

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 open module
ch= Specifies the number of the output from which writing is to start (0, 32, 64, ..)
data=Specifies the data values to be written

 

Return-Value

None

 

Programming example

// Write a value to the outputs
data = 0x0000ff00; // outputs 9-16 are set to 1
DapiDOSet32(handle, 0, data); // Chan Start = 0
printf(“Write to outputs data=0x%x\n”, data);
printf(“key for further\n”);
getch();
// —————————————————-
// Write a value to the outputs
data = 0x80000000; // Output 32 is set to 1
DapiDOSet32(handle, 0, data); // Chan Start = 0
printf(“Write to outputs data=0x%x\n”, data);
printf(“key for further\n”);
getch();
// —————————————————-
// Write a value to the outputs
data = 0x80000000; // Output 64 is set to 1
DapiDOSet32(handle, 32, data); // Chan Start = 32
printf(“Write to outputs data=0x%x\n”, data);
printf(“key for further\n”);
getch();

DapiDOSet64
This command is to set 64 digital outputs.

DapiDOSet64

 

Description

This command sets 64 digital outputs simultaneously.

 

Definition

void DapiDOSet64(ULONG handle, ULONG ch, ULONGLONG data);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the number of the output from which writing is to start (0, 64, ..)
data=Specifies the data values to be written

 

Return-Value

None

DapiDOClrBit32
With this command you can change the states of outputs to 0 without changing the states of the neighboring outputs.

DapiDOClrBit32

 

Description

This command can be used to switch outputs selectively to 0 without changing the states of adjacent outputs.

 

Definition

void DapiDOClrBit32(uint handle, uint ch, uint data);

 

Parameters

handle = This is the handle of an open module
ch = Specifies the number of the output from which writing is to start
data = Specifies the data value to be written (up to 32 bits)

 

Return-Value

None

 

Comment

Only the bits with a value of 1 in the data parameter are considered by the command.

 

Programming example

data = 0x1; // Output 0 would be changed to 0. The states of outputs 1-31 won’t be changed
DapiDOSetBit32(handle, 0, data);

data = 0xf; // Outputs 0-3 would be changed to 0. The states of outputs 4-31 won’t be changed
DapiDOSetBit32(handle, 0, data);

data = 0xff; // Outputs 0-7 would be changed to 0. The states of outputs 8-31 won’t be changed
DapiDOSetBit32(handle, 0, data);

data = 0xff000000; // Outputs 23-31 would be changed to 0. The states of outputs 0-21 won’t be changed
DapiDOSetBit32(handle, 0, data);

DapiDOSet1_WithTimer
This function sets a digital output (ch) to a value (data - 0 or 1) for a specified time in msec.

DapiDOSet1_WithTimer

 

Description

This function sets a digital output (ch) to a value (data – 0 or 1) for a certain time in ms.

 

Definition

void DapiDOSet1_WithTimer(ULONG handle, ULONG ch, ULONG data, ULONG time_ms);

 

Parameters

handle=This is the handle of an open module
ch= Specifies the number of the output to be set (0 .. )
data= Specifies the data value to be written (0 / 1)
time_ms=Specifies the time in which the output is set [ms].

 

Return-Value

None

 

Comment

This command is supported by all output modules of the NET series as well as by our RO-O8-R8 module.
This command loses its validity if it is overwritten with other values.
If you want to deactivate the command, it must be overwritten with time_ms=0.

 

Programming example

DapiDOSet1_WithTimer(handle, 2, 1, 1000);
//Setting channel 2 for 1000msec to 1

DapiDOSetBit32
With this command you can change the states of outputs to 1 without changing the states of the neighboring outputs.

DapiDOSetBit32

 

Description

This command can be used to switch outputs selectively to 1 without changing the states of adjacent outputs.

 

Definition

void DapiDOSetBit32(uint handle, uint ch, uint data);

 

Parameters

handle = This is the handle of an open module
ch = Specifies the number of the output from which writing is to start
data = Specifies the data value to be written (up to 32 bits)

 

Return-Value

None

 

Comment

Only the bits with a value of 1 in the data parameter are considered by the command.

 

Programming example

data = 0x1; // Output 0 would be changed to 1. The states of outputs 1-31 won’t be changed
DapiDOSetBit32(handle, 0, data);

data = 0xf; // Outputs 0-3 would be changed to 1. The states of outputs 4-31 won’t be changed
DapiDOSetBit32(handle, 0, data);

data = 0xff; // Outputs 0-7 would be changed to 1. The states of outputs 8-31 won’t be changed
DapiDOSetBit32(handle, 0, data);

data = 0xff000000; // Outputs 23-31 would be changed to 1. The states of outputs 0-21 won’t be changed
DapiDOSetBit32(handle, 0, data);

DapiDOReadback32
This command reads back the 32 digital outputs.

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 open module
ch= Specifies the number of the output from which the read back is to be performed (0, 32, 64, ..)

 

Return-Value

Status of 32 outputs.

DapiDOReadback64
This command reads the current PWM frequency of the module

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 open module
ch= Specifies the number of the output from which the read back is to be performed (0, 32, 64, ..)

 

Return-Value

Status of 32 outputs.

Connection example Relais

Connection example

Connection example Optoin

Connection example

Connection example A/D

Connection example

Connection example D/A

Connection example

Screwless connector system

The customer’s connection wiring of the inputs and outputs is carried out via screwless, pluggable terminal strips. The conductor connection is made by a so-called actuating tool.
A locking and ejection mechanism facilitates the insertion and removal of the complete terminal strip.

 

Handling

Step 1

Remove the operating tool from the scope of delivery.

Step 2

Insert the operating tool firmly into the side opening in the direction of conductor connection.

Step 3

Now insert the stripped conductor into the open terminal contact.

Schritt 4

Pull the operating tool out again.

Step 5

Check the correct connection of the conductor. It should now no longer be possible to pull it out easily.

Manual BS-WEU-Series
Hardware and software description
Download
  • Description of the control/regulation technology modules
  • Configuration of the different module interfaces
  • Software installation of the DELIB driver library

Software packages ICT tool / DELIB driver library

Manual of the software package (ICT tool + DELIB)
Documentation of the ICT tool and all commands of the driver library
Download
  • Windows 10, 8, Vista, 7, XP, 2000 andLinux
  • Moduel open/close functions
  • Digital inputs: reading 1 / 8 / 16 / 32 / 64 bit
  • Digital outputs: Write 1 / 8 / 16 / 32 / 64 bit
  • A/D Lesen: read, read_volt, read_mA, A/D Modus einstellen
  • D/A schreiben: write, write_volt, write_mA, D/A-Modus einstellen
64-bit software package (ICT tool + DELIB) for Windows
For Windows 11/10, Windows 7, Windows 8, Vista, XP and 2000
Download

Software package for the 64-bit version of the ICT tool and the DELIB driver library. systems are supported:

64 bit

  • Windows 11/10 x64
  • Windows 7 x64
  • Windows 8 x64
  • Windows Server 2012 x64
  • Windows Server 2008 x64
  • Windows Vista x64
  • Windows XP x64
  • Windows Server 2003 x64

Included software

  • DT-Flasher x64
    Software to update DEDITEC module to the latest version
  • DELIB Configuration Utility x64
    Set configuration of module addresses
  • DELIB Module Config x64
    Configuration of module-specific settings
  • CAN Configuration Utility x64
    Set configuration of CAN modules
  • DELIB Module Demo x64
    Enables manual switching of a module
  • DELIB Command Line Interface x64
    Enables the execution of DELIB commands in the command line
  • Watchdog Configuration Utility x64
    Set configuration of a watchdog stick
32-bit software package (ICT tool + DELIB) for Windows
For Windows 11/10, Windows 7, Windows 8, Vista, XP and 2000
Download

Software package for the 32-bit version of the ICT tool and the DELIB driver library.

The following operating systems are compatible:
32-Bit

    • Windows 11/10
    • Windows 7
    • Windows 8
    • Windows Server 2012
    • Windows Server 2008
    • Windows Vista
    • Windows XP
    • Windows Server 2003

64-Bit

  • Windows 10 x64
  • Windows 7 x64
  • Windows 8 x64
  • Windows Server 2012 x64
  • Windows Server 2008 x64
  • Windows Vista x64
  • Windows XP x64
  • Windows Server 2003 x64

Included software

  • DT-Flasher
    Software to update DEDITEC module to the latest version
  • DELIB Configuration Utility
    Set configuration of module addresses
  • DELIB Module Config
    Configuration of module-specific settings
  • CAN Configuration Utility
    Set configuration of CAN modules
  • DELIB Module Demo
    Enables manual switching of a module
  • DELIB Command Line Interface
    Enables the execution of DELIB commands in the command line
  • Watchdog Configuration Utility
    Set configuration of a watchdog stick

Attention:

With this version of the driver library, only 32-bit applications can be created, which can then be run on 32- and 64-bit systems.

DELIB driver library for Linux (32/64-bit)
For 32/64-bit Linux distributions starting with kernel 2.6.x. Version 2.73 from 28.10.2024
Download

DELIB driver library for Linux distributions (32/64-bit) starting with kernel 2.6.x

This driver package includes the following components:

  • DELIB USB driver
  • DELIB Ethernet driver
  • DELIB CLI

DELIB USB driver

Supports the following products:

  • NET-Series (via USB interface)
  • RO-USB-Series
  • BS-USB-Series
  • USB-Mini-Sticks
  • USB-Watchdog
  • USB-OPTION-8 / USB-RELAIS-8
  • USB-TTL-32 / USB-TTL-64

Note:

With the standard USB driver, you can access several USB products with different module IDs (for example one RO-USB and one USB-OPTOIN-8). Therefore, no additional driver installation is required.

If you want to access several USB products with the same module ID (for example one USB-OPTOIN-8 and one USB-RELAIS-8), you have to install additionally the Linux FTDI driver. The FTDI driver can be found at http://www.ftdichip.com.

 

DELIB Ethernet driver

Supports the following products:

  • NET-Series (via Ethernet Interface)
  • RO-ETH-Series
  • RO-ETH/LC-Series
  • BS-ETH-Serie
  • ETH-OPTION-8 / ETH-RELAIS-8
  • ETH-TTL-64

DELIB CLI

With the DELIB CLI (Command Line Interface) for Linux it is possible so controll all I/O’s over the command-line.

 

DELIB - Sample-Sources - Installer (approx. 10 MB)
Sample programs for different programming languages (Also in DELIB Setup included)
Download

Sample programs for different programming languages (Also in DELIB Setup included)

  • C (Microsoft Visual C++ 6.0, Borland C)
  • C++ (Microsoft Visual C++ 6.0)
  • C# (Microsoft Visual C# 2008 to 2015)
  • Delphi (Borland Delphi 7)
  • VB (Microsoft Visual Basic 6.0)
  • VB.NET (Microsoft Visual Basic 2008 to 2015)
  • Java (Java native interface)
  • Java.dll (Ethernet protocol for ethernet products)

 

Download

Hardware-Updates (Firmware flashfile package)
Firmware flashfile package for the ICT-Tool
Download

The firmware flash file package can also be downloaded directly from the ICT tool.

This package contains firmware files for the following series:

  • STARTER-Series
  • BS-Series
  • RO-Series
  • NET-Series
  • UC-Series
  • CAN-IO-Box
  • Development tools

2 pin plug connector

Allows the power supply to be connected to the DEDITEC module

  • Type: Phoenix Contact 1783287
  • 100 % malfunction protected
  • For all conductor types from 0.2mm² to 2.5mm²

16-pin plug connector

Required to connect your application to the DEDITEC module

  • Type: Wago Kontakttechnik 713-1108/037-000
  • Pluggable female connector with locking mechanism
  • 100% protected against mismating
  • 1-wire connection for all types of conductors up to 1.5mm²

18 pol connector

Required to connect your application to the DEDITEC module

  • Type: Wago Kontakttechnik 713-1109/037-000
  • Pluggable female connector with locking mechanism
  • 100 % malfunction protected
  • 1-wire connection for all types of conductors up to 1.5mm²
  • 100% save for wrong plug in
  • CAGE CLAMP®-connection

Tool for wiring connectors

Serves to open and close the clamp contacts on the Wago connectors.
  • Type: Wago Kontakttechnik 734-231

2 meter USB A/B connection cable

2 meter USB connection cable A to B.

  • Type: Plug A to plug B
  • length: 1,8m

Optionaler Strom-Modus für Analoge A/D Eingabemodule : Bereich 0-50mA

Mit dieser Option kann der Eingangsbereich der Module auf 0..50mA geändert werden. Es werden immer 8 Kanäle pro bestellter Anzahl von uns umgerüstet.
Für 16 Kanäle werden 2 Module benötigt.

 

  • Eingangsstrombereich 0..50mA
  • 8 Kanäle

BS-CAN Interfaces adapter

Is needed to extend modules of the BS series with a CAN interface.

  • CAN (galvanically isolated up to 1kV rms)
  • CAN 2.0A or CAN 2.0B
  • 1 Mbit/s, 500 Kbit/s, 250 Kbit/s, 125 Kbit/s, 100 Kbit/s, 50 Kbit/s, 20 Kbit/s or 10 Kbit/s
  • Open CAN protocol
  • Automatic processing of CAN packets (Auto RX/TX Mode)
  • Connection via 9 pin D-Sub female connector

BS-Serial interface adapter

Is needed to extend modules of the BS series with a serial interface.

  • RS-232 interface with up to 115,200 baud rate
  • Connection via 9 pin D-Sub female connector

USB watchdog stick with 2 relays for shift operations

[ref type="prod-group-kurzbeschr-converter"]

This USB-WATCHDOG-STICK monitors your operating PC or server and can reset the hardware independently in case of a program crash. Simply integrate the function of the Watchdog Stick into your application. As soon as a timeout occurs and the watchdog stick is no longer periodically reset, the two relay outputs are switched through. With an appropriate connection cabling, for example, the PC reset could be activated, an external SMS modem can send warnings or a connected siren signals an alarm. With the help of our free configuration tool, you can define how the relays should switch in case of an error.

  • USB 2.0 / USB 1.1 interface
  • Watchdog function
  • Monitoring your control PC or server
  • Timeout times adjustable from 10ms to 10h
  • Windows Watchdog API
  • 2 NO contact relay (NO)
  • Connection cable with DSUB9 socket (approx. 1.8m)

Power supply 24V/2A for DIN rail mounting

The DR-4524 from Mean Well is a 48W rail mount power supply for industrial applications. It offers protection against short circuit, overload, overvoltage and overheating.

  • Input voltage range: 85V… 264V AC / 120V DC … 370V DC
  • Output voltage: 24V DC
  • Output current: 2A
  • Nominal power: 48W

2 pin plug connector

Allows the power supply to be connected to the DEDITEC module

  • Type: Phoenix Contact 1783287
  • 100 % malfunction protected
  • For all conductor types from 0.2mm² to 2.5mm²

16-pin plug connector

Required to connect your application to the DEDITEC module

  • Type: Wago Kontakttechnik 713-1108/037-000
  • Pluggable female connector with locking mechanism
  • 100% protected against mismating
  • 1-wire connection for all types of conductors up to 1.5mm²

18 pol connector

Required to connect your application to the DEDITEC module

  • Type: Wago Kontakttechnik 713-1109/037-000
  • Pluggable female connector with locking mechanism
  • 100 % malfunction protected
  • 1-wire connection for all types of conductors up to 1.5mm²
  • 100% save for wrong plug in
  • CAGE CLAMP®-connection

Strain relief plate for 16 or 18 pole Wago connectors

A strain relief plate that can be mounted centrally between the conductor entries facilitates the plugging and unplugging process and allows easy access to the actuation openings even when wired.

  • Type: Wago / 713-127
  • Suitable for 16/18 pole female connectors with conductor connection
  • Mating and unmating aid for Wago connectors
  • Strain relief of the individual wired conductors
  • Easy mounting

Tool for wiring connectors

Serves to open and close the clamp contacts on the Wago connectors.
  • Type: Wago Kontakttechnik 734-231

DIN Rail

Top-hat rail for mounting our control technology modules.

  • Top-hat rail according to DIN EN 50022
  • Type: Phoenix Contact / 1208131
  • Dimensions in mm: 450 x 35 x 7.5 (L x W x D)

Event control

 

A mini SPS

To make our modules even more customer-friendly and flexible and to make it easier for you to enter the world of automated control technology, we have implemented a new feature called event control in our products. This function can be used to save small control tasks in the module, which then automatically execute actions according to the “if-then” principle.

 

Configuration in the ICT-Tool
You can use the ICT-Tool to configure and monitor 16 events and 16 actions.

 

Processing in the module
The events stored in the module are automatically monitored and processed by the CPU after the module is started. As soon as the set condition is fulfilled, the corresponding action is executed. This automatic process means that an additional control PC with associated application software is not required.

 

Functions

The following actions can be combined with the event control, among others:

  • Monitoring the analog and digital inputs (A/D, DI)
  • Setting the switching thresholds of the A/D inputs
  • Switching the module outputs (Relais, MOSFET, D/A)
  • Sending CAN packages

We are constantly expanding the range of promotional options. We are also happy to implement your special customer wishes for you on request.


EC statistics

The statistics section provides a quick overview of all current actions and events

EC statistic

Event configuration

The configuration page for configuring an A/D event looks like this

EC events

Configuration Action

This is what the configuration page looks like if a CAN package is to be sent as an action

EC actions

Module series supported by this function:

  • BS-USB2 series
  • BS-WEU series
  • NET series
  • UC series
  • CAN-Box series

 

Module series that are not supported by this function:

  • Starter series
  • RO series
  • COS series

Reviews

There are no reviews yet.

Be the first to review “BS-WEU-AD16-DA4-OR16”

Your email address will not be published. Required fields are marked *

Use our advantages

DEDITEC Logo

Lifetime
updates

Free soft- & hardware(firmware)-updates.
Enjoy our lifetime update service.

DEDITEC Logo

5 years
Delivery availability

We offer at least 5 years delivery availability for our products.
Our experience shows that it is even about 10 years.

DEDITEC Logo

Questions about the product? Product support

Do you have any technical or commercial questions about the product before you buy?
Please contact us in advance.

DEDITEC Logo

Customer-
modifications

Our products often serve as the basis for customer-specific solutions.
Just get in touch with us.

DEDITEC Logo

We are
always there for you!

Since its foundation in 2008, Dipl. Ing. Jürgen Siebert has been the managing director of DEDITEC GmbH. He will also be happy to advise you personally.

DEDITEC LogoProduct- & Service-Hotline: +49 (0) 22 32 / 50 40 8 – 40 DEDITEC LogoQuestions about the product or order: support@deditec.de