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!
Issue with DO Channel Control in CODESYS on RevPi Connect 4 with DO/DI Modules
-
Ananda Affandi
- Posts: 4
- Joined: 03 Jul 2025, 02:37
-
Ananda Affandi
- Posts: 4
- Joined: 03 Jul 2025, 02:37
Re: Issue with DO Channel Control in CODESYS on RevPi Connect 4 with DO/DI Modules
Update on the Issue,
The issue still exist, and currently there's another problem and workaround,
When trying DIO the same problem
Here's the YouTube video showing the problem
https://www.youtube.com/watch?v=JPcFCR3AKpE
If there's any guide for this we would be thankful.
The issue still exist, and currently there's another problem and workaround,
When trying DIO the same problem
Here's the YouTube video showing the problem
https://www.youtube.com/watch?v=JPcFCR3AKpE
If there's any guide for this we would be thankful.
-
Amar
- KUNBUS
- Posts: 200
- Joined: 15 Jul 2019, 10:58
Re: Issue with DO Channel Control in CODESYS on RevPi Connect 4 with DO/DI Modules
Dear Ananda,
Please try using Packed I/O Mapping or Grouped I/O Mapping
This means assigning a complete WORD variable (or BYTE, DWORD, etc.) to a
group of digital inputs or outputs In your ladder program you should use Bit access for your Input and Output
variables which are standard Word type.
This is also used in Blinking linght example.
Best regards,
Amar Jadhav
Please try using Packed I/O Mapping or Grouped I/O Mapping
This means assigning a complete WORD variable (or BYTE, DWORD, etc.) to a
group of digital inputs or outputs In your ladder program you should use Bit access for your Input and Output
variables which are standard Word type.
This is also used in Blinking linght example.
Best regards,
Amar Jadhav
You do not have the required permissions to view the files attached to this post.
KUNBUS
-
Amar
- KUNBUS
- Posts: 200
- Joined: 15 Jul 2019, 10:58
Re: Issue with DO Channel Control in CODESYS on RevPi Connect 4 with DO/DI Modules
Bit mapping is also now possible with Revolution Pi Library for CODESYS V2.3.0.0
(I/O Driver for the Integration of Revolution Pi Devices in the CODESYS)
(I/O Driver for the Integration of Revolution Pi Devices in the CODESYS)
KUNBUS