Beckhoff CX9240 : Using Internal EtherCAT Bus

arj3090
2026-07-09
3 days ago
  • arj3090 - 2026-07-09

    Is it possible to get CodeSys working with Beckhoff IO cards connected directly to the CX9240 running Linux?

     
    πŸ‘
    1
  • eschwellinger

    eschwellinger - 2026-07-10

    yes, you need to install Control RTE CX.
    In that package there is the Internal EthercatMaster / EthercatMasterSoftmotion which you could add then.

     
  • yannickasselin - 2026-07-10

    Control RTE is for Windows. @arj3090 specified Linux.

     
  • arj3090 - 2026-07-10

    I installed Linux ARM SL and it recognizes the RJ45 ethernet ports, but I cannot get it to recognize the internal port for the IO cards.

     
  • eschwellinger

    eschwellinger - 2026-07-10

    you need just out of this windows rte cx package the internal EthercatMaster device description

     
  • yannickasselin - 2026-07-10

    Now I understand. I always thought this was not supported. I might test it later. Thanks.

     
  • arj3090 - 7 days ago

    I have successfully made this work. However, this was WAY more difficult than getting the Internal EthercatMaster device description from the Windows RTE CX package. It required figuring out the hardware interface and making a modified version of the Beckhoff CCAT open source driver. While in there I also made the built in UPS work with CodeSys to save Persistent variables and link the TC light to the CodeSys run time state. Once I clean things up and create an install document, I will be posting a Github repo and make everything as open source.

     
    πŸ‘
    1

    Last edit: arj3090 3 days ago
  • arj3090 - 6 days ago

    I documented everything and created scripts to install this on a fresh CX9240 image

    https://github.com/arj3090/CX9240-CodeSYS

     
    πŸ‘
    1
  • eschwellinger

    eschwellinger - 5 days ago

    Many thanks for putting all this together and sharing it, really appreciate the effort you put into this!

     
    πŸ‘
    1
    • arj3090 - 3 days ago

      Glad to share it and hope others find it useful.

       

Log in to post a comment.