CODESYS Talk
Nice work, thanks for putting this together and publishing the patches too. I messed around with CODESYS under stock Wine a while back and it always fell over somewhere around the installer or the licensing side, so having the NCrypt and token fixes bundled in one package is a big step. One thing I'm curious about is how it behaves in a longer session once you're actually online with a target. In my experience the compile side is usually fine, it's the online change and download that start acting...
Hi Fabio, I ran into this one a while back and it confused me too, because your logic is fine β an IPv4 address can never be more than 15 characters, so nothing is actually being cut off here. What SA0026 is really flagging is the sizes the analyser assumes, not the value at runtime. Your strIPAddress is a plain STRING, so it defaults to 80 characters, while the result of that nested CONCAT is treated as a much longer string. The analyser doesn't work out that your four STRING(10) pieces plus three...
That frozen udiNumMsgSent with _state back at None is the interesting part, because it tells you the request block itself thinks it is idle while nothing is going out on the wire. I have seen this shape of problem with ModbusFB before, and in my case it wasn't the trigger edge at all, it was the connection block holding on to the timed-out request. Your trigger logic sounds right to me, one full cycle with xExecute FALSE between triggers is exactly what these blocks want, and the fact that it works...
Your Wireshark capture is the clearest clue here. ExtendedFlags1 0x01 with the security bit clear means the writer is publishing with no security context at all, so the group is either never being consumed or it gets reset before the first datagram goes out. I have run into the same kind of thing with these function blocks before, where every call returns NO_ERROR and yet nothing on the wire changes, and in my case the order of events was the problem rather than the keys themselves. What I would...
That freeze sounds familiar β I ran into something very similar when I tried to launch a Windows tool from the PLC side, and the cause turned out to be less about the command itself and more about where it runs from. SysProcessExecuteCommand tends to wait for the program to finish before it returns, at least in the way it is usually called from a task. osk.exe does not really exit while it is open, so the task just sits there waiting and everything else in that task stops with it. Shutdown works...