Post by tobifenny on Modbus TLS Kommunikation
CODESYS Forge
talk
(Post)
Ich habe eine Wallbox, die ich gerne per Modbus ansteuern würde. Die Normale Modbus-Kommunikation, um ein paar Werte auszulesen klappt auch. Wenn ich aber Zugriff auf bestimmte Modbus-Register haben möchte, benötigt die Wallbox ein TLS-Zertifikat. Das Zertifikat habe ich bereits erstellt und im Security-Sreen unter Eigene Zertifikate hochgeladen. Weiter komme ich aber nicht mehr. Wie baue ich eine TLS-Verbindung mit der Waalbox auf? Vielleicht hat das ja schonmal jemand gemacht und ein Beispiel für mich. Ich bin über jede Hilfe sehr Dankbar!
Last updated: 21 hours ago
Post by garrian on How to write multiple coils (Modbus FC15)
CODESYS Forge
talk
(Post)
Thanks! As far as I can see, the client can only send words. And on the server side there are an array for each of the functions: bool for coil and discrete, word for holding and input registers. I assume I can use holding register, then use bit mapping on the words instead of coils. But I really want to use the FC15/coils.
Last updated: 2024-11-17
Post by davidbo on RPI is license server down
CODESYS Forge
talk
(Post)
It was but is running again
Last updated: 2023-10-19
Post by eschwellinger on User management
CODESYS Forge
talk
(Post)
CODESYS Automation Server could do this too..
Last updated: 2024-09-04
Post by egau on OPC UA C# client connecting to OPC UA CODESYS server
CODESYS Forge
talk
(Post)
any updates on this?
Last updated: 2024-09-18
Post by dogulas on OPC UA C# client connecting to OPC UA CODESYS server
CODESYS Forge
talk
(Post)
sadly, no
Last updated: 2024-09-19
Post by eschwellinger on OPC UA Server Status on Win RTE
CODESYS Forge
talk
(Post)
latest version of the Control RTE?
Last updated: 2024-10-21
Post by eschwellinger on Automation server - trends stop recording - need to manually reconnect
CODESYS Forge
talk
(Post)
latest Edge should solve it
Last updated: 2024-11-20
Post by winki on Opaque NodeId in the OPC UA server
CODESYS Forge
talk
(Post)
Hello, I have the same Issue !!!
Last updated: 2025-01-27
Post by eschwellinger on Exception when OPCUA datasource disconnects from Server
CODESYS Forge
talk
(Post)
Which runtime version and which communication addon version?
Last updated: 2025-03-21
Post by eschwellinger on Exception when OPCUA datasource disconnects from Server
CODESYS Forge
talk
(Post)
possible to uodate the runtimeversion?
Last updated: 2025-03-29
Post by dat422 on Opaque NodeId in the OPC UA server
CODESYS Forge
talk
(Post)
Hi all, same for me :(
Last updated: 2025-04-03
Automation Server 🇬🇧
CODESYS Forge
talk
(Discussion)
The Industry 4.0 administration platform for users and operators of CODESYS compatible controllers
Last updated: 2025-09-26
Post by haydermsalih on OSCAT Network LIBRARY: FTP_CLIENT
CODESYS Forge
talk
(Post)
Hello I am using FTP_CLIENT to donwnload/Upload a text or CSV file from FTP server. UpLoading from PLC to FTP server is working without any problem but when I try to download from FTP server I get an error. The FTP_CLIENT Block allows me to add URL but I do not where I can specify the direcory to save the downloaded file... is there anyone has an experience with downloading from FTP server using FTP_CLIENT block. Thanks in advance Hayder
Last updated: 2024-01-24
Post by alexgooi on Codesys OPC DA server requires more then 2 GB of ram
CODESYS Forge
talk
(Post)
Last updated: 2024-01-25
Post by flavinhofh on Beaglebone Black OPC-UA Server
CODESYS Forge
talk
(Post)
what was the solution guys ?
Last updated: 2024-04-10
Post by flavinhofh on Beaglebone Black OPC-UA Server
CODESYS Forge
talk
(Post)
what was the solution guys ?
Last updated: 2024-04-10
Post by flavinhofh on Beaglebone Black OPC-UA Server
CODESYS Forge
talk
(Post)
what was the solution guys ?
Last updated: 2024-04-10
Post by food on Beaglebone Black OPC-UA Server
CODESYS Forge
talk
(Post)
Man, this was a long time ago. I think the problem probably stemmed from not loading the certificates from the client and the server on the server and client respectively in the correct manner. I believe I ended up getting around it just by removing all security on the server. In the end we did not move forward with that architecture so I never had to actually fix it.
Last updated: 2024-04-10
Post by egau on Codesys Soft PLC OPC UA server
CODESYS Forge
talk
(Post)
Hey @ofey, any luck with that issue?
Last updated: 2024-06-26
Post by egau on Codesys Soft PLC OPC UA server
CODESYS Forge
talk
(Post)
Hey @ofey, any luck with that issue?
Last updated: 2024-06-26
Post by arundara on Variable Sync Issue In Soft Plc Redundancy
CODESYS Forge
talk
(Post)
Hello, I was trying to create a redundancy POC for our application where we read data from few modbus tcp devices. As there is a limitaion that modbus tcp device support only for single master device, we wanted to test how the variable sync happens in redundancy mode. For that i have used the redundancy sample code added a variable "b" under a condition. What i observed was while active controller is running, if passive controller is powerup, passive controller is able to sync all the data configured for redundacny. But after that the variable data which resided under a condition is not synching from active to passive controller. I have attached the image where i have highlighter the variable. Can some help me to understand how redundacny work in codesys soft plc and if there is a solution to sync variable which are under condition, please explain the same or suggestion to achieve the same. Hardware - Raspberry Pi (2 qty) Redundancy licence used - yes in both controllers. Codesys runtime - 4.9.0.0 Codesys software version - V3.5 SP19 if i have posted this question in wrong section, please do let me know in whcih section i have to post this question.
Last updated: 2023-12-01
Post by chris--o on ModbusTCP RaspberryPi zu Fronius Wechselrichter
CODESYS Forge
talk
(Post)
Hallo zusammen, ich hab ein kleines Problem bei einer Modbus TCP-Verbindung von meinem RaspberryPi (ML) zu einem Fronius Wechselrichter. Ich habe mir die CodeSys Version 3.5SP20 heruntergeladen und die Runtime auf dem RaspberryPi mit aktualisiert. Gerät ist ein Fronius Symo 6.0-3-M Folgende Konfiguration habe ich im Wechselrichter (Siehe Bilder). Laut Registertabelle fangen die Daten bei Adresse 40001 an und gehen im Modus int+SF bis 40120 Ich habe mir also im Ethernet-Adapter einen Modubus Master und darunter einen ModbusSlave angelegt. Der Slave (Fronius) hat bei mir die IP 192.168.2.46 dazu UnitID und Port. Ich habe dann einen Kanal mit den 120 WORDS und dem OFFSET angelegt. Wenn ich nun die Konfiguration übertrage , scheint erst mal alles zu passen.. aber es flackert immer wieder ein Fehler beim Slave auf (kann nicht erkennen welcher und finde auch keine Diagnose). Es werden auch keine Daten übertragen. Alles bleibt auf 0. Ich muss dazu sagen, dass ich noch eine weiter Modbus TCP Verbindung zu einer anderen SPS habe. Die funktioniert wunderbar. Normalerweise sollten ja auch mehrere Verbindungen gleichzeitig möglich sein oder? Wäre top, wenn ihr mir helfen könntet, den Fehler zu finden. LG Chris
Last updated: 2025-06-30
Post by gilbert-mh on CAA net base TCP client cause PLC to crash - Kernel message : N0HZ_local_softirq_pending 80
CODESYS Forge
talk
(Post)
Hello all, I have been trying to implement a TCP client on a Festo PLC (CPX-E-CEC-M1) and it looks like it works well except that after some time (greatly varies between a few hours to more than 100h) my PLC crash. When I look into the log file the only thing I see is that before the crash happens a few kernel warnings : N0HZ_local_softirq_pending 80 and then the crash. I've looked into this warning and from what I could find on the net it seems that this is warning is triggered when the ethernet link is down. I've tried to correct this bug for quite some time and what I know is that : - The crash is caused by my TCP client, when I remove it from my code I see no crash - The crash happens more quickly the more the TCP client is used. - The time before the crash is not directly proportional to the number of communications or their size. But it looks like it is just more likely to happen if the client connect to the server at a higher frequency. - The precedent observation makes it seem unlikely that the crash is caused by some memory overflow because then the crash speed would be more proportional to the amount of data exchanged. SO from these observations, I believe that the crash could be caused by the PLC trying to connect to a server while there is some kind of issue with the ethernet link resulting in the PLC getting stuck in some indefinite state and making it crash. This still seems a bit unlikely to me because if the ethernet is down it simply shouldn't be able to contact the server and the communication would just fail which doesn't cause my PLC to crash. Has anyone encountered the same kind of problem (with the same kernel message) ? I am pretty sure the warning is not the direct cause of the crash but just an indicator that something is wrong with my PLC. Thanks in advance
Last updated: 2024-01-12
Post by madskaizer on Task Priority Documentation?
CODESYS Forge
talk
(Post)
Hi All I was watching the Wago PFC300 webinar ( https://www.wago.com/global/lp-thank-you-onlineseminar-pfc-300 ), and the presenters comment about priority 1 being way above the Ethernet task priority, so that a priority 1 PLC program can actually loose SCADA connection, made me try to round up some hard evidence on Codesys Priorities. I find there is very little information on "correct" task priority configuration. There is a lot of different hardware manufacturers, using Codesys Runtime, that has different descriptions in their manuals on how to set up priority. https://doku.amk-motion.com/en/Subsystems/PDK_202975_A-Serie_en/Content/Projekt/AMKAMAC/PDK_202975_A4-A5_Produktbeschreibung/Funktionalitaet/PLC-Programming/PLC%20Tasks.htm?TocPath=PLC-Programming%7C_____7 https://product-help.schneider-electric.com/Machine%20Expert/V1.1/en/SoMProg/index.htm?#t=SoMProg%2FTask_Editor%2FTask_Editor-7.htm&rhsearch=priority&rhhlterm=priority&rhsyns=%20&SUBSTRSRCH=1 https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_f_task_configuration.html So my questions :) 1) If there is only 1 PLC_PRG task, does priority matter? 2) What is the priority of Ethernet / communication, if nothing is entered? 3) What is the priority of Codesys OPC UA server? 4) Some users here on forge mentions that Wago PLC programs should run as priority 11, but where does this recommendation origin from? 5) What are you recommendations for a relatively slow process, like building automation? It uses OPC UA for communication to SCADA, maybe some MODBUS-RTU and MODBUS-TCP, usually around 100 I/O, been running with everything in a single task at priority 1, 50-100ms cycle time. Some controllers have separate MODBUS tasks, but doesn't seem like a big difference. How would you recommend splitting up communication, IO fieldbus and programs into differently prioritized tasks? I know its a complex matter and all about my application, but I really miss there was just some kind of guidance in the documentations and with all new standard Codesys programs having priority 1 as default, makes it seem less important, than it really is.
Last updated: 2025-08-11
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.