CODESYS Talk
Hi hammer, your analysis lines up with what I ran into on a similar XY chart a while back, and I ended up at the same conclusion β the documented example looks transposed in SP21 Patch 40, at least in the way the element actually walks the array. The giveaway for me was the same one you spotted: when "Element to use" lists thousands of entries, the element is treating the point dimension as the record. Once I flipped the declaration to points first and sets second, the combobox dropped to just the...
Hi bigwhig, I ran into the same thing on a company laptop where IT had locked down ProgramData, so this looks familiar. The message is basically telling you the IDE can't save its own settings, because your normal account doesn't have write access to that folder. CODESYS keeps its user options under C:\ProgramData\CODESYS\Options, and if that folder (or the .opt file itself) was created by an install run as admin, a standard user can read it but not overwrite it. That also explains why the Default...
I hit this exact error a while back when I was reading device parameters from a script, and in my case the script itself wasn't the problem β it was the gateway side. read_online_value goes through the gateway configured for that device, so logging in to the application alone doesn't cover it. The device object still needs its own working gateway connection. First thing I'd check is DEV1 in the device tree, under Communication Settings. Make sure a gateway is actually selected there, that it points...
That combination of errors is actually a useful clue. UaExpert works because it browses the server first and picks an endpoint the server really offers, while Fuxa and RapidSCADA seem to be asking for a specific security policy and mode combination that your server does not have, so the server just closes the channel. The RapidSCADA message says that pretty directly. What helped me in a similar setup was to open the server in UaExpert, look at the endpoint list it shows, and write down the exact...
That random behaviour rings a bell, I ran into almost the same thing on a panel PC a while back and it drove me nuts for a day. Two separate things are going on here, I think. The PLC freeze is the easier one to explain: SysProcessExecuteCommand waits until the program you started exits. Shutdown works because it exits straight away, but osk.exe just sits there, so the call never returns and the task that called it stalls with it. That is also why TimvH's Task Scheduler idea is worth a try, the PLC...