Switch to desktop version  
ViewOn Symbol - Display TagName - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: Ewon Embedded Technology (https://techforum.ewon.biz/forum-51.html)
+---- Forum: Ewon Core Features (https://techforum.ewon.biz/forum-3.html)
+---- Thread: ViewOn Symbol - Display TagName (/thread-429.html)



ViewOn Symbol - Display TagName - Daniel_Craw - 26-10-2017

Hi All,

I am currently creating a pump symbol in a viewOn application and I am having trouble figuring out how to display the tag of the motor.


  Pump Symbol.png (Size: 6,11 KB / Downloads: 34)

The motor has an enumerated symbol tag 'Motor_Stt' that I use to change the colour of the pump depending if it is running or not.

I have created a text element in the symbol called 'TagName' and would like this text to be replaced with the actual tagname of the motor. I realise that I cannot create a 'string' variable in viewon but what I would like to do is somehow take the tag that is assigned to 'Motor_stt' and trim the actual tagname and append it to the tagname text.

For example assign 'MOTOR01_Run' to 'Motor_Stt' on a view. 
Take 'MOTOR01_Run' Trim last four characters from the tagname and append 'MOTOR01' to Tagname. Or even display 'MOTOR01_Run' as a start point.


RE: ViewOn Symbol - Display TagName - ziozetti - 31-10-2017

I can't answer directly to your question but I can suggest a workaround: you can edit text element attributes (Animation, Visibility, State) showing it only when MOTOR01_Run is 1.