Writing to RevPiLED doesn't work
Writing to RevPiLED doesn't work
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.
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.
Re: Writing to RevPiLED doesn't work
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
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
Re: Writing to RevPiLED doesn't work
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.
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.
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.
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.
Re: Writing to RevPiLED doesn't work
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
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
Re: Writing to RevPiLED doesn't work
Hello Giuseppe,
thanks for the info. Please update me when the bug gets fixed.
Best regards.
thanks for the info. Please update me when the bug gets fixed.
Best regards.
Re: Writing to RevPiLED doesn't work
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
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
Re: Writing to RevPiLED doesn't work
Thank you for the answer.