# LGF_SplitByteToBits (FC / 3.0.1)

Overview

Author: Siemens Digital Industry

## Short description

This function splits a Byte variable into 8 Boolean / 8 Bit variables.

### Block Interface

| LGF_SplitByteToBits (FC) |
--- | --- | ---
Byte |  |  | byte |  | Ret_Val |  |  | Void
|  |  |  |  | bit7 |  |  | Bool
|  |  |  |  | bit6 |  |  | Bool
|  |  |  |  | bit5 |  |  | Bool
|  |  |  |  | bit4 |  |  | Bool
|  |  |  |  | bit3 |  |  | Bool
|  |  |  |  | bit2 |  |  | Bool
|  |  |  |  | bit1 |  |  | Bool
|  |  |  |  | bit0 |  |  | Bool

### Input parameter

Identifier | Data type | Description
--- | --- | ---
byte | Byte | Bit sequence to be split

### Output parameter

Identifier | Data type | Description
--- | --- | ---
Ret_Val | Void | Void - Function has no return value
bit7 | Bool | Output Bit 7 - MSB
bit6 | Bool | Output Bit 6
bit5 | Bool | Output Bit 5
bit4 | Bool | Output Bit 4
bit3 | Bool | Output Bit 3
bit2 | Bool | Output Bit 2
bit1 | Bool | Output Bit 1
bit0 | Bool | Output Bit 0 - LSB

## Change log

Version & Date | Change description
--- | ---
| 1.0.0 | Simatic Systems Support
| 20.06.2019 | First release
| 3.0.0 | Simatic Systems Support
| 23.04.2020 | Set version to V3.0.0 harmonize the version of the whole library
| 3.0.1 | Simatic Systems Support
| 22.02.2021 | Insert documentation