The function EoE is supported by all Linux SL products, like the "CODESYS Control for Raspberry Pi MC SL". 

 

The following example contains exemplary IP addresses, please perform with real data of the used device to be configured!

  • Set up tap0 device: On a Linux system with 'tuntap' support, this looks somehow like this:

    /sbin/ip tuntap add tap0 mode tap
    /sbin/ip link set tap0 up
    /sbin/ip addr add 192.168.2.1/24 dev tap0

    Maybe you need to add a additional route?

    echo 1 >/proc/sys/net/ipv4/ip_forward' ...

  • Using the Codesys default setting for EoE on "tab0" in your System Set-up!

    ... choose the correct one by using, e.g.:

    export RTS_EOE_DEV=tap1

    This is usually not necessary, since only one tab is used.

    Recommended is the using of the Codesys default setting for EoE on "tab0" here!
    This means to change other connections and set them to f.e. "tab1", if needed.

    Unfortunately, this cannot be set by the Codesys IDE.
    If this a 'tab' change is inevitably necessary, Linux on-board tools can be used:
    E.g. insert ' export RTS_EOE_DEV=tap1 ' in the start script of the runtime or fix it in a configuration file.

    See for more help: https://help.ubuntu.com/community/EnvironmentVariables

    If a 'tab' change is forced with a start script, please note, that the setting will be lost with every runtime update.

  • Start the Codesys Runtime system
  • Download the EtherCAT stack with EoE device. (The IP of the EoE device should be in this case e.g.: 192.168.2.2)
  • ping the IP (e.g. 192.168.2.2) and check the response
  • If a response is received, the EoE is basically working

  • The set-up can also be checked with ARP and ICMP with Wireshark attached to your tap device




FAQ:

Check your used addresses.
Your EoE address range f.e. must be the same as the programming port.

Do not mix them with the EtherCAT (alias) address!
Make sure to use the correct EoE address range to communicate over EtherCAT with the Ethernet protocol.



For further Information on EoE see or OnlineHelp EoE Dokumenation.


  • No labels