[BIT_I] Conversion binary to integer value

Function block BIT_I summarizes 8 individual boolean inputs to one single integer output.

BIT_I summarizes 8 individual boolean inputs to one single integer output.

Functioning

BIT_I summarizes 8 inputs [In0]...[In7] as one output [Out]. At the same time, [In0] is mapped to bit 1 of output [Out], [In1] to bit 2 of output [Out], etc.

Input

Output

In0

In1

In2

In3

In4

In5

In6

In7

Out

0

0

0

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

1

0

0

0

0

0

0

2

1

1

0

0

0

0

0

0

3

0

0

1

0

0

0

0

0

4

1

0

1

0

0

0

0

0

5

0

1

1

0

0

0

0

0

6

1

1

1

0

0

0

0

0

7

0

0

0

1

0

0

0

0

8

0

1

1

1

1

1

1

1

254

1

1

1

1

1

1

1

1

255

Pins

Input

Description

Data type

Default value
Value range

In0In7

Input 0Input 7

Boolean

0

0 - Input disabled.
1 - Input is enabled.

 

Output

Description

Data type

Default value
Value range

Out

Output

Integer

0

Application

BIT_I allows for summarizing individual information as one line, to be resolved into individual information via I_BIT. BIT_I and I_BIT are intended, e.g., to prep values for communication, primarily with third-party components.