Writing to RevPiLED doesn't work

Post Reply
MaltarLED
Posts: 26
Joined: 24 Feb 2020, 16:14

Writing to RevPiLED doesn't work

Post by MaltarLED »

Hello,

I came across a problem when writing to a RevPiLED register from Codesys. For example, when I set the Bit3 and Bit7, the piTest reads value 1 on RevPiLED register, also the A2 LED doesn't turn red nor the WD is reset. Is there something regarding the using of the Revolution Pi Connect IO Mapping that I should be aware about?

Best regards.
u.biakoup
KUNBUS
Posts: 202
Joined: 14 Apr 2022, 13:04

Re: Writing to RevPiLED doesn't work

Post by u.biakoup »

Hello MaltarLED,

To be able to operate the LEDs on RevPi connect, it is necessary to know the arrangement of the bits corresponding to each LED. The following articles explain how it works: Best Regards

Ulrich Kouatang Biakoup | Technical Support
MaltarLED
Posts: 26
Joined: 24 Feb 2020, 16:14

Re: Writing to RevPiLED doesn't work

Post by MaltarLED »

Hello Ulrich,

thank you for your response. I will try to explain my problem in details.

I am using RevPi Connect S model with CODESYS Control for Raspberry Pi SL. In my program code, I oscillate bit4 every 1 second and bit7 every 8 seconds (LED A3 green and Watchdog as described here: LED A3 green) of the byte in RevPiLED in RevPi Connect device.
Image

On the device I see a A3 LED flickering green (not oscillating every one second), and the watchdog is not reset.
Using the piTest -r RevPiLED, the value read corresponds to the one seen in Codesys.

The same Codesys program ran on the RevPi Connect+ feat. CODESYS controller behaves as expected.
giuseppe
KUNBUS
Posts: 91
Joined: 09 Mar 2022, 13:08

Re: Writing to RevPiLED doesn't work

Post by giuseppe »

Hello MaltarLED,

I made a test setup for this and unfortunately could not control the LEDs except for A2 via Codesys.
I have created a bug report for this.

Best regards
Giuseppe Pagano
MaltarLED
Posts: 26
Joined: 24 Feb 2020, 16:14

Re: Writing to RevPiLED doesn't work

Post by MaltarLED »

Hello Giuseppe,

thanks for the info. Please update me when the bug gets fixed.

Best regards.
giuseppe
KUNBUS
Posts: 91
Joined: 09 Mar 2022, 13:08

Re: Writing to RevPiLED doesn't work

Post by giuseppe »

Hello MaltarLED,

I found the solution to the problem in a forum post.
You simply have to deactivate GPIO_A_B in the Codesys device tree.

Take a look at the following post.
RevPi CONNECT+, CODESYS, RevPiLED doesn't work as expected

Best regards
Giuseppe Pagano
MaltarLED
Posts: 26
Joined: 24 Feb 2020, 16:14

Re: Writing to RevPiLED doesn't work

Post by MaltarLED »

Thank you for the answer.
Post Reply