# Two 32bit Integers to One 64bit Integer Expression Tag

**URL:** <https://forum.inductiveautomation.com/t/two-32bit-integers-to-one-64bit-integer-expression-tag/96931>\
**Category:** Ignition\
**Created:** [October 7, 2024, 9:06pm UTC](https://forum.inductiveautomation.com/t/two-32bit-integers-to-one-64bit-integer-expression-tag/96931 "2024-10-07T21:06:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dion.botha](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@dion.botha](https://forum.inductiveautomation.com/u/dion.botha)\
**Post date:** [October 7, 2024, 9:06pm UTC](https://forum.inductiveautomation.com/t/two-32bit-integers-to-one-64bit-integer-expression-tag/96931/1 "2024-10-07T21:06:47Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![dion.botha](https://avatars.discourse-cdn.com/v4/letter/d/46a35a/32.png) [@dion.botha](https://forum.inductiveautomation.com/u/dion.botha)\
**Post date:** [October 7, 2024, 9:20pm UTC](https://forum.inductiveautomation.com/t/two-32bit-integers-to-one-64bit-integer-expression-tag/96931/2 "2024-10-07T21:20:23Z")

</div>

Got it!

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

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [October 7, 2024, 9:21pm UTC](https://forum.inductiveautomation.com/t/two-32bit-integers-to-one-64bit-integer-expression-tag/96931/3 "2024-10-07T21:21:12Z")

</div>

Much simpler than that.

```python
({High} << 32) | {Low}

```
