• Menu
  • Product
  • Email
  • PDF
  • Order now
  • Performance Metrics of TI Embedded Processors as CODESYS EtherCAT Controller

    • SPRADH0 August   2024 AM625 , AM6442 , AM69 , TDA4VM

       

  • CONTENTS
  • SEARCH
  • Performance Metrics of TI Embedded Processors as CODESYS EtherCAT Controller
  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
    1. 1.1 What is EtherCAT?
    2. 1.2 What is a PLC?
    3. 1.3 What is CODESYS?
  5. 2Evaluation Platform and Methods
    1. 2.1 Hardware
    2. 2.2 Software
    3. 2.3 Test Topology
  6. 3Performance Metrics
    1. 3.1 Cyclictest Performance Metrics
    2. 3.2 EtherCAT Performance Metrics
  7. 4Optimizations
    1. 4.1 Implemented Optimizations
    2. 4.2 Future Considerations
      1. 4.2.1 Set Maximum CPU Frequency
      2. 4.2.2 Isolate Cores
      3. 4.2.3 Set CPU Affinity
      4. 4.2.4 Isolate Cores and Set CPU Affinity
      5. 4.2.5 Ksoftirqs to FIFO
      6. 4.2.6 Increase the Real-Time Scheduling Time
      7. 4.2.7 Disable irqbalance
      8. 4.2.8 Use Separate Network Interface Card (NIC)
      9. 4.2.9 Disable Unnecessary Drivers
  8. 5Summary
  9. 6References
  10. 7Appendix A: How to Setup TI Embedded Processors as EtherCAT Controller Using the CODESYS Stack
    1. 7.1 Hardware Requirements
    2. 7.2 Software Requirements
    3. 7.3 Hardware Setup
    4. 7.4 Software Setup
      1. 7.4.1 Windows PC Setup
      2. 7.4.2 EtherCAT Controller Setup
      3. 7.4.3 CODESYS Development System Project
      4. 7.4.4 Execution
    5. 7.5 How to View Performance Measurements
      1. 7.5.1 Appendix A Resources
  11. 8Appendix B: How to Enable Unlimited Runtime on CODESYS Stack
    1. 8.1 CODESYS Licensing Background
    2. 8.2 Obtaining a CODESYS License
    3. 8.3 Activating CODESYS License
      1. 8.3.1 Background
      2. 8.3.2 Recommended Steps
    4. 8.4 Verifying CODESYS License Applied
      1. 8.4.1 Known Issues With Verifying CODESYS License Applied
  12. IMPORTANT NOTICE
search No matches found.
  • Full reading width
    • Full reading width
    • Comfortable reading width
    • Expanded reading width
  • Card for each section
  • Card with all content

 

Application Note

Performance Metrics of TI Embedded Processors as CODESYS EtherCAT Controller

Abstract

Nearly all real-time industrial control relies on an architecture of periodic computation and communication. Performance estimates for designing solutions are often based on microbenchmarks such as interrupt latency (for example, cyclictest) and some compute benchmarks such as the venerable Dhrystone. EtherCAT® is one of the main industrial Ethernet protocols for control systems in robotics, factory automation, and precise motor drive control. The primary performance metric is the shortest achievable cycle time, with a given number of devices and size of the exchanged data structures. Timing and synchronization stability is another key consideration, both within the controller and within the network. EtherCAT controller (formerly called EtherCAT master) solutions are available for high level operating systems, such as TwinCAT® for Windows® and CODESYS® for Linux, to highly optimized commercial solutions such as icECAT and the open source IgH stack. Some of the optimized designs are able to run on microcontroller cores, and involve different tradeoffs compared to each other and the full featured high-end solutions. This application note explores achievable cycle times on Texas Instruments embedded processors running real-time Linux using the CODESYS EtherCAT stack.

Trademarks

EtherCAT® and TwinCAT® are registered trademarks of Beckhoff Automation GmbH.

Windows® is a registered trademark of Microsoft Corporation.

CODESYS® is a registered trademark of CODESYS Group.

ARM® is a registered trademark of ARM Limited.

All trademarks are the property of their respective owners.

1 Introduction

Industrial control requires real-time communication with deterministic latency. The used technologies have evolved from serial fieldbuses to industrial Ethernet protocols defined in IEC standards such as EtherCAT. These standards use parts of IEEE Ethernet to leverage some of the economies of scale that Ethernet offers, but the standards add small changes such as cut-through switching that go beyond and partially restrict the use of typical IEEE bridges and endpoints. Contrary to typical consumer or enterprise systems, where average responsiveness or throughput are key performance indicators, in these applications the performance need is bounded by the worst-case latency of interacting with inputs and outputs across the network.

A typical industrial control network topology is shown in Figure 1-1. Ethernet specifies layers 1 and 2 of the local area network (LAN). For standard Ethernet, this allows for stateless unreliable transmission of variable-sized frames from one endpoint to another endpoint and the switching in between. This domain is shown by the area in the dotted rectangle to the left in Figure 1-1. The protocol on top, for example EtherCAT, is highly asymmetric; there is one controller managing a few or even hundreds of devices. Different protocols use slightly different terminology for this asymmetric relationship, and there are varying levels of this asymmetry. This document uses the terms “controller” for the controlling entity and “device” for the devices being controlled.

AM6442, AM625, AM69 A Typical Industrial Ethernet NetworkFigure 1-1 A Typical Industrial Ethernet Network

 

Texas Instruments

© Copyright 1995-2025 Texas Instruments Incorporated. All rights reserved.
Submit documentation feedback | IMPORTANT NOTICE | Trademarks | Privacy policy | Cookie policy | Terms of use | Terms of sale