Table of Contents

First steps with Etherlab

Note: further details still missing (work in progress)

Write Your First Own EtherCAT Master Application

  1. Take an arbitrary Desktop PC
  2. Install Linux on it (OpenSuse or Linux Mint are some good recommendations)
  3. Install build-essentials and git
  4. compile and install the binaries and libraries
  5. Take a Beckhoff EK1100 bus coupler with some I/O modules
  6. run ethercat scan
  7. copy the source code from ethercat/example to your projectfolder myproject
  8. copy or include this code into your myproject.c
  9. generate the device mappings with ethercat cstruct > mappings.c
  10. compile and run ./myproject

Now you have your own EtherCAT Master running - probably doing nothing else than transferring useless data to and from your slaves.

Implement some Logic

Now with the master running and working with your hardware, you probably want to implement some realtime logics.

Build a simple HMI with Testmanager

You can integrate pdserv into your master application, which provides a non-realtime interface into the realtime process. On the other side you can use either pdcom or the graphical Testmanager.

Results

So far we have used