Read and write multiple variables with a UI-Action

Hello,

I need to create a UI-Action that when I press the button reads the state of for example 10 variables and writes its value to another 10 different variables (Pass the data from one variable to another).
I am testing with ReadValue but what happens is that if the variable to read is not in the current screen that executes the action the values of the variables are not read.

Read and write variables are project and PLC variables.

How can I do it? Do I need a subscribe even if I only want to run the code once?

Thanks.

Best reply by webiq-sk
View original
2 replies