OPCUA VARIABLES COMUNICATION VELOCITY

Hello,

When I access a screen in which I am using ctrlX CORE variables communicated via OPCUA to WebiQ to display some objects, the variables have a communication delay and at first all the elements that should be hidden by the state of the variable to which they are associated are visible. After a few seconds they are hidden by the state of the variable.
What can I do to make the communication of these variables faster?

Maybe i can use a load screen, which is hidden after a time. How i can hide a screen after a time?

Best regards.

Best reply by HmiGuide

An further issue is discussed in: Delay-on-loading-data 

The workaround disucssed there is to have the items always subscribed. An altrnative to subscribe variables via trend, is to subscribe them in a local script, which is always active (so attach it e.g. to the root element of your project. 

const im = shmi.requires("visuals.session.ItemManager");
im.subscribe([
   "GVL_BASE.stTeachMgr.myVar1", 
   "GVL_BASE.stTeachMgr.myVar2"],
   // optinal callback function, is not necessary 
   // for you and can be removed
   (name, value, type) => {});

 Keep in mind that you shouldn't do this workaround for too many variable, to keep the load of PLC and communicaton small.

View original
2 replies