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

Passing Datalayer variable to webIQ widget

Passing Datalayer variable to webIQ widget

Tasty_Tech
Established Member

Hello Team,

I am trying to pass a variable from datalayer to properties "Max" and "Min" of a radial guage. I tried to pass the variable but its not reflecting on the dial guage. Is it possible to pass a variable to other properties in snippet?

I actually want the property in the radial guage to take the value from the variable which i am passing to it. Could you please help me?

4 REPLIES 4

webiq-sk
Frequent Contributor

Access to the data layer is currently not supported: https://developer.community.boschrexroth.com/t5/Smart-HMI-WebIQ-Designer-and/missing-Documentation-t...

You did not mention if you are trying to use OPC-UA for that - if the item values are available via OPC-UA you can surely connect them to WebIQ.

If you do you cannot modify item properties via snippets - item properties can only be modified through the Process Data Manager in WebIQ Designer. You have to set the corresponding min/max values or item properties for the corresponding variable to be used in the Radial Gauge. Likewise the Radial Gauge does not feature any properties for the min/max value items as these have to be defined with the used item itself.

You can only set - note the exact wording here - "Minimum Values" and "Maximum Values", i.e. absolute numbers. You cannot use items here. If you could, the settings would be named "Minimum Value Item" and "Maximum Value Item" and you would be able to select items there.

Also see 5.3.2 for this: https://www.smart-hmi.com/user/download/deliver/docs/documentation-manual-webiq-designer-2.15-ee64/i...

To summarize:
1. setup your item correctly in Process Data Manager's "Variables" tab

webiqsk_0-1694758350442.png

2. Connect the item with these min/max settings to your Radial Gauge widget

 

HmiGuide
Community Moderator
Community Moderator

I had the same problem, as the Radial gauge does not support items for Min Max. I did the following workaround:

  • Hide the numbers for Min/Max
  • Display the Min/Max values with overlaid text fields
  • Set Min=0 Max=100
  • Calculate the percentage value in the PLC
  • Display the calculated percentage value instead of the absolute value

webiq-sk
Frequent Contributor

The Radial Gauge widget fully supports min/max values as items so no workaround is required. However, widgets are not interested at all in items for min/max values, they are simply interested in absolute min/max values, thus WebIQ notifies the widgets whenever min/max values change, regardless if they are absolute values or originate from an item. Widgets simply don't know about min/max items and they don't have to, because they only need to know the current min/max values.

So if you set item for min/max values on a variable as described before it will work correctly with any widget including the Radial Gauge widget.

However, if you're using a simulation function (like the DSaw internal variable does) this only reads min/max item values once so it won't really work with this. But this is a limitation of the simulation function and has nothing to do with a specific widget.

I will attach a working demo (WebIQ 2.15) that illustrates this working behavior later.

HmiGuide
Community Moderator
Community Moderator

Great I did know that feature, but it was version 2.10 of WebIQ where I used the workaround. Maybe this feature was implemented later or I didn't read the tooltip which describes it.

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