3.5. Cable Redundancy
The EC-Simulator supports Cable Redundancy by using two Network Interfaces to provide the Redundancy feature. Frames are sent from and received on both interfaces.
The EC-Simulator HiL automatically connects the red adapter to a matching port within the simulated network topology.
An explicit connection can be set using EC_T_SIMULATOR_INIT_PARMS::aoDeviceConnection at esInitSimulator() .
3.5.1. Running EcSimulatorHilDemo with Cable Redundancy
3.5.1.1. Linux (EcSimulatorHilDemo)
Starting EcSimulatorHilDemo with two links configured
$ cd /opt/EC-Simulator/Bin/Linux/x64
$ ./EcSimulatorHilDemo -f exi.xml -intelgbe 1 1 -intelgbe 2 1 -perf
3.5.1.2. EcSimulatorHilDemoPython
Script arguments for
Examples/EcSimulatorHilDemoPython/EcDemoApp.pywith two links configured:
$ -mode 4 -file exi.xml -time 20000 -lvl 3 -link "intelgbe 1 1" -linkred "intelgbe 2 1"
Important
The MainDevice has restrictions in case of cable redundancy, e.g. it is not allowed to use LRW EtherCAT® commands.