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?
Solved! Go to Solution.
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.
1. setup your item correctly in Process Data Manager's "Variables" tab
2. Connect the item with these min/max settings to your Radial Gauge widget
I had the same problem, as the Radial gauge does not support items for Min Max. I did the following workaround:
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.