CODESYS Safety for EtherCAT Safety Module + Beckhoff EL6900 + SEW MOVIC System
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      CODESYS Safety for EtherCAT Safety Module + Beckhoff EL6900 + SEW MOVIC System
    
    Last updated: 2020-11-09
    
    
      
        Codesys backup error " The unique system ID does not ma
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Codesys backup error " The unique system ID does not ma
    
    Last updated: 2014-02-27
    
    
      
        CODESYS Development System V3 installation auf unter Parallells Windows 11auf MAC PRO M1 ARM Prozessor
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      CODESYS Development System V3 installation auf unter Parallells Windows 11auf MAC PRO M1 ARM Prozessor
    
    Last updated: 2024-03-21
    
    
      
        Request for Assistance with Online Logic Changes in PLC System using Codesys
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Request for Assistance with Online Logic Changes in PLC System using Codesys
    
    Last updated: 2024-04-10
    
    
      
        SysPlcCtrl23 and  C0338:  The library 'cmperrors interfaces, 3.5.5.0 (system)' is supported just in 32 bit  applications
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      SysPlcCtrl23 and C0338: The library 'cmperrors interfaces, 3.5.5.0 (system)' is supported just in 32 bit applications
    
    Last updated: 2024-06-14
    
    
      
        SysPlcCtrl23 and  C0338:  The library 'cmperrors interfaces, 3.5.5.0 (system)' is supported just in 32 bit  applications
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      SysPlcCtrl23 and C0338: The library 'cmperrors interfaces, 3.5.5.0 (system)' is supported just in 32 bit applications
    
    Last updated: 2024-06-14
    
    
      
        SysPlcCtrl23 and  C0338:  The library 'cmperrors interfaces, 3.5.5.0 (system)' is supported just in 32 bit  applications
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      SysPlcCtrl23 and C0338: The library 'cmperrors interfaces, 3.5.5.0 (system)' is supported just in 32 bit applications
    
    Last updated: 2024-06-14
    
    
      
        SysPlcCtrl23 and  C0338:  The library 'cmperrors interfaces, 3.5.5.0 (system)' is supported just in 32 bit  applications
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      SysPlcCtrl23 and C0338: The library 'cmperrors interfaces, 3.5.5.0 (system)' is supported just in 32 bit applications
    
    Last updated: 2024-06-14
    
    
      
        SysPlcCtrl23 and  C0338:  The library 'cmperrors interfaces, 3.5.5.0 (system)' is supported just in 32 bit  applications
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      SysPlcCtrl23 and C0338: The library 'cmperrors interfaces, 3.5.5.0 (system)' is supported just in 32 bit applications
    
    Last updated: 2024-06-14
    
    
      
        SysPlcCtrl23 and  C0338:  The library 'cmperrors interfaces, 3.5.5.0 (system)' is supported just in 32 bit  applications
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      SysPlcCtrl23 and C0338: The library 'cmperrors interfaces, 3.5.5.0 (system)' is supported just in 32 bit applications
    
    Last updated: 2024-06-17
    
    
      
        Post by akrawczyk on Dynamically enabling/disabling Modbus slave devices in runtime (performance issue with timeouts)
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi everyone, I'm working on a CODESYS-based project running on a Weintek cMT2078X HMI with a built-in CODESYS runtime. The system communicates with multiple Modbus RTU slave devices, arranged in a cascade. The number of connected units can vary between 2 and 8, depending on the installation. Each slave has 17 Modbus channels, which are polled cyclically every 5 seconds. The issue is that when fewer devices are physically connected (e.g. only 3 out of 8), the Modbus master still attempts to communicate with all configured slaves. This leads to massive delays due to timeouts (currently 200ms per channel). For one disconnected device, thatβs: 17 Γ 200ms = 3.4 seconds of delay per polling cycle, and this quickly multiplies with each additional missing slave. This behavior significantly degrades the system's performance and responsiveness. We attempted a workaround where we tried to trigger polling based on a variable in the PLC program, but this caused instability and even led to hardware hangs/freezes on the cMT2078X β likely due to clashes in how the Modbus polling engine and program logic interact at runtime. My main questions are: Is there a way in CODESYS to dynamically enable/disable Modbus slave devices at runtime, using a BOOL or INT variable (e.g. indicating number of active slaves)? Can devices or channels be conditionally polled or temporarily disabled without removing them from the device tree? Are there any best practices or examples for handling variable numbers of Modbus slaves in scalable systems like this? Would splitting communication across tasks or interfaces help reduce the impact of timeouts? Any advice, documentation references, or architectural suggestions would be extremely helpful. I'm looking for a robust way to dynamically scale slave polling without degrading system stability or performance. Thanks in advance!
    
    Last updated: 2025-08-11
    
    
      
        Start Control Win Softmotion Runtime
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Start Control Win Softmotion Runtime
    
    Last updated: 2023-08-23
    
    
      
        Runtime User Managment and web-visu
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Runtime User Managment and web-visu
    
    Last updated: 2018-11-05
    
    
      
        GPIO Runtime Zugriff Einfluss vs. Python
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      GPIO Runtime Zugriff Einfluss vs. Python
    
    Last updated: 2019-09-02
    
    
      
        SP19 Runtime Zugriff auf lokales Dateisystem
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      SP19 Runtime Zugriff auf lokales Dateisystem
    
    Last updated: 2023-11-22
    
    
      
        Changing Trace Variable at Runtime
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Changing Trace Variable at Runtime
    
    Last updated: 2025-01-22
    
    
      
        Switch visualization style at runtime
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Switch visualization style at runtime
    
    Last updated: 2025-05-15
    
    
      
        Changing Modbus server IP in runtime
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Changing Modbus server IP in runtime
    
    Last updated: 2019-10-11
    
    
      
        Runtime with OPC UA support
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Runtime with OPC UA support
    
    Last updated: 2023-02-13
    
    
      
        Probleme mit Runtime 3.5.15.0 und I2C
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Probleme mit Runtime 3.5.15.0 und I2C
    
    Last updated: 2023-06-30
    
    
      
        Runtime license could not be restored...
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Runtime license could not be restored...
    
    Last updated: 2023-04-26
    
    
      
        Where to find Runtime Address?
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Where to find Runtime Address?
    
    Last updated: 2021-04-02
    
    
      
        Enable/disable SFC actions at runtime
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Enable/disable SFC actions at runtime
    
    Last updated: 2018-04-05
    
    
      
        Codemeter Runtime Stopping Linux 4.5.0.0
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Codemeter Runtime Stopping Linux 4.5.0.0
    
    Last updated: 2022-10-14
    
    
      
        Function block empty at runtime
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Function block empty at runtime
    
    Last updated: 2021-08-31
    
To search for an exact phrase, put it in quotes.  Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it.  Example: docs -help
To search on specific fields, use these field names instead of a general text search.  You can group with AND or OR.