FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
12-02-2021 11:49 AM
Hello there,
I have a question fo competing data. For example two different languages (like Python, codesys) want to write to the same variable. How to handle the competing data in this case?
Solved! Go to Solution.
12-03-2021 08:14 AM
Two instances writing the same variable?
During the write process itself there are internal mechanism (semaphor) which protect the systems for corrupt data.
But in general the last write access wins. Means you have to take care in you overall project that the writing of the differnet instances will work correctly. (if all instances writes cyclic the variable, this will not work, ....)
12-07-2021 09:22 AM
Thanks for your reply.
I have an additional question: Is it possible to see if a variable is written twice or can the write accesses to the variable be displayed?
12-10-2021 02:35 PM
Here it will be interesint to know details of your concept. Who is writing what?
When we talking about PLC-variables I only now the Call tree inside the PLC Engineering, which shows the write/read access of a varialbe. But it is limited only for the PLC code and not for other instances...
12-13-2021 09:40 AM
Thanks for your reply.
It is not limited to the PLC variables. In the concept it is not known who creates/describes the variable in the data layer e.g. different apps accessing the data layer. Is there a possibility to look up like the last 10 accesses to a variable in the logbook or something similar. E.g. by setting a hook at a certain variable the diagnostic function is selected?
Or is there any other way to track the different variables?
12-13-2021 11:02 AM - edited 12-13-2021 11:03 AM
At the moment there is no global recognition or recording who is writing which ctrlX Data Layer datum or what is/was written. Each data provider would have to do this for his own.