Skip to content
EC-Simulator 3.1 documentation logo
EC-Simulator 5. Link Layer
Type to start searching
    • | EtherCAT manuals |
    • | www.developer.acontis.com |
    • | www.acontis.com |
    • 1. Introduction
      • 1.1. What is EtherCAT?
      • 1.2. EC-Simulator - Features
      • 1.3. Editions (HiL / SiL)
      • 1.4. Protected version
      • 1.5. Known restrictions
      • 1.6. License
    • 2. Getting Started
      • 2.1. EC-Simulator Architecture
      • 2.2. Extended EtherCAT Network Configuration (EXI)
      • 2.3. HiL Simulation Software architecture
      • 2.4. SiL Simulation Software architecture
      • 2.5. Mixed mode of real slaves and simulated slaves
      • 2.6. Operating system configuration
      • 2.7. Running EcSimulatorHilDemo
      • 2.8. Using emllSimulator (SiL)
      • 2.9. EC-Simulator Software Development Kit (SDK)
      • 2.10. Link Layer configuration for EcSimulatorHilDemo
    • 3. Software Integration
      • 3.1. EcSimulatorHilDemo
      • 3.2. Process data update and synchronization
      • 3.3. Accessing process data in the application
      • 3.4. Hot Connect
      • 3.5. Error detection and diagnosis
      • 3.6. RAS-Server for EC-Lyser and EC-Engineer
      • 3.7. EC-Simulator stack Source Code
      • 3.8. EcSimulatorHilDemoMotion
    • 4. Platform and Operating Systems (OS)
      • 4.1. tenAsys INtime
      • 4.2. Linux
      • 4.3. QNX Neutrino
      • 4.4. Windriver VxWorks
      • 4.5. Microsoft Windows
      • 4.6. Xenomai
    • 5. Link Layer
      • 5.1. Link Layer initialization
      • 5.2. Intel Pro/1000 - emllI8254x
      • 5.3. Intel Pro/100 - emllI8255x
      • 5.4. Broadcom BcmGenet - emllBcmGenet
      • 5.5. Beckhoff CCAT - emllCCAT
      • 5.6. Texas Instruments CPSW - emllCPSW
      • 5.7. DW3504 - emllDW3504
      • 5.8. Xilinx EMAC - emllEMAC
      • 5.9. Freescale TSEC / eTSEC - emllETSEC
      • 5.10. Freescale FslFec - emllFslFec
      • 5.11. Xilinx Zynq-7000/Ultrascale (GEM) - emllGEM
      • 5.12. Texas Instruments ICSS - emllICSS
      • 5.13. Windows NDIS - emllNdis
      • 5.14. Windows WinPcap - emllPcap
      • 5.15. RDC R6040 - emllR6040
      • 5.16. emllRemote
      • 5.17. Realtek RTL8169 - emllRTL8169
      • 5.18. Renesas SHEth - emllSHEth
      • 5.19. VxWorks SNARF - emllSNARF
      • 5.20. Linux SockRaw - emllSockRaw
      • 5.21. Windows TAP - emllTap
    • 6. Application programming interface, reference
      • 6.1. Generic API return status values
      • 6.2. Multiple EtherCAT Network Support
      • 6.3. General functions
      • 6.4. Process Data Access Functions
      • 6.5. Notifications
      • 6.6. esNotifyApp
      • 6.7. Network operation functions
      • 6.8. Error simulation functions
      • 6.9. Slave control and status functions
      • 6.10. ADS over EtherCAT (AoE)
      • 6.11. CAN application protocol over EtherCAT (CoE)
      • 6.12. Ethernet over EtherCAT (EoE)
      • 6.13. File access over EtherCAT (FoE)
      • 6.14. Vendor specific access over EtherCAT (VoE)
      • 6.15. Distributed Clocks (DC)
    • 7. Error Codes
      • 7.1. Groups
      • 7.2. Generic Error Codes
      • 7.3. DCM Error Codes
      • 7.4. ADS over EtherCAT (AoE) Error Codes
      • 7.5. CAN application protocol over EtherCAT (CoE) SDO Error Codes
      • 7.6. File Transfer over EtherCAT (FoE) Error Codes
      • 7.7. Servo Drive Profil over EtherCAT (SoE) Error Codes
      • 7.8. Remote API Error Codes

    5. Link Layer

    The EC-Simulator stack currently supports a variety of different Link Layer modules, each of which contained in a single library file, which is loaded by the core library dynamically. Which library actually is loaded, is depending on the Link Layer parameters at runtime.

    The principle of the Link Layer selection is that the Link Layer name (Link Layer identification) is used to determine the location and name of a registration function called by EC-Simulator and registers function pointers that allow access to the Link Layer functional entries.

    The EtherCAT Link Layer will be initialized using a Link Layer specific configuration parameter set. A pointer to this parameter set is part of EC-Simulator’s initialization settings when calling the function esInitSimulator() .

    EC-Simulator supports two Link Layer operating modes: If the Link Layer operates in interrupt mode all received Ethernet frames will be processed immediately in the context of the Link Layer receiver task. In polling mode, the application must cyclically call esExecJob() with job eUsrJob_ProcessAllRxFrames in order to trigger EC-Simulator to call the Link Layer receiver polling function and process received frames.

    Important

    In polling mode, the master cycle time must be at least two times higher than the simulator cycle time. E.g. if the simulator runs with 1 ms, the master cycle time must be at least 2 ms. If the Link Layer is running in interrupt mode (non-standard), processing of received frames is done immediately after the frame is received.

    Optimized Link Layer drivers

    Optimized means operating directly on the network device’s register set instead of using the operating system’s native driver.

    Note

    Link Layer modules not listed here may be available if purchased additionally. Not all Link Layer modules support interrupt mode.

    Previous 4.6. Xenomai
    Next 5.1. Link Layer initialization
    © Copyright 2024-May-14, acontis technologies GmbH.
    Created using Sphinx 4.2.0. and Material for Sphinx