All Neighborhoods

CODESYS Talk

    CODESYS Forge

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

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

    Hi mankh, your follow-up is the right question to ask, because the EDS import itself is usually the easy part. CANopen is a standard and the CR710S manager just reads what the file describes, so a conforming EDS will load fine through the Device Repository. Where I have seen these migrations bite is not the file format but what the file assumes. The old EDS files sometimes carry default PDO mappings that don't match how the modules were actually configured under 2.3, so after importing I would open...