Post by msegon on Send HTML body with Mail Service SL
CODESYS Forge
talk
(Post)
I'm trying to send a mail using Mail service SL. I would like the body to be in HTML format for a nicer look. Which I managed to do, but only if I don't send an attachment. Can someone help me with the settings on how to send an HTML body and attachment? I used the Mail Service SL Example project, the only thing I added in the "Main_PRG" code in line 51 under "SendMailFB" is "mimeType := 1". I'm using Library: Mail Service SL Library Documentation Company: CODESYS Title: Mail Service SL Version: 1.13.0.0 Categories: Application|Utils Namespace: MAIL Author: CODESYS Development GmbH Placeholder: Mail_Service_SL
Last updated: 2026-04-14
Post by nulltrace on How change Unity-ID in TCP Modbus Slave
CODESYS Forge
talk
(Post)
Hey, I also waiting for feedback from Mr. Schwellinger @eschwellinger, please send me an answer, i would appreciate it. The clue is, i know the solution, but have to check if it's allowed to share.
Last updated: 2026-04-14
Post by husarz17 on How change Unity-ID in TCP Modbus Slave
CODESYS Forge
talk
(Post)
Hi nulltrace, Thanks for the info. I'm waiting to hear back from you. Take care!
Last updated: 2026-04-13
Post by alexgooi on Modbus TCP interface get stuck
CODESYS Forge
talk
(Post)
Dear Forum, I'm currently experimenting with Modbus interfaces in combination with a virtual controller. I have the following setup (Modbus_Setup.png): I have an IPC with Debian installed on it (Debian 13). On this Debian machine I have installed a docker server and on this docker server a Codesys runtime container is deployed (Codesys_image.png). The Modbus scanner makes connection with and IO coupler and this works well. But when I physically disconnect the ethernet connection between the IPC and the IO coupler the Modbus interface gets stuck in a state where it gets stuck in the busy state (Modbus_Stuck.png). When I plug the cable back in, the IO coupler isn't communicating until the xBusy variable is manually set to False, after this action is performed the communication goes back to normal. I have tried to set the container network to host and bridge (Network.png), but both version gives the same result (stuck scanner). I would expect that the Modbus interface is generating a timeout after 1 sec, because this is how it is setup (Modbus_settings.png), but this is not what happens. I have thought to write a piece of code that writes xBusy to false when it is stuck but because it is an output I'm not able to write to it. I have tried this with another PC (different CPU/motherboard) but this gives the same outcome. I tried updating to the latest version of Virtual control (4.20) but this gives the same result. I also tried to do the same thing with an ethernet IP scanner, and this gives an error after the timeout is expired (so this works well). I have tried to connect to the IO coupler using the Modbus_FB lib (Modbus_FB.png) the FB's are giving the correct errors and behaving as expected. At last I have tried to use a Scanner on a Codesys controller (no IPC) and here the scanner behaves as expected (an alarm is triggered after the timeout has been expired). The version of the Codesys components are listed in the picture Versions.png Is there anyone that can give me a push in the right direction? Kind regards Alex
Last updated: 2026-04-14
Modbus TCP interface get stuck
CODESYS Forge
talk
(Thread)
Modbus TCP interface get stuck
Last updated: 2026-04-14
Post by reinier-geers on Resize and position Numpad/Keypad
CODESYS Forge
talk
(Post)
HI, I download the scale dialog. But cant find were i can Set the size of the dialogs. only the position. I want the diolog bigger
Last updated: 2026-04-15
Deutsch 🇩🇪
CODESYS Forge
talk
(Discussion)
German forum
Last updated: 7 days ago
Post by polo on Modelbau-Servos über I2C-Bus und Adafruit PWM
CODESYS Forge
talk
(Post)
Hallo, ich müsste alrMin von 1 auf 0.1 und alrMax von 2 auf 9 ändern ... im Programm von Codesys funktioniert aktuell nur die Änderung des alrPWM ... den kann ich von 0 auf 0.5 beim Start setzen lassen . Wie kann ich also alrMin und Max auch beim Start ... oder fest in den Grundeinstellungen ändern?
Last updated: 7 days ago
Modelbau-Servos über I2C-Bus und Adafruit PWM
CODESYS Forge
talk
(Thread)
Modelbau-Servos über I2C-Bus und Adafruit PWM
Last updated: 7 days ago
internal error
CODESYS Forge
talk
(Thread)
internal error
Last updated: 5 days ago
Post by rik123456 on Alarmmanagement – Dynamic Alarm List
CODESYS Forge
talk
(Post)
Hi, I had a question about alarm management in the CODESYS visualization. I am currently investigating to what extent the alarm visualization can be built dynamically. In my program, I have developed a motor block that is used for multiple motors. When the emergency stop of one or more motors is activated, the corresponding motors are displayed in the alarm list (see image). This works quite well. I achieved this by linking variables to a latch, after which a piece of code displays the motors that are in emergency stop. My question is: do I need to create a separate latch for each motor or can I use a single latch to display multiple alarms of a motor underneath each other? This would then look like this: Time…: M1 Emergency Stop Active Time…: M4 Emergency Stop Active
Last updated: 5 days ago
Runtime 🇬🇧
CODESYS Forge
talk
(Discussion)
Related questions to SoftPLCs e.g. Raspberry Pi, Beaglebone, IoT2000 and other platforms
Last updated: 5 days ago
Post by husarz17 on How change Unity-ID in TCP Modbus Slave
CODESYS Forge
talk
(Post)
Good to know there's a solution to this problem. I hope you'll be able to share it with me. I can't wait to hear about it.
Last updated: 5 days ago
How change Unity-ID in TCP Modbus Slave
CODESYS Forge
talk
(Thread)
How change Unity-ID in TCP Modbus Slave
Last updated: 5 days ago
Post by reinier-geers on Network variable stops sending
CODESYS Forge
talk
(Post)
I use network variables. But when i change the programm, it wil stop sending. Then is have to add or delete a variable. Then i will be compiled again and sends again. This problem wasw already in 9.20 but seems to be still in 21.0 . Is there a way to solve this ?
Last updated: 5 days ago
Post by cvrettacos-dse on How to reset scroll of a table element
CODESYS Forge
talk
(Post)
Hello, I would like to use swipe/pan gestures to scroll a table visualization element (CODESYS 3.5.21.10) ona DSE M810 display. The swipe / pan gesture control works fine, however, I cannot figure out how to reset / navigate to the top of the table again with code. I have tried the Scrolling begin variable, and the visu manager is setting it to FALSE right away but the table doesn't actually scroll back to top. If I check the “Scroll elements with scrollbar” box, then the Scrolling begin variable works perfectly, but now the swipe/pan scrolling no longer works and you have to use the scrollbar. Any assitence you can provide is appreciated. Thanks.
Last updated: 4 days ago
Post by skiper on Best practice to reduce CPU load
CODESYS Forge
talk
(Post)
Hi ! I can't say exactly the best practice you can use to reduce your cpu load but you can use the codesys exemple. https://www.codesys.com/products/visualization/#c3876 Go to the midle of the page and you have a link to download an exemple.
Last updated: 4 days ago
Post by nguyenbao on file library ifm CR2033 .lib in the CODESYS v2.3
CODESYS Forge
talk
(Post)
Hello everyone, I have a program file that uses the CR2033 module of iFM. I noticed that the program uses the CR2033 function, but in the CodeSystem software I installed from the file downloaded from iFM, I couldn't find the library containing this function. Where can I find the CR2033_XX.lib library?
Last updated: 3 days ago
Post by vstrom on Codesys v3.5.22.10 - Fail to create a project Archive
CODESYS Forge
talk
(Post)
Hi to all, I've created a project using the File->New Project-> Standard Project command. Then I've add the object "Visualization Manager" and then tried to create a project archive (File->Project Archive->Save Archive), but it fails with the error "Access to the path 'C:\Program Files\CODESYS 3.5.22.10\CODESYS\Common\3hxi4iod.put' is denied". The idicated file don't exist. First time of use of the new Codesys versionù, I've reinstalled the developement software but nothing change. If I don't add the Visualization part, the archive is created, it's seems to be a problem with the HMI part. Any ideas? Thanks
Last updated: 3 days ago
Network variable stops sending
CODESYS Forge
talk
(Thread)
Network variable stops sending
Last updated: 3 days ago
Post by alexgooi on Network variable stops sending
CODESYS Forge
talk
(Post)
Hi Reinier, What usually works for me is settings it up in the following way: In the sender block make sure that the list identifier is unique for the whole installation (this is only relevant when you have multiple senders in 1 network). When you are linking the NVL to a file make sure that the path to this file doesn't change. In my experience the NVL stops working when you change the working directory and afterwards open the NVL in de Codesys IDE. If this doesn’t apply to you application, you could also try to change the port number, maybe there is an other process making use of port 1202. Kind regards Alex
Last updated: 3 days ago
file library ifm CR2033 .lib in the CODESYS v2.3
CODESYS Forge
talk
(Thread)
file library ifm CR2033 .lib in the CODESYS v2.3
Last updated: 3 days ago
Post by jorenbeyl on library inside library
CODESYS Forge
talk
(Post)
I am currently developing a library that contains real‑time data. To handle this real‑time data, I am using additional libraries called SysTime and SysTypes Interfaces. When I compile my library on its own, no errors occur. However, when I use this library in a project and compile the project, I get an error indicating that the SysTime data type is not recognized. This happens even though the SysTime library is visible as a dependency under my library. Does anyone know how to correctly include a library within another library so that the project recognizes the sub‑library without causing compilation errors?
Last updated: 2 days ago
Post by malie on Issue with library updates
CODESYS Forge
talk
(Post)
Hello, i got the same problem, but on my site it started with version 3.5.21, with version 3.5.19.7 it worked like a charm. How get the old behavior back? Or how to reload the librarys in an open project/library manually?
Last updated: 1 day ago
Connect to Azure IoT Hub
CODESYS Forge
talk
(Thread)
Connect to Azure IoT Hub
Last updated: 1 day ago
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.