Converting several bytes into a single number

I have an array of 8-bit numbers that I want to combine into a 48-bit number. I cannot find the way to do this in ignition

Create an expression tag where you reference each of the 6 bytes and shift it left the appropriate amount of bits, ORing them all together.

What’s the syntax for shifting?

It’s <<. See the expression language syntax here for others: Expression Language and Syntax - Ignition User Manual 8.1 - Ignition Documentation

({SomeTag} << 8) | {SomeOtherTag} 
1 Like