Bridge-mode

How to set the motorcortex controller in bridge mode.

This page is applicable for the latest image version mcx-rtos-v.2026.05. For other mcx-rtos-images checkout: Older versions.

Sometimes it is needed to configure a EtherCAT device via the manufacturers software, while keeping the EtherCAT topology intact (e.g. configuring a drive with integrated safety with the FSoE master located in the GCC). Normally this would mean unplugging the EtherCAT cable from the EtherCAT master and plugging it into a laptop, an alternative is made available by switching the Motorcortex Controller into bridge-mode, passing all data from front port “EN” directly to the EtherCAT network.

Switching on Bridge mode

  1. Log in to the cockpit and direct to the Terminal.

  2. Use the following commands to add eth1 to bridge:

    Stop motorcortex:

    sudo motorcortex stop
    

    Stop ethercat:

    sudo /etc/init.d/ethercat stop
    

    Flush eth1:

    ip addr flush dev eth1
    

    Add eth1 to existing bridge br0:

    sudo ip link set eth1 master br0
    
  3. After this you will be able to scan the EtherCAT network with your manufacturers software (directly via your PC or with an other EtherCAT master device) via the ENET port on the GCC.

Switching off Bridge mode

  1. Log in to the cockpit and direct to the Terminal.

  2. Use the following commands to remove eth1 from bridge:

    Flush eth1:

    ip addr flush dev eth1
    

    Remove eth1 from bridge:

    sudo ip link set eth1 nomaster
    

    Start ethercat:

    sudo /etc/init.d/ethercat start
    

    Start motorcortex:

    sudo motorcortex start
    
  3. After this you will be able to use motorcortex again.

Older Version