Applying INTEGER placeholder as 2^INT BitMask

I'm only a couple of weeks into WebIQ, and no previous json experience, etc. It had been mentioned in another post, Bit Access read/write from button, that the syntax bit[n]:Word does not appear to work for the button widget. I can concur I cannot get the read/write access working to an OPC-UA variable via this method. I am workingaround this by using a composite widget, with UI action and a placeholder for Word and bitmask:

It works, but I'd much rather have placeholders for Word and Bit, so as to fully replicated the bit[n]:Word syntax. Is there a way to apply an operator, like 2**bit, using snippets? Or perhaps someone knows a better way?

Best reply by HmiGuide

It's a bug of "Write on/off values when pressed/released", which will be fixed in next WebIQ version.

As workaround you can use the ui-Action "Write item"

View original
5 replies