5.16. emllRemote

The emllRemote is used to tunnel EtherCAT frames within a TCP socket between EC-Master and EC-Simulator.

The parameters to the Remote Real-time Ethernet Driver are setup-specific. The function CreateLinkParmsFromCmdLineRemote() in EcSelectLinkLayer.cpp demonstrates how to initialize the Real-time Ethernet Driver instance.

Public Members

Common link parameters. Signature must be set to EC_LINK_PARMS_SIGNATURE_REMOTE

Socket type. Must be set to 1 (emrassocktype_tcp)

Source adapter IP address (listen) (EC-Simulator)

Source port number (listen) (EC-Simulator)

Destination adapter IP address (connect) (EC-Master)

Destination port number (connect) (EC-Master)

MAC address

Frame buffer count for interrupt service thread (IST)

While EC-Simulator listens on the given port using emllRemote, the EC-Master can connect to it using emllRemote.

EcSimulatorHilDemo command line example:

EcSimulatorHilDemo -remote 1 0 0.0.0.0 10001 0.0.0.0 0 -f eni.xml

EcMasterDemo command line example:

EcMasterDemo -remote 1 1 0.0.0.0 0 127.0.0.1 10001