| #1 |
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.
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.