All Neighborhoods

CODESYS Talk

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