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
RevPi CONNECT+, CODESYS, RevPiLED doesn't work as expected
- rossanoparis
- Posts: 14
- Joined: 09 May 2019, 14:35
- Location: Italy
- Contact:
RevPi CONNECT+, CODESYS, RevPiLED doesn't work as expected
- Attachments
-
- var.png (2.45 KiB) Viewed 7019 times
-
- leds.png (119.8 KiB) Viewed 7019 times
-
- cfg.png (62.22 KiB) Viewed 7019 times
Re: RevPi CONNECT+, CODESYS, RevPiLED doesn't work as expected
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
Re: RevPi CONNECT+, CODESYS, RevPiLED doesn't work as expected
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?
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?
- rossanoparis
- Posts: 14
- Joined: 09 May 2019, 14:35
- Location: Italy
- Contact:
Re: RevPi CONNECT+, CODESYS, RevPiLED doesn't work as expected
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
"Im KUNBUS Support einloggen"
I tried with my forum credential, but it doen't work
Could you help me ?
Regards
Rossano
Re: RevPi CONNECT+, CODESYS, RevPiLED doesn't work as expected
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.
KUNBUS