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.
01-03-2023 02:14 PM
Hello and happy new year,
first of all sorry for my bad english. I would like to be able to write to an PLC variable via a script, unless there is a solution for the PLC to know the current view.
Regard
Solved! Go to Solution.
01-04-2023 08:10 AM
I found to have the view number, it's in the screen widget config.
01-12-2023 08:44 AM
Yes, that is correct. You can configure a PLC integer variable in WebIQ which can be used to change the view and to read it. You don't have to do it via script.
Hint: Up to now there is no concept how to handle this, when you have multiple parallel running HMI clients.
01-12-2023 11:14 AM
Some comments:
1. If you bind the view to a PLC variable that means it will be changed on all HMIs open at the same time automatically.
2. If you don't want that simply use virtual items for that, these don't have any PLC binding
As a multi-user system you should normally not use PLC variables to reflect HMI display states unless you really have only one concurrent user (i.e. HMI open on only one browser window) at all times.