I_BIT: Conversion integer to binary value

The I_BIT (FC363) block converts the integer input into 8 Boolean outputs.

Functionality

The block divides the input [In] into 8 outputs [Out]...[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

.........

 

 

 

 

 

 

 

 

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

Inputs

Pin

E

Description

In

pa

Input

Outputs

Pin

E

Description

Out0..Out7

a

Output 0..7

Input values

Pin

Description

Data Type

Default value

E.g. Engineering unit or Text group

Min.

Max.

In

Input

Integer

0

 

 

 

Output values

Pin

Description

Data Type

Default value

E.g. Engineering unit or Text group

Min.

Max.

Out0..Out7

Output 0..7

Boolean

0 (No)

No, Yes

 

 

Application

The BIT_I block allows for summarizing individual bit information on one integer line; block I_BIT then resolves the individual information. The blocks e.g. are intended for preparing communication values, particularly in connection with third-party components.

Process response

Standard (see General rules and information).

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 or equal to 255, all outputs [Out0]...[Out7] are set to 1.