8.5. emllRemote
The emllRemote is used to receive EtherCAT frames tunneled through TCP sockets.
The parameters to the Remote Driver are setup-specific. The function CreateLinkParmsFromCmdLineRemote() in EcSelectLinkLayer.cpp demonstrates how to initialize the driver instance.
-
struct EC_T_LINK_PARMS_REMOTE
Public Members
-
EC_T_LINK_PARMS linkParms
Common link parameters. Signature must be set to EC_LINK_PARMS_SIGNATURE_REMOTE
-
EC_T_DWORD dwSocketType
Socket type. Must be set to 1 (emrassocktype_tcp)
-
EC_T_BYTE abySrcIpAddress[4]
Source adapter IP address (listen)
-
EC_T_WORD wSrcPort
Source port number (listen)
-
EC_T_BYTE abyDstIpAddress[4]
Destination adapter IP address (connect)
-
EC_T_WORD wDstPort
Destination port number (connect)
-
EC_T_BYTE abyMac[6]
MAC address
-
EC_T_DWORD dwRxBufferCnt
Frame buffer count for interrupt service thread (IST)
-
EC_T_LINK_PARMS linkParms
While EC-Monitor listens on the given port using emllRemote, the EC-Master can connect to it using emllRemote.
- EcMonitorDemo command line example:
EcMonitorDemo -remote 1 0 0.0.0.0 10001 0.0.0.0 0 -f eni.xml- EcMasterDemo command line example:
EcMasterDemo -integbe 1 1 -f eni.xml -mirror -remote 1 1 0.0.0.0 0 127.0.0.1 10001