first_steps
Table of Contents
First steps with Etherlab
Note: further details still missing (work in progress)
Write Your First Own EtherCAT Master Application
- Take an arbitrary Desktop PC
- Install Linux on it (OpenSuse or Linux Mint are some good recommendations)
- Install
build-essentials
andgit
- get the sources from https://gitlab.com/etherlab.org/ethercat
- compile and install the binaries and libraries
- Take a Beckhoff EK1100 bus coupler with some I/O modules
- run
ethercat scan
- copy the source code from
ethercat/example
to your projectfoldermyproject
- copy or include this code into your
myproject.c
- generate the device mappings with
ethercat cstruct > mappings.c
- 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
- IgH EtherCAT Master for realtime data exchange on the EtherCAT bus.
- PdCom to provide a network interface for HMI
- Etherlab Testmanager to build your own simple HMI
You could leave a comment if you were logged in.
first_steps.txt · Last modified: 2024/09/19 17:29 by etherlab_admin