you can use the system function "SetValue". Insert the system function on the event "change value" of your INT_Tag.
Parameters of the system function "SetValue":
Tag (out) : REAL_Tag
Value: INT_Tag
Alternative you can use the following script code:
======================
REAL_Tag = CSng(INT_Tag)
or
REAL_Tag = CLng(INT_Tag)
======================
"Sng" for Single
"Lng" for Long
| Subtype | Range |
| Byte | 0 to 255. |
| Boolean | True or False. |
| Integer | -32,768 to 32,767. |
| Long | -2,147,483,648 to 2,147,483,647. |
| Single | -3.402823E38 to -1.401298E-45 for negative values; 1.401298E-45 to 3.402823E38 for positive values. |
| Double | -1.79769313486232E308 to -4.94065645841247E-324 for negative values; 4.94065645841247E-324 to 1.79769313486232E308 for positive values. |
| Currency | -922,337,203,685,477.5808 to 922,337,203,685,477.5807. |
| Date | January 1, 100 to December 31, 9999, inclusive. |
| Object | Any Object reference. |
| String | Variable-length strings may range in length from 0 to approximately 2 billion characters. |
Bye
Follow us on