Bit composition, 8 bits
Function name
BD18_BIT_COMPOSITION_8BIT
ST call
PROGRAM BD18_8B_TEST VAR IN1: ARRAY [0 .. 7] OF BOOL; O1: USINT; END_VAR O1:= LIB.Core.V1_0.BD18_BIT_COMPOSITION_8BIT(IN := IN1); END_PROGRAM
Library
LIB\CORE
Version
V1.0
Description
The function brings 8 bits together to create an integer value.
Inputs
| Input | Type | Description |
| ENABLED | BOOL | Enable function |
| IN | ARRAY [0 .. 7] OF BOOL | Array of input values (bits) |
| IN0 | BOOL | First input (simple type) |
| IN1 | BOOL | Second input (simple type) |
Outputs
| Output | Type | Description |
| OUT | USINT | Output value |
Function
The block brings together the input bit values IN[0..7] to a USINT (unsigned short integer) output out.

