Post by nano on How to access to variable value through symbolic string name
CODESYS Forge
talk
(Post)
i know, this is the reason for us either. PLC-Handler is to big, and only available with additional Contracts/Costs. OPC-UA is to slow for us. As described, there is a solution available, but im not allowed to post them here. i would prefer you send a message at codesys store by "have a question" or similar called. Not sure. Or, if an Codesys-Official Member allows to share that informations, i can give you the right hints.
Last updated: 2024-06-15
Post by joosterloh on Anbindung an bestehendes SIMIT Modell
CODESYS Forge
talk
(Post)
Hey also ich soll mit CodeSys 3.5 ein Modell erstellen, welches ich dann später mit einem bestehenden Modell in Simit anbinden kann. In CodeSys steht das Modell mehr oder weniger und ich wollte jetzt mal ausprobieren, ob ich die beiden Modelle miteinander koppeln kann. Übern einen OPC UA Server hat das auch alles geklappt. Allerdings hängt es jetzt an den globalen Variablen. Wie gehe ich da am besten vor? Soll ich die Variablen in CodeSys anpassen oder gibt es da einen Trick? Vielen Dank schon einmal im Voraus!
Last updated: 2024-07-14
Post by ivanh on kepware minimun privilege
CODESYS Forge
talk
(Post)
Hello everyone, I’m integrating Codesys with Kepserver using the Kepware driver for Codesys, and I need to configure a user account with the minimum necessary privileges to read and write to the tags on the PLC, without using the internal OPC UA server of Codesys. However, despite not assigning the Modify permission, Kepware still allows writing to the tags. What are the minimum required permissions to ensure that writing is only allowed when necessary, and how can I prevent other permissions from being overridden? Any guidance would be greatly appreciated.
Last updated: 2024-08-12
Post by veneto on OPC UA Client
CODESYS Forge
talk
(Post)
Ciao damian177, provo a chiederti un'informazione. Sul mio progetto Codesys(ver.3.5 SP17) non è visibile l'oggetto "Data Source Manager". Il PC con il progetto Codesys(client) è collegato via rete TCP ad un PLC Siemens1200(server). Sul PC con Codesys ho installato UAexpert(client) e riesco a vedere le variabili del PLC1200. Riesci ad aiutarmi a capire come mai non è visibile l'oggetto "Data Source Manager"? Molte grazie
Last updated: 2024-09-06
Post by mm-sceg on Runtime geht sporadisch in Störung -> RaspiPi4 reagiert nicht mehr
CODESYS Forge
talk
(Post)
Guten Tag, ich hab seit längerem das Problem, dass mein Raspberry Pi4 durch die PLC in Störung geht. Auf dem Raspi läuft eine einfache Software mit OPC UA server, InfluxDB und ein NodeRed-Server. (Und MQTT-Server) Daten werden von der PLC über OPC-UA an NodeRed übergeben. Es kann sein, dass der Raspi 2 Wochen läuft, dann geht die PLC in Stopp. Manchmal nur 2-3 Tage. Ein Neustart über Spannung aus & wieder an schafft Abhilfe. NodeRed wirft extrem viele Fehlermeldungen in kurzer Zeit. Wenn die PLC in Störung ist, kann man sich nicht mal mehr über SSH beim Raspi einloggen. Der Raspi ist aktiv gekühlt und im Normalbetrieb nicht überlastet. Ich hab einige logfiles mit vielen Einträgen die mir nichts sagen, eventuell hat hier jemand eine Idee wie ich dem Problem Herr werden kann :) Der letzte Datenbankeintrag von der SPS war am 11.11.2023 um 5:55:50 Uhr. D.h. danach muss die SPS gestorben sein. Siehe Raspi-Log im Anhang. Das LogFile von Codesys startet leider erst um 11 Uhr, weshalb weiß ich leider nicht. Vielen Dank schonmal
Last updated: 2023-11-11
Post by khaledkhalil on OPC UA informationsmodell zu Codesys
CODESYS Forge
talk
(Post)
Ich habe Modelle in SiOME hinzugefügt, eine Software zum Entwerfen von Knoten und zum Hinzufügen von Instanzen. und erstellte eine resultierende XML-Datei. Ich habe versucht, die XML-Datei über das OPC UA-Informationsmodell-Repository in Codesys zu importieren. Das Problem besteht darin, dass ich nicht weiß, wie ich meine von mir entworfenen Objekte anzeigen soll. und ordne es meiner SPS zu, um es auf meinem Server UaExpert sichtbar zu machen. Ich habe mir das Tutorial-Video https://youtu.be/aJhzN3Uk-Do?feature=shared angesehen. Aber es zeigt Ihnen nur, wie Sie das Informationsmodell hinzufügen, und mein resultierendes Modell hat keinen Informationstyp. Wie kann ich also in Codesys ein Modell anzeigen, das ich in SiOME entworfen und meine Instanzen (Objekte, Variablen oder Methoden) meinen Variablen in der SPS zugeordnet habe? Ich habe Leute gesehen, die es in Tia Portal oder einer anderen Software gemacht haben, aber ich habe keine Ahnung, wie man es auf CODESYS macht
Last updated: 2024-03-12
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 davidbo on Is OPC communication possible with server certificate but no client certificate
CODESYS Forge
talk
(Post)
I was just wondering is the following option possible and what the settings should be. Is OPC communication possible with only and mandatory server certificate but no client certificate?
Last updated: 2023-10-06
Post by eschwellinger on OPC Da Server Code Meter Issues after Enabling License
CODESYS Forge
talk
(Post)
it is mandatory to activate the OPC DA license into the 32-xxxxxx legacy container (not UFC) you need a remove ticket -> contact CODESYS store - my question to move the license
Last updated: 2024-05-03
Post by rossanoparis on How to configure CODESYSControl_User.cfg in order to use a specific network card for OPCUA Server
CODESYS Forge
talk
(Post)
Hello at all I'd like to know how to configure CODESYSControl_User.cfg in order to use a specific network card for OPCUA Server. In the past, I tried to ask in "Forge" about this topic, but I could find neither help nor document informations about it. Reading the file "codesyscontrol.log" I see these logs OPC UA Server Started: Hostname: NTLRPICTRL01, Port: 4840 URL: opc.tcp://NTLRPICTRL01:4840 Loopbackadapter activated. **All available networkadapters are used.** Multithreading activated. 3 workers used. My controller, which is a Linux PC, has got two network cards eth0 and eth1 I whant to use the card with name "eth0" as a server for OPCUA and keep the "eth1" free for other stuffs. Is it possible ? Best regards Rossano
Last updated: 2023-08-25
Post by sachem on Problem retain values Weidmuller UC20-WL2000
CODESYS Forge
talk
(Post)
Good afternoon. I am working with a weidmuller uc20-wl2000 controller, using a codesys license. We made a ladder code to control a process, and it works well, but we want some variables to remain stored even when the controller is turned off. We tried to use retain variables, but at the time of loading the program, when we went offline from the controller, the program was deleted, it did not remain in the controller, and in the same way if we turned off the controller. In addition to this, when we tried to program it again, the program would not stay loaded and began to present errors with the opc-ua communication. What could be causing this problem? How can we maintain the values of the variables without damaging the program or affecting the controller? thank you
Last updated: 2024-04-10
Post by viksym on Get text from textlist
CODESYS Forge
talk
(Post)
Does anybody know how to get a specific text from a text list within a program. Obviously it works in a visualization, but because I will have an HMI that has it's own system and I will have to send variables to this HMI via an OPC UA connection, I need to be able to get a text into a string. I tried using the VisuElems like this, but it only returns an empty "" and nothing else. IF trig THEN sText := VisuElems.cmpDynamictext.DynamicTextGetDefaultText(ADR(sTextList), ADR(sAlarmID))^; //sText := VisuElems.cmpDynamictext.DynamicTextGetText(ADR(sTextList), ADR(sAlarmID))^; trig := FALSE; END_IF Any help and idea is highly appreciated because I am getting desperate here.
Last updated: 2024-05-31
Post by khaledkhalil on Question about the hairaichy of UaExpert
CODESYS Forge
talk
(Post)
Hello, I am Examining this Example from Codesys Tutorial about OPC-UA server here https://www.youtube.com/watch?v=aJhzN3Uk-Do&list=PLWtD08CpmZcSV26aWh1axCAef5c5HxX-3&index=1&t=1167s. Now i am running to problem, when i create instances and i want them to appear directly under the object directory, However, it always appear with me under Objects >> Device set >> Device Name in CODESYS. I need to know how i can change the directory of my instances 'inst_3' and so on. So they can be under objects directly. I tried to modify the settings, but couldn't find any leads till now. Thanks in advance for helping
Last updated: 2024-09-12
Post by alexgooi on Codesys OPC DA server requires more then 2 GB of ram
CODESYS Forge
talk
(Post)
Dear Forum, We are currently running into a problem that the CODESYS OPC DA server is running out of RAM (larger than 2 GB). We have a setup of 10 Codesys controllers which features around 300.000 discoverable tags per controller. We are only interested in 10 percent of the tags to be communicated to the OPC-server, this is due to the fact the program consists of arrays of objects which on their part implements arrays of objects, simply reducing the number of discoverable tags is not an option The OPC-DA server loads all the discoverable tags, is it possible to: 1 let the OPC-DA server only load the tags that are requested by the SCADA/MES system. 2 let the OPC-DA server claim more memory. 3 run 2 OPC-DA servers in parallel? Thank you in advance
Last updated: 2024-01-25
Post by fhrask on CoDeSyS OPC DA stops working
CODESYS Forge
talk
(Post)
Did you find the solution for this issue? i'm having the exact same issue with a new machine at the moment....
Last updated: 2023-12-21
Post by cihangur on Application has invalid license metrics.
CODESYS Forge
talk
(Post)
Hi, I have a "CODESYS Control Standard L" license and I use Ethercat and Profinet in my project. The project works seamlessly with two fieldbuses. However, when I add modbus_Com (Serial) or 1 OPC Tag to the project, the program throws an exception (Application app=Application has invalid license metrics!). My license should support 10*Modbus and 512 OPC Tags. Why might this problem occur?
Last updated: 2024-03-25
Post by bryandimino on OPC Da Server Code Meter Issues after Enabling License
CODESYS Forge
talk
(Post)
I'm trying to get the OPC server setup on my machine and currently I'm not having luck. I went ahead and got my license setup. However when I go to run WinCoDeSysOPC.exe I get an error message that I don't have the code meter licenses installed. Does anyone have any ideas on how I can fix this issue?
Last updated: 2024-05-02
Post by gurkan on OPCUA array max length?
CODESYS Forge
talk
(Post)
2000 works. When testing with UA Expert there is a timeout from the OPCUA Server when trying to subscribe to the variable CPU do not seems to be to affected. The memory(RAM) however is building up
Last updated: 2024-02-19
Post by bjarne-pagaard on Communication between applications on same device/controller/runtime (Win RTE 3.5.20.20)
CODESYS Forge
talk
(Post)
Hi, I would like to divide a project into multiple applications - as a minimum: one handling visualization and Alarm Manager, one handling I/O and plant control logic. But how to exchange variables between the applications? What have you done to get such a solution? In versions 3.5.19 and earlier, you can have Child applications, where the children can access a GVL in the Parent application. Children apps is no longer possible in 3.5.20 - but you can have 'sibling' apps - Several apps directly under PLC Logic, that is. But how do they best communicate? The Communication Manager / Data Sources Manager is sort of possible via OPC UA, but it seems like overkill and with some limitations - for example no ARRAY OF STRUCT possible this way. If you have separate devices in your project, you can exchange data via 'CODESYS ApplicationV3', but not other applications in the same device (see attachment Datasources.png). You can do it via 'Select the project type'->'Other Project' and select the same project file, but this leads to crashing the Development system when working with the variables afterwards. It would be great to hear your thoughts / experiences on this topic - Bjarne
Last updated: 2024-09-27
Post by alexgooi on Codesys OPC DA server requires more then 2 GB of ram
CODESYS Forge
talk
(Post)
My colleague has found a tool online, Now it is possible to go to 4 GB instead of 2, which is plenty for now: https://www.techpowerup.com/forums/threads/large-address-aware.112556/ Use at own risk
Last updated: 2024-01-25
Post by rckalex on Data Source Limit
CODESYS Forge
talk
(Post)
There appears to be a limit to the number of OPC Servers that can be connected simultaenously. 1-10 work but adding an 11th makes one of the previously linked ones unavailable. Is this a soft setting that can be adjusted? Using 3.5.18.30 on Win x64
Last updated: 2024-03-06
Post by bryandimino on OPC Da Server Code Meter Issues after Enabling License
CODESYS Forge
talk
(Post)
Additionally the license is loaded on the soft storage for my device but it shows up as invalid. I just activated it today.
Last updated: 2024-05-02
Post by shabroz-gill on Data Sources Manager causing exception due to float or double type in OPC server
CODESYS Forge
talk
(Post)
Was this ever resolved? I see the same issue with the version 3.5.19.5
Last updated: 2024-07-01
Post by thn-power on Codesys Communication Manger - Required information model version exists in the model repository but is not found
CODESYS Forge
talk
(Post)
Hi. Thanks for the answer. I think I found your post on the Wago forum. I have tried installing all different nodeset versions of the opcfoundation.org/UA but neither work. Though I could not find the nodeset version called 15.09.2021 anywhere online. The opcfoundation repository only goes back to version 1.04.11 2022-03-29. Also wondering how I can generate a custom information model that only refrences the latest version of nodesets?
Last updated: 2024-09-19
Post by nikgind on Codesys Communication Manger - Required information model version exists in the model repository but is not found
CODESYS Forge
talk
(Post)
Hi I am trying to import a custom information model that I created using UA Modeler. I have only added two new methods and two new object types. It is possible to add the information model to the Communication Manager and the two new object types are shown in the Information Model tab. After compiling i get the following error: Communication Manager [Device: PLC Logic: Application]: The information model http://opcfoundation.org/UA/ is required by http://yourorganisation.org/Bsp_3.1/ with a minimal publication date from 15.12.2023 but the device has only a model from 15.09.2021 installed. Probably the information model from 15.09.2021 is missing in the information model repository. The error message does not make sense to me. Should it not be “Probably the information model from 15/12/2023 is missing in the information model repository”? Anyway I have installed the information model from 15/12/2023 but not from 15/09/2021. Which makes the error message even stranger.
Last updated: 2024-06-09
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
.