| FORUM | LATEST POST | # TOPICS |
|---|---|---|
|
Engineering π¬π§ Discussions about the CODESYS Development System, IEC programming, CODESYS Professional Developer Edition |
Static Analysis Error SA0026 by YIN 2 hours ago |
6079 |
|
Runtime π¬π§ Related questions to SoftPLCs e.g. Raspberry Pi, Beaglebone, IoT2000 and other platforms |
OPC-UA by YIN 13 hours ago |
2316 |
|
Visualization π¬π§ Realizing operator screens with CODESYS HMI, Targetvisu, Webvisu |
Alarm Manager - Disk IO Error and Memory Double Free Exception by YIN 1 day ago |
1073 |
|
Motion π¬π§ Realizing single or multi axis motion control, CAM, CNC and Robotic applications |
Mismatch between coordinate monitor and actual motion using SMC_GroupJog... by darwin03 2 days ago |
575 |
|
Codesys V2.3 π¬π§ Forum about V2.3 |
Where Can I download the latest Version of CoDeSys V by yueqiqi 2026-06-15 |
2245 |
|
Deutsch π©πͺ German forum |
Nach "Alles Bereinigen" viele unklare Fehler, aber nur in Schrittketten by dmb-fan 2026-10-19 |
4596 |
|
Automation Server π¬π§ The Industry 4.0 administration platform for users and operators of CODESYS compatible controllers |
Gateway in China - "Gateway not connected" by pernockham 2026-03-18 |
81 |
|
Forge π¬π§ Discussions about CODESYS Forge projects and features of the CODESYS Forge website |
WebVisu scaling regression in V3.5.22 P2: frame size jumps when switchin... by charly29160 2026-06-15 |
232 |
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...
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...
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...
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...
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...
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...
I've seen a similar pattern on a long-running visu before, and in my experience the two errors are usually worth treating as separate clues rather than one cause. The double-free in AlarmConfig points more at the alarm storage itself than at the display table, especially with a 10000-entry history that keeps cycling while alarms are being hidden and cleared at the same time. If the clear and the cycle happen close together, that is the kind of race I would look at first, and I would check whether...