CODESYS Talk
That Wireshark capture is actually the most useful clue here — the subscriber side decrypts the same keys without any trouble, so the key material itself is fine and this is almost certainly a lifecycle thing on the publisher side rather than a crypto problem. The certificate idea doesn't really apply either: with pre-shared keys there's no certificate involved in the UADP path at all, so I wouldn't spend more time on the security screen. What I'd look at first is when the WriterGroup actually picks...
Hi lukasz, I ran into almost the same thing a while back — project built clean, then a whole pile of Unresolved Reference errors at login, so I know how unhelpful that popup feels. The FU- names are actually the useful part here. Those are functions your project calls, directly or through a library, that the runtime on that PC cannot find when it loads the application. The build succeeding only proves the engineering PC has everything, not the target. In my case the target runtime was simply missing...
Hallo dakmueller, so ein altes XV-Projekt wieder aufzumachen kenne ich, bei mir war das fast immer ein Versionsproblem und kein Fehler im Programm selbst. Das Projekt wurde damals mit einer bestimmten CODESYS-V2.3-Version und genau den Bibliotheksversionen erstellt, die auf dem alten Rechner lagen. Wenn man es jetzt mit einer anderen 2.3-Version öffnet und die fehlenden Bibliotheken einfach neu installiert, übersetzt es ohne Zielsystem erst mal ohne Meldung, weil es nichts zu prüfen gibt. Sobald...
Hi Domenico, I ran into the same wall with the NBS example a while back, so you are not missing some hidden manual somewhere. The project on Forge is really more of a skeleton than a tutorial. What helped me most was opening the example in CODESYS and just reading the function blocks themselves. TCP_Process is basically a small state machine around the socket calls, and Reader and Writer only wrap the send and receive buffers, so the method names and the local variables actually tell you more than...
Hallo thomas-k, kurz gesagt: der Wert aus SysTimeRtcHighResGet ist immer UTC, das ist so gewollt. Die Funktion liefert die Unix-Zeit in Millisekunden, und die kennt keine Zeitzone. Die Umrechnung passiert erst mit SysTimeRtcConvertHighResToLocal, und genau da liegt bei dir vermutlich der Haken. In deinem Code machst du die Umrechnung nämlich gleich wieder rückgängig: erst HighRes nach Local, dann Local wieder zurück nach HighRes. Am Ende steht logischerweise wieder der UTC-Wert da, das ist kein Fehler...