FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
09-02-2020 01:19 PM - last edited on 08-27-2021 11:28 AM by CodeShepherd
Hi
I have tried to publish variables to the datalayer from the PLC and it works just fine👍. But I am looking for a functionality in the PLC which is similar to the "onWrite" function in the SDK for C/C++. When a user tries to write a value to the datalyer I want to make some sanity checks before I accept the new value in the PLC. Is it possible to solve somehow in the PLC?
Solved! Go to Solution.
08-30-2021 02:55 AM
Maybe you can try plc library: CXA_Datalayer. You can use DL_WriteNode to write value to a datalyer.
12-16-2021 09:24 PM
In general I would say that you make a internal working copy of the variables published to the Data Layer. If the value gets written your PLC code can react to it and only if your checks are fulfilled you take to your internal program. Otherwise you write the last known value.