RevPi CONNECT+, CODESYS, RevPiLED doesn't work as expected

Topics about the Software of Revolution Pi
Post Reply
User avatar
rossanoparis
Posts: 14
Joined: 09 May 2019, 14:35
Location: Italy
Contact:

RevPi CONNECT+, CODESYS, RevPiLED doesn't work as expected

Post by rossanoparis »

Despite the RevPi connect seems configured in the rigth way, the variable RevPiLED doesn't work as expected
Even though in CODESYS code the variable is assigned in one place only, Only the led A2 follows its bits image meaning.
A1 and A3 don't show any colour, they are always off.

AS you can see in my pictures attached, the variable is assigned to value 21, which is:
BIT0 = 1
BIT1 = 0
BIT2 = 1
BIT3 = 0
BIT4 = 1
BIT5 = 0

This command from linux shell works perfectly
(Codesys runtime was stop, before executing it)
piTest -w RevPiLED,21

Libraries used
CODESYS V3.5 SP17 Patch 1 (64 bit)
CODESYS Control for Raspberry PI 4.1.0.0
Revolution PI Library for CODESYS 1.1.0.0

Thank you for your help
Rossano
Attachments
var.png
var.png (2.45 KiB) Viewed 7018 times
leds.png
leds.png (119.8 KiB) Viewed 7018 times
cfg.png
cfg.png (62.22 KiB) Viewed 7018 times
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: RevPi CONNECT+, CODESYS, RevPiLED doesn't work as expected

Post by dirk »

Dear rossanoparis, thank you for your detailed report. This does indeed look like a misbehavior. We have created a task for this in the RevPi team. We will take care of it. Thank you very much for your patience
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: RevPi CONNECT+, CODESYS, RevPiLED doesn't work as expected

Post by dirk »

Thank you for your patience and feedback. Dear rossanoparis we have analyzed the problem and found a simple explanation: The GPIOs in the Codesys project must be disabled to ensure access to the LEDs cleanly:
See this article
https://kunbus-gmbh.atlassian.net/servi ... 1527185888
The LEDs on the RevPi Compact are controlled although my program does not use them, what can I do?
User avatar
rossanoparis
Posts: 14
Joined: 09 May 2019, 14:35
Location: Italy
Contact:

Re: RevPi CONNECT+, CODESYS, RevPiLED doesn't work as expected

Post by rossanoparis »

Thank you Dirk, howhether I couldn't read the article you provided becouse the system ask me for a login
"Im KUNBUS Support einloggen"

I tried with my forum credential, but it doen't work
Could you help me ?

Regards
Rossano
User avatar
Amar
KUNBUS
Posts: 160
Joined: 15 Jul 2019, 12:58

Re: RevPi CONNECT+, CODESYS, RevPiLED doesn't work as expected

Post by Amar »

In order to control RevPiLED’s A1,A2,A3 from RevPi Connect Codesys , the GPIO’s in codesys device tree Project needs to be disabled.

2021-10-08 09_11_30-Codesys Questions And Answers - Knowledgebase Support - Confluence.png
2021-10-08 09_11_30-Codesys Questions And Answers - Knowledgebase Support - Confluence.png (103.53 KiB) Viewed 6454 times
KUNBUS
Post Reply