cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

OPCUA VARIABLES COMUNICATION VELOCITY

OPCUA VARIABLES COMUNICATION VELOCITY

AGME
New Poster

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.

2 REPLIES 2

webiq-sk
Frequent Contributor

Regarding fixing of the issue:
These factors influence the speed at which you observe changes because of item changes in widgets:
- the speed of the OPC-UA server (compare with UA Expert from another system connected to the same network through the same network type)
- the network speed and latency of the server system -> always use a wired connection for best performance
- the network speed and latency of the browser system -> always use a wired connection for best performance
- a virus scanner and/or firewall on the server and/or on the browser system
- the CPU of the server system
- the CPU of the browser system
- the GPU of the browser system

Please note an OPC UA change has to go through these network routes:
- OPC-UA-Server <-> WebIQ Server
- WebIQ Server <-> Browser

Regarding the workaround:
You should hide the container that contains the widgets via CSS and then show it via JavaScript when the item is available. Only showing a dialog will likely also show the other widgets before as the dialog will be initialized via JavaScript (asynchronous). If the container itself is hidden with CSS it will never be shown initially which is probably what you want.

JavaScript offers the setTimeout method for delays: 
https://www.w3schools.com/jsref/met_win_settimeout.asp

 

HmiGuide
Community Moderator
Community Moderator

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.

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist