I'm trying to set float type tag to have 2 decimal places and write its value in alarm. but there's no decimal property in a tag and in the manual, only exist the instruction to set decimal places of a visual object. is there a way to do this or maybe some kind of function to do this in script before assigning value to tags?
The administrator has disabled public write access.
setting decimal place value in tag
4 months 3 weeks ago #1827
It's not possible to do directly. You can do it only by using intermediate tag. And in the script * 100 and get integer part by assigning to int value and then divide to 100 and bind this value to the tag you want to display alarm with 2 decimal places.