Post by timvh on Codesys v3.5.22.10 - Fail to create a project Archive
CODESYS Forge
talk
(Post)
There is an issue with adding the visu styles to the archive with Visu add-on 4.9.0.0 and 4.9.1.0. When you create the projectarchive disable the option to add the style(s) to the archive. CODESYS support informed me it will be fixed with visu add-on 4.10.0.0 (May 26th 2026). An alternative is to start CODESYS as Administrator. Then it will work with styles as well. You could start CODESYS as Administrator by first opening the CODESYS Installer. At the bottom you can select to start the Installer as Administrator. If you do this and then start the CODESYS version from this installer, it will work.
Last updated: 2026-04-25
Alarmmanagement – Dynamic Alarm List
CODESYS Forge
talk
(Thread)
Alarmmanagement – Dynamic Alarm List
Last updated: 2026-04-25
library inside library
CODESYS Forge
talk
(Thread)
library inside library
Last updated: 2026-04-25
Post by timvh on library inside library
CODESYS Forge
talk
(Post)
1) it should be possible to access the type SysTime in the project as A_Lib.SysTime. 2) you could add the SysTimeCore library to the library manager of your library (POU Pool). This might seem as a double library, but because of the placeholder resolution only one will be used. Then, in your library manager of your library, select the SysTimeCore library, right-click, select "Properties" and enable the option "Publish all IEC symbols ...." For more information about library development, you could follow our advanced training course in Ridderkerk. The next is scheduled for 24 and 25 June 2026 https://www.extendsmartcoding.nl/codesys-training/
Last updated: 2026-04-25
Post by timvh on Issue with library updates
CODESYS Forge
talk
(Post)
tried this with SP22 P1 and I see no issues related to this. Can install the updated library in the repository, automatically get a message in my project that a new version is loaded and when I login, get a message to do an online change and see the new behaviour of the changes in my library.
Last updated: 2026-04-25
Post by charleskirkland on Connect to Azure IoT Hub
CODESYS Forge
talk
(Post)
It sounds like your TLS setup is basically correct, since the handshake works via OpenSSL, so the issue is likely on the CODESYS side rather than the certificates themselves. From what I’ve seen with the Azure IoT Hub Client SL library, you should double-check that the SAS token is actually being generated and passed correctly to the function blocks (especially wsDeviceSaS) and that the MQTT/HTTPS FB is really triggered cyclically-otherwise the controller won’t initiate the connection at all. Also, make sure DNS, time (NTP), and full certificate chain trust are properly configured on the controller, since IoT Hub authentication depends on them even when using SAS tokens. Another thing worth checking is the library/runtime version-there are reports that certain versions changed behavior and caused connection issues. I’d recommend starting with the official demo project (AzureMQTTDemo) and comparing it step by step with your setup to see what’s missing or not triggered. Speed Stars
Last updated: 2026-04-27
Connect to Azure IoT Hub
CODESYS Forge
talk
(Thread)
Connect to Azure IoT Hub
Last updated: 2026-04-27
Post by heman on CODESYS and Github Copilot
CODESYS Forge
talk
(Post)
you might want to have a look at www.plc-assist.com . its an agentic chatbot that connects to you codesys projects.
Last updated: 2026-04-27
Post by heman on AI + Programming
CODESYS Forge
talk
(Post)
have a look at www.plc-assist.com ...think it does what you are looking for
Last updated: 2026-04-27
Post by polo on 1 Wire und i2c zeitgleich in Betrieb
CODESYS Forge
talk
(Post)
Hallo zusammen, ich habe schon einige Zeit 16 DS18B20 am 1 Wire laufen ... auch die ganze Zeit stabil ... jetzt habe ich ein PWM Signal über i2c für eine Pumpenansteuerung zusätzlich in Betrieb genommen.. nur das Signal für die Pumpe geht über i2C ... 100Hz 10ms. Es läuft auch alles soweit ... nur fallen mir jetzt die Temperaturen in Abständen aus ... Vertragen sich die beiden Systeme zeitlich evtl. nicht so gut ... 1 wire extra task mit 200ms Prio 0 i2c task 10ms ... damit die 100Hz auch übertragen werden Prio 1 (Adafruit_PWM) Main Task 20ms Prio 5 Oder jetzt besser beides über i2c abrufen ... ist aber dann evtl. für die DS18B20 zu schnell ? Oder sind die 5V vom Pi jetzt zu schwach für beide Signale? Vielen Dank euch
Last updated: 2026-04-27
1 Wire und i2c zeitgleich in Betrieb
CODESYS Forge
talk
(Thread)
1 Wire und i2c zeitgleich in Betrieb
Last updated: 2026-04-27
Engineering IDE from linux?
CODESYS Forge
talk
(Thread)
Engineering IDE from linux?
Last updated: 2026-04-27
Post by reinier-geers on Network variable stops sending
CODESYS Forge
talk
(Post)
Thanks. but ive got unique identifiers. and i dont save to a file.
Last updated: 2026-04-28
Post by husarz17 on Pi as Modbus TCP slave. Errors
CODESYS Forge
talk
(Post)
Hi, I have similar issue. Is that possible to use more than 4096 registers with Modbus RTU slave?
Last updated: 2026-04-29
Pi as Modbus TCP slave. Errors
CODESYS Forge
talk
(Thread)
Pi as Modbus TCP slave. Errors
Last updated: 2026-04-29
Deploy Codesys Control SL to a 'secure' device
CODESYS Forge
talk
(Thread)
Deploy Codesys Control SL to a 'secure' device
Last updated: 2026-05-01
Post by timvh on USB Game Controller with Raspberry Pi
CODESYS Forge
talk
(Post)
I'm not sure it will work, but you could try it with the CmpCharDevice library. You could create a function block that looks something like this: As input for the filename, you have to use your Linux device, e.g.: '/dev/input/event0' '/dev/input/by-path/platform-button@23-event' Off course you must also pass the pointer to the memory where the data can be written to and the size (count in number of bytes) of the buffer. FUNCTION_BLOCK FB_CharDevice VAR_INPUT szFilename: STRING; pbyBuffer : POINTER TO BYTE; udCount : UDINT; END_VAR VAR_OUTPUT iState : INT := 0; nrBytesRead : DINT; END_VAR VAR xInit : BOOL := TRUE; dFlags: DINT := CmpCharDevice.ACCESS_MODE.O_RDONLY + DINT#4000; // see details for flags: http://linux.die.net/man/2/open, + DINT#4000 is for non-blocking hDevice: CmpCharDevice.CmpCharDevice_Implementation.RTS_IEC_HANDLE := -1; Result : CmpCharDevice.CmpCharDevice_Implementation.RTS_IEC_RESULT; END_VAR IF xInit THEN hDevice := CmpCharDevice.CDOpen(szFilename, dFlags ,Result); // if it would not succeed, the result is -1 (Invalid handle) IF hDevice <> 16#FFFFFFFF AND Result = 0 THEN iState := 5; END_IF xInit := FALSE; END_IF IF iState = 5 THEN nrBytesRead := CmpCharDevice.CDRead(hDevice, pbyBuffer, udCount, Result); ELSE nrBytesRead := 0; END_IF Make sure you close the connection properly, maybe by overwriting the default FB_Exit method of the FB: // Clean up device IF hDevice <> 16#FFFFFFFF THEN __TRY CmpCharDevice.CDClose(hDevice,Result); __CATCH ; __ENDTRY iState := 0; END_IF
Last updated: 2026-05-01
Post by ph0010421 on Deploy Codesys Control SL to a 'secure' device
CODESYS Forge
talk
(Post)
Hello I'm trying to get Codesys onto a 'Secure' edge device (Linux) The device doesn't support 'sudo' so the connection doesn't complete properly. Is this the same as not allowing root access? Anyway, the screen shot shows where I am. What options do I have?
Last updated: 2026-05-01
Post by pra83 on CODESYS SoftRedundancy — Both PLCs stay standalone after network interruption — Auto recovery not working
CODESYS Forge
talk
(Post)
Hello, We are facing a critical issue with CODESYS SoftRedundancy that we have been unable to resolve despite extensive troubleshooting. HARDWARE: 2× HP EliteDesk 800 G9 SFF Intel Core i7-14700 (20 cores) 16GB RAM, 512GB NVMe SSD Windows 11 IoT Enterprise LTSC 2024 NIC1: Built-in Intel GbE NIC2: Intel I210-T1 PCIe (NIC team) SOFTWARE: CODESYS Control Win V3 - x64 Version 3.5.22.10 CODESYS SoftRedundancy SL Server 1 IP: 172.10.10.101 (PLC1 — Active) Server 2 IP: 172.10.10.102 (PLC2 — Standby) CURRENT CODESYSControl.cfg: [CmpRedundancy] BootupWaitTime=120000 StandbyWaitTime=12100 SynchronousTimeout=12100 [CmpSchedule] ProcessorLoad.Maximum=80 WatchdogTime=12000 WatchdogTimeoutAction=0 CONFIRMED WORKING: PLC1/PLC2 identification configured via IDE Connection IP configured via IDE AutoSync enabled and written via IDE Normal Active/Standby operation working Server 2 auto-promotes when Server 1 completely fails PROBLEM DESCRIPTION: When NIC1 cable is removed from Server 1 — both servers go to standalone mode. When NIC1 cable is reconnected — both servers remain in standalone indefinitely. Neither server auto-recovers to Active/Standby without manual CODESYS service restart. AutoSync fires (!!! Autosync !!! visible in log) but recovery does not complete. Tested with direct cable (no NIC team) — same result. Confirmed not a hardware or NIC teaming issue. KEY LOG MESSAGES: "Timeout: No sync message RMSG_StartCycle (5) from master: Standalone" "Socket on other side closed gracefully 0" "Standby PLC: Open acyclic work socket failed" "Connection broke after 11806ms. Check BootupWaitTime." Autosync(fires but does not complete recovery) PCAP ANALYSIS (Wireshark): CODESYS sync stops completely at T+3s Server 1 sends TCP FIN on ports 1206 and 1208 at T+5s No CODESYS redundancy traffic for remaining 24 seconds Both servers stay standalone indefinitely WHAT WE HAVE TRIED: StandbyWaitTime = 12100ms SynchronousTimeout = 12100ms WatchdogTime = 12000ms (less than StandbyWaitTime) AutoSync enabled NIC2 set as Standby adapter Disabled Windows Network Discovery Direct cable test — rules out NIC hardware QUESTION: Per official CODESYS documentation: "No automatic Reconnect is included in the functional scope of the redundancy components. You can program the triggering of a reconnect." Is RDCY.Synchronize() the correct function to add to our application for automatic recovery after both PLCs go standalone? What is preventing auto-recovery when AutoSync is enabled and PlcIdent is correctly set? Thank you for your support.
Last updated: 2026-05-02
Post by malie on Issue with library updates
CODESYS Forge
talk
(Post)
I just tried with version 3.5.22.1 and librarys updates often aren't recognized, usually not. Same behavior like 3.5.21. To describe my workflow: one IDE is used to test librarys as project and two or more IDEs to edit librarys. With only two open IDEs there is no problem, the problem began with more than two open IDEs.
Last updated: 2026-05-04
Post by gseidel on Mismatch between coordinate monitor and actual motion using SMC_GroupJog2, MC_MoveLinearAbsolute (6DOF)
CODESYS Forge
talk
(Post)
Hi darwin03, when all joints are 0°, then the 6-axis robot is in a so called singularity. This means that it is in a special position where it cannot move freely in all directions but is restricted by its own construction. For a simple example, imagine a scara robot where the arm is fully stretched. In this position it cannot move freely. You can find a lot of information about robot configurations in the www. As far as CODESYS SoftMotion Robotics is concerned, this page holds the most important links, look for the error SMC_CP_CONFIGS_DIFFER: https://content.helpme-codesys.com/en/CODESYS%20SoftMotion/_sm_robotics_errors.html The most important rules: 1) CP movements (linear moves, circular moves, cartesian jogging) cannot change the configuration during the movement. Both start- and endpoint must be in the same configuration. This excludes also the edge case that one or both of them are in a singularity. 2) PTP movements can move through singularities and cross configurations without problems. 3) SMC_SetKinConfiguration can be used to set the configuration of the axis group. Regards, Georg
Last updated: 2026-05-04
Mismatch between coordinate monitor and actual motion using SMC_GroupJog2, MC_MoveLinearAbsolute (6DOF)
CODESYS Forge
talk
(Thread)
Mismatch between coordinate monitor and actual motion using SMC_GroupJog2, MC_MoveLinearAbsolute (6DOF)
Last updated: 2026-05-04
draw 1000 nails the easy way
CODESYS Forge
talk
(Thread)
draw 1000 nails the easy way
Last updated: 2026-05-06
Post by reinier-geers on draw 1000 nails the easy way
CODESYS Forge
talk
(Post)
Because codesys dont has a draw command like Circle in Qbasic ( 20 years ago ) i want to draw 1000 nails, and then move them in the screen when they needed. I dont know if codesys can handle this. But is ther an easy way to draw 1000 nails with every single one has a pointer for movement, color and invisable. Of is there a linux command to draw a circle so i can do it with a process command
Last updated: 2026-05-06
Post by reinier-geers on Network variable stops sending
CODESYS Forge
talk
(Post)
What version. 20.5 ? ive got also problems wiyth that version. Online change, it hangs itself after one hour. Then one project can problems. Ive change display with 21.0 . At home i turned on the 20.5 display. After 1 hour i goes to stop.
Last updated: 2026-05-06
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.