User Tools

Site Tools


eeros_architecture:ethercat:start

This is an old revision of the document!


EhterCAT

Overview

Understanding the inner working of EtherCAT is crucial for using EtherCAT effectively. Read this article to get a better understanding of EtherCAT.

Components

In order to use an EEROS application with EtherCAT, the following components are required: * EEROS: The robotic framework

  • EtherCAT stack: The EtherCAT stack from Acontis. Detailed describtion here
  • ecmasterlib: This library provides an easy interface to the EtherCAT stack. The library initializes the stack and takes over the periodic sending and receiving of the bus data. It provides the following interfaces:
    • EtherCATInterfaceBase: Basic interface for ecmasterlib
    • EtherCATInterfaceElmo: Based on EtherCATInterfaceBase. An interface designed for Elmo drives. You may need to implement your own interface for different drives.

Preperations

Install EtherCAT

First, read this article on how to install EtherCAT on your system and how to run a demo application without EEROS.

If the demo application runs successfully, you can write your own EEROS application with EtherCAT.

Install EEROS

Once the EtherCAT stack has been installed and the demo application is running, the ecmasterlib can be installed.

Clone, build and install ecmasterlib TODO:

$ cd path/to/working/directory
$ git clone url-to-ecmasterlib
$ cd ecmasterlib
$ mkdir build-x86-64
$ cd build-x86-64
$ cmake -DCMAKE_INSTALL_PREFIX=/absolute/path/to/working/directory/install-x86-64 ..
$ make
$ make install

Build and install EEROS after you have installed ecmasterlib Install EEROS as described in this tutorial, but use the command line option -DUSE_ETHERCAT=TRUE when calling cmake.

...
cmake -DCMAKE_INSTALL_PREFIX=/absolute/path/to/working/directory/install-x86-64 -DUSE_ETHERCAT=TRUE ..
...
eeros_architecture/ethercat/start.1554129129.txt.gz · Last modified: 2019/04/01 16:32 by gehrig