WebIQ "Setview" function with OPC-UA Variable

Hi all,

 

i would like to set a page/ view on the HMI screen based on a PLC/ OPC-UA Variable which is available in the "Process Data Manager".

e.g.  If "bExample" is "true" (rising edge) --> switch the HMI screen to "Panel View" [4].

I found the UI-Action "Setview" in the config of some buttons/widgets which provide this functionality, but with a klick on an button.

Could somebody provide me a Script with this functionality triggered by a "Process Data Manager" Variable and not with a user action.

I´m not that experienced in JavaScript coding 🙂

 

Thanks

Max

Best reply by HmiGuide

There is a build in feature in WebIQ which might help you, withou a script.

All Panels (Screen, Swipe and Tab-Panel) have an item field (see red mark). It is a status und control field. This means if you can the INT variable in PLC, the selected panel is displayed. If you select a different panel via mouse click, the value of the item is updated.

 

View original
2 replies