Page 2 of 2

Re: RevPi Connect 4 + DIO - Strange IO beaviour and crazy LED colors (A1-A5)

Posted: 20 Nov 2023, 22:50
by SiggiN
Hey Webber,

back home I did some more testing an noticed that I made a mistake in mapping the IOs. Now everything works fine and I was able to translate it to FUP. The LEDs are still having their party but I will figure that out too.
Thanks alot again!

Siggi

Re: RevPi Connect 4 + DIO - Strange IO beaviour and crazy LED colors (A1-A5)

Posted: 24 Nov 2023, 08:44
by Amar
Hello Sigmund,
Thank you for bringing the issue to notice.The strange behaviour for controlling RevPiLED for Connect 4 is due to missing parameter RevPiOutput in I/O mapping of Connect4 which was adapted in PiCtory.
This resulted in writing the RevPiLED at incorrect offset in process image.This will be fixed in upcoming release for Revolution Pi Library for CODESYS next month.
Regards,
Amar

Re: RevPi Connect 4 + DIO - Strange IO beaviour and crazy LED colors (A1-A5)

Posted: 27 Mar 2024, 23:25
by hwopereis
I'm experiencing the same problem, with the DIO. Whenever I use direct mapping, it seems that the input values are mixed up or shifted, depending on how many inputs I mapped. Also some pins will switch everything to TRUE instead of just one pin. The mapped pins will read <bad>.
E.g. like this:
Screenshot 2024-03-27 231819.png
I solved this by using the addresses in my GVL as follows:
Screenshot 2024-03-27 231402.png
Screenshot 2024-03-27 231402.png (8.16 KiB) Viewed 15637 times
Both for the inputs and the outputs.

The output with the same physical configuration then looks like this:
Screenshot 2024-03-27 231923.png
The versions I'm using are:
Codesys V3.5 SP20 64 bit.
Bullseye Lite 32 bit.
Codesys control for Raspberry Pi 4.11.0.0 (Problem also existed with Codesys control 4.10.0.0.)
Revolution Pi Library for CODESYS V1.4.1.0 (ID: 7530)

---- EDIT ----

Nevermind, this didn't work after all. In the end had to address the full word values for both the inputs and the outputs.