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

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

A/D filter

Avoiding measurement errors

A/D converters with a higher resolution are very precise measuring instruments that can detect even the smallest changes in the measurement signal. In practice, electrical or electromagnetic interference often affects the measurement signal via the connecting cable and distorts it. The measurement signals can be smoothed and optimized using an A/D filter.

 

Solution

The software-based filter we use has already been integrated into the microcontroller that controls the A/D converter. Various filter levels can be set and read back via software commands.
The filter principle is based on averaging a sum of measurements. The higher the filter level is selected, the more measurements are used to calculate the average value. However, this also means that the sampling rate of the A/D converter is reduced as the filter level increases.

 

Application

Each time the module is restarted, the A/D filter is initially switched off and can be activated using the DELIB command if required. It is therefore advisable to set the A/D filter in the initialization of your project. The maximum number of filter levels that can be set can vary depending on the product. To determine the maximum A/D filter that can be set, the filter level can be set to 250. When reading back the filter, you will now receive the maximum value.
The following commands can be used to set the A/D filter:

  • 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)

Further examples can be found in the manual for your module in the section: A/D converter functions


Measurement with and without A/D filter

The top image shows a measurement with the A/D filter deactivated.
In the image below, the filter level was set to 10.

AD Filterlevel 0 to 10