Issue with DO Channel Control in CODESYS on RevPi Connect 4 with DO/DI Modules

Post Reply
Ananda Affandi
Posts: 3
Joined: 03 Jul 2025, 04:37

Issue with DO Channel Control in CODESYS on RevPi Connect 4 with DO/DI Modules

Post by Ananda Affandi »

Hello,

I’m reaching out to report and seek advice on a bug we’ve encountered while using CODESYS on a RevPi Connect 4 with DO and DI modules.

Issue Description:
When controlling the Digital Output (DO) channels, we observe the following behavior:
- If a line of code is added to control DO channel 5, it works as expected.
- However, when adding code to control DO channel 13, channel 13 does not respond. Instead, DO channel 5 responds as if it were programmed for channel 13’s behavior.
- Similarly, if code is added to control DO channel 14, the output may activate an unexpected channel (not yet identified).

Additional Observations:
After further testing, we found that the behavior of channels 9–16 depends on whether channels 1–8 are included in the program:
- If code for any of channels 1–8 is included, channels 9–16 function correctly.
- If no code for channels 1–8 is included, channels 9–16 do not work as expected. For example, activating channel 16 without including channel 1 in the program causes channel 8 to activate instead.

Steps to Reproduce:
1. Program DO channel 5 in CODESYS → Channel 5 works correctly.
2. Program DO channel 13 without including channels 1–8 → Channel 13 does not respond; channel 5 responds instead.
3. Program DO channel 16 without channels 1–8 → Channel 8 activates instead of channel 16.
4. Include code for any channel from 1–8 → Channels 9–16 then work as expected.

Video Demonstration:
I’ve recorded a short video demonstrating the issue, which you can view here: https://youtu.be/09cqg15didU

Has anyone encountered a similar issue with CODESYS on RevPi Connect 4? Could this be related to module configuration, addressing, or a bug in CODESYS? Any suggestions for troubleshooting or resolving this would be greatly appreciated.

Driver Setup:
RevPi Bookworm 64-bit (Default) (Latest)
Revolution Pi Library for CODESYS v2.2.0.0
CODESYS Control for Linux ARM64 SL v4.16.0.0

Thank you!
Post Reply