| FORUM | LATEST POST | # TOPICS |
|---|---|---|
|
Engineering π¬π§ Discussions about the CODESYS Development System, IEC programming, CODESYS Professional Developer Edition |
Feature Request: Read-Only References / Pointer-to-Const Support by YIN 5 hours ago |
6079 |
|
Runtime π¬π§ Related questions to SoftPLCs e.g. Raspberry Pi, Beaglebone, IoT2000 and other platforms |
PFC200 - WAGO 750-8202 - MODBUS RTU by YIN 12 hours ago |
2316 |
|
Visualization π¬π§ Realizing operator screens with CODESYS HMI, Targetvisu, Webvisu |
MC_ReadActualPosition with ST code by YIN 1 hour ago |
1073 |
|
Motion π¬π§ Realizing single or multi axis motion control, CAM, CNC and Robotic applications |
SOFTMOTION - Error 34 when trying to execute and SMC_DI_AXIS_Error by YIN 15 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 |
Codesys Virtual Safe Control mit WeidmΓΌller UR20 FSOE Modulen by YIN 2 days ago |
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 chaylak, I ran into almost the same 'works in CFC, not in ST' situation a while back, and in my case the function block wasn't the problem at all β it was the program around it. First thing I would check is whether this POU actually compiles and downloads as ST. The code you pasted has a VAR_INPUT block with CFC_Motion sitting at the very bottom, after the executable code. In ST all declarations have to come before the body, so a trailing VAR_INPUT like that won't compile, and if the POU never...
Thanks for writing this up so clearly β I ran into the same wall when I was trying to keep a small table of axis limits read-only once it left the owning function block. The worry was exactly the same: some consumer further down the chain changes a value by accident, and the machine starts behaving differently with no obvious culprit. As far as I know there is still no persistent const reference in ST, so the FB-with-getters route is the one that has held up best for me in practice, even though I...
Hi tarek, the short answer is that you can't add the slave in the CODESYS tree, and that's expected rather than a bug. CODESYS itself has no DeviceNet master, so the DeviceNet side of your setup belongs entirely to the EL6752. In the CODESYS device tree the terminal only shows up as an EtherCAT slave, and whatever slaves sit behind it are configured in the terminal's own setup, not in CODESYS. In practice that setup happens in TwinCAT's DeviceNet configurator. That's where you add the valve, give...
Hi, since the same setup works from your PC with the USB converter, the Carel side of this is basically proven β the 19200/None/1 settings, the address 1 and the FC03 register map all do what they're supposed to. So I'd focus on the PFC200 side, that's where the difference has to be. The first thing I'd check is whether the port is really in RS485 mode and really free. You set serialmode in the PLC shell and the owner to unassigned in WBM, which is the right combination, but the port mode usually...
Hi, you mention 34 in the title and 36 in the post β going by your screenshots, 34 is the one the axis is actually reporting, and that's SMC_AXIS_NOT_READY_FOR_MOTION, meaning the axis never signals that it follows the target values. Both that and the SMC_DI_AXIS_ERROR in your table point at the drive rather than at the MC blocks: the drive has reported an error, and the MC blocks are just passing it on. Your second screenshot backs that up. The master diagnostics show an emergency straight from...
Hi thejesh, good question, and your measurements make the picture pretty clear. In my experience that destroy-and-rebuild on a switch-frame change is just how the frame element works in WebVisu: when the index changes, the referenced visualization is closed and the new one is instantiated from scratch, so the client has to build all of its elements again. I have not come across a property or client option in the frame element that keeps an inactive referenced visualization mounted in the background,...
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...