Two 32bit Integers to One 64bit Integer Expression Tag

Hi All,

I have two 32bit integer tags that come from a PLC.

I would like to have an expression tag that concatenates the bits of the second (upper double word) and first (lower double word) tags to form one 64bit integer.

What might the expression look like?

Got it!

fromBinary(concat(toBinary({[.]New Tag 1}), toBinary({[.]New Tag 2})))

Much simpler than that.

({High} << 32) | {Low}
5 Likes