BIT_I: Conversion binary to integer value
The BIT_I (FC364) block summarizes 8 individual Boolean inputs to one single integer output.
Functionality
The block summarizes 8 inputs [In0...In7] to form 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 |
Inputs
Pin | E | Description |
In0..In7 | pa | Input0 .. Input7 |
Outputs
Pin | E | Description |
Out | a | Output |
Input values
Pin | Description | Data Type | Default value | E.g. Engineering unit or Text group | Min. | Max. |
In0..In7 | Input 0..7 | Boolean | 0 (No) | No, Yes |
|
|
Output values
Pin | Description | Data Type | Default value | E.g. Engineering unit or Text group | Min. | Max. |
Out | Output | Integer | 0 |
|
|
|
Application
The BIT_I block allows for summarizing individual information in one line; block I_BIT (FC363) then resolves the individual information.
The blocks are intended for preparing communication values, particularly in connection with third-party components.
Process response
Standard (see General rules and information).
Troubleshooting
Standard (see General rules and information).