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