4. Running the acontis EtherCAT Master Demo (RT-Linux)

In this section we will get the EtherCAT master demo application running. It is assumed that an Ethernet adapter has been assigned to the RTOS.

4.1. Adjust the configuration

You may also have to adjust the parameters for the master stack demo on behalf.

Caution

This should only be done if the supplied default values for this quickstart guide arn’t sufficent!

gedit /hv/guests/etc/rt-linux/files/ecat/noeni.sh

respectively

gedit /hv/guests/etc/rt-linux/files/ecat/real.sh

4.2. Step 1: Scan the EtherCAT network

cd /hv/guests/examples/rt-linux
hv_guest_start -view

Start the EC-Master (without an ENI):

vmf64 login: root
password:  root
cd /mnt/rtfiles/etc/rt-linux/files/ecat
./noeni.sh

Finally, terminate the console connection to the real-time guest and stop the Real-time guest OS:

CTRL + C

hv_guest_stop

4.3. Step 2: Set the EtherCAT network operational

In this section we will run the EtherCAT network into OPERATIONAL mode. You need to be familiar with how to create an ENI file for EtherCAT networks.

In a first step, please generate a network configuration file (ENI) for the connected network.

Copy your ENI file to /hv/guests/etc/rt-linux/files/ecat/real.xml.

Start the EC-Master (with an ENI):

vmf64 login: root
password:  root
cd /mnt/rtfiles/etc/rt-linux/files/ecat
./real.sh