All Neighborhoods

CODESYS Talk

    CODESYS Forge

  • YIN YIN posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    The CLOSE_WAIT pile-up is the detail that stands out for me. The client has already closed its side, but the server side is still holding those sockets, so it looks less like a plain network drop and more like sessions or subscriptions not being cleaned up after a disconnect. The fact that the PLC keeps running and a runtime restart clears it points the same way. I have run into a similar pattern where a reconnecting client kept opening new sessions faster than the old ones were released. Node-RED...

  • YIN YIN posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hi, I ran into a very similar wall a while back, and the pattern in your log is what gave it away for me. Those 71 errors are not really about the EtherNet/IP device settings at all, they are all unresolved references inside cip object, things like SendEthFrame and the TCPIP_Interface calls, so the build fails before it ever gets to talking to the Weintek panel. In my case that usually meant the library version and the target did not line up, the library was expecting Ethernet functions the runtime...

  • YIN YIN posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Good question β€” I noticed that column too and had the same expectation at first, that it might be a quick fix for things like unused variables. In the projects I've worked with, it has stayed empty for Static Analysis Light as well, including the unused-variable messages. Double-clicking the message still seems to be the way to jump to the variable, and I haven't seen an action appear there for those checks. So I wouldn't read the empty field as something misconfigured on your side; it just looks...

  • YIN YIN posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    That message usually means the scanner never got past the CIP encapsulation session itself, so at this point it is more of a connection problem than an assembly mapping problem. The fact that the same device works fine with Rockwell and Omron actually points in the same direction, since those scanners tend to be more forgiving about session setup. First thing I would check is the plain network side. Make sure the PFC and the device are really in the same subnet, and ping the device from the PFC if...

  • YIN YIN posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hi Matthias, thanks for writing this up so clearly β€” I ran into something very similar when I moved a build script from SP21 to SP22, and your two-step workaround is exactly what I ended up doing too. My guess is that with checkout=True the branch switch closes and reopens the project behind the scenes, and the handle the call returns still points at the old instance, so it is already dead by the time the script touches it again. That would explain the 0 handle, and why splitting it into branch_copy...