[I_BIT] Conversion integer to binary value

Function block I_BIT converts the integer input into 8 Boolean outputs.

I_BIT converts the integer input into 8 Boolean outputs.

Functioning

I_BIT divides the input [In] into 8 outputs [Out0]...[Out7]. At the same time, bit 1 of [In] is mapped to [Out0], bit 2 of [In] to [Out1], etc.

Input

Output

In

Out0

Out1

Out2

Out3

Out4

Out5

Out6

Out7

<=0

0

0

0

0

0

0

0

0

1

1

0

0

0

0

0

0

0

2

0

1

0

0

0

0

0

0

3

1

1

0

0

0

0

0

0

4

0

0

1

0

0

0

0

0

5

1

0

1

0

0

0

0

0

254

0

1

1

1

1

1

1

1

255

1

1

1

1

1

1

1

1

>255

1

1

1

1

1

1

1

1

Pins

Input

Description

Data type

Default value
Value range

In

Input

Integer

0

 

Output

Description

Data type

Default value
Value range

Out0Out7

Output 0Output 7

Boolean

0

Application

BIT_I allows for summarizing individual bit information as one integer 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.

Troubleshooting

If the value of input [In] is smaller than or equal to 0, all outputs [Out0]...[Out7] are set to 0. If the value of input [In] is greater than 255, all outputs [Out0]...[Out7] are set to 1.