SPRADH0 August   2024 AM625 , AM6442 , AM69 , TDA4VM

 

  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

Windows PC Setup

  1. Create an account with CODESYS
    1. A "Corporate Customer" account require4s approval before you can download and install any software
    2. An "Individual Customer" account allows downloading and installing all the required software
  2. Download the CODESYS Development System V3
    Note: Recommended: Download the .zip version as the .exe version can cause your Windows PC to crash when trying to run
  3. Run the CODESYS Development System V3 installer as an administrator
    1. Administrator rights allows installer to install dependencies user does not already have installed on their system
    2. Keep in mind that virus prevention software might interfere with CODESYS installation. If CODESYS installation fails, try disabling any virus prevention software
    3. These dependencies potentially include in Figure 7-1
      AM6442, AM625, AM69 CODESYS Development System Installation DependenciesFigure 7-1 CODESYS Development System Installation Dependencies
    4. Trying to run as administrator when not granted full administrator rights causes the Windows PC to freeze up and crash
  4. Download the CODESYS Control for Linux ARM SL
  5. Install CODESYS Control for Linux ARM SL into the previously installed CODESYS Development System using the following steps:
    1. Double-click the downloaded CODESYS Control for Linux ARM64 SL <version>.package and select CODESYS 64 <version>.
    2. Click Continue to install the package
      AM6442, AM625, AM69 CODESYS Installation VersionFigure 7-2 CODESYS Installation Version
  6. Copy required files from the CODESYS Control for Linux ARM SL package to the device to be set up as an EtherCAT controller with the following steps:
    1. Extract the contents of CODESYS Control for Linux ARM64 SL <version>.package using an utility like 7-Zip
    2. Navigate to the CODESYS Control for Linux ARM64 SL directory within the CODESYS <version> program files
    3. Place these two files anywhere in the root directory of the EtherCAT controller:
      1. codemeter-lite_<version>_arm64.deb: found within the 'CODESYS Control for Linux ARM64 SL [<version>]'/Dependency directory

      2. codesyscontrol_linuxarm64_<version>_arm64.ipk: found within the 'CODESYS Control for Linux ARM64 SL [<version>]'/Delivery/[linuxarm64] directory

    4. A file transfer protocol (scp, sftp, etc) can be used to copy the previous files to the EtherCAT controller or these files can be directly placed on the SD card containing the OS the EtherCAT controller is running on