Applies To:
  • CitectSCADA, V7.x 

TagRead in v7.xx returns a different result than that returned in v6.10. Prior to  v7.00, TagRead() function returns the correct decimal precision according to the 'format' specified, while since v7.00, it returns the max number of decimal places regardless of the format specified for the object (or the specified format in variable tag configuration form).

For example:
Enter a value of 123.1234 on a REAL variable tag with a default format of ###.#,
then do a TagRead() function and store the return result to a STRING variable
tag, the string will contain 123.12340039782... (approx.)
The correct result should be 123.1

This problem has been fixed and the fix will be included in v7.10 Service Pack 3. Hotfix for other version (v7.0 - v7.1 SPK 2) is available via request.

TagRead, Cicode, Real, variable tag, decimal