Post by jasperclauwaert on Persistent Retain Variables Not Visible in Online View (WAGO PFC100 + CODESYS)
CODESYS Forge
talk
(Post)
Hi everyone, I’m working on a WAGO PFC100 with CODESYS. During development everything worked fine, but in the final stage I set several variables to PERSISTENT RETAIN. When I go online, most of these persistent variables cannot be monitored. Instead, I see: <Value of the expression cannot be retrieved> Interestingly, a few variables do show their values correctly, but the majority do not. The variables are not used as pointers or in any unusual way. The application compiles and runs without errors. Has anyone experienced this before? Is this a known issue with PFC100 or CODESYS? Any ideas on what could cause this behavior? Thanks in advance! Jasper
Last updated: 2025-10-23
Any ways to prevent Infinite scroll when moving an object to the left or top edge?
CODESYS Forge
talk
(Thread)
Any ways to prevent Infinite scroll when moving an object to the left or top edge?
Last updated: 2025-10-24
OSCAT Scale_r function not working in LD 4.60 works in LAD2 on 3.5.21sp3
CODESYS Forge
talk
(Thread)
OSCAT Scale_r function not working in LD 4.60 works in LAD2 on 3.5.21sp3
Last updated: 2025-10-23
Post by jasperclauwaert on Persistent Retain Variables Not Visible in Online View (WAGO PFC100 + CODESYS)
CODESYS Forge
talk
(Post)
Hi everyone, I’m working on a WAGO PFC100 with CODESYS. During development everything worked fine, but in the final stage I set several variables to PERSISTENT RETAIN. When I go online, most of these persistent variables cannot be monitored. Instead, I see: <Value of the expression cannot be retrieved> Interestingly, a few variables do show their values correctly, but the majority do not. The variables are not used as pointers or in any unusual way. The application compiles and runs without errors. Has anyone experienced this before? Is this a known issue with PFC100 or CODESYS? Any ideas on what could cause this behavior? Thanks in advance! Jasper
Last updated: 2025-10-23
Post by ph0010421 on OSCAT Scale_r function not working in LD 4.60 works in LAD2 on 3.5.21sp3
CODESYS Forge
talk
(Post)
Is that rung definitely being executed? Is the POU called?
Last updated: 2025-10-23
Post by shaunvdm on OSCAT Scale_r function not working in LD 4.60 works in LAD2 on 3.5.21sp3
CODESYS Forge
talk
(Post)
Yes it is called
Last updated: 2025-10-24
Post by vtec35 on search runtime 4.9.0.0 for pi 3
CODESYS Forge
talk
(Post)
i m not familiar with installation/firmware/version/runtime, juste the machine worked fine before, and now kaput lol
Last updated: 2025-10-26
OSCAT Scale_r function not working in LD 4.60 works in LAD2 on 3.5.21sp3
CODESYS Forge
talk
(Thread)
OSCAT Scale_r function not working in LD 4.60 works in LAD2 on 3.5.21sp3
Last updated: 2025-10-26
Passing EtheNetIP adapter device into a Function Block to access it's IO
CODESYS Forge
talk
(Thread)
Passing EtheNetIP adapter device into a Function Block to access it's IO
Last updated: 2025-10-28
Passing EtheNetIP adapter device into a Function Block to access it's IO
CODESYS Forge
talk
(Thread)
Passing EtheNetIP adapter device into a Function Block to access it's IO
Last updated: 2025-10-28
Passing EtheNetIP adapter device into a Function Block to access it's IO
CODESYS Forge
talk
(Thread)
Passing EtheNetIP adapter device into a Function Block to access it's IO
Last updated: 2025-10-28
Post by malte on OPC UA multiple Endpoints
CODESYS Forge
talk
(Post)
My CODESYS OPC UA server provides endpoints using both the hostname and the IP address. Connecting via the IP address works fine, but connecting via the hostname does not. The endpoint list shows both opc.tcp://<hostname>:4840 and opc.tcp://<ip>:4840. When using the hostname, the OPC UA client (UA Expert) fails to connect. Using the IP address connects without issues. Main goal is to conect via Python but opcua-asyncio seems to prefer the hostname. How can I configure CODESYS or my system so that the OPC UA connection via hostname also works properly or disable it completly? Running Codesys for PFC200 sl 4.18.0.0
Last updated: 2025-10-28
Post by aria13 on Has anyone fed ESP32 sensor data into CODESYS (via MQTT/Modbus)?
CODESYS Forge
talk
(Post)
Has anyone tried sending live sensor data from an ESP32 into a CODESYS runtime (for example via MQTT gateway or a Modbus bridge) to trigger PLC logic? I was reading an ESP32 → MQTT tutorial (https://www.theengineeringprojects.com/2021/11/esp32-mqtt.html) that shows how easy it is to publish sensor data from an ESP32, and I’m wondering how practical that is when tying the stream into industrial control software like CODESYS. I’ve also seen Arduino forum threads where people relay sensor streams to MQTT brokers and Raspberry Pi projects that bridge MQTT→Modbus, so I’m mainly curious about real-world issues: reliability, message latency, and simple patterns you’d recommend for safe PLC integration. Any tips, examples, or gotchas from folks who’ve done this?
Last updated: 2025-10-29
ERROR: Calling the program "AlarmStorage_Prg" is not allowed from multiple tasks
CODESYS Forge
talk
(Thread)
ERROR: Calling the program "AlarmStorage_Prg" is not allowed from multiple tasks
Last updated: 2025-11-04
Post by eschwellinger on Modbus TLS Kommunikation
CODESYS Forge
talk
(Post)
aktuell bin ich mir nicht sicher ob das Modbus/TCP Security Protocol unterstützt, ich check das mal. Hast du ein Handbuch zu der Wallbox?
Last updated: 2025-11-06
Post by eschwellinger on Modbus TLS Kommunikation
CODESYS Forge
talk
(Post)
hi, das geht leider nicht mit aktivierter Verschlüsselung , sorry - denke aktuell bleibt dir nur auf Slave Seite die Verschlüsselung zu deaktivieren.
Last updated: 2025-11-09
Post by albertovalente on How extract JSONElement containing Array data
CODESYS Forge
talk
(Post)
Hi Creator: hazarath, Have you fix the problem? because I have the same issue Thanks a lot
Last updated: 5 days ago
Post by albertovalente on How extract JSONElement containing Array data
CODESYS Forge
talk
(Post)
Hi Creator: hazarath, Have you fix the problem? because I have the same issue Thanks a lot
Last updated: 5 days ago
Post by bitor-leao on *EXCEPTION* [ProsessorLoadWatchdog] codesys 3.5.11.40
CODESYS Forge
talk
(Post)
Good night. I am having a problem with CODESYS 3.5.11.40, which gives the exception EXCEPTION [ProcessorLoadWatchdog]. I followed some forum posts and tried to modify the CODESYSControl.cfg file, but it shows: [SysFile] Windows.WorkingDirectory=C:\ProgramData\CODESYS\CODESYSControlWinV3\D5050FE1 Then I go to this directory and try to modify CODESYSControl.cfg according to the forums, but it doesn’t work: [CmpSchedule] ;EnableLogger=0 ProcessorLoad.Maximum=80 ;Timeslicing.Mode=Internal ;Timeslicing.PlcSlicePercent=80 ;Timeslicing.PlcSliceUs=4000 ;Timeslicing.StartOnProcessorLoad=1 ;SchedulerPriority=5 ;SchedulerInterval=1000 I tried to change ProcessorLoad.Maximum to 0 or 100, but it doesn’t compile when I try. I really don’t know what to do,
Last updated: 1 day ago
Post by bitor-leao on *EXCEPTION* [ProsessorLoadWatchdog] codesys 3.5.11.40
CODESYS Forge
talk
(Post)
Good night. I am having a problem with CODESYS 3.5.11.40, which gives the exception EXCEPTION [ProcessorLoadWatchdog]. I followed some forum posts and tried to modify the CODESYSControl.cfg file, but it shows: [SysFile] Windows.WorkingDirectory=C:\ProgramData\CODESYS\CODESYSControlWinV3\D5050FE1 Then I go to this directory and try to modify CODESYSControl.cfg according to the forums, but it doesn’t work: [CmpSchedule] ;EnableLogger=0 ProcessorLoad.Maximum=80 ;Timeslicing.Mode=Internal ;Timeslicing.PlcSlicePercent=80 ;Timeslicing.PlcSliceUs=4000 ;Timeslicing.StartOnProcessorLoad=1 ;SchedulerPriority=5 ;SchedulerInterval=1000 I tried to change ProcessorLoad.Maximum to 0 or 100, but it doesn’t compile when I try. I really don’t know what to do,
Last updated: 1 day ago
What is the prerequisites for a Raspberry Pi to work with SysSockSetIpAddressAndNetMask()
CODESYS Forge
talk
(Thread)
What is the prerequisites for a Raspberry Pi to work with SysSockSetIpAddressAndNetMask()
Last updated: 5 days ago
Which Lib to use, connect to a socket with URL instead of IP address
CODESYS Forge
talk
(Thread)
Which Lib to use, connect to a socket with URL instead of IP address
Last updated: 5 days ago
Get/Set I/O Address Mapping of DeviceObjects in python Script
CODESYS Forge
talk
(Thread)
Get/Set I/O Address Mapping of DeviceObjects in python Script
Last updated: 5 hours ago
Post by adam on Get/Set I/O Address Mapping of DeviceObjects in python Script
CODESYS Forge
talk
(Post)
Found out.Its script engine bug . Update to script engine version 4.2.0.0. and problem solved
Last updated: 5 hours ago
Post by eoahe on Problem Reading Registers via Modbus from non Codesys device
CODESYS Forge
talk
(Post)
Hey Guys :) I have the following Problem using Modbus via Codesys: I'm trying to implement a Modbus Device into my codesys project. The device is a Router from Teltonika (RUT956) and it can communicate via Modbus. Currently I'm trying to implement it into my codesys prject as a slave and I'm using my windows computer as master. As it is not a codesys device (the codesys application is not uploaded to device as it has its own software) I'm having problems requesting and reading registers from the router. I've set up my windows computer as Master and implemented the router as slave. When I go online on my master device it sais that it has established a connection to the slave (router)(So I'm thinking this could work as there is a connection?). The goal is to read the GPS (latitude and longitude) data and on the homepage of teltonika you can find the register address and number of registers (adress 143 for latitude and 145 for longitude; both have a number of two registers). I've found tutorials how to read specific registers via their register address with other modbus programs (like modbus-cli), but as my entire project is established in codesys I was hoping to read these specific registers via codesys so that I can show the GPS data on my dashboard. I've tried establishing slave channels but that hasn't been working. I tried read input register channels of the length 4 but it's not possible to define specific register addresses to read via codesys so that didn't work (I jsut get a slaves device failure) and I've also tried establishing 516 (total number of registers the router sends I think?) read inputregister channels but that has the samle failure... So i guess the problem I'm having is establishing slave channels to read these specific registers. Does anyone know how to tackle this problem and has maybe had the same problem? Or maybe someone knows a workaround? I'm quite new to codesys so maybe I'm also lacking expertise...
Last updated: 2025-03-01
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND or OR.