Page 1 of 1

Trouble on Using DO in CODESYS

Posted: 03 Jul 2025, 05:21
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

Re: Trouble on Using DO in CODESYS

Posted: 03 Jul 2025, 16:21
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