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?
CODESYS 3.5 SP20 Patch 5 Problem mit DIO Modul - schaltet nur 2 Outputs
Re: CODESYS 3.5 SP20 Patch 5 Problem mit DIO Modul - schaltet nur 2 Outputs
Hi PAHO,
Can you please test with the attached sample example? 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.
The following pictory configuration should be generated by the codesys application
check outputs values written to process image using piTest
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
Can you please test with the attached sample example? 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.
The following pictory configuration should be generated by the codesys application
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)
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
KUNBUS