reading 64-bit double 4 register tag

I am trying to read The active energy from Energy meter called Pac3200 but the tag is defined in double format and is stored in 4 registers(64-bit).

as far as I know there is no data type in citect can interpret double data type and I tried to use other data types such as real, long, Ulong but it did not work and I ended up reading every register alone as int or every two register as real or long.

is there any solutions or cicode function that could convert the two real tags into double format?

Parents
  • It's not hidden...it's just hard to find. Log in to Aveva Support, go to Community, Citect Community, Toolbox. Unfortunately, the categories are gone so you have to use the search bar to find anything.

    Maybe Bhadresh can tell what he was referring to for floating point values. All I found was my code to convert 2x 32-bit LONGs into a 64-bit INT: https://softwareforums.aveva.com/citect_community/cit-toolbox/f/187/t/23033
Reply
  • It's not hidden...it's just hard to find. Log in to Aveva Support, go to Community, Citect Community, Toolbox. Unfortunately, the categories are gone so you have to use the search bar to find anything.

    Maybe Bhadresh can tell what he was referring to for floating point values. All I found was my code to convert 2x 32-bit LONGs into a 64-bit INT: https://softwareforums.aveva.com/citect_community/cit-toolbox/f/187/t/23033
Children
No Data