User avatar
rossanoparis
Topic Author
Posts: 11
Joined: 09 May 2019, 14:35
Answers: 0
Location: Italy
Contact:

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

24 Aug 2021, 12:10

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 3036 times
leds.png
leds.png (119.8 KiB) Viewed 3036 times
cfg.png
cfg.png (62.22 KiB) Viewed 3036 times
 
User avatar
dirk
KUNBUS
Posts: 1795
Joined: 15 Dec 2016, 13:19
Answers: 1

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

27 Aug 2021, 15:06

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: 1795
Joined: 15 Dec 2016, 13:19
Answers: 1

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

06 Oct 2021, 17:22

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
Topic Author
Posts: 11
Joined: 09 May 2019, 14:35
Answers: 0
Location: Italy
Contact:

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

07 Oct 2021, 13:26

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
 
Amar
KUNBUS
Posts: 150
Joined: 15 Jul 2019, 12:58
Answers: 4

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

08 Oct 2021, 09:14

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 2472 times
KUNBUS

Who is online

Users browsing this forum: No registered users and 1 guest