Talk

FORUM LATEST POST # TOPICS
Engineering πŸ‡¬πŸ‡§

Discussions about the CODESYS Development System, IEC programming, CODESYS Professional Developer Edition

branch_copy(checkout=True) liefert ungΓΌltigen Projekt-Handle (0) in CODE...
by YIN
3 hours ago
6079
Runtime πŸ‡¬πŸ‡§

Related questions to SoftPLCs e.g. Raspberry Pi, Beaglebone, IoT2000 and other platforms

Raspberry Pi Runtime 4.22.0.0 vs. 4.20.0.0 I2C Bus not running...
by eschwellinger
2026-10-16
2316
Visualization πŸ‡¬πŸ‡§

Realizing operator screens with CODESYS HMI, Targetvisu, Webvisu

Alarm Manager - Disk IO Error and Memory Double Free Exception
by YIN
6 hours 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
20 hours 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

Recent Activities

    CODESYS Forge

  • 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...

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

    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...

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

    Hi, I've run into this exact message on smaller runtimes before, and in my experience it usually means the Ethernet send path gets starved for a cycle or two rather than a bad cable, so it doesn't surprise me that your power and cabling check out. The thing that caught my eye is the jitter you mentioned. 2 ms on a 6 ms task is a big slice of the cycle, and when the EtherCAT task and the SoftMotion task line up, the stack can miss its send window and log exactly this error. Your cycle times look harmless...

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

    That fixed millisecond pattern in your log is the biggest clue for me. Every entry ends in .692 or .732, so the failed send always happens at the same offset inside a task cycle, which means something else is holding the interface busy at exactly that moment rather than the network being generally bad. Looking at your screenshot, I would start with the Perifery task. It is set to 11 ms, but the monitor shows jitter up to almost 10 ms and a max cycle time around 5.9 ms, so whatever runs in there is...

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

    Hi mariapaola, I hit almost the exact same wall on a 750-881 with two 750-652 cards, and the thing that finally unblocked it for me was realising the Modbus FB wants to own the port by itself. In DEVICE2 you actually open COM4 twice: once with your own SERIAL_INTERFACE call and once inside MODBUS_EXTENDED_MASTER_RTU, which opens the port through its own internal interface. On V2.3 those two fight over the same port and the FB's Com_Port_Ist_Offen just never came up for me, even though the module...

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

    Hi clesio, I have hit the same thing before, and SIZEOF really is the part to look at first. For a STRING, SIZEOF gives you the declared size of the variable, not the length of the text in it right now, so if sLine is declared as STRING(255) you end up writing the whole 256-byte buffer, including the unused bytes after the terminating zero. Those extra bytes are what show up as the strange characters at the end of your CSV, especially when you open it in Excel. LEN is the right idea, so the empty...

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

    Hi davejc β€” and colorearm, since you asked for the same thing β€” I went down this exact road a while ago, and the bit that tripped me up was expecting the Alarm Manager to just give me a ready-made BOOL somewhere. It doesn't, at least not in the setup I was using. You have to read the alarm list from code. What worked for me was the approach TimvH linked to in the other thread: add the AlarmManager library, make a small FB that implements IAlarmFilterCriteria and another one that implements IAlarmManagerClient,...

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

    Hi megasilver, That error message is actually telling you quite a lot, even if the wording is cryptic. Your compiled application expects version 2.0.0.12 of a set of system functions β€” the keyboard, backlight and splash screen ones β€” while the runtime on the controller only offers version 3.4.0.0 of them. So the project and the device disagree about which version of those functions exists. I have run into the same kind of mismatch before when a project was built against one device description and...

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

    Hi luca03, I ran into something very similar a while back with a NodeSet2 file that imported fine through the repository but crashed the IDE the moment I tried to load it directly, so your description sounds familiar. In my case the file itself was the problem, not the Communication Manager. First thing I would check is the header of the NodeSet2.xml. If it lists other models under RequiredModel, those dependencies have to be present and loadable too, otherwise the import can die silently. I once...

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

    Hi nixola, I ran into the same gap a while back, and honestly the documentation is thin here. The generated handler does return a DWORD, but I could not find any place in the online help where a specific return value is defined as resume, ignore, or stop, so I stopped treating it as a control signal at all. In my own projects I just return 0, which is what the generated stub does, and I use the handler for something else entirely: capture what happened, and get the machine into a known state. What...