Page 1 of 1

CODESYS 3.5 SP20 Patch 5 Problem mit DIO Modul - schaltet nur 2 Outputs

Posted: 18 Feb 2025, 16:59
by PAHO
Hallo,

ich stehe gerade vor einem Problem mit einem RevPi Connect 4 mit dem Bookworm Image 64 bit und Codesys 3.5 SP20 Patch 5 (CODESYS Control für Linux ARM64 SL 4.14.0.0) (inkl. Kunbus Revpi Codesys Treiber 2.0.0.0):
Neben dem Revpi sind 2 MIO und 2 DIOs links verbunden. Analoge und digitale Signale funktionieren einwandfrei, nur die digitalen Outputs funktionieren nicht so wie sie sollen. Ich habe die digitalen Outputs 1-14 als Word gemappt und spreche die einzelnen Bits an.
DIO1_O.0 ist somit mein Ausgang 1 vom ersten DIO Modul und so spreche ich den Ausgang an.

Es funktionieren aber bei beiden DIO Modulen nur die Bits .7 und .8 - alle anderen nicht. Codesys schreibt zwar, wenn ich den Ausgang schalte er waere TRUE, tut aber nichts.
Ich kann jetzt nur 4 Ausgaenge von insg. 28 verwenden. Wo liegt hier das Problem?

Re: CODESYS 3.5 SP20 Patch 5 Problem mit DIO Modul - schaltet nur 2 Outputs

Posted: 20 Feb 2025, 11:46
by Amar
Hi PAHO,
Can you please test with the attached sample example?
Connect4_DIO_Test.zip
(406.87 KiB) Downloaded 1633 times
The program sets the first 8 outputs of the first DIO module and the first 4 outputs of the second DIO module starting from the left of piBridge.
CODESYS_FE65mDjfPX.png
The following pictory configuration should be generated by the codesys application
chrome_m4PxEXEDyH.png

check outputs values written to process image using piTest

Code: Select all

pi@RevPi106108:~$ piTest -1r Output_0
2 Byte-Value of Output_0: 255 dez (=00ff hex)
pi@RevPi106108:~$ piTest -1r Output_113
2 Byte-Value of Output_113: 15 dez (=000f hex)
Troubleshooting:
1) The RevPi base device (Connect 4) should be at root of CODESYS device tree
2) Are all icons marked in green circle in CODESYS device tree in online mode
3) Generate and send SOS report

Regards, Amar