Trouble on Using DO in CODESYS

Topics about the Hardware of Revolution Pi
Post Reply
Ananda Affandi
Posts: 2
Joined: 03 Jul 2025, 04:37

Trouble on Using DO in CODESYS

Post by Ananda Affandi »

Hi everyone,

I’m helping a customer set up their RevPi Connect 4 system with CODESYS, and they ran into this trouble when using module DO. Previously they are using RevPi DIO and it works fine. But now when switched to using a DO (Digital Output) module for the first time — and here's the issue:

The problem:
Channels 0 to 7 on the DO module are working just fine.
But anything from channel 8 and up (starting at channel 9) isn’t responding at all.
We double-checked the wiring, and the hardware itself seems okay.
No error messages or warnings show up — it’s just that those outputs won’t activate.

What we’ve tried:
Made sure the configuration in PiCtory is correct and saved properly.
Rebooted both the RevPi and the development PC.

I’ve attached the CODESYS project file in separate zip file, the max attachment per file is 4MB

Please Help, Thank you
Attachments
FILTER IPA.part02.rar
(2.13 MiB) Downloaded 2 times
FILTER IPA.part01.rar
(3 MiB) Downloaded 2 times
User avatar
Amar
KUNBUS
Posts: 165
Joined: 15 Jul 2019, 12:58

Re: Trouble on Using DO in CODESYS

Post by Amar »

Hi,
The problem is likely caused by the Ethernet interface being placed before the RevPi Connect 4 device in the CODESYS device tree.

You can also disable GPIO access if you are using the RevPi LEDs.
CODESYS_issue.png

Corrected project configuration:
CODESYS_correct.png
I would recommend updating to the latest version to ensure easier support in the future.

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

Best regards,
Amar
KUNBUS
Ananda Affandi
Posts: 2
Joined: 03 Jul 2025, 04:37

Re: Trouble on Using DO in CODESYS

Post by Ananda Affandi »

Amar wrote: 03 Jul 2025, 16:21 Hi,
The problem is likely caused by the Ethernet interface being placed before the RevPi Connect 4 device in the CODESYS device tree.

You can also disable GPIO access if you are using the RevPi LEDs.
The attachment CODESYS_issue.png is no longer available

Corrected project configuration:
TES.rar
(642.97 KiB) Not downloaded yet
I would recommend updating to the latest version to ensure easier support in the future.

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

Best regards,
Amar
Hello, Amar

Thank you for replying,
We have removed the Ethernet since it is going to used later, but not now.

And the problem still persist so we follow your advice to update, so we changed from previously using this setup:

RevPi Bullseye 32-bit
RevPi Library 1.4.2
CODESYS Control MC SL 4.10.0.0

Into using this setup:

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

We did the update but the problem is still there.

I will explain again the problem is like this:
If I add a line of code to control DO channel 5, it do the job the interaction is as programmed.
But if a line of code to control DO channel 13 is added, the DO channel 13 is not responsive, but somehow the DO channel 5 is responding to what DO channel 13 is supposed to respond.
And if DO channel 14 is to controlled it might go to some channel we don't know.

If there's any wrong in configuration or stuff we can do to fix this please share.
I attached the simplified version of the program.

Looking forward for your assistance. Thank you.
Post Reply